@ckeditor/ckeditor5-ai 47.4.0-alpha.3 → 47.4.0-alpha.5

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 (292) 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/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.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/aichatfeederroritemview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  208. package/src/aichat/utils/eventnames.js +1 -1
  209. package/src/aichat/utils/promisequeue.js +1 -1
  210. package/src/aichathistory/aichathistory.js +1 -1
  211. package/src/aichathistory/aichathistorycontroller.js +1 -1
  212. package/src/aichathistory/aichathistoryui.js +1 -1
  213. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  214. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  215. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  216. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  217. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  219. package/src/aicore/aiconnector.js +1 -1
  220. package/src/aicore/aiediting.js +1 -1
  221. package/src/aicore/model/aicapabilities.js +1 -1
  222. package/src/aicore/model/aicontext.js +1 -1
  223. package/src/aicore/model/aiinteraction.js +1 -1
  224. package/src/aicore/model/aimodels.js +1 -1
  225. package/src/aicore/model/aireply.js +1 -1
  226. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  227. package/src/aicore/pipeline/airesponseparser.js +2 -2
  228. package/src/aicore/ui/aidisclaimerview.js +1 -1
  229. package/src/aicore/ui/aiskeleton.js +1 -1
  230. package/src/aicore/ui/aispinner.js +1 -1
  231. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  236. package/src/aicore/utils/common-translations.js +1 -1
  237. package/src/aicore/utils/createresizebutton.js +1 -1
  238. package/src/aicore/utils/documentposition.js +1 -1
  239. package/src/aicore/utils/documentrange.js +1 -1
  240. package/src/aicore/utils/eventnames.js +1 -1
  241. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  242. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  243. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  244. package/src/aicore/utils/htmlparser.js +1 -1
  245. package/src/aicore/utils/htmlstreamer.js +1 -1
  246. package/src/aicore/utils/scrollmanager.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  258. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  285. package/src/aitabs/aitabs.js +1 -1
  286. package/src/aitabs/aitabsmainview.js +1 -1
  287. package/src/aitabs/tabs/aitabsview.js +1 -1
  288. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  289. package/src/aitabs/tabs/tabpanelview.js +1 -1
  290. package/src/errors.js +1 -1
  291. package/src/errorsmap.js +1 -1
  292. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x348208=_0xf51f;function _0xf51f(_0x432470,_0x53cb71){const _0x3e8542=_0x3e85();return _0xf51f=function(_0xf51f3f,_0x2f9e7f){_0xf51f3f=_0xf51f3f-0x19a;let _0x5730ae=_0x3e8542[_0xf51f3f];return _0x5730ae;},_0xf51f(_0x432470,_0x53cb71);}(function(_0x4c5b8f,_0x5c7a41){const _0x464b76=_0xf51f,_0x58424e=_0x4c5b8f();while(!![]){try{const _0x2f4748=-parseInt(_0x464b76(0x1dc))/0x1*(-parseInt(_0x464b76(0x1ba))/0x2)+parseInt(_0x464b76(0x1a1))/0x3+parseInt(_0x464b76(0x1bd))/0x4*(parseInt(_0x464b76(0x1b1))/0x5)+parseInt(_0x464b76(0x1d0))/0x6+parseInt(_0x464b76(0x1b3))/0x7*(parseInt(_0x464b76(0x1a0))/0x8)+-parseInt(_0x464b76(0x1d6))/0x9*(parseInt(_0x464b76(0x1d1))/0xa)+-parseInt(_0x464b76(0x1d7))/0xb;if(_0x2f4748===_0x5c7a41)break;else _0x58424e['push'](_0x58424e['shift']());}catch(_0x34b376){_0x58424e['push'](_0x58424e['shift']());}}}(_0x3e85,0x4f7f2));import{ButtonView as _0x24c2b2,IconView as _0x597881}from'ckeditor5/src/ui.js';import{IconClose as _0x1db0d3,IconDocument as _0x309671,IconFileUpload as _0x4b9e31,IconLink as _0x55cf73,IconSelection as _0x162163}from'@ckeditor/ckeditor5-icons';function _0x3e85(){const _0x1470bb=['remove','_createTemplateAttributes','span','_createLoaderIcon','ck-ai-chat-context-chip__label','length','15798xBweyj','tooltip','removeEventListener','335556ASyCvx','removeContextItemChip','_initializeProperties','execute','set','ck-ai-chat-context-chip_new-chip','element','setTemplate','isLoading','isVisible','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','label','_handleAnimationEndOnce','_createTemplateChildren','locale','bind','ck-ai-chat-context-chip','ck-ai-chat-context-chip_document','1955706lfzrIO','4388880DoEkOO','ck-ai-chat-context-chip__type-icon','slice','bindTemplate','_createRemoveButton','9ElVPhd','11888756uRCEMj','_createIconView','readonly','webkitAnimationEnd','_createLabelElement','69PeIwJD','type','fire','uiId','_isAnimationOnEnterEnabled','lastIndexOf','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','16DWtXhG','840615EcNuar','ck-ai-chat-context-chip_wide','ck-hidden','content','_setupTemplate','addEventListener','document','classList','small','disableAnimationOnEnter','add','render','selection','animationend','itemType','div','15DlgLiK','extendTemplate','1548568yvJHLh'];_0x3e85=function(){return _0x1470bb;};return _0x3e85();}import{getTranslation as _0x59a000}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x33bae3}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x4b9e31,'document':_0x309671,'web-resource':_0x55cf73,'text':_0x4b9e31,'selection':_0x162163},bn=_0x348208(0x1ce),wn=_0x348208(0x1a2),Tn=_0x348208(0x1cf),En=_0x348208(0x1b8),fn=_0x348208(0x1d2),An=_0x348208(0x1c7),Cn='n';export class AIChatContextItemButtonView extends _0x24c2b2{constructor(_0x5117af,_0x14aae5,_0x34f3df,_0x2ee7b0,_0x393cd1=!0x1){const _0xb428d1=_0x348208;super(_0x5117af),this[_0xb428d1(0x19d)]=_0x2ee7b0,this[_0xb428d1(0x1bf)](_0x14aae5,_0x34f3df,_0x393cd1),this[_0xb428d1(0x1a5)]();}[_0x348208(0x1ac)](){const _0x2934db=_0x348208;super[_0x2934db(0x1ac)](),this[_0x2934db(0x19d)]&&this[_0x2934db(0x1c3)]&&(this[_0x2934db(0x1c3)][_0x2934db(0x1a8)][_0x2934db(0x1ab)](_0x2934db(0x1c2)),this[_0x2934db(0x1ca)](this[_0x2934db(0x1c3)],()=>{const _0x266341=_0x2934db;this[_0x266341(0x1c3)]&&this[_0x266341(0x1c3)][_0x266341(0x1a8)][_0x266341(0x1b4)](_0x266341(0x1c2));}));}[_0x348208(0x1aa)](){const _0x593b2d=_0x348208;this[_0x593b2d(0x19d)]=!0x1,this[_0x593b2d(0x1c3)]&&this[_0x593b2d(0x1c3)][_0x593b2d(0x1a8)][_0x593b2d(0x1b4)](_0x593b2d(0x1c2));}[_0x348208(0x1bf)](_0x18d1e0,_0xba3634,_0x2a2240){const _0x407f1b=_0x348208;this[_0x407f1b(0x1c1)](_0x407f1b(0x1c9),_0x18d1e0[_0x407f1b(0x1c9)]),this[_0x407f1b(0x1c1)](_0x407f1b(0x1bb),!0x0),this[_0x407f1b(0x1c1)](_0x407f1b(0x1af),_0x18d1e0[_0x407f1b(0x19a)]),this[_0x407f1b(0x1c1)]('id',_0x18d1e0[_0x407f1b(0x19c)]),this[_0x407f1b(0x1c1)](_0x407f1b(0x1d9),_0xba3634),this[_0x407f1b(0x1c1)](_0x407f1b(0x1c5),_0x2a2240);}[_0x348208(0x1a5)](){const _0x4464a4=_0x348208,_0x1e3080=this[_0x4464a4(0x1d8)](),_0x33dedd=this[_0x4464a4(0x1d5)](),_0x360219=this[_0x4464a4(0x1d4)];this[_0x4464a4(0x1c4)]({'tag':_0x4464a4(0x1b0),'attributes':this[_0x4464a4(0x1b5)](_0x360219),'children':this[_0x4464a4(0x1cb)](_0x1e3080,_0x33dedd,_0x360219)});}[_0x348208(0x1b5)](_0x1daa1e){const _0x2b1f9b=_0x348208;return{'class':[bn,_0x1daa1e['if'](_0x2b1f9b(0x1af),Tn,_0x1a8b15=>_0x2b1f9b(0x1a7)==_0x1a8b15),_0x1daa1e['if'](_0x2b1f9b(0x1af),wn,_0x4a9cc0=>_0x2b1f9b(0x1ad)==_0x4a9cc0)],'data-cke-tooltip-text':_0x1daa1e['to'](_0x2b1f9b(0x1c9),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x348208(0x1cb)](_0x15a7a1,_0x3b5f66,_0x244661){const _0x10e255=_0x348208,_0x43a202=this[_0x10e255(0x1db)](_0x244661),_0x1ea701=this[_0x10e255(0x1b7)]();return this[_0x10e255(0x1d9)]?[_0x15a7a1,_0x43a202]:[_0x15a7a1,_0x1ea701,_0x43a202,_0x3b5f66];}[_0x348208(0x1db)](_0x5dd5fb){const _0x46fe63=_0x348208;return{'tag':_0x46fe63(0x1b6),'attributes':{'class':En},'children':[{'text':_0x5dd5fb['to'](_0x46fe63(0x1c9))}]};}[_0x348208(0x1d5)](){const _0x28891d=_0x348208,_0x5d27a0=new _0x24c2b2(this[_0x28891d(0x1cc)]);return _0x5d27a0[_0x28891d(0x1c1)]({'label':_0x59a000(this[_0x28891d(0x1cc)],_0x28891d(0x19f)),'icon':_0x1db0d3}),this[_0x28891d(0x1c8)](_0x5d27a0),_0x5d27a0;}[_0x348208(0x1c8)](_0x56b6ed){const _0x183185=_0x348208;_0x56b6ed['on'](_0x183185(0x1c0),()=>{const _0x470e5b=_0x183185;this[_0x470e5b(0x19b)](_0x470e5b(0x1be),this['id']);});}[_0x348208(0x1d8)](){const _0x506f7f=_0x348208,_0x2c8a20=this[_0x506f7f(0x1d4)],_0x19f325=new _0x597881();return _0x19f325[_0x506f7f(0x1a4)]=xn[this[_0x506f7f(0x1af)]],_0x19f325[_0x506f7f(0x1b2)]({'attributes':{'class':[fn,_0x2c8a20['if'](_0x506f7f(0x1c5),_0x506f7f(0x1a3),_0x3e823a=>_0x3e823a)]}}),_0x19f325;}[_0x348208(0x1ca)](_0x1f0176,_0x3898c2){const _0x41c879=_0x348208;if(!_0x1f0176)return;const _0xb57e7b=()=>{const _0x3f9e32=_0xf51f;_0x3898c2(),_0x1f0176[_0x3f9e32(0x1bc)](_0x3f9e32(0x1ae),_0xb57e7b),_0x1f0176[_0x3f9e32(0x1bc)](_0x3f9e32(0x1da),_0xb57e7b);};_0x1f0176[_0x41c879(0x1a6)](_0x41c879(0x1ae),_0xb57e7b),_0x1f0176[_0x41c879(0x1a6)](_0x41c879(0x1da),_0xb57e7b);}[_0x348208(0x1b7)](){const _0x93e567=_0x348208,_0x16ec5f=new _0x33bae3(_0x93e567(0x1a9));return _0x16ec5f[_0x93e567(0x1cd)](_0x93e567(0x1c6))['to'](this,_0x93e567(0x1c5),_0x3b6961=>_0x3b6961),_0x16ec5f;}}function In(_0x51f577){const _0x954d31=_0x348208;if(!_0x51f577)return _0x51f577;if(_0x51f577[_0x954d31(0x1b9)]<=0x78)return _0x51f577;const _0x1af08e=_0x51f577[_0x954d31(0x1d3)](0x0,0x78),_0x130562=_0x1af08e[_0x954d31(0x19e)]('\x20');return(_0x130562>0x0?_0x1af08e[_0x954d31(0x1d3)](0x0,_0x130562):_0x1af08e)+'…';}
23
+ const _0x4f5eb8=_0x2bea;(function(_0x1b79f4,_0x5d068a){const _0x2aba4f=_0x2bea,_0x29cf9c=_0x1b79f4();while(!![]){try{const _0x4c6a16=-parseInt(_0x2aba4f(0x148))/0x1*(parseInt(_0x2aba4f(0x162))/0x2)+parseInt(_0x2aba4f(0x172))/0x3+-parseInt(_0x2aba4f(0x158))/0x4+-parseInt(_0x2aba4f(0x14b))/0x5+-parseInt(_0x2aba4f(0x146))/0x6+parseInt(_0x2aba4f(0x174))/0x7*(parseInt(_0x2aba4f(0x157))/0x8)+parseInt(_0x2aba4f(0x17d))/0x9;if(_0x4c6a16===_0x5d068a)break;else _0x29cf9c['push'](_0x29cf9c['shift']());}catch(_0x4e1c24){_0x29cf9c['push'](_0x29cf9c['shift']());}}}(_0x4661,0xe3d11));import{ButtonView as _0x4b3327,IconView as _0xfea080}from'ckeditor5/src/ui.js';import{IconClose as _0xa8e0f3,IconDocument as _0xc85fe9,IconFileUpload as _0xcfd578,IconLink as _0x189708,IconSelection as _0x52ab52}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xe41f29}from'../../../aicore/utils/common-translations.js';function _0x2bea(_0x12f5e4,_0x43c909){const _0x46612c=_0x4661();return _0x2bea=function(_0x2beae9,_0x141813){_0x2beae9=_0x2beae9-0x140;let _0x29d478=_0x46612c[_0x2beae9];return _0x29d478;},_0x2bea(_0x12f5e4,_0x43c909);}import{AISpinnerView as _0x5386c6}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xcfd578,'document':_0xc85fe9,'web-resource':_0x189708,'text':_0xcfd578,'selection':_0x52ab52},bn=_0x4f5eb8(0x16f),wn=_0x4f5eb8(0x175),Tn=_0x4f5eb8(0x147),En=_0x4f5eb8(0x142),fn=_0x4f5eb8(0x14a),An=_0x4f5eb8(0x149),Cn='n';function _0x4661(){const _0x4c3301=['_isAnimationOnEnterEnabled','webkitAnimationEnd','uiId','ck-ai-chat-context-chip__label','_createLabelElement','addEventListener','readonly','6231612ehAdlK','ck-ai-chat-context-chip_document','50256lsxxsb','ck-ai-chat-context-controls__chip-tooltip','ck-ai-chat-context-chip__type-icon','1171290oXpYSH','div','execute','lastIndexOf','disableAnimationOnEnter','element','length','isVisible','ck-hidden','set','_createIconView','isLoading','381520XJWyKm','5241756FkzSsW','tooltip','extendTemplate','removeEventListener','locale','slice','selection','removeContextItemChip','ck-ai-chat-context-chip_new-chip','remove','12EDiJjQ','add','span','document','render','fire','itemType','_setupRemoveButtonEvent','_initializeProperties','bind','_createTemplateAttributes','_createTemplateChildren','label','ck-ai-chat-context-chip','small','animationend','3706917Iippcc','_setupTemplate','7OkGggP','ck-ai-chat-context-chip_wide','type','content','_createRemoveButton','bindTemplate','_handleAnimationEndOnce','setTemplate','_createLoaderIcon','22811787BhNmhq','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','classList'];_0x4661=function(){return _0x4c3301;};return _0x4661();}export class AIChatContextItemButtonView extends _0x4b3327{constructor(_0x235b48,_0x51f12c,_0x521e66,_0x38fa6d,_0x2c5b87=!0x1){const _0x4f06b1=_0x4f5eb8;super(_0x235b48),this[_0x4f06b1(0x180)]=_0x38fa6d,this[_0x4f06b1(0x16a)](_0x51f12c,_0x521e66,_0x2c5b87),this[_0x4f06b1(0x173)]();}[_0x4f5eb8(0x166)](){const _0x4c8811=_0x4f5eb8;super[_0x4c8811(0x166)](),this[_0x4c8811(0x180)]&&this[_0x4c8811(0x150)]&&(this[_0x4c8811(0x150)][_0x4c8811(0x17f)][_0x4c8811(0x163)](_0x4c8811(0x160)),this[_0x4c8811(0x17a)](this[_0x4c8811(0x150)],()=>{const _0x27bddf=_0x4c8811;this[_0x27bddf(0x150)]&&this[_0x27bddf(0x150)][_0x27bddf(0x17f)][_0x27bddf(0x161)](_0x27bddf(0x160));}));}[_0x4f5eb8(0x14f)](){const _0x3a0aea=_0x4f5eb8;this[_0x3a0aea(0x180)]=!0x1,this[_0x3a0aea(0x150)]&&this[_0x3a0aea(0x150)][_0x3a0aea(0x17f)][_0x3a0aea(0x161)](_0x3a0aea(0x160));}[_0x4f5eb8(0x16a)](_0x352194,_0x3551f5,_0x1b52d9){const _0x34123f=_0x4f5eb8;this[_0x34123f(0x154)](_0x34123f(0x16e),_0x352194[_0x34123f(0x16e)]),this[_0x34123f(0x154)](_0x34123f(0x159),!0x0),this[_0x34123f(0x154)](_0x34123f(0x168),_0x352194[_0x34123f(0x176)]),this[_0x34123f(0x154)]('id',_0x352194[_0x34123f(0x141)]),this[_0x34123f(0x154)](_0x34123f(0x145),_0x3551f5),this[_0x34123f(0x154)](_0x34123f(0x156),_0x1b52d9);}[_0x4f5eb8(0x173)](){const _0x4f9ee3=_0x4f5eb8,_0x2f2c57=this[_0x4f9ee3(0x155)](),_0x24bd50=this[_0x4f9ee3(0x178)](),_0x7d8127=this[_0x4f9ee3(0x179)];this[_0x4f9ee3(0x17b)]({'tag':_0x4f9ee3(0x14c),'attributes':this[_0x4f9ee3(0x16c)](_0x7d8127),'children':this[_0x4f9ee3(0x16d)](_0x2f2c57,_0x24bd50,_0x7d8127)});}[_0x4f5eb8(0x16c)](_0x18a114){const _0x489719=_0x4f5eb8;return{'class':[bn,_0x18a114['if'](_0x489719(0x168),Tn,_0x4d5ebc=>_0x489719(0x165)==_0x4d5ebc),_0x18a114['if'](_0x489719(0x168),wn,_0xf0f5b8=>_0x489719(0x15e)==_0xf0f5b8)],'data-cke-tooltip-text':_0x18a114['to'](_0x489719(0x16e),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x4f5eb8(0x16d)](_0x19864c,_0x3d6c0a,_0x4ce849){const _0x5f44ef=_0x4f5eb8,_0x1fb13e=this[_0x5f44ef(0x143)](_0x4ce849),_0x2b9128=this[_0x5f44ef(0x17c)]();return this[_0x5f44ef(0x145)]?[_0x19864c,_0x1fb13e]:[_0x19864c,_0x2b9128,_0x1fb13e,_0x3d6c0a];}[_0x4f5eb8(0x143)](_0x13bd5b){const _0x560b32=_0x4f5eb8;return{'tag':_0x560b32(0x164),'attributes':{'class':En},'children':[{'text':_0x13bd5b['to'](_0x560b32(0x16e))}]};}[_0x4f5eb8(0x178)](){const _0x49e201=_0x4f5eb8,_0x379e9b=new _0x4b3327(this[_0x49e201(0x15c)]);return _0x379e9b[_0x49e201(0x154)]({'label':_0xe41f29(this[_0x49e201(0x15c)],_0x49e201(0x17e)),'icon':_0xa8e0f3}),this[_0x49e201(0x169)](_0x379e9b),_0x379e9b;}[_0x4f5eb8(0x169)](_0x4cc13c){const _0x198107=_0x4f5eb8;_0x4cc13c['on'](_0x198107(0x14d),()=>{const _0x22b1fd=_0x198107;this[_0x22b1fd(0x167)](_0x22b1fd(0x15f),this['id']);});}[_0x4f5eb8(0x155)](){const _0xd6f877=_0x4f5eb8,_0xe776f6=this[_0xd6f877(0x179)],_0x267615=new _0xfea080();return _0x267615[_0xd6f877(0x177)]=xn[this[_0xd6f877(0x168)]],_0x267615[_0xd6f877(0x15a)]({'attributes':{'class':[fn,_0xe776f6['if'](_0xd6f877(0x156),_0xd6f877(0x153),_0x141c1e=>_0x141c1e)]}}),_0x267615;}[_0x4f5eb8(0x17a)](_0x54a9c9,_0x5df5da){const _0x1dd0d0=_0x4f5eb8;if(!_0x54a9c9)return;const _0x585a50=()=>{const _0x5d70d0=_0x2bea;_0x5df5da(),_0x54a9c9[_0x5d70d0(0x15b)](_0x5d70d0(0x171),_0x585a50),_0x54a9c9[_0x5d70d0(0x15b)](_0x5d70d0(0x140),_0x585a50);};_0x54a9c9[_0x1dd0d0(0x144)](_0x1dd0d0(0x171),_0x585a50),_0x54a9c9[_0x1dd0d0(0x144)](_0x1dd0d0(0x140),_0x585a50);}[_0x4f5eb8(0x17c)](){const _0x3ba8f7=_0x4f5eb8,_0x2ec079=new _0x5386c6(_0x3ba8f7(0x170));return _0x2ec079[_0x3ba8f7(0x16b)](_0x3ba8f7(0x152))['to'](this,_0x3ba8f7(0x156),_0x2aca0b=>_0x2aca0b),_0x2ec079;}}function In(_0x412be4){const _0x54c330=_0x4f5eb8;if(!_0x412be4)return _0x412be4;if(_0x412be4[_0x54c330(0x151)]<=0x78)return _0x412be4;const _0x540b26=_0x412be4[_0x54c330(0x15d)](0x0,0x78),_0x5eb9e3=_0x540b26[_0x54c330(0x14e)]('\x20');return(_0x5eb9e3>0x0?_0x540b26[_0x54c330(0x15d)](0x0,_0x5eb9e3):_0x540b26)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x26a8(){const _0x2fd6ee=['div','6uenSlE','ck-ai-chat-context-controls__url-form','shift+tab','add','ck-labeled-field-view_empty','focus','execute','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','confirmButton','locale','13XLZZqJ','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_createConfirmButton','_focusables','input','cancel','_isValidUrl','form','63055eiTbZW','AI_CHAT_CONTEXT_URL_LABEL','urlInputField','11IfLelt','listenTo','createCollection','getValue','clear','ck-button-icon','element','forEach','setTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','_setupKeystrokes','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','render','clearError','29844gERTip','1968472HPFUVv','fire','backButton','_createBackButton','_updateConfirmButtonState','errorText','isEnabled','destroy','_handleSubmit','set','value','focusTracker','_setupEventHandlers','keystrokes','_createUrlInputField','stop','trim','140119fhlygz','16epEroh','setError','1022319pFIMTr','submit','children','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','2762230cbQmqx','refreshBalloon','submitUrl','ck-button-icon\x20ck-button-back','ck-ai-chat-context-controls__url-input-section','fieldView','length','69804qUCDCy','focusCycler','_setupTemplate','esc'];_0x26a8=function(){return _0x2fd6ee;};return _0x26a8();}const _0x312e2b=_0x1e30;function _0x1e30(_0x4fa152,_0x567ef6){const _0x26a894=_0x26a8();return _0x1e30=function(_0x1e30d7,_0x5e3d19){_0x1e30d7=_0x1e30d7-0x81;let _0x5b1a40=_0x26a894[_0x1e30d7];return _0x5b1a40;},_0x1e30(_0x4fa152,_0x567ef6);}(function(_0x24a055,_0x1afe1d){const _0x20080a=_0x1e30,_0x5da3b4=_0x24a055();while(!![]){try{const _0xa16be5=parseInt(_0x20080a(0xca))/0x1*(parseInt(_0x20080a(0x9a))/0x2)+-parseInt(_0x20080a(0xba))/0x3*(-parseInt(_0x20080a(0xad))/0x4)+parseInt(_0x20080a(0x88))/0x5*(parseInt(_0x20080a(0xbf))/0x6)+-parseInt(_0x20080a(0xac))/0x7+-parseInt(_0x20080a(0x9b))/0x8+-parseInt(_0x20080a(0xaf))/0x9+parseInt(_0x20080a(0xb3))/0xa*(parseInt(_0x20080a(0x8b))/0xb);if(_0xa16be5===_0x1afe1d)break;else _0x5da3b4['push'](_0x5da3b4['shift']());}catch(_0x14110b){_0x5da3b4['push'](_0x5da3b4['shift']());}}}(_0x26a8,0x2fe81));import{FocusTracker as _0x5dc94e,KeystrokeHandler as _0x59f56c}from'ckeditor5/src/utils.js';import{ButtonView as _0x5dfb50,FocusCycler as _0x2e8294,LabeledFieldView as _0x120256,View as _0x30dd4e,FormHeaderView as _0x1d6de9,createLabeledInputText as _0x2d30ce,submitHandler as _0x3c51d2}from'ckeditor5/src/ui.js';import{IconCheck as _0xd13433,IconPreviousArrow as _0x42326c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x48090a}from'../../../aicore/utils/common-translations.js';const ch=_0x312e2b(0xc0),nh=_0x312e2b(0xb7);export class AIChatContextPanelUrlInputView extends _0x30dd4e{[_0x312e2b(0xa6)];[_0x312e2b(0xa8)];[_0x312e2b(0x83)];[_0x312e2b(0xbb)];[_0x312e2b(0x8a)];[_0x312e2b(0x9d)];[_0x312e2b(0xc8)];constructor(_0x53ba62){const _0x2cc116=_0x312e2b;super(_0x53ba62),this[_0x2cc116(0xa6)]=new _0x5dc94e(),this[_0x2cc116(0xa8)]=new _0x59f56c(),this[_0x2cc116(0x9d)]=this[_0x2cc116(0x9e)](),this[_0x2cc116(0x8a)]=this[_0x2cc116(0xa9)](),this[_0x2cc116(0xc8)]=this[_0x2cc116(0x82)](),this[_0x2cc116(0x83)]=this[_0x2cc116(0x8d)]([this[_0x2cc116(0x9d)],this[_0x2cc116(0x8a)],this[_0x2cc116(0xc8)]]),this[_0x2cc116(0xbb)]=new _0x2e8294({'focusables':this[_0x2cc116(0x83)],'focusTracker':this[_0x2cc116(0xa6)],'keystrokeHandler':this[_0x2cc116(0xa8)],'actions':{'focusPrevious':_0x2cc116(0xc1),'focusNext':_0x2cc116(0xc7)}}),this[_0x2cc116(0xbc)](),this[_0x2cc116(0xa7)](),this[_0x2cc116(0x95)]();}[_0x312e2b(0x98)](){const _0x4c3af8=_0x312e2b;super[_0x4c3af8(0x98)](),this[_0x4c3af8(0x83)][_0x4c3af8(0x92)](_0x16118b=>{const _0x54c895=_0x4c3af8;this[_0x54c895(0xa6)][_0x54c895(0xc2)](_0x16118b[_0x54c895(0x91)]),this[_0x54c895(0xa8)][_0x54c895(0x8c)](_0x16118b[_0x54c895(0x91)]);}),_0x3c51d2({'view':this}),this[_0x4c3af8(0xc4)]();}[_0x312e2b(0xa2)](){const _0x329cfa=_0x312e2b;super[_0x329cfa(0xa2)](),this[_0x329cfa(0xa6)][_0x329cfa(0xa2)](),this[_0x329cfa(0xa8)][_0x329cfa(0xa2)]();}[_0x312e2b(0xc4)](){const _0x304f0e=_0x312e2b;this[_0x304f0e(0x8a)][_0x304f0e(0xc4)]();}[_0x312e2b(0x8e)](){const _0x139b10=_0x312e2b;return this[_0x139b10(0x8a)][_0x139b10(0xb8)][_0x139b10(0x91)]?.[_0x139b10(0xa5)]?.[_0x139b10(0xab)]()||'';}[_0x312e2b(0x8f)](){const _0x5b2efc=_0x312e2b;this[_0x5b2efc(0x8a)][_0x5b2efc(0xb8)][_0x5b2efc(0x91)][_0x5b2efc(0xa5)]='',this[_0x5b2efc(0x8a)][_0x5b2efc(0xa0)]=null,this[_0x5b2efc(0xc8)][_0x5b2efc(0xa1)]=!0x1;}[_0x312e2b(0xae)](_0x3706ac){const _0x5c97f2=_0x312e2b;this[_0x5c97f2(0x8a)][_0x5c97f2(0xa0)]=_0x3706ac,this[_0x5c97f2(0x9f)](),this[_0x5c97f2(0x9c)](_0x5c97f2(0xb4));}[_0x312e2b(0x99)](){const _0x3e7c96=_0x312e2b;this[_0x3e7c96(0x8a)][_0x3e7c96(0xa0)]=null,this[_0x3e7c96(0x9f)]();}[_0x312e2b(0x9e)](){const _0x2054db=_0x312e2b,_0xec1659=new _0x5dfb50(this[_0x2054db(0xc9)]);return _0xec1659[_0x2054db(0xa4)]({'icon':_0x42326c,'tooltip':_0x48090a(this[_0x2054db(0xc9)],_0x2054db(0x97)),'tooltipPosition':'n','class':_0x2054db(0xb6)}),_0xec1659;}[_0x312e2b(0xa9)](){const _0x1e59b0=_0x312e2b,_0x140791=new _0x120256(this[_0x1e59b0(0xc9)],_0x2d30ce);return _0x140791[_0x1e59b0(0xa4)]({'label':_0x48090a(this[_0x1e59b0(0xc9)],_0x1e59b0(0x89)),'class':_0x1e59b0(0xc3)}),_0x140791[_0x1e59b0(0xb8)][_0x1e59b0(0xa4)]({'placeholder':_0x48090a(this[_0x1e59b0(0xc9)],_0x1e59b0(0xc6))}),_0x140791;}[_0x312e2b(0x82)](){const _0x205931=_0x312e2b,_0x124183=new _0x5dfb50(this[_0x205931(0xc9)]);return _0x124183[_0x205931(0xa4)]({'icon':_0xd13433,'tooltip':_0x48090a(this[_0x205931(0xc9)],_0x205931(0x94)),'tooltipPosition':'n','class':_0x205931(0x90),'type':_0x205931(0xb0),'isEnabled':!0x1}),_0x124183;}[_0x312e2b(0xbc)](){const _0x5d14f3=_0x312e2b,_0x33757c=new _0x1d6de9(this[_0x5d14f3(0xc9)],{'label':_0x48090a(this[_0x5d14f3(0xc9)],_0x5d14f3(0x94)),'class':_0x5d14f3(0x96)});_0x33757c[_0x5d14f3(0xb1)][_0x5d14f3(0xc2)](this[_0x5d14f3(0x9d)],0x0),this[_0x5d14f3(0x93)]({'tag':_0x5d14f3(0x87),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x33757c,{'tag':_0x5d14f3(0xbe),'attributes':{'class':nh},'children':[this[_0x5d14f3(0x8a)],this[_0x5d14f3(0xc8)]]}]});}[_0x312e2b(0xa7)](){const _0x4d959b=_0x312e2b;this[_0x4d959b(0x9d)]['on'](_0x4d959b(0xc5),()=>{const _0x507670=_0x4d959b;this[_0x507670(0x8f)](),this[_0x507670(0x9c)](_0x507670(0x85));}),this[_0x4d959b(0x8a)][_0x4d959b(0xb8)]['on'](_0x4d959b(0x84),()=>{const _0x5a2585=_0x4d959b;this[_0x5a2585(0x99)](),this[_0x5a2585(0x9f)](),this[_0x5a2585(0x9c)](_0x5a2585(0xb4));}),this['on'](_0x4d959b(0xb0),_0x31ae2f=>{const _0x515bd0=_0x4d959b;_0x31ae2f[_0x515bd0(0xaa)](),this[_0x515bd0(0xa3)]();});}[_0x312e2b(0x95)](){const _0xf8abd0=_0x312e2b;this[_0xf8abd0(0xa8)][_0xf8abd0(0xa4)](_0xf8abd0(0xbd),(_0x425e5f,_0x53ad63)=>{const _0x175a9a=_0xf8abd0;this[_0x175a9a(0x8f)](),this[_0x175a9a(0x9c)](_0x175a9a(0x85)),_0x53ad63();});}[_0x312e2b(0xa3)](){const _0x3327bf=_0x312e2b,_0x12171e=this[_0x3327bf(0x8e)]()[_0x3327bf(0xab)]();_0x12171e?this[_0x3327bf(0x86)](_0x12171e)?(this[_0x3327bf(0x99)](),this[_0x3327bf(0x9c)](_0x3327bf(0xb5),_0x12171e)):this[_0x3327bf(0xae)](_0x48090a(this[_0x3327bf(0xc9)],_0x3327bf(0x81))):this[_0x3327bf(0xae)](_0x48090a(this[_0x3327bf(0xc9)],_0x3327bf(0xb2)));}[_0x312e2b(0x9f)](){const _0x3f6680=_0x312e2b,_0x303889=this[_0x3f6680(0x8e)]()[_0x3f6680(0xab)](),_0x1f4f65=!!this[_0x3f6680(0x8a)][_0x3f6680(0xa0)];this[_0x3f6680(0xc8)][_0x3f6680(0xa1)]=_0x303889[_0x3f6680(0xb9)]>0x0&&!_0x1f4f65;}[_0x312e2b(0x86)](_0x3af5e3){try{return!!new URL(_0x3af5e3);}catch{return!0x1;}}}
23
+ const _0x3152aa=_0x455c;(function(_0x5c13b2,_0x23c8c0){const _0x14d23a=_0x455c,_0x3d4c21=_0x5c13b2();while(!![]){try{const _0x4d43ef=-parseInt(_0x14d23a(0xdd))/0x1*(-parseInt(_0x14d23a(0xe2))/0x2)+-parseInt(_0x14d23a(0x101))/0x3*(parseInt(_0x14d23a(0xe9))/0x4)+parseInt(_0x14d23a(0xfc))/0x5*(-parseInt(_0x14d23a(0xde))/0x6)+parseInt(_0x14d23a(0x11f))/0x7+parseInt(_0x14d23a(0xfd))/0x8*(-parseInt(_0x14d23a(0x10c))/0x9)+-parseInt(_0x14d23a(0x104))/0xa*(parseInt(_0x14d23a(0x117))/0xb)+parseInt(_0x14d23a(0x107))/0xc*(parseInt(_0x14d23a(0x11c))/0xd);if(_0x4d43ef===_0x23c8c0)break;else _0x3d4c21['push'](_0x3d4c21['shift']());}catch(_0x47794c){_0x3d4c21['push'](_0x3d4c21['shift']());}}}(_0x35f0,0x33ac5));import{FocusTracker as _0xd16163,KeystrokeHandler as _0x1516fe}from'ckeditor5/src/utils.js';function _0x35f0(){const _0x525510=['esc','div','ck-button-icon\x20ck-button-back','input','38DeLJMj','6ZrExvU','shift+tab','value','ck-ai-chat-context-controls__url-input-section','13582zJejip','ck-labeled-field-view_empty','refreshBalloon','add','_setupEventHandlers','_focusables','createCollection','67012OYGScd','destroy','trim','locale','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','fire','execute','isEnabled','AI_CHAT_CONTEXT_URL_INVALID_ERROR','tab','element','setError','render','ck-ai-chat-context-controls__url-form','focusTracker','_isValidUrl','urlInputField','_createConfirmButton','1089060BUdyPZ','112mVyhRB','_handleSubmit','focusCycler','children','27RCdGjD','errorText','cancel','3274030CYrXAO','AI_CHAT_CONTEXT_URL_PLACEHOLDER','forEach','12DbmwyG','submit','_setupKeystrokes','getValue','clear','190395DYGfrv','setTemplate','stop','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_createBackButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','set','AI_CHAT_CONTEXT_URL_ADD_URL','confirmButton','clearError','11SUXVPX','focus','form','length','keystrokes','11968645HxMuDA','ck-button-icon','fieldView','175644WzcInE','backButton','_updateConfirmButtonState','submitUrl','_createUrlInputField','listenTo'];_0x35f0=function(){return _0x525510;};return _0x35f0();}import{ButtonView as _0x37182c,FocusCycler as _0x3cd621,LabeledFieldView as _0x4ab98d,View as _0x9e09e9,FormHeaderView as _0x536608,createLabeledInputText as _0x1fe988,submitHandler as _0x260afa}from'ckeditor5/src/ui.js';import{IconCheck as _0x530cca,IconPreviousArrow as _0x3fea9d}from'@ckeditor/ckeditor5-icons';function _0x455c(_0x51f86c,_0xcaa993){const _0x35f029=_0x35f0();return _0x455c=function(_0x455cc8,_0x1d8d99){_0x455cc8=_0x455cc8-0xd5;let _0x105d0c=_0x35f029[_0x455cc8];return _0x105d0c;},_0x455c(_0x51f86c,_0xcaa993);}import{getTranslation as _0x2edd7a}from'../../../aicore/utils/common-translations.js';const ch=_0x3152aa(0xf7),nh=_0x3152aa(0xe1);export class AIChatContextPanelUrlInputView extends _0x9e09e9{[_0x3152aa(0xf8)];[_0x3152aa(0x11b)];[_0x3152aa(0xe7)];[_0x3152aa(0xff)];[_0x3152aa(0xfa)];[_0x3152aa(0x120)];[_0x3152aa(0x115)];constructor(_0xa04ca5){const _0x5c84fd=_0x3152aa;super(_0xa04ca5),this[_0x5c84fd(0xf8)]=new _0xd16163(),this[_0x5c84fd(0x11b)]=new _0x1516fe(),this[_0x5c84fd(0x120)]=this[_0x5c84fd(0x110)](),this[_0x5c84fd(0xfa)]=this[_0x5c84fd(0xd7)](),this[_0x5c84fd(0x115)]=this[_0x5c84fd(0xfb)](),this[_0x5c84fd(0xe7)]=this[_0x5c84fd(0xe8)]([this[_0x5c84fd(0x120)],this[_0x5c84fd(0xfa)],this[_0x5c84fd(0x115)]]),this[_0x5c84fd(0xff)]=new _0x3cd621({'focusables':this[_0x5c84fd(0xe7)],'focusTracker':this[_0x5c84fd(0xf8)],'keystrokeHandler':this[_0x5c84fd(0x11b)],'actions':{'focusPrevious':_0x5c84fd(0xdf),'focusNext':_0x5c84fd(0xf3)}}),this[_0x5c84fd(0xee)](),this[_0x5c84fd(0xe6)](),this[_0x5c84fd(0x109)]();}[_0x3152aa(0xf6)](){const _0x3695f8=_0x3152aa;super[_0x3695f8(0xf6)](),this[_0x3695f8(0xe7)][_0x3695f8(0x106)](_0x12e7e0=>{const _0x4a6a88=_0x3695f8;this[_0x4a6a88(0xf8)][_0x4a6a88(0xe5)](_0x12e7e0[_0x4a6a88(0xf4)]),this[_0x4a6a88(0x11b)][_0x4a6a88(0xd8)](_0x12e7e0[_0x4a6a88(0xf4)]);}),_0x260afa({'view':this}),this[_0x3695f8(0x118)]();}[_0x3152aa(0xea)](){const _0x14bc43=_0x3152aa;super[_0x14bc43(0xea)](),this[_0x14bc43(0xf8)][_0x14bc43(0xea)](),this[_0x14bc43(0x11b)][_0x14bc43(0xea)]();}[_0x3152aa(0x118)](){const _0x100c0d=_0x3152aa;this[_0x100c0d(0xfa)][_0x100c0d(0x118)]();}[_0x3152aa(0x10a)](){const _0x4f3737=_0x3152aa;return this[_0x4f3737(0xfa)][_0x4f3737(0x11e)][_0x4f3737(0xf4)]?.[_0x4f3737(0xe0)]?.[_0x4f3737(0xeb)]()||'';}[_0x3152aa(0x10b)](){const _0x540e28=_0x3152aa;this[_0x540e28(0xfa)][_0x540e28(0x11e)][_0x540e28(0xf4)][_0x540e28(0xe0)]='',this[_0x540e28(0xfa)][_0x540e28(0x102)]=null,this[_0x540e28(0x115)][_0x540e28(0xf1)]=!0x1;}[_0x3152aa(0xf5)](_0x2829a7){const _0x212636=_0x3152aa;this[_0x212636(0xfa)][_0x212636(0x102)]=_0x2829a7,this[_0x212636(0xd5)](),this[_0x212636(0xef)](_0x212636(0xe4));}[_0x3152aa(0x116)](){const _0x41c306=_0x3152aa;this[_0x41c306(0xfa)][_0x41c306(0x102)]=null,this[_0x41c306(0xd5)]();}[_0x3152aa(0x110)](){const _0x452c78=_0x3152aa,_0xefaf2a=new _0x37182c(this[_0x452c78(0xec)]);return _0xefaf2a[_0x452c78(0x113)]({'icon':_0x3fea9d,'tooltip':_0x2edd7a(this[_0x452c78(0xec)],_0x452c78(0x112)),'tooltipPosition':'n','class':_0x452c78(0xdb)}),_0xefaf2a;}[_0x3152aa(0xd7)](){const _0x287049=_0x3152aa,_0x3de3bb=new _0x4ab98d(this[_0x287049(0xec)],_0x1fe988);return _0x3de3bb[_0x287049(0x113)]({'label':_0x2edd7a(this[_0x287049(0xec)],_0x287049(0xed)),'class':_0x287049(0xe3)}),_0x3de3bb[_0x287049(0x11e)][_0x287049(0x113)]({'placeholder':_0x2edd7a(this[_0x287049(0xec)],_0x287049(0x105))}),_0x3de3bb;}[_0x3152aa(0xfb)](){const _0x354ea5=_0x3152aa,_0x51bf05=new _0x37182c(this[_0x354ea5(0xec)]);return _0x51bf05[_0x354ea5(0x113)]({'icon':_0x530cca,'tooltip':_0x2edd7a(this[_0x354ea5(0xec)],_0x354ea5(0x114)),'tooltipPosition':'n','class':_0x354ea5(0x11d),'type':_0x354ea5(0x108),'isEnabled':!0x1}),_0x51bf05;}[_0x3152aa(0xee)](){const _0x47710e=_0x3152aa,_0x1a02e3=new _0x536608(this[_0x47710e(0xec)],{'label':_0x2edd7a(this[_0x47710e(0xec)],_0x47710e(0x114)),'class':_0x47710e(0x111)});_0x1a02e3[_0x47710e(0x100)][_0x47710e(0xe5)](this[_0x47710e(0x120)],0x0),this[_0x47710e(0x10d)]({'tag':_0x47710e(0x119),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x1a02e3,{'tag':_0x47710e(0xda),'attributes':{'class':nh},'children':[this[_0x47710e(0xfa)],this[_0x47710e(0x115)]]}]});}[_0x3152aa(0xe6)](){const _0x4b05c7=_0x3152aa;this[_0x4b05c7(0x120)]['on'](_0x4b05c7(0xf0),()=>{const _0x35f46e=_0x4b05c7;this[_0x35f46e(0x10b)](),this[_0x35f46e(0xef)](_0x35f46e(0x103));}),this[_0x4b05c7(0xfa)][_0x4b05c7(0x11e)]['on'](_0x4b05c7(0xdc),()=>{const _0x2df79a=_0x4b05c7;this[_0x2df79a(0x116)](),this[_0x2df79a(0xd5)](),this[_0x2df79a(0xef)](_0x2df79a(0xe4));}),this['on'](_0x4b05c7(0x108),_0x4ed79d=>{const _0x2585f5=_0x4b05c7;_0x4ed79d[_0x2585f5(0x10e)](),this[_0x2585f5(0xfe)]();});}[_0x3152aa(0x109)](){const _0x5e3cdd=_0x3152aa;this[_0x5e3cdd(0x11b)][_0x5e3cdd(0x113)](_0x5e3cdd(0xd9),(_0x6eb85e,_0x4f7e98)=>{const _0x3e2158=_0x5e3cdd;this[_0x3e2158(0x10b)](),this[_0x3e2158(0xef)](_0x3e2158(0x103)),_0x4f7e98();});}[_0x3152aa(0xfe)](){const _0x89cd6a=_0x3152aa,_0x333091=this[_0x89cd6a(0x10a)]()[_0x89cd6a(0xeb)]();_0x333091?this[_0x89cd6a(0xf9)](_0x333091)?(this[_0x89cd6a(0x116)](),this[_0x89cd6a(0xef)](_0x89cd6a(0xd6),_0x333091)):this[_0x89cd6a(0xf5)](_0x2edd7a(this[_0x89cd6a(0xec)],_0x89cd6a(0xf2))):this[_0x89cd6a(0xf5)](_0x2edd7a(this[_0x89cd6a(0xec)],_0x89cd6a(0x10f)));}[_0x3152aa(0xd5)](){const _0x50b421=_0x3152aa,_0x1a15d2=this[_0x50b421(0x10a)]()[_0x50b421(0xeb)](),_0x32e52c=!!this[_0x50b421(0xfa)][_0x50b421(0x102)];this[_0x50b421(0x115)][_0x50b421(0xf1)]=_0x1a15d2[_0x50b421(0x11a)]>0x0&&!_0x32e52c;}[_0x3152aa(0xf9)](_0x2ca6c3){try{return!!new URL(_0x2ca6c3);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x47dd(){const _0x4c2ff8=['_conversationContextsChips','label','tooltip','_removeContextFromCollection','enabled','isHidden','addContextItem','addResourceToContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','_createAddContextBalloonPanelView','isReadOnly','clearCurrentContextItems','showAddContextBalloonPanel','ck-ai-chat-context-controls__add-context-button','15049793uHHxHm','southArrowNorth','_setAddContextButtonEnabled','done','8132649DSKmvh','pin','destroy','cancel','southArrowNorthWest','locale','render','isOn','type','body','closeSourceResourceBalloon','removeContextItem','ck-ai-chat-context-controls__url-balloon-panel','hide','arrowView','ck-ai-chat-context-controls__show-more-balloon-panel','16LYKKVY','sources','_createAddContextButtonView','_urlInputView','ck-ai-chat-context-controls','_createUrlBalloonPanelView','setConversationContext','363215DilEfS','AI_CHAT_CONTEXT_URL_LABEL','12DGJpeT','ck-ai-chat-context-controls__balloon-button','content','bodyCollection','ck-ai-chat','add','_addContextBalloonConfig','clear','extendTemplate','_resourcesBalloonView','_setBalloonPanelContent','northArrowSouthEast','files','document','_addUrlContent','_bindEventHandlers','_createBaseBalloonPanel','_currentContextsChips','AI_CHAT_CONTEXT_FILE_LABEL','6uwhjDj','isAnyResourceBalloonVisible','set','ck-ai-chat-context-controls__add-context-balloon-panel','_showSourceResourcesBalloon','defaultPositions','_overflowManager','4174556BEvEft','focus','source','_createContextButton','conversation','_addContextToCollection','ck-ai-chat-controls-button','3hKgQEY','northArrowSouth','_createBalloonButton','ck-ai-chat-context-controls__pending-contexts','updateResourceState','_createArrowView','fire','southArrowNorthEast','menuitem','isLoading','setContainerElement','_getLimiterElement','removeContextItemChip','children','AI_CHAT_CONTEXT_ADD_CONTEXT','populateSourceResourceBalloon','addDocumentToContext','_setupAllBalloonClickOutsideHandlers','_handleUrlSubmit','showSourceResourcesBalloon','remove','urls','_setupTemplate','7315731FZCvAF','reorganizeChips','submitUrl','_addContextBalloonPanelView','_toggleAddContextBalloon','ck-reset_all-excluded','_urlBalloonPanelView','hideAddContextBalloonPanel','addContextButtonView','hideUrlBalloonPanel','element','searchInputVisibleFrom','show','icon','8436170uKmKay','current','addUrlToContext','2wEZXRw','closest','_setupUrlBalloonClickOutsideHandler','bind','isVisible','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls_context_show-more-button','addFileToContext','northArrowSouthWest','setTemplate','buttonView','ck-ai-chat-context-chips-wrapper-balloon','_handleAddContextButtonClick','div','clearConversationContextItems','isEnabled','createCollection','582725IjzwWZ','execute','balloonView','overflowChips','__arrow','setAddContextOptions','refreshBalloon','showUrlBalloonPanel','loadSourceResources','_setupAddContextBalloonClickOutsideHandler','setContextItemLoading','_createResourcesBalloonView'];_0x47dd=function(){return _0x4c2ff8;};return _0x47dd();}function _0x28ba(_0xc8e398,_0x5234e4){const _0x47dd1b=_0x47dd();return _0x28ba=function(_0x28ba0c,_0x132d2d){_0x28ba0c=_0x28ba0c-0x103;let _0x25102b=_0x47dd1b[_0x28ba0c];return _0x25102b;},_0x28ba(_0xc8e398,_0x5234e4);}const _0x23fc3b=_0x28ba;(function(_0x40cf71,_0x15aaf5){const _0x44b458=_0x28ba,_0x4eb2c3=_0x40cf71();while(!![]){try{const _0x1169b1=parseInt(_0x44b458(0x124))/0x1*(-parseInt(_0x44b458(0x16f))/0x2)+-parseInt(_0x44b458(0x147))/0x3*(parseInt(_0x44b458(0x140))/0x4)+parseInt(_0x44b458(0x180))/0x5+parseInt(_0x44b458(0x139))/0x6*(parseInt(_0x44b458(0x10d))/0x7)+parseInt(_0x44b458(0x11d))/0x8*(parseInt(_0x44b458(0x15e))/0x9)+parseInt(_0x44b458(0x16c))/0xa+parseInt(_0x44b458(0x109))/0xb*(-parseInt(_0x44b458(0x126))/0xc);if(_0x1169b1===_0x15aaf5)break;else _0x4eb2c3['push'](_0x4eb2c3['shift']());}catch(_0x2ee231){_0x4eb2c3['push'](_0x4eb2c3['shift']());}}}(_0x47dd,0xed77e));import{BalloonPanelView as _0x403b86,ButtonView as _0x34c5d4,clickOutsideHandler as _0x508cdc,FileDialogButtonView as _0xfca9ea,IconView as _0xb0d752,View as _0xa2a5d8}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x52bdc2,IconDocument as _0xb863f5,IconDocumentOutline as _0x4a3ac8,IconDropdownArrow as _0x2ce1a5,IconLink as _0x3ccff2,IconPaperClip as _0x2ff9b2}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x49ff92}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5809df}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x234973}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x370ec1}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x14e4f8}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x23fc3b(0x157),_0x23fc3b(0x176),_0x23fc3b(0x16e),_0x23fc3b(0x193),_0x23fc3b(0x118),_0x23fc3b(0x188)];const ko=_0x23fc3b(0x121),Eo=_0x23fc3b(0x14a),vo=_0x23fc3b(0x13c),Vo=_0x23fc3b(0x108),Io=_0x23fc3b(0x119),Po=_0x23fc3b(0x127),Ro=_0x23fc3b(0x174),Uo=_0x23fc3b(0x146),Lo=_0x23fc3b(0x17a),No=_0x23fc3b(0x175),Oo=_0x23fc3b(0x11c),Mo=_0x23fc3b(0x12a),Ho=[_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x177)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x148)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x131)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x111)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x10a)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x14e)]];export class AIChatContextPanelView extends _0xa2a5d8{[_0x23fc3b(0x166)];[_0x23fc3b(0x137)]=this[_0x23fc3b(0x17f)]();[_0x23fc3b(0x18c)]=this[_0x23fc3b(0x17f)]();[_0x23fc3b(0x13f)];[_0x23fc3b(0x161)];[_0x23fc3b(0x164)];[_0x23fc3b(0x120)];[_0x23fc3b(0x12f)];[_0x23fc3b(0x12c)];[_0x23fc3b(0x129)];constructor(_0x55e931,_0x4561bb){const _0x25d466=_0x23fc3b;super(_0x55e931),this[_0x25d466(0x129)]=_0x4561bb[_0x25d466(0x129)],this[_0x25d466(0x137)]=this[_0x25d466(0x17f)](),this[_0x25d466(0x18c)]=this[_0x25d466(0x17f)](),this[_0x25d466(0x166)]=this[_0x25d466(0x11f)](_0x55e931),this[_0x25d466(0x161)]=this[_0x25d466(0x104)](_0x55e931),this[_0x25d466(0x164)]=this[_0x25d466(0x122)](_0x55e931),this[_0x25d466(0x12f)]=this[_0x25d466(0x18b)](_0x55e931,_0x4561bb);const _0x3a6995={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x25d466(0x13f)]=new _0x234973(_0x55e931,this[_0x25d466(0x137)],_0x3a6995,this[_0x25d466(0x129)],this),this[_0x25d466(0x12c)]={'buttonView':this[_0x25d466(0x166)],'balloonView':this[_0x25d466(0x161)],'hideMethod':this[_0x25d466(0x165)][_0x25d466(0x172)](this),'showMethod':this[_0x25d466(0x107)][_0x25d466(0x172)](this)},this[_0x25d466(0x15d)](),this[_0x25d466(0x135)]();}[_0x23fc3b(0x113)](){const _0x13ad8d=_0x23fc3b;super[_0x13ad8d(0x113)](),this[_0x13ad8d(0x158)](),this[_0x13ad8d(0x13f)][_0x13ad8d(0x151)](this[_0x13ad8d(0x168)]),this[_0x13ad8d(0x13f)][_0x13ad8d(0x15f)]();}[_0x23fc3b(0x10f)](){const _0x357946=_0x23fc3b;super[_0x357946(0x10f)](),this[_0x357946(0x13f)][_0x357946(0x10f)](),this[_0x357946(0x12f)][_0x357946(0x10f)]();}[_0x23fc3b(0x192)](_0x15c26a,_0x582bef){const _0x2b57a3=_0x23fc3b,_0xe090d9=this[_0x2b57a3(0x143)](_0x15c26a,_0x2b57a3(0x16d),!0x0,_0x582bef);this[_0x2b57a3(0x145)](_0xe090d9,this[_0x2b57a3(0x137)]),this[_0x2b57a3(0x13f)][_0x2b57a3(0x15f)]();}[_0x23fc3b(0x118)](_0x4f4dba){const _0x4b5d1e=_0x23fc3b;this[_0x4b5d1e(0x18f)](_0x4f4dba,this[_0x4b5d1e(0x137)]),this[_0x4b5d1e(0x18f)](_0x4f4dba,this[_0x4b5d1e(0x13f)][_0x4b5d1e(0x183)]),this[_0x4b5d1e(0x13f)][_0x4b5d1e(0x15f)]();}[_0x23fc3b(0x18a)](_0x3174e4,_0x1fa110){const _0xb05c2a=_0x23fc3b;let _0x4c4f7d=this[_0xb05c2a(0x137)][_0xb05c2a(0x103)](_0x596c0d=>_0x596c0d['id']===_0x3174e4);_0x4c4f7d||(_0x4c4f7d=this[_0xb05c2a(0x13f)][_0xb05c2a(0x183)][_0xb05c2a(0x103)](_0x5e02de=>_0x5e02de['id']===_0x3174e4)),_0x4c4f7d&&(_0x4c4f7d[_0xb05c2a(0x150)]=_0x1fa110);}[_0x23fc3b(0x123)](_0x2f8c4e){const _0x4380a2=_0x23fc3b;this[_0x4380a2(0x18c)][_0x4380a2(0x12d)]();for(const _0x2334d3 of _0x2f8c4e){const _0x298b13=this[_0x4380a2(0x143)](_0x2334d3,_0x4380a2(0x144),!0x1,!0x1);this[_0x4380a2(0x145)](_0x298b13,this[_0x4380a2(0x18c)]);}}[_0x23fc3b(0x106)](){const _0x60dd96=_0x23fc3b;this[_0x60dd96(0x137)][_0x60dd96(0x12d)](),this[_0x60dd96(0x13f)][_0x60dd96(0x12d)]();}[_0x23fc3b(0x17d)](){const _0x57acbc=_0x23fc3b;this[_0x57acbc(0x18c)][_0x57acbc(0x12d)]();}[_0x23fc3b(0x14b)](_0x59028e,_0x46d4a2,_0x392d83){const _0x248505=_0x23fc3b;this[_0x248505(0x12f)][_0x248505(0x14b)](_0x59028e,_0x46d4a2,_0x392d83);}[_0x23fc3b(0x165)](){const _0x1e6b1d=_0x23fc3b;this[_0x1e6b1d(0x162)](!0x1);}[_0x23fc3b(0x107)](){const _0x7312ee=_0x23fc3b;this[_0x7312ee(0x162)](!0x0);}[_0x23fc3b(0x167)](){const _0x3527fb=_0x23fc3b;this[_0x3527fb(0x164)][_0x3527fb(0x11a)](),this[_0x3527fb(0x166)][_0x3527fb(0x114)]=!0x1,this[_0x3527fb(0x120)]&&this[_0x3527fb(0x120)][_0x3527fb(0x12d)]();}[_0x23fc3b(0x187)](){const _0x1fffda=_0x23fc3b;this[_0x1fffda(0x164)][_0x1fffda(0x16a)](),this[_0x1fffda(0x166)][_0x1fffda(0x114)]=!0x0;}[_0x23fc3b(0x13d)](_0x46fd32){const _0x3358f5=_0x23fc3b;this[_0x3358f5(0x12f)][_0x3358f5(0x15a)](_0x46fd32),this[_0x3358f5(0x166)][_0x3358f5(0x114)]=!0x0;}[_0x23fc3b(0x156)](_0x595af7,_0x810d01,_0x3b865a,_0x28b958){const _0x507061=_0x23fc3b;this[_0x507061(0x12f)][_0x507061(0x156)](_0x595af7,_0x3b865a,_0x28b958);}[_0x23fc3b(0x117)](_0x4bd004){const _0x1467c6=_0x23fc3b;this[_0x1467c6(0x12f)][_0x1467c6(0x117)](_0x4bd004),this[_0x1467c6(0x166)][_0x1467c6(0x114)]=!0x1;}[_0x23fc3b(0x185)](_0x5b9ec3){const _0x218e29=_0x23fc3b;this[_0x218e29(0x130)](this[_0x218e29(0x161)],this[_0x218e29(0x112)],_0x5b9ec3),this[_0x218e29(0x10b)](_0x5b9ec3);}[_0x23fc3b(0x10b)](_0x283257){const _0x138c59=_0x23fc3b,_0x1b8b66=!_0x283257[_0x138c59(0x133)][_0x138c59(0x191)]&&_0x283257[_0x138c59(0x133)][_0x138c59(0x190)],_0x14d2cc=_0x283257[_0x138c59(0x15c)][_0x138c59(0x190)],_0x4c06f9=_0x283257[_0x138c59(0x132)][_0x138c59(0x190)];this[_0x138c59(0x166)][_0x138c59(0x17e)]=_0x1b8b66||_0x14d2cc||_0x4c06f9;}[_0x23fc3b(0x15d)](){const _0x57f040=_0x23fc3b;this[_0x57f040(0x178)]({'tag':_0x57f040(0x17c),'attributes':{'class':[ko,_0x57f040(0x163)]},'children':[{'tag':_0x57f040(0x17c),'attributes':{'class':Eo},'children':this[_0x57f040(0x137)]}]});}[_0x23fc3b(0x135)](){const _0x5b2a49=_0x23fc3b;this[_0x5b2a49(0x166)]['on'](_0x5b2a49(0x181),()=>{const _0x4232e2=_0x5b2a49;this[_0x4232e2(0x17b)]();});}[_0x23fc3b(0x11f)](_0x167791){const _0x59c2fa=_0x23fc3b,_0x2ed311=new _0x34c5d4(_0x167791);return _0x2ed311[_0x59c2fa(0x13b)]({'label':_0x370ec1(_0x167791,_0x59c2fa(0x155)),'class':Uo+'\x20'+Vo,'icon':_0x2ff9b2,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x2ed311;}[_0x23fc3b(0x104)](_0xdc2788){const _0x44292c=_0x23fc3b;return this[_0x44292c(0x136)](_0xdc2788,vo);}[_0x23fc3b(0x122)](_0x164457){const _0x2efe5d=_0x23fc3b,_0x3d054a=this[_0x2efe5d(0x136)](_0x164457,Io);return this[_0x2efe5d(0x134)](_0x3d054a,_0x164457),_0x3d054a;}[_0x23fc3b(0x18b)](_0x16a46d,_0x581cce){const _0x1f4c58=_0x23fc3b,_0x154a43={'searchInputVisibleFrom':_0x581cce[_0x1f4c58(0x169)],'onBackToContext':()=>{const _0x3e2e99=_0x1f4c58;this[_0x3e2e99(0x107)](),this[_0x3e2e99(0x161)][_0x3e2e99(0x10e)]({'target':this[_0x3e2e99(0x166)][_0x3e2e99(0x168)],'limiter':this[_0x3e2e99(0x152)](),'positions':Ho});},'onResourceSelected':(_0x510ccc,_0x5ee55c)=>{const _0x36f21e=_0x1f4c58;this[_0x36f21e(0x14d)](_0x36f21e(0x193),{'source':_0x510ccc,'resource':_0x5ee55c});},'onLoadSourceResources':_0x578540=>{const _0xe3814b=_0x1f4c58;this[_0xe3814b(0x14d)](_0xe3814b(0x188),_0x578540);},'onBalloonClosed':()=>{const _0x250a30=_0x1f4c58;this[_0x250a30(0x166)][_0x250a30(0x114)]=!0x1;},'getLimiterElement':()=>this[_0x1f4c58(0x152)](),'getTargetElement':()=>this[_0x1f4c58(0x166)][_0x1f4c58(0x168)]};return new _0x14e4f8(_0x16a46d,_0x581cce[_0x1f4c58(0x129)],_0x154a43);}[_0x23fc3b(0x152)](){const _0x2a3436=_0x23fc3b;return this[_0x2a3436(0x168)]?.[_0x2a3436(0x170)]('.'+Mo)||document[_0x2a3436(0x116)];}[_0x23fc3b(0x136)](_0x17bc8d,_0xac9cb8){const _0x2998be=_0x23fc3b,_0x330e08=new _0x403b86(_0x17bc8d);return _0x330e08[_0x2998be(0x12e)]({'attributes':{'class':_0xac9cb8}}),this[_0x2998be(0x129)][_0x2998be(0x12b)](_0x330e08),_0x330e08;}[_0x23fc3b(0x130)](_0x26d0cd,_0x582640,_0x3af163){const _0x2b31cb=_0x23fc3b;if(_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12d)](),!_0x3af163[_0x2b31cb(0x133)][_0x2b31cb(0x191)]&&_0x3af163[_0x2b31cb(0x133)][_0x2b31cb(0x190)]){const _0x33a0e1=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x370ec1(_0x582640,_0x2b31cb(0x194)),'icon':_0xb863f5});_0x33a0e1['on'](_0x2b31cb(0x181),()=>{const _0x24b7fb=_0x2b31cb;this[_0x24b7fb(0x14d)](_0x24b7fb(0x157)),this[_0x24b7fb(0x165)]();}),_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x33a0e1);}if(_0x3af163[_0x2b31cb(0x15c)][_0x2b31cb(0x190)]){const _0x5c3b3b=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x370ec1(_0x582640,_0x2b31cb(0x125)),'icon':_0x3ccff2});_0x5c3b3b['on'](_0x2b31cb(0x181),()=>{const _0x53addf=_0x2b31cb;this[_0x53addf(0x165)](),this[_0x53addf(0x187)](),this[_0x53addf(0x164)][_0x53addf(0x10e)]({'target':this[_0x53addf(0x166)][_0x53addf(0x168)],'limiter':this[_0x53addf(0x152)](),'positions':Ho}),this[_0x53addf(0x120)][_0x53addf(0x141)]();}),_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x5c3b3b);}if(_0x3af163[_0x2b31cb(0x132)][_0x2b31cb(0x190)]){const _0x588439=new _0xfca9ea(_0x582640);_0x588439[_0x2b31cb(0x13b)]({'label':_0x370ec1(_0x582640,_0x2b31cb(0x138)),'icon':_0x52bdc2,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x588439['on'](_0x2b31cb(0x10c),(_0x1f0f12,_0x3bed3f)=>{const _0x5a6dc3=_0x2b31cb;this[_0x5a6dc3(0x14d)](_0x5a6dc3(0x176),_0x3bed3f),this[_0x5a6dc3(0x165)]();}),_0x588439[_0x2b31cb(0x18e)]=!0x0,_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x588439);}for(const _0x278b83 of _0x3af163[_0x2b31cb(0x11e)]){const _0x1a20c8=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x278b83[_0x2b31cb(0x18d)],'icon':_0x278b83[_0x2b31cb(0x16b)]||_0x4a3ac8,'type':_0x2b31cb(0x142)});_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x1a20c8),_0x1a20c8['on'](_0x2b31cb(0x181),()=>{const _0x235acf=_0x2b31cb;this[_0x235acf(0x165)](),this[_0x235acf(0x13d)](_0x278b83);});}}[_0x23fc3b(0x134)](_0x231f04,_0xd59676){const _0x1a5548=_0x23fc3b;this[_0x1a5548(0x120)]=new _0x5809df(_0xd59676),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x160),(_0x464fb8,_0x37facb)=>{const _0x2b9303=_0x1a5548;this[_0x2b9303(0x159)](_0x37facb);}),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x110),()=>{const _0x27ab9b=_0x1a5548;this[_0x27ab9b(0x167)](),this[_0x27ab9b(0x107)](),this[_0x27ab9b(0x161)][_0x27ab9b(0x10e)]({'target':this[_0x27ab9b(0x166)][_0x27ab9b(0x168)],'limiter':this[_0x27ab9b(0x152)](),'positions':Ho});}),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x186),()=>{const _0x444008=_0x1a5548;this[_0x444008(0x164)][_0x444008(0x173)]&&this[_0x444008(0x164)][_0x444008(0x10e)]({'target':this[_0x444008(0x166)][_0x444008(0x168)],'limiter':this[_0x444008(0x152)](),'positions':Ho});}),_0x231f04[_0x1a5548(0x128)][_0x1a5548(0x12b)](this[_0x1a5548(0x120)]);}[_0x23fc3b(0x149)](_0x149b9d,_0x50fa86){const _0x1943db=_0x23fc3b,_0x8cd326=_0x1943db(0x142)===_0x50fa86[_0x1943db(0x115)]?new SourcesBalloonButtonView(_0x149b9d):new _0x34c5d4(_0x149b9d);return _0x8cd326[_0x1943db(0x13b)]({'label':_0x50fa86[_0x1943db(0x18d)],'icon':_0x50fa86[_0x1943db(0x16b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x8cd326;}[_0x23fc3b(0x158)](){const _0x3bd9b3=_0x23fc3b;this[_0x3bd9b3(0x189)](),this[_0x3bd9b3(0x171)]();}[_0x23fc3b(0x171)](){const _0x552fb0=_0x23fc3b;_0x508cdc({'emitter':this[_0x552fb0(0x164)],'contextElements':[this[_0x552fb0(0x164)][_0x552fb0(0x168)]],'callback':()=>{const _0x339195=_0x552fb0;this[_0x339195(0x167)]();},'activator':()=>this[_0x552fb0(0x164)][_0x552fb0(0x173)]});}[_0x23fc3b(0x162)](_0x299e0f){const _0x2b9544=_0x23fc3b,_0x1dcd09=this[_0x2b9544(0x12c)];_0x1dcd09[_0x2b9544(0x179)][_0x2b9544(0x114)]=_0x299e0f,_0x299e0f?_0x1dcd09[_0x2b9544(0x182)][_0x2b9544(0x16a)]():_0x1dcd09[_0x2b9544(0x182)][_0x2b9544(0x11a)]();}[_0x23fc3b(0x189)](){const _0x248f10=_0x23fc3b,{balloonView:_0x1ce5d0,buttonView:_0x205472,hideMethod:_0x22630a}=this[_0x248f10(0x12c)];_0x508cdc({'emitter':_0x1ce5d0,'contextElements':[_0x1ce5d0[_0x248f10(0x168)],_0x205472[_0x248f10(0x168)]],'callback':()=>{_0x22630a();},'activator':()=>_0x205472[_0x248f10(0x114)]&&!this[_0x248f10(0x164)][_0x248f10(0x173)]&&!this[_0x248f10(0x12f)][_0x248f10(0x13a)]()});}[_0x23fc3b(0x143)](_0x31762e,_0xdc9f5f,_0x510faa=!0x1,_0x27892d=!0x1){const _0x308231=_0x23fc3b,_0x3be048=_0x308231(0x144)===_0xdc9f5f||!0x0===_0x31762e[_0x308231(0x105)],_0x347b2e=new _0x49ff92(this[_0x308231(0x112)],_0x31762e,_0x3be048,_0x510faa,_0x27892d);return _0x3be048||_0x347b2e['on'](_0x308231(0x153),()=>{const _0x18acdc=_0x308231;this[_0x18acdc(0x14d)](_0x18acdc(0x118),_0x347b2e['id']);}),_0x347b2e;}[_0x23fc3b(0x145)](_0x4d617c,_0x186854){const _0x2c275c=_0x23fc3b;_0x186854[_0x2c275c(0x12b)](_0x4d617c,0x0);}[_0x23fc3b(0x18f)](_0x30f366,_0x35d86e){const _0x99fde8=_0x23fc3b,_0x31581a=_0x35d86e[_0x99fde8(0x103)](_0xb2ee80=>_0xb2ee80['id']===_0x30f366);_0x31581a&&_0x35d86e[_0x99fde8(0x15b)](_0x31581a);}[_0x23fc3b(0x17b)](){const _0x27820d=_0x23fc3b;this[_0x27820d(0x166)][_0x27820d(0x114)]?this[_0x27820d(0x165)]():(this[_0x27820d(0x107)](),this[_0x27820d(0x161)][_0x27820d(0x10e)]({'target':this[_0x27820d(0x166)][_0x27820d(0x168)],'limiter':this[_0x27820d(0x152)](),'positions':Ho}));}[_0x23fc3b(0x159)](_0x53d94b){const _0x1a7b1f=_0x23fc3b;this[_0x1a7b1f(0x120)][_0x1a7b1f(0x12d)](),this[_0x1a7b1f(0x167)](),this[_0x1a7b1f(0x14d)](_0x1a7b1f(0x16e),_0x53d94b);}}export class SourcesBalloonButtonView extends _0x34c5d4{[_0x23fc3b(0x11b)];constructor(_0xda1d15){const _0x399c3f=_0x23fc3b;super(_0xda1d15),this[_0x399c3f(0x13b)]({'withText':!0x0,'role':_0x399c3f(0x14f)}),this[_0x399c3f(0x11b)]=this[_0x399c3f(0x14c)](),this[_0x399c3f(0x12e)]({'attributes':{'class':[Ro]}});}[_0x23fc3b(0x113)](){const _0x3e5f3e=_0x23fc3b;super[_0x3e5f3e(0x113)](),this[_0x3e5f3e(0x154)][_0x3e5f3e(0x12b)](this[_0x3e5f3e(0x11b)]);}[_0x23fc3b(0x14c)](){const _0x4b51e7=_0x23fc3b,_0x1b15c8=new _0xb0d752();return _0x1b15c8[_0x4b51e7(0x128)]=_0x2ce1a5,_0x1b15c8[_0x4b51e7(0x12e)]({'attributes':{'class':Ro+_0x4b51e7(0x184)}}),_0x1b15c8;}}
23
+ const _0x50aa3b=_0x44f6;function _0x1c38(){const _0x561109=['element','northArrowSouthWest','extendTemplate','_urlInputView','setContextItemLoading','enabled','urls','buttonView','_createResourcesBalloonView','bind','setAddContextOptions','current','removeContextItemChip','cancel','balloonView','showUrlBalloonPanel','showSourceResourcesBalloon','reorganizeChips','searchInputVisibleFrom','_addContextBalloonConfig','_setupTemplate','remove','execute','_createContextButton','ck-ai-chat-context-controls__add-context-button','_bindEventHandlers','20414664fthoDb','ck-ai-chat-context-controls__add-context-balloon-panel','defaultPositions','ck-ai-chat-context-controls__url-balloon-panel','pin','_conversationContextsChips','showAddContextBalloonPanel','addContextButtonView','submitUrl','_setupAllBalloonClickOutsideHandlers','done','removeContextItem','setContainerElement','addUrlToContext','createCollection','_currentContextsChips','isLoading','icon','2263935IosoTZ','_toggleAddContextBalloon','updateResourceState','menuitem','_addContextToCollection','clearCurrentContextItems','clear','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addDocumentToContext','conversation','southArrowNorth','_handleUrlSubmit','_createBalloonButton','_setBalloonPanelContent','addFileToContext','_resourcesBalloonView','div','overflowChips','_createAddContextBalloonPanelView','northArrowSouth','document','setConversationContext','isVisible','_setAddContextButtonEnabled','arrowView','5229364ODEnCG','addContextItem','fire','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','locale','1368340eUwwAG','ck-ai-chat-controls-button','_setupAddContextBalloonClickOutsideHandler','AI_CHAT_CONTEXT_ADD_CONTEXT','set','add','closeSourceResourceBalloon','_getLimiterElement','ck-reset_all-excluded','_addContextBalloonPanelView','children','hide','focus','render','populateSourceResourceBalloon','_showSourceResourcesBalloon','tooltip','closest','southArrowNorthEast','2508762jeDmft','isOn','source','body','_setupUrlBalloonClickOutsideHandler','_createUrlBalloonPanelView','_createArrowView','_createAddContextButtonView','loadSourceResources','995094HNsNKL','ck-ai-chat-controls_context_show-more-button','files','type','hideAddContextBalloonPanel','10687313VhYQMB','_overflowManager','refreshBalloon','__arrow','hideUrlBalloonPanel','ck-ai-chat-context-controls','show','_handleAddContextButtonClick','_removeContextFromCollection','_urlBalloonPanelView','bodyCollection','label','isAnyResourceBalloonVisible','sources','content','ck-ai-chat-context-controls__pending-contexts','AI_CHAT_CONTEXT_URL_LABEL','southArrowNorthWest','destroy','find','clearConversationContextItems','_createBaseBalloonPanel','isEnabled','northArrowSouthEast','ck-ai-chat-context-chips-wrapper-balloon','addResourceToContext','setTemplate','_addUrlContent','isHidden','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-context-controls__balloon-button','25bwkKQR','AI_CHAT_CONTEXT_FILE_LABEL','isReadOnly'];_0x1c38=function(){return _0x561109;};return _0x1c38();}(function(_0x44f480,_0x218049){const _0x463f1b=_0x44f6,_0x1afcb4=_0x44f480();while(!![]){try{const _0x530172=parseInt(_0x463f1b(0xfc))/0x1+-parseInt(_0x463f1b(0x10f))/0x2+-parseInt(_0x463f1b(0x16b))/0x3+parseInt(_0x463f1b(0xf6))/0x4+parseInt(_0x463f1b(0x13c))/0x5*(-parseInt(_0x463f1b(0x118))/0x6)+-parseInt(_0x463f1b(0x11d))/0x7+parseInt(_0x463f1b(0x159))/0x8;if(_0x530172===_0x218049)break;else _0x1afcb4['push'](_0x1afcb4['shift']());}catch(_0x4e59be){_0x1afcb4['push'](_0x1afcb4['shift']());}}}(_0x1c38,0xd2914));import{BalloonPanelView as _0x1c9cbe,ButtonView as _0x314fe6,clickOutsideHandler as _0x323c3c,FileDialogButtonView as _0x283fcb,IconView as _0x14ed84,View as _0x313c89}from'ckeditor5/src/ui.js';function _0x44f6(_0x188b7a,_0x455f63){const _0x1c3808=_0x1c38();return _0x44f6=function(_0x44f63a,_0x5e9914){_0x44f63a=_0x44f63a-0xf3;let _0x29ee83=_0x1c3808[_0x44f63a];return _0x29ee83;},_0x44f6(_0x188b7a,_0x455f63);}import{IconBrowseFiles as _0x44a71f,IconDocument as _0x29d693,IconDocumentOutline as _0x186b14,IconDropdownArrow as _0xe95710,IconLink as _0x3e19cf,IconPaperClip as _0x1caf9f}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x39520d}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x42ee9b}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1b0994}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1fb0bb}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x47334c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x50aa3b(0x173),_0x50aa3b(0x179),_0x50aa3b(0x166),_0x50aa3b(0x136),_0x50aa3b(0x164),_0x50aa3b(0x117)];const ko=_0x50aa3b(0x122),Eo=_0x50aa3b(0x12c),vo=_0x50aa3b(0x15a),Vo=_0x50aa3b(0x157),Io=_0x50aa3b(0x15c),Po=_0x50aa3b(0x13b),Ro=_0x50aa3b(0x13a),Uo=_0x50aa3b(0xfd),Lo=_0x50aa3b(0x135),No=_0x50aa3b(0x119),Oo=_0x50aa3b(0xf9),Mo=_0x50aa3b(0xfa),Ho=[_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x140)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x17e)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x134)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x12e)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x175)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x10e)]];export class AIChatContextPanelView extends _0x313c89{[_0x50aa3b(0x160)];[_0x50aa3b(0x168)]=this[_0x50aa3b(0x167)]();[_0x50aa3b(0x15e)]=this[_0x50aa3b(0x167)]();[_0x50aa3b(0x11e)];[_0x50aa3b(0x105)];[_0x50aa3b(0x126)];[_0x50aa3b(0x142)];[_0x50aa3b(0x17a)];[_0x50aa3b(0x152)];[_0x50aa3b(0x127)];constructor(_0x1bd29c,_0x1c4dea){const _0x1e4f60=_0x50aa3b;super(_0x1bd29c),this[_0x1e4f60(0x127)]=_0x1c4dea[_0x1e4f60(0x127)],this[_0x1e4f60(0x168)]=this[_0x1e4f60(0x167)](),this[_0x1e4f60(0x15e)]=this[_0x1e4f60(0x167)](),this[_0x1e4f60(0x160)]=this[_0x1e4f60(0x116)](_0x1bd29c),this[_0x1e4f60(0x105)]=this[_0x1e4f60(0x17d)](_0x1bd29c),this[_0x1e4f60(0x126)]=this[_0x1e4f60(0x114)](_0x1bd29c),this[_0x1e4f60(0x17a)]=this[_0x1e4f60(0x147)](_0x1bd29c,_0x1c4dea);const _0x177362={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x1e4f60(0x11e)]=new _0x1b0994(_0x1bd29c,this[_0x1e4f60(0x168)],_0x177362,this[_0x1e4f60(0x127)],this),this[_0x1e4f60(0x152)]={'buttonView':this[_0x1e4f60(0x160)],'balloonView':this[_0x1e4f60(0x105)],'hideMethod':this[_0x1e4f60(0x11c)][_0x1e4f60(0x148)](this),'showMethod':this[_0x1e4f60(0x15f)][_0x1e4f60(0x148)](this)},this[_0x1e4f60(0x153)](),this[_0x1e4f60(0x158)]();}[_0x50aa3b(0x109)](){const _0x4fc124=_0x50aa3b;super[_0x4fc124(0x109)](),this[_0x4fc124(0x162)](),this[_0x4fc124(0x11e)][_0x4fc124(0x165)](this[_0x4fc124(0x13f)]),this[_0x4fc124(0x11e)][_0x4fc124(0x150)]();}[_0x50aa3b(0x12f)](){const _0x58fa80=_0x50aa3b;super[_0x58fa80(0x12f)](),this[_0x58fa80(0x11e)][_0x58fa80(0x12f)](),this[_0x58fa80(0x17a)][_0x58fa80(0x12f)]();}[_0x50aa3b(0xf7)](_0x4707d9,_0x749ced){const _0x152883=_0x50aa3b,_0x895c29=this[_0x152883(0x156)](_0x4707d9,_0x152883(0x14a),!0x0,_0x749ced);this[_0x152883(0x16f)](_0x895c29,this[_0x152883(0x168)]),this[_0x152883(0x11e)][_0x152883(0x150)]();}[_0x50aa3b(0x164)](_0x412bb9){const _0xb591e9=_0x50aa3b;this[_0xb591e9(0x125)](_0x412bb9,this[_0xb591e9(0x168)]),this[_0xb591e9(0x125)](_0x412bb9,this[_0xb591e9(0x11e)][_0xb591e9(0x17c)]),this[_0xb591e9(0x11e)][_0xb591e9(0x150)]();}[_0x50aa3b(0x143)](_0x15907b,_0x54dbca){const _0x252c2e=_0x50aa3b;let _0x158954=this[_0x252c2e(0x168)][_0x252c2e(0x130)](_0x979143=>_0x979143['id']===_0x15907b);_0x158954||(_0x158954=this[_0x252c2e(0x11e)][_0x252c2e(0x17c)][_0x252c2e(0x130)](_0x1e6be6=>_0x1e6be6['id']===_0x15907b)),_0x158954&&(_0x158954[_0x252c2e(0x169)]=_0x54dbca);}[_0x50aa3b(0x180)](_0x5bf8d8){const _0x5f3a06=_0x50aa3b;this[_0x5f3a06(0x15e)][_0x5f3a06(0x171)]();for(const _0x3fcfc4 of _0x5bf8d8){const _0x5f0cc1=this[_0x5f3a06(0x156)](_0x3fcfc4,_0x5f3a06(0x174),!0x1,!0x1);this[_0x5f3a06(0x16f)](_0x5f0cc1,this[_0x5f3a06(0x15e)]);}}[_0x50aa3b(0x170)](){const _0x18d821=_0x50aa3b;this[_0x18d821(0x168)][_0x18d821(0x171)](),this[_0x18d821(0x11e)][_0x18d821(0x171)]();}[_0x50aa3b(0x131)](){const _0x1f6741=_0x50aa3b;this[_0x1f6741(0x15e)][_0x1f6741(0x171)]();}[_0x50aa3b(0x16d)](_0x1a136b,_0x1337b0,_0xe51e09){const _0x3bd277=_0x50aa3b;this[_0x3bd277(0x17a)][_0x3bd277(0x16d)](_0x1a136b,_0x1337b0,_0xe51e09);}[_0x50aa3b(0x11c)](){const _0x77ddd9=_0x50aa3b;this[_0x77ddd9(0x16c)](!0x1);}[_0x50aa3b(0x15f)](){const _0x272810=_0x50aa3b;this[_0x272810(0x16c)](!0x0);}[_0x50aa3b(0x121)](){const _0x2d2052=_0x50aa3b;this[_0x2d2052(0x126)][_0x2d2052(0x107)](),this[_0x2d2052(0x160)][_0x2d2052(0x110)]=!0x1,this[_0x2d2052(0x142)]&&this[_0x2d2052(0x142)][_0x2d2052(0x171)]();}[_0x50aa3b(0x14e)](){const _0xd9e229=_0x50aa3b;this[_0xd9e229(0x126)][_0xd9e229(0x123)](),this[_0xd9e229(0x160)][_0xd9e229(0x110)]=!0x0;}[_0x50aa3b(0x10b)](_0xb3c101){const _0x54c867=_0x50aa3b;this[_0x54c867(0x17a)][_0x54c867(0x14f)](_0xb3c101),this[_0x54c867(0x160)][_0x54c867(0x110)]=!0x0;}[_0x50aa3b(0x10a)](_0x1db187,_0x412b41,_0x4f5262,_0x4b3a57){const _0x5f0fe2=_0x50aa3b;this[_0x5f0fe2(0x17a)][_0x5f0fe2(0x10a)](_0x1db187,_0x4f5262,_0x4b3a57);}[_0x50aa3b(0x102)](_0x349546){const _0xcc158e=_0x50aa3b;this[_0xcc158e(0x17a)][_0xcc158e(0x102)](_0x349546),this[_0xcc158e(0x160)][_0xcc158e(0x110)]=!0x1;}[_0x50aa3b(0x149)](_0x34cc00){const _0x34dcdb=_0x50aa3b;this[_0x34dcdb(0x178)](this[_0x34dcdb(0x105)],this[_0x34dcdb(0xfb)],_0x34cc00),this[_0x34dcdb(0xf4)](_0x34cc00);}[_0x50aa3b(0xf4)](_0x480a1e){const _0xceafa9=_0x50aa3b,_0x5963be=!_0x480a1e[_0xceafa9(0x17f)][_0xceafa9(0x139)]&&_0x480a1e[_0xceafa9(0x17f)][_0xceafa9(0x144)],_0x980089=_0x480a1e[_0xceafa9(0x145)][_0xceafa9(0x144)],_0x25d585=_0x480a1e[_0xceafa9(0x11a)][_0xceafa9(0x144)];this[_0xceafa9(0x160)][_0xceafa9(0x133)]=_0x5963be||_0x980089||_0x25d585;}[_0x50aa3b(0x153)](){const _0x2aea55=_0x50aa3b;this[_0x2aea55(0x137)]({'tag':_0x2aea55(0x17b),'attributes':{'class':[ko,_0x2aea55(0x104)]},'children':[{'tag':_0x2aea55(0x17b),'attributes':{'class':Eo},'children':this[_0x2aea55(0x168)]}]});}[_0x50aa3b(0x158)](){const _0x1c1cb1=_0x50aa3b;this[_0x1c1cb1(0x160)]['on'](_0x1c1cb1(0x155),()=>{const _0x3e0798=_0x1c1cb1;this[_0x3e0798(0x124)]();});}[_0x50aa3b(0x116)](_0x27e5a1){const _0xa57a76=_0x50aa3b,_0x5922c1=new _0x314fe6(_0x27e5a1);return _0x5922c1[_0xa57a76(0x100)]({'label':_0x1fb0bb(_0x27e5a1,_0xa57a76(0xff)),'class':Uo+'\x20'+Vo,'icon':_0x1caf9f,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5922c1;}[_0x50aa3b(0x17d)](_0xb8a6ba){const _0x48c061=_0x50aa3b;return this[_0x48c061(0x132)](_0xb8a6ba,vo);}[_0x50aa3b(0x114)](_0x345afa){const _0x549982=_0x50aa3b,_0x5f15d1=this[_0x549982(0x132)](_0x345afa,Io);return this[_0x549982(0x138)](_0x5f15d1,_0x345afa),_0x5f15d1;}[_0x50aa3b(0x147)](_0x9fa319,_0x1aaaad){const _0x13c721=_0x50aa3b,_0xcd2eb2={'searchInputVisibleFrom':_0x1aaaad[_0x13c721(0x151)],'onBackToContext':()=>{const _0x6c92a4=_0x13c721;this[_0x6c92a4(0x15f)](),this[_0x6c92a4(0x105)][_0x6c92a4(0x15d)]({'target':this[_0x6c92a4(0x160)][_0x6c92a4(0x13f)],'limiter':this[_0x6c92a4(0x103)](),'positions':Ho});},'onResourceSelected':(_0x463a34,_0x583958)=>{const _0xa05ad2=_0x13c721;this[_0xa05ad2(0xf8)](_0xa05ad2(0x136),{'source':_0x463a34,'resource':_0x583958});},'onLoadSourceResources':_0x4a61a8=>{const _0x4ed3fc=_0x13c721;this[_0x4ed3fc(0xf8)](_0x4ed3fc(0x117),_0x4a61a8);},'onBalloonClosed':()=>{const _0x3ab139=_0x13c721;this[_0x3ab139(0x160)][_0x3ab139(0x110)]=!0x1;},'getLimiterElement':()=>this[_0x13c721(0x103)](),'getTargetElement':()=>this[_0x13c721(0x160)][_0x13c721(0x13f)]};return new _0x47334c(_0x9fa319,_0x1aaaad[_0x13c721(0x127)],_0xcd2eb2);}[_0x50aa3b(0x103)](){const _0x113cc6=_0x50aa3b;return this[_0x113cc6(0x13f)]?.[_0x113cc6(0x10d)]('.'+Mo)||document[_0x113cc6(0x112)];}[_0x50aa3b(0x132)](_0x366f40,_0x33eae4){const _0x4517c6=_0x50aa3b,_0x4ac0b6=new _0x1c9cbe(_0x366f40);return _0x4ac0b6[_0x4517c6(0x141)]({'attributes':{'class':_0x33eae4}}),this[_0x4517c6(0x127)][_0x4517c6(0x101)](_0x4ac0b6),_0x4ac0b6;}[_0x50aa3b(0x178)](_0x5d1473,_0xd71d79,_0x4ff088){const _0x183ff0=_0x50aa3b;if(_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x171)](),!_0x4ff088[_0x183ff0(0x17f)][_0x183ff0(0x139)]&&_0x4ff088[_0x183ff0(0x17f)][_0x183ff0(0x144)]){const _0x13f26a=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x172)),'icon':_0x29d693});_0x13f26a['on'](_0x183ff0(0x155),()=>{const _0x3f2be5=_0x183ff0;this[_0x3f2be5(0xf8)](_0x3f2be5(0x173)),this[_0x3f2be5(0x11c)]();}),_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x13f26a);}if(_0x4ff088[_0x183ff0(0x145)][_0x183ff0(0x144)]){const _0x561c0b=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x12d)),'icon':_0x3e19cf});_0x561c0b['on'](_0x183ff0(0x155),()=>{const _0x5a5317=_0x183ff0;this[_0x5a5317(0x11c)](),this[_0x5a5317(0x14e)](),this[_0x5a5317(0x126)][_0x5a5317(0x15d)]({'target':this[_0x5a5317(0x160)][_0x5a5317(0x13f)],'limiter':this[_0x5a5317(0x103)](),'positions':Ho}),this[_0x5a5317(0x142)][_0x5a5317(0x108)]();}),_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x561c0b);}if(_0x4ff088[_0x183ff0(0x11a)][_0x183ff0(0x144)]){const _0x221f9a=new _0x283fcb(_0xd71d79);_0x221f9a[_0x183ff0(0x100)]({'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x13d)),'icon':_0x44a71f,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x221f9a['on'](_0x183ff0(0x163),(_0x46c28b,_0x57dc48)=>{const _0x5ed8d8=_0x183ff0;this[_0x5ed8d8(0xf8)](_0x5ed8d8(0x179),_0x57dc48),this[_0x5ed8d8(0x11c)]();}),_0x221f9a[_0x183ff0(0x10c)]=!0x0,_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x221f9a);}for(const _0x110180 of _0x4ff088[_0x183ff0(0x12a)]){const _0x5da222=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x110180[_0x183ff0(0x128)],'icon':_0x110180[_0x183ff0(0x16a)]||_0x186b14,'type':_0x183ff0(0x111)});_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x5da222),_0x5da222['on'](_0x183ff0(0x155),()=>{const _0x494d49=_0x183ff0;this[_0x494d49(0x11c)](),this[_0x494d49(0x10b)](_0x110180);});}}[_0x50aa3b(0x138)](_0x44e142,_0x510dc0){const _0x339e56=_0x50aa3b;this[_0x339e56(0x142)]=new _0x42ee9b(_0x510dc0),this[_0x339e56(0x142)]['on'](_0x339e56(0x161),(_0x5f48e6,_0x2611ac)=>{const _0x5bbee9=_0x339e56;this[_0x5bbee9(0x176)](_0x2611ac);}),this[_0x339e56(0x142)]['on'](_0x339e56(0x14c),()=>{const _0x2c6f52=_0x339e56;this[_0x2c6f52(0x121)](),this[_0x2c6f52(0x15f)](),this[_0x2c6f52(0x105)][_0x2c6f52(0x15d)]({'target':this[_0x2c6f52(0x160)][_0x2c6f52(0x13f)],'limiter':this[_0x2c6f52(0x103)](),'positions':Ho});}),this[_0x339e56(0x142)]['on'](_0x339e56(0x11f),()=>{const _0x2e75e9=_0x339e56;this[_0x2e75e9(0x126)][_0x2e75e9(0xf3)]&&this[_0x2e75e9(0x126)][_0x2e75e9(0x15d)]({'target':this[_0x2e75e9(0x160)][_0x2e75e9(0x13f)],'limiter':this[_0x2e75e9(0x103)](),'positions':Ho});}),_0x44e142[_0x339e56(0x12b)][_0x339e56(0x101)](this[_0x339e56(0x142)]);}[_0x50aa3b(0x177)](_0x3603fc,_0x5684e6){const _0x1b128d=_0x50aa3b,_0x312bd6=_0x1b128d(0x111)===_0x5684e6[_0x1b128d(0x11b)]?new SourcesBalloonButtonView(_0x3603fc):new _0x314fe6(_0x3603fc);return _0x312bd6[_0x1b128d(0x100)]({'label':_0x5684e6[_0x1b128d(0x128)],'icon':_0x5684e6[_0x1b128d(0x16a)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x312bd6;}[_0x50aa3b(0x162)](){const _0x28dd63=_0x50aa3b;this[_0x28dd63(0xfe)](),this[_0x28dd63(0x113)]();}[_0x50aa3b(0x113)](){const _0x2b866c=_0x50aa3b;_0x323c3c({'emitter':this[_0x2b866c(0x126)],'contextElements':[this[_0x2b866c(0x126)][_0x2b866c(0x13f)]],'callback':()=>{const _0x4d9d84=_0x2b866c;this[_0x4d9d84(0x121)]();},'activator':()=>this[_0x2b866c(0x126)][_0x2b866c(0xf3)]});}[_0x50aa3b(0x16c)](_0x402cc1){const _0x2830b8=_0x50aa3b,_0x5ef567=this[_0x2830b8(0x152)];_0x5ef567[_0x2830b8(0x146)][_0x2830b8(0x110)]=_0x402cc1,_0x402cc1?_0x5ef567[_0x2830b8(0x14d)][_0x2830b8(0x123)]():_0x5ef567[_0x2830b8(0x14d)][_0x2830b8(0x107)]();}[_0x50aa3b(0xfe)](){const _0xd8b80c=_0x50aa3b,{balloonView:_0x292585,buttonView:_0x54397a,hideMethod:_0x5e37bc}=this[_0xd8b80c(0x152)];_0x323c3c({'emitter':_0x292585,'contextElements':[_0x292585[_0xd8b80c(0x13f)],_0x54397a[_0xd8b80c(0x13f)]],'callback':()=>{_0x5e37bc();},'activator':()=>_0x54397a[_0xd8b80c(0x110)]&&!this[_0xd8b80c(0x126)][_0xd8b80c(0xf3)]&&!this[_0xd8b80c(0x17a)][_0xd8b80c(0x129)]()});}[_0x50aa3b(0x156)](_0x168339,_0x4b41a6,_0x49ef6a=!0x1,_0x2218ca=!0x1){const _0x14e5c5=_0x50aa3b,_0x3a2b25=_0x14e5c5(0x174)===_0x4b41a6||!0x0===_0x168339[_0x14e5c5(0x13e)],_0x45f2cd=new _0x39520d(this[_0x14e5c5(0xfb)],_0x168339,_0x3a2b25,_0x49ef6a,_0x2218ca);return _0x3a2b25||_0x45f2cd['on'](_0x14e5c5(0x14b),()=>{const _0x341c2d=_0x14e5c5;this[_0x341c2d(0xf8)](_0x341c2d(0x164),_0x45f2cd['id']);}),_0x45f2cd;}[_0x50aa3b(0x16f)](_0x25bab5,_0x324e8f){const _0xf2af35=_0x50aa3b;_0x324e8f[_0xf2af35(0x101)](_0x25bab5,0x0);}[_0x50aa3b(0x125)](_0x4e9c9f,_0x58c3dc){const _0x466616=_0x50aa3b,_0x260aa4=_0x58c3dc[_0x466616(0x130)](_0x41c5e7=>_0x41c5e7['id']===_0x4e9c9f);_0x260aa4&&_0x58c3dc[_0x466616(0x154)](_0x260aa4);}[_0x50aa3b(0x124)](){const _0x39a1d5=_0x50aa3b;this[_0x39a1d5(0x160)][_0x39a1d5(0x110)]?this[_0x39a1d5(0x11c)]():(this[_0x39a1d5(0x15f)](),this[_0x39a1d5(0x105)][_0x39a1d5(0x15d)]({'target':this[_0x39a1d5(0x160)][_0x39a1d5(0x13f)],'limiter':this[_0x39a1d5(0x103)](),'positions':Ho}));}[_0x50aa3b(0x176)](_0x5f57d5){const _0x1e0e46=_0x50aa3b;this[_0x1e0e46(0x142)][_0x1e0e46(0x171)](),this[_0x1e0e46(0x121)](),this[_0x1e0e46(0xf8)](_0x1e0e46(0x166),_0x5f57d5);}}export class SourcesBalloonButtonView extends _0x314fe6{[_0x50aa3b(0xf5)];constructor(_0x5d2071){const _0x15fe35=_0x50aa3b;super(_0x5d2071),this[_0x15fe35(0x100)]({'withText':!0x0,'role':_0x15fe35(0x16e)}),this[_0x15fe35(0xf5)]=this[_0x15fe35(0x115)](),this[_0x15fe35(0x141)]({'attributes':{'class':[Ro]}});}[_0x50aa3b(0x109)](){const _0x1b83e0=_0x50aa3b;super[_0x1b83e0(0x109)](),this[_0x1b83e0(0x106)][_0x1b83e0(0x101)](this[_0x1b83e0(0xf5)]);}[_0x50aa3b(0x115)](){const _0x5679e8=_0x50aa3b,_0x44115e=new _0x14ed84();return _0x44115e[_0x5679e8(0x12b)]=_0xe95710,_0x44115e[_0x5679e8(0x141)]({'attributes':{'class':Ro+_0x5679e8(0x120)}}),_0x44115e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x301c77=_0x3fc5;function _0x3fc5(_0x3353f9,_0x33b2ec){const _0x4156c1=_0x4156();return _0x3fc5=function(_0x3fc50e,_0x192584){_0x3fc50e=_0x3fc50e-0x1d8;let _0x69829=_0x4156c1[_0x3fc50e];return _0x69829;},_0x3fc5(_0x3353f9,_0x33b2ec);}function _0x4156(){const _0x1c410f=['_createLoaderView','fire','AI_CHAT_IS_WRITING','35019fvGclg','ck-ai-chat-controls-loader','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon-dot','execute','4089540QpxaHr','set','div','1136CIyOmb','ck-reset_all','2423232VDJBJD','setTemplate','_loaderView','ck-ai-chat-controls-loader-icon','431292vfYgpC','locale','_createCancelButtonView','5NWrWfY','451938wWRQlD','AI_CHAT_STOP_GENERATING','17160180VKNerC','1678exSCfu','265YdIjev','ck-ai-button-secondary\x20ck-ai-button-stop-generating','abortPromptStream','_cancelButtonView'];_0x4156=function(){return _0x1c410f;};return _0x4156();}(function(_0x4c933b,_0x381b47){const _0x1b27cf=_0x3fc5,_0x56d090=_0x4c933b();while(!![]){try{const _0x1bbad1=parseInt(_0x1b27cf(0x1e6))/0x1*(parseInt(_0x1b27cf(0x1e5))/0x2)+parseInt(_0x1b27cf(0x1e2))/0x3+parseInt(_0x1b27cf(0x1de))/0x4+-parseInt(_0x1b27cf(0x1e1))/0x5*(-parseInt(_0x1b27cf(0x1da))/0x6)+parseInt(_0x1b27cf(0x1f2))/0x7+parseInt(_0x1b27cf(0x1d8))/0x8*(parseInt(_0x1b27cf(0x1ed))/0x9)+-parseInt(_0x1b27cf(0x1e4))/0xa;if(_0x1bbad1===_0x381b47)break;else _0x56d090['push'](_0x56d090['shift']());}catch(_0x178517){_0x56d090['push'](_0x56d090['shift']());}}}(_0x4156,0x4a8f8));import{ButtonView as _0x2eb60d,View as _0x51cad9}from'ckeditor5/src/ui.js';import{IconStop as _0x3fc845}from'ckeditor5/src/icons.js';import{getTranslation as _0x53544a}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x51cad9{[_0x301c77(0x1e9)];[_0x301c77(0x1dc)];constructor(_0x537f13){const _0x4dde8c=_0x301c77;super(_0x537f13),this[_0x4dde8c(0x1e9)]=this[_0x4dde8c(0x1e0)](),this[_0x4dde8c(0x1dc)]=this[_0x4dde8c(0x1ea)](),this[_0x4dde8c(0x1db)]({'tag':_0x4dde8c(0x1f4),'attributes':{'class':['ck',_0x4dde8c(0x1ef),_0x4dde8c(0x1d9)]},'children':[this[_0x4dde8c(0x1dc)],this[_0x4dde8c(0x1e9)]]});}[_0x301c77(0x1e0)](){const _0x3a5e73=_0x301c77,_0x111769=new _0x2eb60d(this[_0x3a5e73(0x1df)]);return _0x111769[_0x3a5e73(0x1f3)]({'label':_0x53544a(this[_0x3a5e73(0x1df)],_0x3a5e73(0x1e3)),'withText':!0x0,'class':_0x3a5e73(0x1e7),'icon':_0x3fc845}),_0x111769['on'](_0x3a5e73(0x1f1),()=>{const _0x4eb23a=_0x3a5e73;this[_0x4eb23a(0x1eb)](_0x4eb23a(0x1e8));}),_0x111769;}[_0x301c77(0x1ea)](){const _0x8e7cb6=_0x301c77,_0x2f4db5=new _0x51cad9(this[_0x8e7cb6(0x1df)]);return _0x2f4db5[_0x8e7cb6(0x1db)]({'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1ee)]},'children':[{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1dd)]},'children':[{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}},{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}},{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}}]},{'text':_0x53544a(this[_0x8e7cb6(0x1df)],_0x8e7cb6(0x1ec))}]}),_0x2f4db5;}}
23
+ const _0x253e5a=_0x3eb2;(function(_0xfc5c27,_0x3f972c){const _0x17896d=_0x3eb2,_0x5090e7=_0xfc5c27();while(!![]){try{const _0x5eafb5=-parseInt(_0x17896d(0x1e7))/0x1*(parseInt(_0x17896d(0x1f1))/0x2)+parseInt(_0x17896d(0x1dc))/0x3*(parseInt(_0x17896d(0x1e0))/0x4)+-parseInt(_0x17896d(0x1d7))/0x5*(parseInt(_0x17896d(0x1ea))/0x6)+-parseInt(_0x17896d(0x1d9))/0x7*(-parseInt(_0x17896d(0x1ed))/0x8)+parseInt(_0x17896d(0x1d8))/0x9*(-parseInt(_0x17896d(0x1f5))/0xa)+-parseInt(_0x17896d(0x1ec))/0xb+parseInt(_0x17896d(0x1e5))/0xc*(parseInt(_0x17896d(0x1da))/0xd);if(_0x5eafb5===_0x3f972c)break;else _0x5090e7['push'](_0x5090e7['shift']());}catch(_0x386509){_0x5090e7['push'](_0x5090e7['shift']());}}}(_0x5a73,0x5bf33));import{ButtonView as _0x474b9e,View as _0x136fb6}from'ckeditor5/src/ui.js';import{IconStop as _0x1b7a9b}from'ckeditor5/src/icons.js';function _0x3eb2(_0x4a6a6f,_0x27969d){const _0x5a73e9=_0x5a73();return _0x3eb2=function(_0x3eb2b9,_0x204d37){_0x3eb2b9=_0x3eb2b9-0x1d6;let _0x1aba08=_0x5a73e9[_0x3eb2b9];return _0x1aba08;},_0x3eb2(_0x4a6a6f,_0x27969d);}import{getTranslation as _0x4ddd59}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x136fb6{[_0x253e5a(0x1e1)];[_0x253e5a(0x1e9)];constructor(_0x13b53c){const _0x18098d=_0x253e5a;super(_0x13b53c),this[_0x18098d(0x1e1)]=this[_0x18098d(0x1e8)](),this[_0x18098d(0x1e9)]=this[_0x18098d(0x1d6)](),this[_0x18098d(0x1e3)]({'tag':_0x18098d(0x1eb),'attributes':{'class':['ck',_0x18098d(0x1e2),_0x18098d(0x1f2)]},'children':[this[_0x18098d(0x1e9)],this[_0x18098d(0x1e1)]]});}[_0x253e5a(0x1e8)](){const _0x3b61d6=_0x253e5a,_0x428976=new _0x474b9e(this[_0x3b61d6(0x1de)]);return _0x428976[_0x3b61d6(0x1dd)]({'label':_0x4ddd59(this[_0x3b61d6(0x1de)],_0x3b61d6(0x1df)),'withText':!0x0,'class':_0x3b61d6(0x1ee),'icon':_0x1b7a9b}),_0x428976['on'](_0x3b61d6(0x1f0),()=>{const _0xafe744=_0x3b61d6;this[_0xafe744(0x1ef)](_0xafe744(0x1e4));}),_0x428976;}[_0x253e5a(0x1d6)](){const _0x4a9c84=_0x253e5a,_0x242c16=new _0x136fb6(this[_0x4a9c84(0x1de)]);return _0x242c16[_0x4a9c84(0x1e3)]({'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1f4)]},'children':[{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1f3)]},'children':[{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}},{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}},{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}}]},{'text':_0x4ddd59(this[_0x4a9c84(0x1de)],_0x4a9c84(0x1db))}]}),_0x242c16;}}function _0x5a73(){const _0x4e70ba=['14601574EwyVHi','AI_CHAT_IS_WRITING','3ywpXxa','set','locale','AI_CHAT_STOP_GENERATING','1722976rUahew','_cancelButtonView','ck-ai-chat-controls-loader-wrapper','setTemplate','abortPromptStream','12oviFMD','ck-ai-chat-controls-loader-icon-dot','5329ghUUDN','_createCancelButtonView','_loaderView','118824GTPZze','div','4513872VWMeyA','243888NXlInZ','ck-ai-button-secondary\x20ck-ai-button-stop-generating','fire','execute','164peQsgq','ck-reset_all','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader','190hQeugV','_createLoaderView','160hRdTfJ','116055qRcpor','126bdlhHV'];_0x5a73=function(){return _0x4e70ba;};return _0x5a73();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53184d=_0x51b0;(function(_0x4576de,_0x3dc9ed){const _0x5bc16d=_0x51b0,_0x578709=_0x4576de();while(!![]){try{const _0x6291d8=-parseInt(_0x5bc16d(0xfd))/0x1*(-parseInt(_0x5bc16d(0x11d))/0x2)+parseInt(_0x5bc16d(0x157))/0x3+parseInt(_0x5bc16d(0x154))/0x4+-parseInt(_0x5bc16d(0x132))/0x5*(parseInt(_0x5bc16d(0x13c))/0x6)+-parseInt(_0x5bc16d(0x116))/0x7+-parseInt(_0x5bc16d(0x126))/0x8*(-parseInt(_0x5bc16d(0x11a))/0x9)+parseInt(_0x5bc16d(0x15f))/0xa*(-parseInt(_0x5bc16d(0x15e))/0xb);if(_0x6291d8===_0x3dc9ed)break;else _0x578709['push'](_0x578709['shift']());}catch(_0x47103a){_0x578709['push'](_0x578709['shift']());}}}(_0x18d4,0xadc6f));function _0x51b0(_0x487252,_0x3cd8d8){const _0x18d4c4=_0x18d4();return _0x51b0=function(_0x51b0cf,_0xbc6b9a){_0x51b0cf=_0x51b0cf-0xfd;let _0x11ff07=_0x18d4c4[_0x51b0cf];return _0x11ff07;},_0x51b0(_0x487252,_0x3cd8d8);}import{Collection as _0x55bae2}from'ckeditor5/src/utils.js';import{IconAI as _0x4b8959,IconBulb as _0x35b36c,IconWeb as _0x1ced6a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x36508b,ButtonLabelView as _0x275c46,ButtonView as _0x1f5bf6,createDropdown as _0x518fc9,IconView as _0x235d38,UIModel as _0x32f870,View as _0x34d75e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e0d75}from'../../../aicore/utils/common-translations.js';const yo=_0x53184d(0x11b),Uo=_0x53184d(0x131),Go=_0x53184d(0x133),jo=_0x53184d(0x159),Yo=_0x53184d(0x149),qo=_0x53184d(0x15d),zo=_0x53184d(0x102),Fo='n';export class AIChatPromptCapabilitiesView extends _0x34d75e{[_0x53184d(0x106)];[_0x53184d(0x10d)];[_0x53184d(0x14e)];[_0x53184d(0x134)];[_0x53184d(0x142)];[_0x53184d(0x146)];constructor(_0x401d97){const _0x48867e=_0x53184d;super(_0x401d97),this[_0x48867e(0x122)](_0x48867e(0x108),!0x1),this[_0x48867e(0x122)](_0x48867e(0x145),!0x1),this[_0x48867e(0x122)](_0x48867e(0x119),!0x0),this[_0x48867e(0x122)](_0x48867e(0x117),!0x0),this[_0x48867e(0x122)](_0x48867e(0x144),null),this[_0x48867e(0x122)](_0x48867e(0x10a),null),this[_0x48867e(0x134)]=this[_0x48867e(0x105)](),this[_0x48867e(0x146)]=this[_0x48867e(0x127)](),this[_0x48867e(0x106)]=this[_0x48867e(0x110)](),this[_0x48867e(0x10d)]=this[_0x48867e(0x137)](),this[_0x48867e(0x14e)]=this[_0x48867e(0x11f)](),this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x10f)](_0x48867e(0x13e))['to'](this,_0x48867e(0x119),_0x1576dd=>_0x1576dd),this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x117),_0x4b2b8b=>_0x4b2b8b?this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x14f)]:_0x5e0d75(this[_0x48867e(0x120)],_0x48867e(0x139))),this[_0x48867e(0x134)][_0x48867e(0x10f)](_0x48867e(0x12f))['to'](this,_0x48867e(0x117),_0x11e02e=>_0x11e02e),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x124))['to'](this,_0x48867e(0x108),_0x7486a4=>_0x7486a4),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x101))['to'](this,_0x48867e(0x119),_0x3259b5=>!_0x3259b5),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x108),_0x284769=>_0x5e0d75(this[_0x48867e(0x120)],_0x284769?_0x48867e(0x155):_0x48867e(0x12e))),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x124))['to'](this,_0x48867e(0x145),_0x2f188c=>_0x2f188c),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x101))['to'](this,_0x48867e(0x119),_0x18ed98=>!_0x18ed98),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x145),_0x3f9125=>_0x5e0d75(this[_0x48867e(0x120)],_0x3f9125?_0x48867e(0x12d):_0x48867e(0x13a))),this[_0x48867e(0x141)]({'tag':_0x48867e(0x12a),'attributes':{'class':[yo]},'children':[this[_0x48867e(0x134)],this[_0x48867e(0x146)],this[_0x48867e(0x106)],this[_0x48867e(0x10d)],this[_0x48867e(0x14e)]]}),this[_0x48867e(0x142)]=new _0x55bae2(),_0x36508b(this[_0x48867e(0x134)],this[_0x48867e(0x142)]);}[_0x53184d(0x114)](_0x539083,_0x3af1b4){const _0x3000b0=_0x53184d;if(this[_0x3000b0(0x122)](_0x3000b0(0x119),!(_0x3af1b4&&_0x539083[_0x3000b0(0x107)]<=0x1)),this[_0x3000b0(0x142)][_0x3000b0(0x15c)](),_0x539083?.[_0x3000b0(0x107)])for(const _0x5ef192 of _0x539083){const _0x201ee9=new _0x32f870({'label':_0x5ef192[_0x3000b0(0x112)],'withText':!0x0,'role':_0x3000b0(0x130),'id':_0x5ef192['id'],'model':_0x5ef192});_0x201ee9[_0x3000b0(0x10f)](_0x3000b0(0x124))['to'](this,_0x3000b0(0x144),_0x49bb2d=>_0x49bb2d===_0x5ef192['id']),this[_0x3000b0(0x142)][_0x3000b0(0x152)]({'type':_0x3000b0(0x14d),'model':_0x201ee9,'labelView':new Us(this[_0x3000b0(0x120)],_0x5ef192)});}}[_0x53184d(0x135)](_0x395d7f){const _0x3f50b3=_0x53184d;this[_0x3f50b3(0x122)](_0x3f50b3(0x108),_0x395d7f);}[_0x53184d(0x13d)](_0x279921){const _0x1c24e0=_0x53184d;this[_0x1c24e0(0x122)](_0x1c24e0(0x145),_0x279921);}[_0x53184d(0x118)](_0x4cf860){const _0x47bf8b=_0x53184d;if(!_0x4cf860)return;this[_0x47bf8b(0x144)]=_0x4cf860['id'],this[_0x47bf8b(0x10a)]=_0x4cf860[_0x47bf8b(0x112)]||_0x4cf860['id'],this[_0x47bf8b(0x134)][_0x47bf8b(0x13f)][_0x47bf8b(0x122)](_0x47bf8b(0x14f),_0x4cf860[_0x47bf8b(0x112)]),this[_0x47bf8b(0x134)][_0x47bf8b(0x13f)][_0x47bf8b(0x122)](_0x47bf8b(0x138),_0x4cf860[_0x47bf8b(0x112)]);const _0x48ebf3=_0x4cf860[_0x47bf8b(0x136)][_0x47bf8b(0x147)]?.[_0x47bf8b(0x151)]??!0x1;this[_0x47bf8b(0x122)](_0x47bf8b(0x108),!0x1),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x124),!0x1),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x12f),_0x48ebf3),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x13e),_0x48ebf3);const _0x35c5e8=_0x4cf860[_0x47bf8b(0x136)][_0x47bf8b(0x143)]?.[_0x47bf8b(0x151)]??!0x1;this[_0x47bf8b(0x122)](_0x47bf8b(0x145),!0x1),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x124),!0x1),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x12f),_0x35c5e8),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x13e),_0x35c5e8);}[_0x53184d(0x148)](){const _0x4cd84b=_0x53184d;this[_0x4cd84b(0x122)](_0x4cd84b(0x117),!0x0),this[_0x4cd84b(0x122)](_0x4cd84b(0x119),!0x0);}[_0x53184d(0x150)](_0x107ea4){const _0xb0b3dc=_0x53184d;this[_0xb0b3dc(0x122)](_0xb0b3dc(0x117),!0x1),_0x107ea4&&this[_0xb0b3dc(0x122)](_0xb0b3dc(0x119),!0x1);}[_0x53184d(0x110)](){const _0x15461d=_0x53184d,_0x465603=new _0x1f5bf6();return _0x465603[_0x15461d(0x122)]({'label':_0x5e0d75(this[_0x15461d(0x120)],_0x15461d(0x14a)),'icon':_0x1ced6a,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x465603['on'](_0x15461d(0x103),()=>{const _0x59352a=_0x15461d;this[_0x59352a(0x128)](_0x59352a(0x129));}),_0x465603;}[_0x53184d(0x137)](){const _0x40540d=_0x53184d,_0x169ebb=new _0x1f5bf6();return _0x169ebb[_0x40540d(0x122)]({'label':_0x5e0d75(this[_0x40540d(0x120)],_0x40540d(0x121)),'icon':_0x35b36c,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x169ebb['on'](_0x40540d(0x103),()=>{const _0x3df381=_0x40540d;this[_0x3df381(0x128)](_0x3df381(0x123));}),_0x169ebb;}[_0x53184d(0x11f)](){const _0x222bda=_0x53184d,_0x4bf74e=new _0x1f5bf6();return _0x4bf74e[_0x222bda(0x122)]({'label':_0x5e0d75(this[_0x222bda(0x120)],_0x222bda(0x10b)),'icon':_0x4b8959,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x5e0d75(this[_0x222bda(0x120)],_0x222bda(0x10b)),'tooltipPosition':Fo}),_0x4bf74e[_0x222bda(0xfe)]({'attributes':{'class':[Go]}}),_0x4bf74e['on'](_0x222bda(0x103),()=>{const _0x4c3c71=_0x222bda;console[_0x4c3c71(0x113)](_0x4c3c71(0x12c)),alert(_0x4c3c71(0x12c));}),_0x4bf74e;}[_0x53184d(0x105)](){const _0x268f07=_0x53184d,_0x115ddf=_0x518fc9(this[_0x268f07(0x120)]);return _0x115ddf[_0x268f07(0x122)]({'panelPosition':'ne','class':[jo]}),_0x115ddf[_0x268f07(0x13f)][_0x268f07(0x122)]({'label':_0x5e0d75(this[_0x268f07(0x120)],_0x268f07(0x104)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x268f07(0x12b)](_0x115ddf,_0x268f07(0x103),_0x301590=>{const _0x583de2=_0x268f07;this[_0x583de2(0x128)](_0x583de2(0x125),_0x301590[_0x583de2(0x14b)][_0x583de2(0x160)]);}),_0x115ddf;}[_0x53184d(0x127)](){const _0x26e5d5=_0x53184d,_0x3ed2fa=new Jo(this[_0x26e5d5(0x120)]);return _0x3ed2fa[_0x26e5d5(0x10f)](_0x26e5d5(0x153))['to'](this,_0x26e5d5(0x10a),_0x564a63=>_0x564a63??''),_0x3ed2fa[_0x26e5d5(0x10f)](_0x26e5d5(0x13e))['to'](this,_0x26e5d5(0x119),this,_0x26e5d5(0x10a),(_0x5d1d97,_0xed983c)=>!_0x5d1d97&&!_0xed983c?.[_0x26e5d5(0x11c)]()[_0x26e5d5(0x111)](_0x26e5d5(0x10c))),_0x3ed2fa;}}class Us extends _0x275c46{constructor(_0x5a68ea,_0xabd9c5){const _0x295e83=_0x53184d;super();const _0x4b0917=this[_0x295e83(0x14c)],_0x409509=this[_0x295e83(0x13b)]();this[_0x295e83(0x141)]({'tag':_0x295e83(0x12a),'attributes':{'class':['ck',_0x295e83(0x15a)],'style':_0x4b0917['to'](_0x295e83(0x15b)),'id':_0x4b0917['to']('id')},'children':[{'tag':_0x295e83(0x12a),'attributes':{'class':[Yo]},'children':[{'text':_0x4b0917['to'](_0x295e83(0x153))}]},{'tag':_0x295e83(0x12a),'attributes':{'class':[qo]},'children':[{'tag':_0x295e83(0x109),'children':[{'text':_0xabd9c5[_0x295e83(0x140)]}]}]},{'tag':_0x295e83(0x12a),'attributes':{'class':[zo]},'children':_0x409509}]}),_0x409509[_0x295e83(0x11e)](this[_0x295e83(0xff)](_0x5a68ea,_0x1ced6a,_0x295e83(0x14a),_0xabd9c5[_0x295e83(0x136)][_0x295e83(0x147)]?.[_0x295e83(0x151)]??!0x1)),_0x409509[_0x295e83(0x11e)](this[_0x295e83(0xff)](_0x5a68ea,_0x35b36c,_0x295e83(0x121),_0xabd9c5[_0x295e83(0x136)][_0x295e83(0x143)]?.[_0x295e83(0x151)]??!0x1));}[_0x53184d(0xff)](_0x70974a,_0x373b2e,_0xe8c32c,_0x2e08a4){const _0x7a66e4=_0x53184d,_0xb22966=new _0x235d38();_0xb22966[_0x7a66e4(0x158)]=_0x373b2e;const _0x3e3027=new _0x34d75e(_0x70974a);_0x3e3027[_0x7a66e4(0x141)]({'tag':_0x7a66e4(0x109),'children':[{'text':_0x5e0d75(_0x70974a,_0xe8c32c)+':\x20'}]});const _0x26eea7=new _0x34d75e(_0x70974a);return _0x26eea7[_0x7a66e4(0x141)]({'tag':_0x7a66e4(0x109),'children':[{'text':_0x5e0d75(_0x70974a,_0x2e08a4?_0x7a66e4(0x115):_0x7a66e4(0x100))}]}),[_0xb22966,_0x3e3027,_0x26eea7];}}class Jo extends _0x34d75e{constructor(_0x4e0ad5){const _0x267688=_0x53184d;super(_0x4e0ad5),this[_0x267688(0x122)](_0x267688(0x153),void 0x0),this[_0x267688(0x122)](_0x267688(0x13e),!0x0);const _0x5439a7=this[_0x267688(0x14c)];this[_0x267688(0x141)]({'tag':_0x267688(0x109),'attributes':{'class':['ck',_0x267688(0x156),_0x5439a7['if'](_0x267688(0x13e),_0x267688(0x10e),_0x559007=>!_0x559007)]},'children':[{'text':_0x5439a7['to'](_0x267688(0x153))}]});}}function _0x18d4(){const _0x4c5ad7=['_createModelSelectionDropdown','_webSearchButton','length','webSearchActive','span','activeModelName','AI_CHAT_COMMANDS','agent','_reasoningButton','ck-hidden','bind','_createWebSearchButton','startsWith','name','log','setModelList','AI_CHAT_CAPABILITIES_YES','5124602bgyIDv','modelSelectorEnabled','setModel','modelSelectorVisible','1016748bnaSzk','ck-ai-chat__prompt-capabilities','toLowerCase','1516fMGYzX','addMany','_createCommandsButton','locale','AI_CHAT_REASONING','set','toggleReasoning','isOn','selectModel','32UESIXg','_createModelNameView','fire','toggleWebSearch','div','listenTo','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_REASONING','AI_CHAT_ENABLE_WEB_SEARCH','isEnabled','menuitemradio','ck-ai-chat-controls-button','4190oitxZX','ck-ai-chat-controls-button--commands','_modelSelectionDropdown','setWebSearch','capabilities','_createReasoningButton','tooltip','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','createCollection','3162gSwcle','setReasoning','isVisible','buttonView','description','setTemplate','_modelSelectionDropdownItems','reasoning','activeModelId','reasoningActive','_modelNameView','webSearch','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_SEARCH_WEB','source','bindTemplate','button','_commandsButton','label','disableModelSelector','enabled','add','text','1901760xCbEhO','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-name','750669eOjGLb','content','ck-ai-chat-controls__model-selection','ck-button__label','style','clear','ck-ai-chat-controls__model-selection__item-description','7700qZacUX','8230HvRyMK','model','1694vDzDtO','extendTemplate','_getCapabilityParts','AI_CHAT_CAPABILITIES_NO','withText','ck-ai-chat-controls__model-selection__item-capabilities','execute','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'];_0x18d4=function(){return _0x4c5ad7;};return _0x18d4();}
23
+ const _0x40fa94=_0x466d;(function(_0x49fab8,_0x2eec26){const _0x19becf=_0x466d,_0x1cebee=_0x49fab8();while(!![]){try{const _0x85838=-parseInt(_0x19becf(0x12a))/0x1+parseInt(_0x19becf(0x12c))/0x2+parseInt(_0x19becf(0xe3))/0x3*(parseInt(_0x19becf(0xd2))/0x4)+parseInt(_0x19becf(0x107))/0x5+parseInt(_0x19becf(0xd5))/0x6+parseInt(_0x19becf(0x105))/0x7*(-parseInt(_0x19becf(0xe5))/0x8)+-parseInt(_0x19becf(0xef))/0x9;if(_0x85838===_0x2eec26)break;else _0x1cebee['push'](_0x1cebee['shift']());}catch(_0x2e9d6c){_0x1cebee['push'](_0x1cebee['shift']());}}}(_0x4ed7,0xe2ad3));import{Collection as _0x20e192}from'ckeditor5/src/utils.js';import{IconAI as _0x34c174,IconBulb as _0x16fd0e,IconWeb as _0x294338}from'@ckeditor/ckeditor5-icons';function _0x4ed7(){const _0x6da2ee=['reasoning','startsWith','locale','ck-hidden','27QUGDCQ','_modelSelectionDropdown','970336nJiLgU','modelSelectorEnabled','content','_getCapabilityParts','AI_CHAT_CAPABILITIES_NO','_webSearchButton','setModel','webSearch','_createModelSelectionDropdown','setTemplate','1386783xhwVpF','_modelSelectionDropdownItems','style','length','_commandsButton','disableModelSelector','capabilities','buttonView','agent','AI_CHAT_REASONING','execute','ck-ai-chat-controls__model-selection__item-name','source','activeModelId','webSearchActive','_reasoningButton','description','selectModel','isEnabled','toggleReasoning','AI_CHAT_SEARCH_WEB','model','56IxVzTr','add','5682735IzwAmj','isVisible','ck-ai-chat-controls__model-name','bindTemplate','ck-ai-chat-controls__model-selection__item-description','_createModelNameView','setModelList','createCollection','setWebSearch','addMany','AI_CHAT_DISABLE_REASONING','bind','_createWebSearchButton','enableModelSelector','ck-ai-chat-controls-button--commands','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','text','toLowerCase','_modelNameView','name','_createReasoningButton','_createCommandsButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','isOn','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','AI_CHAT_COMMANDS','div','AI_CHAT_ENABLE_WEB_SEARCH','toggleWebSearch','button','listenTo','reasoningActive','extendTemplate','ck-ai-chat__prompt-capabilities','1747126YTQNlp','ck-ai-chat-controls__model-selection','3657384gOUjRg','withText','span','AI_CHAT_ENABLE_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','setReasoning','enabled','ck-button__label','24844dJjZub','fire','clear','4673268scBUwW','set','modelSelectorVisible','activeModelName','log','tooltip','menuitemradio','ck-ai-chat-controls-button','label','AI_CHAT_DISABLE_WEB_SEARCH'];_0x4ed7=function(){return _0x6da2ee;};return _0x4ed7();}import{addListToDropdown as _0x492efe,ButtonLabelView as _0x52aa41,ButtonView as _0x3bae8a,createDropdown as _0x913079,IconView as _0x58437a,UIModel as _0x2ab8ec,View as _0x4c3299}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b7772}from'../../../aicore/utils/common-translations.js';function _0x466d(_0x298772,_0x3c6045){const _0x4ed7b9=_0x4ed7();return _0x466d=function(_0x466d8f,_0x553a5c){_0x466d8f=_0x466d8f-0xcb;let _0x43206d=_0x4ed7b9[_0x466d8f];return _0x43206d;},_0x466d(_0x298772,_0x3c6045);}const yo=_0x40fa94(0x129),Uo=_0x40fa94(0xdc),Go=_0x40fa94(0x115),jo=_0x40fa94(0x12b),Yo=_0x40fa94(0xfa),qo=_0x40fa94(0x10b),zo=_0x40fa94(0x11f),Fo='n';export class AIChatPromptCapabilitiesView extends _0x4c3299{[_0x40fa94(0xea)];[_0x40fa94(0xfe)];[_0x40fa94(0xf3)];[_0x40fa94(0xe4)];[_0x40fa94(0xf0)];[_0x40fa94(0x119)];constructor(_0x5667d9){const _0x1bc049=_0x40fa94;super(_0x5667d9),this[_0x1bc049(0xd6)](_0x1bc049(0xfd),!0x1),this[_0x1bc049(0xd6)](_0x1bc049(0x127),!0x1),this[_0x1bc049(0xd6)](_0x1bc049(0xd7),!0x0),this[_0x1bc049(0xd6)](_0x1bc049(0xe6),!0x0),this[_0x1bc049(0xd6)](_0x1bc049(0xfc),null),this[_0x1bc049(0xd6)](_0x1bc049(0xd8),null),this[_0x1bc049(0xe4)]=this[_0x1bc049(0xed)](),this[_0x1bc049(0x119)]=this[_0x1bc049(0x10c)](),this[_0x1bc049(0xea)]=this[_0x1bc049(0x113)](),this[_0x1bc049(0xfe)]=this[_0x1bc049(0x11b)](),this[_0x1bc049(0xf3)]=this[_0x1bc049(0x11c)](),this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0x112)](_0x1bc049(0x108))['to'](this,_0x1bc049(0xd7),_0x28751e=>_0x28751e),this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0xe6),_0xe7f657=>_0xe7f657?this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0xdd)]:_0x3b7772(this[_0x1bc049(0xe1)],_0x1bc049(0x116))),this[_0x1bc049(0xe4)][_0x1bc049(0x112)](_0x1bc049(0x101))['to'](this,_0x1bc049(0xe6),_0x304a57=>_0x304a57),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0x11e))['to'](this,_0x1bc049(0xfd),_0x4ac01d=>_0x4ac01d),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0xcb))['to'](this,_0x1bc049(0xd7),_0x40afd5=>!_0x40afd5),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0xfd),_0x46f7d3=>_0x3b7772(this[_0x1bc049(0xe1)],_0x46f7d3?_0x1bc049(0xde):_0x1bc049(0x123))),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0x11e))['to'](this,_0x1bc049(0x127),_0x5842d9=>_0x5842d9),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0xcb))['to'](this,_0x1bc049(0xd7),_0x5f0939=>!_0x5f0939),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0x127),_0x72cc3b=>_0x3b7772(this[_0x1bc049(0xe1)],_0x72cc3b?_0x1bc049(0x111):_0x1bc049(0xcd))),this[_0x1bc049(0xee)]({'tag':_0x1bc049(0x122),'attributes':{'class':[yo]},'children':[this[_0x1bc049(0xe4)],this[_0x1bc049(0x119)],this[_0x1bc049(0xea)],this[_0x1bc049(0xfe)],this[_0x1bc049(0xf3)]]}),this[_0x1bc049(0xf0)]=new _0x20e192(),_0x492efe(this[_0x1bc049(0xe4)],this[_0x1bc049(0xf0)]);}[_0x40fa94(0x10d)](_0x21da8a,_0x44c964){const _0x5688da=_0x40fa94;if(this[_0x5688da(0xd6)](_0x5688da(0xd7),!(_0x44c964&&_0x21da8a[_0x5688da(0xf2)]<=0x1)),this[_0x5688da(0xf0)][_0x5688da(0xd4)](),_0x21da8a?.[_0x5688da(0xf2)])for(const _0x281f35 of _0x21da8a){const _0x33fda5=new _0x2ab8ec({'label':_0x281f35[_0x5688da(0x11a)],'withText':!0x0,'role':_0x5688da(0xdb),'id':_0x281f35['id'],'model':_0x281f35});_0x33fda5[_0x5688da(0x112)](_0x5688da(0x11e))['to'](this,_0x5688da(0xfc),_0x23f744=>_0x23f744===_0x281f35['id']),this[_0x5688da(0xf0)][_0x5688da(0x106)]({'type':_0x5688da(0x125),'model':_0x33fda5,'labelView':new Us(this[_0x5688da(0xe1)],_0x281f35)});}}[_0x40fa94(0x10f)](_0x2e4a18){const _0x448237=_0x40fa94;this[_0x448237(0xd6)](_0x448237(0xfd),_0x2e4a18);}[_0x40fa94(0xcf)](_0xd85c84){const _0x10952b=_0x40fa94;this[_0x10952b(0xd6)](_0x10952b(0x127),_0xd85c84);}[_0x40fa94(0xeb)](_0x20ead0){const _0x5e8ee2=_0x40fa94;if(!_0x20ead0)return;this[_0x5e8ee2(0xfc)]=_0x20ead0['id'],this[_0x5e8ee2(0xd8)]=_0x20ead0[_0x5e8ee2(0x11a)]||_0x20ead0['id'],this[_0x5e8ee2(0xe4)][_0x5e8ee2(0xf6)][_0x5e8ee2(0xd6)](_0x5e8ee2(0xdd),_0x20ead0[_0x5e8ee2(0x11a)]),this[_0x5e8ee2(0xe4)][_0x5e8ee2(0xf6)][_0x5e8ee2(0xd6)](_0x5e8ee2(0xda),_0x20ead0[_0x5e8ee2(0x11a)]);const _0x85a768=_0x20ead0[_0x5e8ee2(0xf5)][_0x5e8ee2(0xec)]?.[_0x5e8ee2(0xd0)]??!0x1;this[_0x5e8ee2(0xd6)](_0x5e8ee2(0xfd),!0x1),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x11e),!0x1),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x101),_0x85a768),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x108),_0x85a768);const _0x219608=_0x20ead0[_0x5e8ee2(0xf5)][_0x5e8ee2(0xdf)]?.[_0x5e8ee2(0xd0)]??!0x1;this[_0x5e8ee2(0xd6)](_0x5e8ee2(0x127),!0x1),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x11e),!0x1),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x101),_0x219608),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x108),_0x219608);}[_0x40fa94(0x114)](){const _0xc53ab3=_0x40fa94;this[_0xc53ab3(0xd6)](_0xc53ab3(0xe6),!0x0),this[_0xc53ab3(0xd6)](_0xc53ab3(0xd7),!0x0);}[_0x40fa94(0xf4)](_0x589a3b){const _0x18f5a9=_0x40fa94;this[_0x18f5a9(0xd6)](_0x18f5a9(0xe6),!0x1),_0x589a3b&&this[_0x18f5a9(0xd6)](_0x18f5a9(0xd7),!0x1);}[_0x40fa94(0x113)](){const _0x4be035=_0x40fa94,_0xcbfc39=new _0x3bae8a();return _0xcbfc39[_0x4be035(0xd6)]({'label':_0x3b7772(this[_0x4be035(0xe1)],_0x4be035(0x103)),'icon':_0x294338,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0xcbfc39['on'](_0x4be035(0xf9),()=>{const _0x2c80a7=_0x4be035;this[_0x2c80a7(0xd3)](_0x2c80a7(0x124));}),_0xcbfc39;}[_0x40fa94(0x11b)](){const _0x5ec8a8=_0x40fa94,_0x813eed=new _0x3bae8a();return _0x813eed[_0x5ec8a8(0xd6)]({'label':_0x3b7772(this[_0x5ec8a8(0xe1)],_0x5ec8a8(0xf8)),'icon':_0x16fd0e,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x813eed['on'](_0x5ec8a8(0xf9),()=>{const _0x3bf48e=_0x5ec8a8;this[_0x3bf48e(0xd3)](_0x3bf48e(0x102));}),_0x813eed;}[_0x40fa94(0x11c)](){const _0x3480be=_0x40fa94,_0x4ff296=new _0x3bae8a();return _0x4ff296[_0x3480be(0xd6)]({'label':_0x3b7772(this[_0x3480be(0xe1)],_0x3480be(0x121)),'icon':_0x34c174,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x3b7772(this[_0x3480be(0xe1)],_0x3480be(0x121)),'tooltipPosition':Fo}),_0x4ff296[_0x3480be(0x128)]({'attributes':{'class':[Go]}}),_0x4ff296['on'](_0x3480be(0xf9),()=>{const _0x320d92=_0x3480be;console[_0x320d92(0xd9)](_0x320d92(0xce)),alert(_0x320d92(0xce));}),_0x4ff296;}[_0x40fa94(0xed)](){const _0x2c8c98=_0x40fa94,_0x391a61=_0x913079(this[_0x2c8c98(0xe1)]);return _0x391a61[_0x2c8c98(0xd6)]({'panelPosition':'ne','class':[jo]}),_0x391a61[_0x2c8c98(0xf6)][_0x2c8c98(0xd6)]({'label':_0x3b7772(this[_0x2c8c98(0xe1)],_0x2c8c98(0x11d)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x2c8c98(0x126)](_0x391a61,_0x2c8c98(0xf9),_0x2fbdbc=>{const _0x241c99=_0x2c8c98;this[_0x241c99(0xd3)](_0x241c99(0x100),_0x2fbdbc[_0x241c99(0xfb)][_0x241c99(0x104)]);}),_0x391a61;}[_0x40fa94(0x10c)](){const _0x4480fe=_0x40fa94,_0x3aa7eb=new Jo(this[_0x4480fe(0xe1)]);return _0x3aa7eb[_0x4480fe(0x112)](_0x4480fe(0x117))['to'](this,_0x4480fe(0xd8),_0x2b33d1=>_0x2b33d1??''),_0x3aa7eb[_0x4480fe(0x112)](_0x4480fe(0x108))['to'](this,_0x4480fe(0xd7),this,_0x4480fe(0xd8),(_0x87a588,_0x21f6c2)=>!_0x87a588&&!_0x21f6c2?.[_0x4480fe(0x118)]()[_0x4480fe(0xe0)](_0x4480fe(0xf7))),_0x3aa7eb;}}class Us extends _0x52aa41{constructor(_0x32ab17,_0x276cfe){const _0x28026d=_0x40fa94;super();const _0x2a3632=this[_0x28026d(0x10a)],_0x5e0fde=this[_0x28026d(0x10e)]();this[_0x28026d(0xee)]({'tag':_0x28026d(0x122),'attributes':{'class':['ck',_0x28026d(0xd1)],'style':_0x2a3632['to'](_0x28026d(0xf1)),'id':_0x2a3632['to']('id')},'children':[{'tag':_0x28026d(0x122),'attributes':{'class':[Yo]},'children':[{'text':_0x2a3632['to'](_0x28026d(0x117))}]},{'tag':_0x28026d(0x122),'attributes':{'class':[qo]},'children':[{'tag':_0x28026d(0xcc),'children':[{'text':_0x276cfe[_0x28026d(0xff)]}]}]},{'tag':_0x28026d(0x122),'attributes':{'class':[zo]},'children':_0x5e0fde}]}),_0x5e0fde[_0x28026d(0x110)](this[_0x28026d(0xe8)](_0x32ab17,_0x294338,_0x28026d(0x103),_0x276cfe[_0x28026d(0xf5)][_0x28026d(0xec)]?.[_0x28026d(0xd0)]??!0x1)),_0x5e0fde[_0x28026d(0x110)](this[_0x28026d(0xe8)](_0x32ab17,_0x16fd0e,_0x28026d(0xf8),_0x276cfe[_0x28026d(0xf5)][_0x28026d(0xdf)]?.[_0x28026d(0xd0)]??!0x1));}[_0x40fa94(0xe8)](_0x575fb7,_0x4deff5,_0x91c535,_0x12d71a){const _0x4ba3db=_0x40fa94,_0x2321cd=new _0x58437a();_0x2321cd[_0x4ba3db(0xe7)]=_0x4deff5;const _0x7d130f=new _0x4c3299(_0x575fb7);_0x7d130f[_0x4ba3db(0xee)]({'tag':_0x4ba3db(0xcc),'children':[{'text':_0x3b7772(_0x575fb7,_0x91c535)+':\x20'}]});const _0x501d5b=new _0x4c3299(_0x575fb7);return _0x501d5b[_0x4ba3db(0xee)]({'tag':_0x4ba3db(0xcc),'children':[{'text':_0x3b7772(_0x575fb7,_0x12d71a?_0x4ba3db(0x120):_0x4ba3db(0xe9))}]}),[_0x2321cd,_0x7d130f,_0x501d5b];}}class Jo extends _0x4c3299{constructor(_0x572858){const _0x591d1e=_0x40fa94;super(_0x572858),this[_0x591d1e(0xd6)](_0x591d1e(0x117),void 0x0),this[_0x591d1e(0xd6)](_0x591d1e(0x108),!0x0);const _0x1df650=this[_0x591d1e(0x10a)];this[_0x591d1e(0xee)]({'tag':_0x591d1e(0xcc),'attributes':{'class':['ck',_0x591d1e(0x109),_0x1df650['if'](_0x591d1e(0x108),_0x591d1e(0xe2),_0x34b86c=>!_0x34b86c)]},'children':[{'text':_0x1df650['to'](_0x591d1e(0x117))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xef6b14=_0x436e;function _0x436e(_0x1f6e21,_0x2136e0){const _0x2bd206=_0x2bd2();return _0x436e=function(_0x436ec4,_0x2e5303){_0x436ec4=_0x436ec4-0x1ca;let _0x2cc643=_0x2bd206[_0x436ec4];return _0x2cc643;},_0x436e(_0x1f6e21,_0x2136e0);}(function(_0x10afd5,_0x1c2281){const _0x4c8fdb=_0x436e,_0x460229=_0x10afd5();while(!![]){try{const _0x4cd956=parseInt(_0x4c8fdb(0x1eb))/0x1*(parseInt(_0x4c8fdb(0x1d6))/0x2)+-parseInt(_0x4c8fdb(0x1f5))/0x3*(parseInt(_0x4c8fdb(0x1ef))/0x4)+parseInt(_0x4c8fdb(0x204))/0x5+-parseInt(_0x4c8fdb(0x1cd))/0x6*(-parseInt(_0x4c8fdb(0x1e0))/0x7)+-parseInt(_0x4c8fdb(0x1fa))/0x8+parseInt(_0x4c8fdb(0x1f4))/0x9+parseInt(_0x4c8fdb(0x1f8))/0xa*(parseInt(_0x4c8fdb(0x1fd))/0xb);if(_0x4cd956===_0x1c2281)break;else _0x460229['push'](_0x460229['shift']());}catch(_0x10d093){_0x460229['push'](_0x460229['shift']());}}}(_0x2bd2,0xe92f2));import{IconSubmit as _0x2d0e00}from'ckeditor5/src/icons.js';import{ButtonView as _0x4e7725,AutocompleteView as _0x22b7e6,createLabeledTextarea as _0x10406a}from'ckeditor5/src/ui.js';import{global as _0xcd581d,isVisible as _0x4615be,Rect as _0x93c2b6,ResizeObserver as _0x366a7b}from'ckeditor5/src/utils.js';import{getTranslation as _0x38d85c}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x10b965}from'./aichatpromptsuggestionslistview.js';import{escape as _0xf69b8c}from'es-toolkit/compat';function _0x2bd2(){const _0x203c21=['style','focusableChildren','maxRows','uiLanguageDirection','execute','37ArrPpk','fieldView','_setUpAddContextButtonPositioning','rtl','283796gSTIJk','setIsUploadInProgress','left','element','queryView','4762737bfZART','27QLpgyv','destroy','excludeScrollbarsAndBorders','470nZyriM','right','10782912DJjJfV','sendUserMessage','hasError','66044NjfDmm','trim','fieldWrapperChildren','px\x20-\x20var(--ck-spacing-tiny))','ck-ai-chat__prompt-input','submitButtonView','isUploadInProgress','2219145eoOpHq','minRows','extendTemplate','enter','placeholder','bind','AI_CHAT_PROMPT_EMPTY_ERROR','render','MAX_ROWS','MIN_ROWS','requestAnimationFrame','732ZOPEio','locale','keystrokes','ck-ai-chat__prompt-submit-button','width','target','reset','isEnabled','value','68790jMhcYB','add','setPlaceholderText','calc(','_createSubmitButton','_addContextButtonView','update','set','AI_CHAT_LABEL_SUBMIT','fire','23737liYKrI','isEmpty','window','_queryViewResizeObserver','submit','errorText'];_0x2bd2=function(){return _0x203c21;};return _0x2bd2();}export class AIChatPromptInputView extends _0x22b7e6{[_0xef6b14(0x202)];static [_0xef6b14(0x1cb)]=0x1;static [_0xef6b14(0x1ca)]=0xc;[_0xef6b14(0x1db)];[_0xef6b14(0x1e3)];constructor(_0x1a7b78,_0xaac3d2){const _0x301cc1=_0xef6b14;super(_0x1a7b78,{'queryView':{'label':'','creator':_0x10406a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x10b965(_0x1a7b78),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x301cc1(0x1dd)](_0x301cc1(0x1e1),!0x0),this[_0x301cc1(0x1dd)](_0x301cc1(0x203),!0x1),this[_0x301cc1(0x1db)]=_0xaac3d2,this[_0x301cc1(0x1e3)]=null,this[_0x301cc1(0x1f3)][_0x301cc1(0x1ec)][_0x301cc1(0x205)]=AIChatPromptInputView[_0x301cc1(0x1cb)],this[_0x301cc1(0x1f3)][_0x301cc1(0x1ec)][_0x301cc1(0x1e8)]=AIChatPromptInputView[_0x301cc1(0x1ca)],this[_0x301cc1(0x1f3)][_0x301cc1(0x1ff)][_0x301cc1(0x1d7)](this[_0x301cc1(0x1db)]),this[_0x301cc1(0x1ed)](),this[_0x301cc1(0x206)]({'attributes':{'class':['ck',_0x301cc1(0x201)]}}),this[_0x301cc1(0x202)]=this[_0x301cc1(0x1da)](),this[_0x301cc1(0x202)][_0x301cc1(0x209)](_0x301cc1(0x1d4))['to'](this,_0x301cc1(0x1e1),this,_0x301cc1(0x203),(_0x127f11,_0x4e31d6)=>!_0x127f11&&!_0x4e31d6),this[_0x301cc1(0x1e7)][_0x301cc1(0x1d7)](this[_0x301cc1(0x202)]);}[_0xef6b14(0x20b)](){const _0xca856f=_0xef6b14;super[_0xca856f(0x20b)](),this[_0xca856f(0x1f3)][_0xca856f(0x1ff)][_0xca856f(0x1d7)](this[_0xca856f(0x202)]),this[_0xca856f(0x1cf)][_0xca856f(0x1dd)](_0xca856f(0x207),(_0x2ea0bf,_0x4403ad)=>{const _0x3efb7e=_0xca856f;this[_0x3efb7e(0x203)]||this[_0x3efb7e(0x1e1)]||_0x2ea0bf[_0x3efb7e(0x1d2)]==this[_0x3efb7e(0x1f3)][_0x3efb7e(0x1ec)][_0x3efb7e(0x1f2)]&&(this[_0x3efb7e(0x1e4)](),_0x4403ad());}),this[_0xca856f(0x1f3)][_0xca856f(0x1ec)]['on'](_0xca856f(0x1dc),()=>{const _0x11a90c=_0xca856f;this[_0x11a90c(0x1e1)]=''===this[_0x11a90c(0x1f3)][_0x11a90c(0x1ec)][_0x11a90c(0x1f2)][_0x11a90c(0x1d5)]?.[_0x11a90c(0x1fe)]();});}[_0xef6b14(0x1f6)](){const _0x564ce0=_0xef6b14;super[_0x564ce0(0x1f6)](),this[_0x564ce0(0x1e3)]&&this[_0x564ce0(0x1e3)][_0x564ce0(0x1f6)]();}[_0xef6b14(0x1e4)](){const _0x5cec03=_0xef6b14,_0x168076=this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1f2)][_0x5cec03(0x1d5)]?.[_0x5cec03(0x1fe)]();if(!_0x168076)return this[_0x5cec03(0x1f3)][_0x5cec03(0x1e5)]=_0x38d85c(this[_0x5cec03(0x1ce)],_0x5cec03(0x20a)),void(this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1fc)]=!0x0);this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1fc)]=!0x1;const _0x44828a=_0xf69b8c(_0x168076);this[_0x5cec03(0x1df)](_0x5cec03(0x1fb),_0x44828a),this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1d3)]();}[_0xef6b14(0x1d8)](_0x2528c0){const _0x462867=_0xef6b14;this[_0x462867(0x1f3)][_0x462867(0x1ec)][_0x462867(0x1dd)](_0x462867(0x208),_0x2528c0);}[_0xef6b14(0x1da)](){const _0x2eaf97=_0xef6b14,_0x14c65f=new _0x4e7725(this[_0x2eaf97(0x1ce)]);return _0x14c65f[_0x2eaf97(0x1dd)]({'icon':_0x2d0e00,'label':_0x38d85c(this[_0x2eaf97(0x1ce)],_0x2eaf97(0x1de)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2eaf97(0x1d0),'isEnabled':!0x1}),_0x14c65f['on'](_0x2eaf97(0x1ea),()=>{const _0x149a37=_0x2eaf97;this[_0x149a37(0x1e4)]();}),_0x14c65f;}[_0xef6b14(0x1f0)](_0x65f1ca){const _0x232c28=_0xef6b14;this[_0x232c28(0x203)]=_0x65f1ca;}[_0xef6b14(0x1ed)](){const _0x37a6da=_0xef6b14,_0x47d7ae=this[_0x37a6da(0x1ce)],_0x457f44=()=>{const _0x1ccaac=_0x37a6da;_0xcd581d[_0x1ccaac(0x1e2)][_0x1ccaac(0x1cc)](()=>{const _0x1e9e24=_0x1ccaac;if(_0x4615be(this[_0x1e9e24(0x1f2)])){const _0x415a7f=new _0x93c2b6(this[_0x1e9e24(0x1f3)][_0x1e9e24(0x1ec)][_0x1e9e24(0x1f2)]),_0x4c5bfb=new _0x93c2b6(this[_0x1e9e24(0x1db)][_0x1e9e24(0x1f2)]),_0x1b0549=_0x415a7f[_0x1e9e24(0x1d1)],_0x337a1a=_0x1e9e24(0x1ee)===_0x47d7ae[_0x1e9e24(0x1e9)]?_0x1e9e24(0x1f9):_0x1e9e24(0x1f1);_0x415a7f[_0x1e9e24(0x1f7)]();const _0x323043=_0x1b0549-_0x415a7f[_0x1e9e24(0x1d1)]+0x1;this[_0x1e9e24(0x1db)][_0x1e9e24(0x1f2)][_0x1e9e24(0x1e6)][_0x337a1a]=_0x1e9e24(0x1d9)+(_0x1b0549-_0x4c5bfb[_0x1e9e24(0x1d1)]-_0x323043)+_0x1e9e24(0x200);}});};this[_0x37a6da(0x1f3)][_0x37a6da(0x1ec)]['on'](_0x37a6da(0x1dc),_0x457f44),this['on'](_0x37a6da(0x20b),()=>{const _0x488f78=_0x37a6da;_0x457f44(),this[_0x488f78(0x1e3)]=new _0x366a7b(this[_0x488f78(0x1f3)][_0x488f78(0x1ec)][_0x488f78(0x1f2)],()=>{_0x457f44();});});}}
23
+ const _0x5bf497=_0x2cbb;function _0x4ccc(){const _0x3cfc99=['374lmpTke','8dIEwNQ','isUploadInProgress','add','minRows','target','3295gVEdEi','update','destroy','submit','focusableChildren','left','rtl','uiLanguageDirection','_queryViewResizeObserver','placeholder','submitButtonView','enter','MAX_ROWS','fieldView','setIsUploadInProgress','3431043LnKqez','isEmpty','2845533puPhEN','locale','requestAnimationFrame','excludeScrollbarsAndBorders','element','ck-ai-chat__prompt-submit-button','488pdCDLL','calc(','2875974mLvrLv','fire','render','value','style','_setUpAddContextButtonPositioning','set','_addContextButtonView','3317PnyUwT','reset','sendUserMessage','isEnabled','bind','3778137vUZSlT','errorText','queryView','MIN_ROWS','trim','px\x20-\x20var(--ck-spacing-tiny))','extendTemplate','hasError','AI_CHAT_LABEL_SUBMIT','window','ck-ai-chat__prompt-input','fieldWrapperChildren','_createSubmitButton','right','width','16189360bgTXmF','execute','keystrokes','maxRows','AI_CHAT_PROMPT_EMPTY_ERROR','setPlaceholderText'];_0x4ccc=function(){return _0x3cfc99;};return _0x4ccc();}function _0x2cbb(_0x8e85f2,_0x43e484){const _0x4cccf9=_0x4ccc();return _0x2cbb=function(_0x2cbb17,_0x53995f){_0x2cbb17=_0x2cbb17-0x145;let _0x284282=_0x4cccf9[_0x2cbb17];return _0x284282;},_0x2cbb(_0x8e85f2,_0x43e484);}(function(_0x57482b,_0x22c283){const _0x4ba31d=_0x2cbb,_0x196a4f=_0x57482b();while(!![]){try{const _0x27880b=-parseInt(_0x4ba31d(0x16d))/0x1*(parseInt(_0x4ba31d(0x146))/0x2)+-parseInt(_0x4ba31d(0x15d))/0x3+parseInt(_0x4ba31d(0x163))/0x4*(-parseInt(_0x4ba31d(0x14c))/0x5)+parseInt(_0x4ba31d(0x165))/0x6+parseInt(_0x4ba31d(0x15b))/0x7+-parseInt(_0x4ba31d(0x147))/0x8*(parseInt(_0x4ba31d(0x172))/0x9)+parseInt(_0x4ba31d(0x181))/0xa;if(_0x27880b===_0x22c283)break;else _0x196a4f['push'](_0x196a4f['shift']());}catch(_0x4fc523){_0x196a4f['push'](_0x196a4f['shift']());}}}(_0x4ccc,0x7ed09));import{IconSubmit as _0x520e82}from'ckeditor5/src/icons.js';import{ButtonView as _0x382d99,AutocompleteView as _0x96fa83,createLabeledTextarea as _0x5e046a}from'ckeditor5/src/ui.js';import{global as _0x122af6,isVisible as _0x156477,Rect as _0x12727d,ResizeObserver as _0x2aaca3}from'ckeditor5/src/utils.js';import{getTranslation as _0x3de0fc}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x3ae167}from'./aichatpromptsuggestionslistview.js';import{escape as _0xd018c0}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x96fa83{[_0x5bf497(0x156)];static [_0x5bf497(0x175)]=0x1;static [_0x5bf497(0x158)]=0xc;[_0x5bf497(0x16c)];[_0x5bf497(0x154)];constructor(_0x4b0d34,_0x45d5db){const _0x1dc6b7=_0x5bf497;super(_0x4b0d34,{'queryView':{'label':'','creator':_0x5e046a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3ae167(_0x4b0d34),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1dc6b7(0x16b)](_0x1dc6b7(0x15c),!0x0),this[_0x1dc6b7(0x16b)](_0x1dc6b7(0x148),!0x1),this[_0x1dc6b7(0x16c)]=_0x45d5db,this[_0x1dc6b7(0x154)]=null,this[_0x1dc6b7(0x174)][_0x1dc6b7(0x159)][_0x1dc6b7(0x14a)]=AIChatPromptInputView[_0x1dc6b7(0x175)],this[_0x1dc6b7(0x174)][_0x1dc6b7(0x159)][_0x1dc6b7(0x184)]=AIChatPromptInputView[_0x1dc6b7(0x158)],this[_0x1dc6b7(0x174)][_0x1dc6b7(0x17d)][_0x1dc6b7(0x149)](this[_0x1dc6b7(0x16c)]),this[_0x1dc6b7(0x16a)](),this[_0x1dc6b7(0x178)]({'attributes':{'class':['ck',_0x1dc6b7(0x17c)]}}),this[_0x1dc6b7(0x156)]=this[_0x1dc6b7(0x17e)](),this[_0x1dc6b7(0x156)][_0x1dc6b7(0x171)](_0x1dc6b7(0x170))['to'](this,_0x1dc6b7(0x15c),this,_0x1dc6b7(0x148),(_0x3a7104,_0x5471d8)=>!_0x3a7104&&!_0x5471d8),this[_0x1dc6b7(0x150)][_0x1dc6b7(0x149)](this[_0x1dc6b7(0x156)]);}[_0x5bf497(0x167)](){const _0x59d26f=_0x5bf497;super[_0x59d26f(0x167)](),this[_0x59d26f(0x174)][_0x59d26f(0x17d)][_0x59d26f(0x149)](this[_0x59d26f(0x156)]),this[_0x59d26f(0x183)][_0x59d26f(0x16b)](_0x59d26f(0x157),(_0x281c76,_0x53bda7)=>{const _0x577b71=_0x59d26f;this[_0x577b71(0x148)]||this[_0x577b71(0x15c)]||_0x281c76[_0x577b71(0x14b)]==this[_0x577b71(0x174)][_0x577b71(0x159)][_0x577b71(0x161)]&&(this[_0x577b71(0x14f)](),_0x53bda7());}),this[_0x59d26f(0x174)][_0x59d26f(0x159)]['on'](_0x59d26f(0x14d),()=>{const _0x4857e6=_0x59d26f;this[_0x4857e6(0x15c)]=''===this[_0x4857e6(0x174)][_0x4857e6(0x159)][_0x4857e6(0x161)][_0x4857e6(0x168)]?.[_0x4857e6(0x176)]();});}[_0x5bf497(0x14e)](){const _0x2b42dd=_0x5bf497;super[_0x2b42dd(0x14e)](),this[_0x2b42dd(0x154)]&&this[_0x2b42dd(0x154)][_0x2b42dd(0x14e)]();}[_0x5bf497(0x14f)](){const _0x2b97f3=_0x5bf497,_0x2b3c7f=this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x161)][_0x2b97f3(0x168)]?.[_0x2b97f3(0x176)]();if(!_0x2b3c7f)return this[_0x2b97f3(0x174)][_0x2b97f3(0x173)]=_0x3de0fc(this[_0x2b97f3(0x15e)],_0x2b97f3(0x185)),void(this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x179)]=!0x0);this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x179)]=!0x1;const _0x1154df=_0xd018c0(_0x2b3c7f);this[_0x2b97f3(0x166)](_0x2b97f3(0x16f),_0x1154df),this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x16e)]();}[_0x5bf497(0x145)](_0x47186b){const _0x17e933=_0x5bf497;this[_0x17e933(0x174)][_0x17e933(0x159)][_0x17e933(0x16b)](_0x17e933(0x155),_0x47186b);}[_0x5bf497(0x17e)](){const _0x2536b8=_0x5bf497,_0x14b2e6=new _0x382d99(this[_0x2536b8(0x15e)]);return _0x14b2e6[_0x2536b8(0x16b)]({'icon':_0x520e82,'label':_0x3de0fc(this[_0x2536b8(0x15e)],_0x2536b8(0x17a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2536b8(0x162),'isEnabled':!0x1}),_0x14b2e6['on'](_0x2536b8(0x182),()=>{const _0x1a4183=_0x2536b8;this[_0x1a4183(0x14f)]();}),_0x14b2e6;}[_0x5bf497(0x15a)](_0x6efc33){const _0x208151=_0x5bf497;this[_0x208151(0x148)]=_0x6efc33;}[_0x5bf497(0x16a)](){const _0xf411fe=_0x5bf497,_0x27930b=this[_0xf411fe(0x15e)],_0x1363ea=()=>{const _0x46aedd=_0xf411fe;_0x122af6[_0x46aedd(0x17b)][_0x46aedd(0x15f)](()=>{const _0x11be10=_0x46aedd;if(_0x156477(this[_0x11be10(0x161)])){const _0x3fee49=new _0x12727d(this[_0x11be10(0x174)][_0x11be10(0x159)][_0x11be10(0x161)]),_0x5f5a7a=new _0x12727d(this[_0x11be10(0x16c)][_0x11be10(0x161)]),_0x2fcd50=_0x3fee49[_0x11be10(0x180)],_0x8bc40e=_0x11be10(0x152)===_0x27930b[_0x11be10(0x153)]?_0x11be10(0x17f):_0x11be10(0x151);_0x3fee49[_0x11be10(0x160)]();const _0x26a4b8=_0x2fcd50-_0x3fee49[_0x11be10(0x180)]+0x1;this[_0x11be10(0x16c)][_0x11be10(0x161)][_0x11be10(0x169)][_0x8bc40e]=_0x11be10(0x164)+(_0x2fcd50-_0x5f5a7a[_0x11be10(0x180)]-_0x26a4b8)+_0x11be10(0x177);}});};this[_0xf411fe(0x174)][_0xf411fe(0x159)]['on'](_0xf411fe(0x14d),_0x1363ea),this['on'](_0xf411fe(0x167),()=>{const _0x567eb2=_0xf411fe;_0x1363ea(),this[_0x567eb2(0x154)]=new _0x2aaca3(this[_0x567eb2(0x174)][_0x567eb2(0x159)][_0x567eb2(0x161)],()=>{_0x1363ea();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1672cc=_0xd13b;function _0xd13b(_0x5f0822,_0x3df0d7){const _0x5c0c41=_0x5c0c();return _0xd13b=function(_0xd13ba1,_0x3ff8ad){_0xd13ba1=_0xd13ba1-0x183;let _0x415c3b=_0x5c0c41[_0xd13ba1];return _0x415c3b;},_0xd13b(_0x5f0822,_0x3df0d7);}(function(_0x1c8f0f,_0x26b098){const _0x100e5e=_0xd13b,_0x40f1d4=_0x1c8f0f();while(!![]){try{const _0x2f9f0a=parseInt(_0x100e5e(0x18d))/0x1+parseInt(_0x100e5e(0x187))/0x2*(parseInt(_0x100e5e(0x183))/0x3)+-parseInt(_0x100e5e(0x186))/0x4*(parseInt(_0x100e5e(0x18c))/0x5)+-parseInt(_0x100e5e(0x184))/0x6+parseInt(_0x100e5e(0x189))/0x7+parseInt(_0x100e5e(0x18b))/0x8+-parseInt(_0x100e5e(0x18a))/0x9;if(_0x2f9f0a===_0x26b098)break;else _0x40f1d4['push'](_0x40f1d4['shift']());}catch(_0x22e2bc){_0x40f1d4['push'](_0x40f1d4['shift']());}}}(_0x5c0c,0xd2023));import{ListView as _0x40a19c}from'ckeditor5/src/ui.js';function _0x5c0c(){const _0x5b8968=['689510LZMKjb','filter','4897980rWdCZp','9190452PAYfDg','length','4ZRCDJU','2KyZHJC','items','7343084YjETRB','9230040QxijRL','516624XWoces','91315GCOkGc'];_0x5c0c=function(){return _0x5b8968;};return _0x5c0c();}export class AIChatPromptSuggestionsListView extends _0x40a19c{[_0x1672cc(0x18e)](){const _0x2ecffc=_0x1672cc;let _0x1a768d=0x0;for(const _0x3a84ca of this[_0x2ecffc(0x188)])_0x1a768d+=_0x3a84ca[_0x2ecffc(0x188)][_0x2ecffc(0x185)];return{'resultsCount':_0x1a768d,'totalItemsCount':_0x1a768d};}}
23
+ const _0x4b5b26=_0x5950;(function(_0x394b08,_0x155538){const _0x2e6af9=_0x5950,_0x4c0046=_0x394b08();while(!![]){try{const _0x3981ac=-parseInt(_0x2e6af9(0x8a))/0x1+parseInt(_0x2e6af9(0x8e))/0x2+-parseInt(_0x2e6af9(0x89))/0x3+-parseInt(_0x2e6af9(0x85))/0x4+-parseInt(_0x2e6af9(0x8b))/0x5*(parseInt(_0x2e6af9(0x86))/0x6)+parseInt(_0x2e6af9(0x84))/0x7+parseInt(_0x2e6af9(0x88))/0x8;if(_0x3981ac===_0x155538)break;else _0x4c0046['push'](_0x4c0046['shift']());}catch(_0x4d563b){_0x4c0046['push'](_0x4c0046['shift']());}}}(_0x4d77,0xcefc1));function _0x5950(_0x5ccb47,_0x15f15f){const _0x4d779e=_0x4d77();return _0x5950=function(_0x595058,_0x52b7b1){_0x595058=_0x595058-0x84;let _0x3a1aa6=_0x4d779e[_0x595058];return _0x3a1aa6;},_0x5950(_0x5ccb47,_0x15f15f);}import{ListView as _0x579386}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x579386{[_0x4b5b26(0x87)](){const _0x36bc8b=_0x4b5b26;let _0x173845=0x0;for(const _0x36318e of this[_0x36bc8b(0x8c)])_0x173845+=_0x36318e[_0x36bc8b(0x8c)][_0x36bc8b(0x8d)];return{'resultsCount':_0x173845,'totalItemsCount':_0x173845};}}function _0x4d77(){const _0x4133ac=['11548112sbhMON','2443539UBVKMl','1163447nQmcoP','25NQKhYp','items','length','2385062ZtyoLR','6582282AknPGq','1213648YDcAgN','536628QQkCNQ','filter'];_0x4d77=function(){return _0x4133ac;};return _0x4d77();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5108cc=_0x59cb;function _0x59cb(_0x295055,_0x573266){const _0x12733f=_0x1273();return _0x59cb=function(_0x59cb54,_0x404e90){_0x59cb54=_0x59cb54-0xd5;let _0x1546b0=_0x12733f[_0x59cb54];return _0x1546b0;},_0x59cb(_0x295055,_0x573266);}(function(_0x342a29,_0x377856){const _0x2cc776=_0x59cb,_0x1c096d=_0x342a29();while(!![]){try{const _0x16891b=parseInt(_0x2cc776(0xdb))/0x1+parseInt(_0x2cc776(0xd6))/0x2+-parseInt(_0x2cc776(0xef))/0x3*(parseInt(_0x2cc776(0xda))/0x4)+-parseInt(_0x2cc776(0xd8))/0x5+parseInt(_0x2cc776(0xdc))/0x6*(-parseInt(_0x2cc776(0xe1))/0x7)+parseInt(_0x2cc776(0xe0))/0x8+parseInt(_0x2cc776(0xf5))/0x9*(parseInt(_0x2cc776(0xe4))/0xa);if(_0x16891b===_0x377856)break;else _0x1c096d['push'](_0x1c096d['shift']());}catch(_0x18683e){_0x1c096d['push'](_0x1c096d['shift']());}}}(_0x1273,0x48dc4));import{ListView as _0x58096c}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x3f809d}from'./aichatresourcelistitemview.js';const oc=_0x5108cc(0xd5);export class AIChatContextResourcesListView extends _0x58096c{[_0x5108cc(0xd7)];constructor(_0x3d6d6a,_0x4ed576){const _0x247477=_0x5108cc;super(_0x3d6d6a),this[_0x247477(0xd7)]=_0x4ed576,this[_0x247477(0xf4)]({'attributes':{'class':[oc]}});}[_0x5108cc(0xf3)](_0x21fe29,_0x545528){const _0x39982b=_0x5108cc;this[_0x39982b(0xe2)][_0x39982b(0xe3)]();let _0x122712=_0x21fe29;if(this[_0x39982b(0xd7)][_0x39982b(0xee)]&&_0x545528&&''!==_0x545528[_0x39982b(0xf0)]()){const _0x26ba70=new RegExp(_0x545528[_0x39982b(0xed)](/[.*+?^${}()|[\]\\]/g,_0x39982b(0xe9)),'gi');_0x122712=_0x21fe29[_0x39982b(0xe6)](_0xf1407a=>_0x26ba70[_0x39982b(0xdd)](_0xf1407a[_0x39982b(0xe7)]));}for(const _0x24e391 of _0x122712){const _0x137665=new _0x3f809d(this[_0x39982b(0xf1)],_0x24e391);_0x137665['on'](_0x39982b(0xd9),()=>{const _0x1163d4=_0x39982b;this[_0x1163d4(0xec)](this[_0x1163d4(0xd7)],_0x24e391);}),this[_0x39982b(0xe2)][_0x39982b(0xe5)](_0x137665);}this[_0x39982b(0xd7)][_0x39982b(0xee)]&&this[_0x39982b(0xde)](_0x545528);}[_0x5108cc(0xde)](_0x527a00){const _0x118c61=_0x5108cc;this[_0x118c61(0xd7)][_0x118c61(0xee)]&&this[_0x118c61(0xe2)][_0x118c61(0xf2)](_0x3f8b52=>{const _0x4a6bb0=_0x118c61;_0x3f8b52[_0x4a6bb0(0xde)](_0x527a00);});}[_0x5108cc(0xe8)](_0x5afeba,_0x1d99bd){const _0x5b2636=_0x5108cc;for(const _0x344f8e of this[_0x5b2636(0xe2)]){const _0x5e68bc=_0x344f8e;_0x5e68bc[_0x5b2636(0xdf)]['id']===_0x5afeba&&_0x5e68bc[_0x5b2636(0xe8)](_0x1d99bd);}}[_0x5108cc(0xec)](_0x39b5c5,_0x9c96fa){const _0x30752c=_0x5108cc;this[_0x30752c(0xea)](_0x30752c(0xeb),{'source':_0x39b5c5,'resource':_0x9c96fa});}}function _0x1273(){const _0x68805f=['135hAmFmL','ck-ai-chat-resources__list','602692PPGKbL','_source','2744820wgHpmz','execute','8nBNChS','486367vgdblX','41988mrHsoj','test','highlightText','resource','700568ESGzvQ','483hIjWIE','items','clear','327160UxXZWP','add','filter','label','updateResourceState','\x5c$&','fire','addResourceToContext','_handleResourceSelection','replace','useDefaultFiltering','53643IqJGtJ','trim','locale','forEach','setResources','extendTemplate'];_0x1273=function(){return _0x68805f;};return _0x1273();}
23
+ const _0x2b66b6=_0x35cd;(function(_0x173570,_0x5b8d99){const _0x2d8c08=_0x35cd,_0x48af9c=_0x173570();while(!![]){try{const _0x7271ba=-parseInt(_0x2d8c08(0x153))/0x1*(parseInt(_0x2d8c08(0x141))/0x2)+-parseInt(_0x2d8c08(0x157))/0x3*(parseInt(_0x2d8c08(0x15a))/0x4)+parseInt(_0x2d8c08(0x14c))/0x5*(parseInt(_0x2d8c08(0x14b))/0x6)+-parseInt(_0x2d8c08(0x15d))/0x7+parseInt(_0x2d8c08(0x149))/0x8+-parseInt(_0x2d8c08(0x15f))/0x9+parseInt(_0x2d8c08(0x150))/0xa;if(_0x7271ba===_0x5b8d99)break;else _0x48af9c['push'](_0x48af9c['shift']());}catch(_0x1845f3){_0x48af9c['push'](_0x48af9c['shift']());}}}(_0xd658,0xf12ec));function _0xd658(){const _0x771861=['setResources','113057qoqGWr','filter','resource','label','153117hpDiOK','highlightText','execute','52iljkem','useDefaultFiltering','addResourceToContext','1481200FZYBfC','trim','6069132MpSBBO','replace','test','6NzmsPv','extendTemplate','updateResourceState','items','clear','add','\x5c$&','forEach','15376416ZVhWZH','_handleResourceSelection','7062Dhjhoh','340UzLMHs','_source','ck-ai-chat-resources__list','fire','8744220QkxjQR','locale'];_0xd658=function(){return _0x771861;};return _0xd658();}function _0x35cd(_0x2ef2ae,_0x479bc3){const _0xd6587f=_0xd658();return _0x35cd=function(_0x35cd8b,_0x462d62){_0x35cd8b=_0x35cd8b-0x141;let _0xdda121=_0xd6587f[_0x35cd8b];return _0xdda121;},_0x35cd(_0x2ef2ae,_0x479bc3);}import{ListView as _0x269735}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x132204}from'./aichatresourcelistitemview.js';const oc=_0x2b66b6(0x14e);export class AIChatContextResourcesListView extends _0x269735{[_0x2b66b6(0x14d)];constructor(_0x3f031e,_0x368c5a){const _0x1b7d1a=_0x2b66b6;super(_0x3f031e),this[_0x1b7d1a(0x14d)]=_0x368c5a,this[_0x1b7d1a(0x142)]({'attributes':{'class':[oc]}});}[_0x2b66b6(0x152)](_0x14d98d,_0x1bb8b3){const _0x34febe=_0x2b66b6;this[_0x34febe(0x144)][_0x34febe(0x145)]();let _0x1bcabb=_0x14d98d;if(this[_0x34febe(0x14d)][_0x34febe(0x15b)]&&_0x1bb8b3&&''!==_0x1bb8b3[_0x34febe(0x15e)]()){const _0x3ae36d=new RegExp(_0x1bb8b3[_0x34febe(0x160)](/[.*+?^${}()|[\]\\]/g,_0x34febe(0x147)),'gi');_0x1bcabb=_0x14d98d[_0x34febe(0x154)](_0x119a7d=>_0x3ae36d[_0x34febe(0x161)](_0x119a7d[_0x34febe(0x156)]));}for(const _0x1ad5b8 of _0x1bcabb){const _0x3a8b8f=new _0x132204(this[_0x34febe(0x151)],_0x1ad5b8);_0x3a8b8f['on'](_0x34febe(0x159),()=>{const _0x46b936=_0x34febe;this[_0x46b936(0x14a)](this[_0x46b936(0x14d)],_0x1ad5b8);}),this[_0x34febe(0x144)][_0x34febe(0x146)](_0x3a8b8f);}this[_0x34febe(0x14d)][_0x34febe(0x15b)]&&this[_0x34febe(0x158)](_0x1bb8b3);}[_0x2b66b6(0x158)](_0x822f36){const _0x12d2b8=_0x2b66b6;this[_0x12d2b8(0x14d)][_0x12d2b8(0x15b)]&&this[_0x12d2b8(0x144)][_0x12d2b8(0x148)](_0x1f2427=>{const _0x350503=_0x12d2b8;_0x1f2427[_0x350503(0x158)](_0x822f36);});}[_0x2b66b6(0x143)](_0x339935,_0x1f43b6){const _0x8b15e0=_0x2b66b6;for(const _0x3c0465 of this[_0x8b15e0(0x144)]){const _0x581e93=_0x3c0465;_0x581e93[_0x8b15e0(0x155)]['id']===_0x339935&&_0x581e93[_0x8b15e0(0x143)](_0x1f43b6);}}[_0x2b66b6(0x14a)](_0x445af7,_0x39f3ac){const _0x221763=_0x2b66b6;this[_0x221763(0x14f)](_0x221763(0x15c),{'source':_0x445af7,'resource':_0x39f3ac});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d96bd=_0x3d3a;(function(_0x34b0d6,_0x5677ac){const _0x30f349=_0x3d3a,_0x27fdcb=_0x34b0d6();while(!![]){try{const _0x532409=parseInt(_0x30f349(0xe1))/0x1*(parseInt(_0x30f349(0xee))/0x2)+parseInt(_0x30f349(0xd2))/0x3+parseInt(_0x30f349(0xf5))/0x4+-parseInt(_0x30f349(0xf6))/0x5+parseInt(_0x30f349(0xcf))/0x6+parseInt(_0x30f349(0xd7))/0x7+-parseInt(_0x30f349(0xc9))/0x8;if(_0x532409===_0x5677ac)break;else _0x27fdcb['push'](_0x27fdcb['shift']());}catch(_0x403dd7){_0x27fdcb['push'](_0x27fdcb['shift']());}}}(_0x25bf,0x84a62));import{View as _0x5d83a7,ViewCollection as _0x2be55c}from'ckeditor5/src/ui.js';import{uid as _0x525b85}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x7f846f}from'./aichatcontextresourceslistview.js';function _0x3d3a(_0xe18a8c,_0x1bf264){const _0x25bfe5=_0x25bf();return _0x3d3a=function(_0x3d3a38,_0x4d14e9){_0x3d3a38=_0x3d3a38-0xc9;let _0x4c6af6=_0x25bfe5[_0x3d3a38];return _0x4c6af6;},_0x3d3a(_0xe18a8c,_0x1bf264);}function _0x25bf(){const _0x24136=['div','updateResourceState','setResources','aiChatResources','701393Wclvft','_createSkeletonView','ck-ai-chat-resources','loadResources','has','set','source','_source','_searchSection','_latestLoadResourcesUid','29679TDnnsM','_skeletonLoader','highlightText','_resourcesListView','setTemplate','isLoading','search','getQuery','_createSearchView','bindTemplate','locale','extendTemplate','loadSourceResources','8RfNgLa','render','_createResourcesListView','_searchView','add','useDefaultFiltering','addResourceToContext','407080dovyKR','3383775DBZifO','searchInputVisibleFrom','ck\x20ck-search','3186560DHFLLn','_searchInputVisibleFrom','ck-hidden','length','delegate','_createSearchSection','6478512PVqElN','children','fire','653904gfjQWR'];_0x25bf=function(){return _0x24136;};return _0x25bf();}import{AIChatContextResourcesSearchInputView as _0x21748e}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x48e5b9,SKELETON_DEFINITIONS as _0x4d2af1}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x5d83a7{[_0x1d96bd(0xf1)];[_0x1d96bd(0xdf)];[_0x1d96bd(0xca)];[_0x1d96bd(0xe4)];[_0x1d96bd(0xe2)];[_0x1d96bd(0xde)];[_0x1d96bd(0xd0)];[_0x1d96bd(0xe0)]=null;constructor(_0x143f4e,_0x1fa05c){const _0x599efd=_0x1d96bd;super(_0x143f4e),this[_0x599efd(0xde)]=_0x1fa05c[_0x599efd(0xdd)],this[_0x599efd(0xca)]=_0x1fa05c[_0x599efd(0xf7)]??0x7,this[_0x599efd(0xdc)](_0x599efd(0xe6),!0x0),this[_0x599efd(0xf1)]=this[_0x599efd(0xe9)](),this[_0x599efd(0xdf)]=this[_0x599efd(0xce)](),this[_0x599efd(0xe4)]=this[_0x599efd(0xf0)](),this[_0x599efd(0xe2)]=this[_0x599efd(0xd8)](),this[_0x599efd(0xd0)]=new _0x2be55c([this[_0x599efd(0xe2)],this[_0x599efd(0xe4)]]),this[_0x599efd(0xe5)]({'tag':_0x599efd(0xd3),'attributes':{'class':_0x599efd(0xd9)},'children':this[_0x599efd(0xd0)]});}[_0x1d96bd(0xe9)](){const _0x2050ae=_0x1d96bd;return new _0x21748e(this[_0x2050ae(0xeb)]);}[_0x1d96bd(0xce)](){const _0x1185ae=_0x1d96bd,_0x225e7a=new _0x5d83a7(this[_0x1185ae(0xeb)]);return _0x225e7a[_0x1185ae(0xe5)]({'tag':_0x1185ae(0xd3),'attributes':{'class':_0x1185ae(0xf8)},'children':[this[_0x1185ae(0xf1)]]}),this[_0x1185ae(0xf1)]['on'](_0x1185ae(0xe7),(_0x438914,_0xe91dc)=>{const _0x124c58=_0x1185ae;this[_0x124c58(0xda)](_0xe91dc),this[_0x124c58(0xde)][_0x124c58(0xf3)]&&this[_0x124c58(0xe4)][_0x124c58(0xe3)](_0xe91dc);}),_0x225e7a;}[_0x1d96bd(0xf0)](){const _0x1a63be=_0x1d96bd,_0x261968=new _0x7f846f(this[_0x1a63be(0xeb)],this[_0x1a63be(0xde)]);return _0x261968[_0x1a63be(0xcd)](_0x1a63be(0xf4))['to'](this),_0x261968[_0x1a63be(0xec)]({'attributes':{'class':this[_0x1a63be(0xea)]['if'](_0x1a63be(0xe6),_0x1a63be(0xcb))}}),_0x261968;}[_0x1d96bd(0xd8)](){const _0xb57579=_0x1d96bd,_0x127121=new _0x48e5b9(this[_0xb57579(0xeb)],_0x4d2af1[_0xb57579(0xd6)]);return _0x127121[_0xb57579(0xec)]({'attributes':{'class':[this[_0xb57579(0xea)]['if'](_0xb57579(0xe6),_0xb57579(0xcb),_0x8c8733=>!_0x8c8733)]}}),_0x127121;}[_0x1d96bd(0xef)](){const _0x10e741=_0x1d96bd;super[_0x10e741(0xef)](),this[_0x10e741(0xda)]('');}[_0x1d96bd(0xda)](_0x210bee){const _0x4427ee=_0x1d96bd,_0x3bf337=_0x525b85();this[_0x4427ee(0xe0)]=_0x3bf337,this[_0x4427ee(0xd1)](_0x4427ee(0xed),{'sourceId':this[_0x4427ee(0xde)]['id'],'query':_0x210bee,'uid':_0x3bf337}),this[_0x4427ee(0xe6)]=!0x0;}[_0x1d96bd(0xd5)](_0x9c1331,_0x4f169a){const _0x382478=_0x1d96bd;if(_0x4f169a&&_0x4f169a!==this[_0x382478(0xe0)])return;const _0x341b65=this[_0x382478(0xde)][_0x382478(0xf3)]?this[_0x382478(0xf1)][_0x382478(0xe8)]():'';this[_0x382478(0xe4)][_0x382478(0xd5)](_0x9c1331,_0x341b65),_0x9c1331[_0x382478(0xcc)]>=this[_0x382478(0xca)]&&!this[_0x382478(0xd0)][_0x382478(0xdb)](this[_0x382478(0xdf)])&&this[_0x382478(0xd0)][_0x382478(0xf2)](this[_0x382478(0xdf)],0x0),requestAnimationFrame(()=>{const _0x24e650=_0x382478;this[_0x24e650(0xe6)]=!0x1;});}[_0x1d96bd(0xd4)](_0x235c5f,_0x34d4df){const _0x593bc2=_0x1d96bd;this[_0x593bc2(0xe4)][_0x593bc2(0xd4)](_0x235c5f,_0x34d4df);}}
23
+ const _0x1d1074=_0xda47;function _0xda47(_0x42208b,_0x83019b){const _0x3161aa=_0x3161();return _0xda47=function(_0xda4753,_0xaab11f){_0xda4753=_0xda4753-0x178;let _0x498e8e=_0x3161aa[_0xda4753];return _0x498e8e;},_0xda47(_0x42208b,_0x83019b);}(function(_0x36c4d5,_0x51967f){const _0x307a35=_0xda47,_0x349648=_0x36c4d5();while(!![]){try{const _0x4dba17=parseInt(_0x307a35(0x196))/0x1+-parseInt(_0x307a35(0x17c))/0x2+-parseInt(_0x307a35(0x17a))/0x3*(parseInt(_0x307a35(0x197))/0x4)+-parseInt(_0x307a35(0x193))/0x5+-parseInt(_0x307a35(0x194))/0x6+-parseInt(_0x307a35(0x1a4))/0x7+parseInt(_0x307a35(0x199))/0x8;if(_0x4dba17===_0x51967f)break;else _0x349648['push'](_0x349648['shift']());}catch(_0x260453){_0x349648['push'](_0x349648['shift']());}}}(_0x3161,0x28b5b));import{View as _0x4a0a05,ViewCollection as _0x29f2b5}from'ckeditor5/src/ui.js';function _0x3161(){const _0x597d81=['20chArQJ','length','10957016uoXOUg','search','_resourcesListView','aiChatResources','bindTemplate','_latestLoadResourcesUid','searchInputVisibleFrom','useDefaultFiltering','add','ck-hidden','delegate','2024911FNjLOX','ck-ai-chat-resources','getQuery','_createSkeletonView','_skeletonLoader','_source','166485mKZYTl','updateResourceState','658476OKggbl','_createSearchView','loadSourceResources','children','_searchInputVisibleFrom','_createSearchSection','highlightText','_searchView','ck\x20ck-search','set','locale','fire','setTemplate','addResourceToContext','isLoading','setResources','render','div','extendTemplate','source','has','loadResources','_searchSection','751775IquaRv','1464156JMKiBH','_createResourcesListView','87487KqtdyK'];_0x3161=function(){return _0x597d81;};return _0x3161();}import{uid as _0x4d6ef8}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x23eefb}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x152749}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x20eb25,SKELETON_DEFINITIONS as _0x466139}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x4a0a05{[_0x1d1074(0x183)];[_0x1d1074(0x192)];[_0x1d1074(0x180)];[_0x1d1074(0x19b)];[_0x1d1074(0x178)];[_0x1d1074(0x179)];[_0x1d1074(0x17f)];[_0x1d1074(0x19e)]=null;constructor(_0x59b4d6,_0x5888cf){const _0x2fb336=_0x1d1074;super(_0x59b4d6),this[_0x2fb336(0x179)]=_0x5888cf[_0x2fb336(0x18f)],this[_0x2fb336(0x180)]=_0x5888cf[_0x2fb336(0x19f)]??0x7,this[_0x2fb336(0x185)](_0x2fb336(0x18a),!0x0),this[_0x2fb336(0x183)]=this[_0x2fb336(0x17d)](),this[_0x2fb336(0x192)]=this[_0x2fb336(0x181)](),this[_0x2fb336(0x19b)]=this[_0x2fb336(0x195)](),this[_0x2fb336(0x178)]=this[_0x2fb336(0x1a7)](),this[_0x2fb336(0x17f)]=new _0x29f2b5([this[_0x2fb336(0x178)],this[_0x2fb336(0x19b)]]),this[_0x2fb336(0x188)]({'tag':_0x2fb336(0x18d),'attributes':{'class':_0x2fb336(0x1a5)},'children':this[_0x2fb336(0x17f)]});}[_0x1d1074(0x17d)](){const _0x54ecc1=_0x1d1074;return new _0x152749(this[_0x54ecc1(0x186)]);}[_0x1d1074(0x181)](){const _0x29acb8=_0x1d1074,_0x279a60=new _0x4a0a05(this[_0x29acb8(0x186)]);return _0x279a60[_0x29acb8(0x188)]({'tag':_0x29acb8(0x18d),'attributes':{'class':_0x29acb8(0x184)},'children':[this[_0x29acb8(0x183)]]}),this[_0x29acb8(0x183)]['on'](_0x29acb8(0x19a),(_0x37c90d,_0x350b72)=>{const _0x1777c7=_0x29acb8;this[_0x1777c7(0x191)](_0x350b72),this[_0x1777c7(0x179)][_0x1777c7(0x1a0)]&&this[_0x1777c7(0x19b)][_0x1777c7(0x182)](_0x350b72);}),_0x279a60;}[_0x1d1074(0x195)](){const _0x26d056=_0x1d1074,_0x226f62=new _0x23eefb(this[_0x26d056(0x186)],this[_0x26d056(0x179)]);return _0x226f62[_0x26d056(0x1a3)](_0x26d056(0x189))['to'](this),_0x226f62[_0x26d056(0x18e)]({'attributes':{'class':this[_0x26d056(0x19d)]['if'](_0x26d056(0x18a),_0x26d056(0x1a2))}}),_0x226f62;}[_0x1d1074(0x1a7)](){const _0x367b75=_0x1d1074,_0x23a1de=new _0x20eb25(this[_0x367b75(0x186)],_0x466139[_0x367b75(0x19c)]);return _0x23a1de[_0x367b75(0x18e)]({'attributes':{'class':[this[_0x367b75(0x19d)]['if'](_0x367b75(0x18a),_0x367b75(0x1a2),_0x1d380b=>!_0x1d380b)]}}),_0x23a1de;}[_0x1d1074(0x18c)](){const _0x30f7e8=_0x1d1074;super[_0x30f7e8(0x18c)](),this[_0x30f7e8(0x191)]('');}[_0x1d1074(0x191)](_0x38afba){const _0x2f3cc6=_0x1d1074,_0xf45474=_0x4d6ef8();this[_0x2f3cc6(0x19e)]=_0xf45474,this[_0x2f3cc6(0x187)](_0x2f3cc6(0x17e),{'sourceId':this[_0x2f3cc6(0x179)]['id'],'query':_0x38afba,'uid':_0xf45474}),this[_0x2f3cc6(0x18a)]=!0x0;}[_0x1d1074(0x18b)](_0x338775,_0x5eec1e){const _0x5994b=_0x1d1074;if(_0x5eec1e&&_0x5eec1e!==this[_0x5994b(0x19e)])return;const _0x5c4ba6=this[_0x5994b(0x179)][_0x5994b(0x1a0)]?this[_0x5994b(0x183)][_0x5994b(0x1a6)]():'';this[_0x5994b(0x19b)][_0x5994b(0x18b)](_0x338775,_0x5c4ba6),_0x338775[_0x5994b(0x198)]>=this[_0x5994b(0x180)]&&!this[_0x5994b(0x17f)][_0x5994b(0x190)](this[_0x5994b(0x192)])&&this[_0x5994b(0x17f)][_0x5994b(0x1a1)](this[_0x5994b(0x192)],0x0),requestAnimationFrame(()=>{const _0x5950a4=_0x5994b;this[_0x5950a4(0x18a)]=!0x1;});}[_0x1d1074(0x17b)](_0xaafb63,_0x24c437){const _0x1053e8=_0x1d1074;this[_0x1053e8(0x19b)][_0x1053e8(0x17b)](_0xaafb63,_0x24c437);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x211927=_0x21d6;function _0x21d6(_0x415f20,_0x400fa3){const _0x176fa=_0x176f();return _0x21d6=function(_0x21d6e8,_0x5e1ebf){_0x21d6e8=_0x21d6e8-0x78;let _0x34b5ef=_0x176fa[_0x21d6e8];return _0x34b5ef;},_0x21d6(_0x415f20,_0x400fa3);}(function(_0x5cda4f,_0x723149){const _0x4f53c6=_0x21d6,_0x5c81e4=_0x5cda4f();while(!![]){try{const _0x4c89b3=-parseInt(_0x4f53c6(0x78))/0x1+parseInt(_0x4f53c6(0xa3))/0x2+-parseInt(_0x4f53c6(0x9f))/0x3*(parseInt(_0x4f53c6(0x7c))/0x4)+-parseInt(_0x4f53c6(0x7a))/0x5+-parseInt(_0x4f53c6(0x85))/0x6*(parseInt(_0x4f53c6(0x9c))/0x7)+-parseInt(_0x4f53c6(0x8a))/0x8*(parseInt(_0x4f53c6(0x94))/0x9)+-parseInt(_0x4f53c6(0x79))/0xa*(-parseInt(_0x4f53c6(0x9b))/0xb);if(_0x4c89b3===_0x723149)break;else _0x5c81e4['push'](_0x5c81e4['shift']());}catch(_0x7bb737){_0x5c81e4['push'](_0x5c81e4['shift']());}}}(_0x176f,0x428c2));import{HighlightedTextView as _0x19ba3a,IconView as _0x3b06eb,ListItemView as _0x475400}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3f9d15}from'es-toolkit/compat';import{AIContextItemType as _0xd446c4}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x1105d2,IconCheck as _0x2f206c,IconDocument as _0x5b636f,IconDocumentOutline as _0x3d1106,IconLink as _0x113820}from'@ckeditor/ckeditor5-icons';function _0x176f(){const _0x2ec515=['ck-ai-chat-resources__item-title','1903HmUxxq','10661tAnMVA','DOCUMENT','isVisible','12wnoMLJ','resource','label','_setupTemplate','94568XhJDdQ','execute','492635bRtPPW','112870FFNabT','2006500uIpdgK','div','370192fOpySY','_createIconView','_iconView','ck-ai-chat-resources__item--in-context','highlightText','render','TEXT','bindTemplate','span','870ZbIggS','text','content','isInContext','ck-ai-chat-resources__item__icon','40AGgBMB','getResourceIcon','ck-ai-chat-resources__item','URL','_updateIcon','_titleView','_createTitleView','extendTemplate','type','trim','436311rmbows','set','FILE','updateResourceState','ck-hidden','setTemplate'];_0x176f=function(){return _0x2ec515;};return _0x176f();}const zr=_0x211927(0x8c),Gr=_0x211927(0x7f),Hr=_0x211927(0x9a),Jr=_0x211927(0x89);export class AIChatResourceListItemView extends _0x475400{[_0x211927(0xa0)];[_0x211927(0x8f)];[_0x211927(0x7e)];constructor(_0x1dfd8a,_0x3eda91){const _0x2bf1bb=_0x211927;super(_0x1dfd8a),this[_0x2bf1bb(0xa0)]=_0x3eda91,this[_0x2bf1bb(0x95)](_0x2bf1bb(0x88),!!_0x3eda91[_0x2bf1bb(0x88)]),this[_0x2bf1bb(0x8f)]=this[_0x2bf1bb(0x90)](),this[_0x2bf1bb(0x7e)]=this[_0x2bf1bb(0x7d)](),this[_0x2bf1bb(0xa2)]();}[_0x211927(0x81)](){const _0x58b669=_0x211927;super[_0x58b669(0x81)]();}[_0x211927(0x8b)](_0x5f16fe){const _0xf797bc=_0x211927;if(_0x5f16fe[_0xf797bc(0x88)])return _0x2f206c;switch(_0x5f16fe[_0xf797bc(0x92)]){case _0xd446c4[_0xf797bc(0x9d)]:return _0x5b636f;case _0xd446c4[_0xf797bc(0x8d)]:return _0x113820;case _0xd446c4[_0xf797bc(0x96)]:case _0xd446c4[_0xf797bc(0x82)]:return _0x1105d2;default:return _0x3d1106;}}[_0x211927(0x80)](_0x276bc5){const _0x41961e=_0x211927;if(!_0x276bc5||''===_0x276bc5[_0x41961e(0x93)]())return void this[_0x41961e(0x8f)][_0x41961e(0x80)](null);const _0x4b4422=new RegExp(_0x3f9d15(_0x276bc5),'gi');this[_0x41961e(0x8f)][_0x41961e(0x80)](_0x4b4422);}[_0x211927(0x97)](_0x3c7213){const _0x290e84=_0x211927;this[_0x290e84(0xa0)][_0x290e84(0x88)]=_0x3c7213,this[_0x290e84(0x88)]=_0x3c7213,this[_0x290e84(0x8e)]();}[_0x211927(0x90)](){const _0x287cd5=_0x211927,_0x19e667=new _0x19ba3a();return _0x19e667[_0x287cd5(0x86)]=this[_0x287cd5(0xa0)][_0x287cd5(0xa1)],_0x19e667[_0x287cd5(0x91)]({'tag':_0x287cd5(0x84),'attributes':{'class':[Hr]}}),_0x19e667;}[_0x211927(0x7d)](){const _0xa2bd64=_0x211927,_0x2e37fb=new _0x3b06eb();return _0x2e37fb[_0xa2bd64(0x87)]=this[_0xa2bd64(0x8b)](this[_0xa2bd64(0xa0)]),_0x2e37fb;}[_0x211927(0xa2)](){const _0x4a6b45=_0x211927,_0x32458f=this[_0x4a6b45(0x83)];this[_0x4a6b45(0x99)]({'tag':_0x4a6b45(0x7b),'attributes':{'class':[zr,_0x32458f['if'](_0x4a6b45(0x9e),_0x4a6b45(0x98),_0x19c99f=>!_0x19c99f),_0x32458f['if'](_0x4a6b45(0x88),Gr)]},'children':[{'tag':_0x4a6b45(0x7b),'attributes':{'class':[Jr]},'children':[this[_0x4a6b45(0x7e)]]},this[_0x4a6b45(0x8f)]],'on':{'click':_0x32458f['to'](_0x4a6b45(0xa4))}});}[_0x211927(0x8e)](){const _0x34b0fa=_0x211927;this[_0x34b0fa(0x7e)][_0x34b0fa(0x87)]=this[_0x34b0fa(0x8b)](this[_0x34b0fa(0xa0)]);}}
23
+ const _0x20071b=_0x2042;(function(_0x2e626b,_0x43d5da){const _0x3bbc86=_0x2042,_0x53c02c=_0x2e626b();while(!![]){try{const _0x3d6a99=-parseInt(_0x3bbc86(0x1cc))/0x1+-parseInt(_0x3bbc86(0x1b2))/0x2*(parseInt(_0x3bbc86(0x1ac))/0x3)+parseInt(_0x3bbc86(0x1ba))/0x4+parseInt(_0x3bbc86(0x1b6))/0x5*(-parseInt(_0x3bbc86(0x1b4))/0x6)+parseInt(_0x3bbc86(0x1ab))/0x7+-parseInt(_0x3bbc86(0x1ca))/0x8*(parseInt(_0x3bbc86(0x1ce))/0x9)+parseInt(_0x3bbc86(0x1d7))/0xa*(parseInt(_0x3bbc86(0x1bb))/0xb);if(_0x3d6a99===_0x43d5da)break;else _0x53c02c['push'](_0x53c02c['shift']());}catch(_0x3ce09d){_0x53c02c['push'](_0x53c02c['shift']());}}}(_0x57b9,0xc8d1e));import{HighlightedTextView as _0xaa21b3,IconView as _0x5afdc1,ListItemView as _0x597d32}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x2848d4}from'es-toolkit/compat';import{AIContextItemType as _0x558001}from'../../../../aicore/model/aicontext.js';function _0x2042(_0x44f73c,_0x380d94){const _0x57b973=_0x57b9();return _0x2042=function(_0x20421f,_0x2fffa3){_0x20421f=_0x20421f-0x1ab;let _0x785eb4=_0x57b973[_0x20421f];return _0x785eb4;},_0x2042(_0x44f73c,_0x380d94);}function _0x57b9(){const _0x26a763=['updateResourceState','isVisible','6472664neMxjc','11BeUcgb','isInContext','getResourceIcon','_createIconView','FILE','highlightText','resource','content','URL','bindTemplate','TEXT','_iconView','span','_titleView','ck-ai-chat-resources__item','104jbXwGr','ck-hidden','844832OaIuXE','_updateIcon','822348QVpXvv','_createTitleView','extendTemplate','text','ck-ai-chat-resources__item-title','ck-ai-chat-resources__item__icon','set','_setupTemplate','label','40267880QlcaAi','289898QPBlvX','3PbvAhb','setTemplate','render','div','trim','ck-ai-chat-resources__item--in-context','3239398ecyrQy','execute','7268658LzZdcM','type','5blpbdr','DOCUMENT'];_0x57b9=function(){return _0x26a763;};return _0x57b9();}import{IconFileUpload as _0x528b53,IconCheck as _0x42ba94,IconDocument as _0x3c5ad7,IconDocumentOutline as _0x5b1342,IconLink as _0x3ebf1f}from'@ckeditor/ckeditor5-icons';const zr=_0x20071b(0x1c9),Gr=_0x20071b(0x1b1),Hr=_0x20071b(0x1d2),Jr=_0x20071b(0x1d3);export class AIChatResourceListItemView extends _0x597d32{[_0x20071b(0x1c1)];[_0x20071b(0x1c8)];[_0x20071b(0x1c6)];constructor(_0x23efc8,_0x42dc06){const _0x3e5843=_0x20071b;super(_0x23efc8),this[_0x3e5843(0x1c1)]=_0x42dc06,this[_0x3e5843(0x1d4)](_0x3e5843(0x1bc),!!_0x42dc06[_0x3e5843(0x1bc)]),this[_0x3e5843(0x1c8)]=this[_0x3e5843(0x1cf)](),this[_0x3e5843(0x1c6)]=this[_0x3e5843(0x1be)](),this[_0x3e5843(0x1d5)]();}[_0x20071b(0x1ae)](){const _0x58cf73=_0x20071b;super[_0x58cf73(0x1ae)]();}[_0x20071b(0x1bd)](_0x21dd8e){const _0x1573e1=_0x20071b;if(_0x21dd8e[_0x1573e1(0x1bc)])return _0x42ba94;switch(_0x21dd8e[_0x1573e1(0x1b5)]){case _0x558001[_0x1573e1(0x1b7)]:return _0x3c5ad7;case _0x558001[_0x1573e1(0x1c3)]:return _0x3ebf1f;case _0x558001[_0x1573e1(0x1bf)]:case _0x558001[_0x1573e1(0x1c5)]:return _0x528b53;default:return _0x5b1342;}}[_0x20071b(0x1c0)](_0x208071){const _0x4d6adc=_0x20071b;if(!_0x208071||''===_0x208071[_0x4d6adc(0x1b0)]())return void this[_0x4d6adc(0x1c8)][_0x4d6adc(0x1c0)](null);const _0x138daf=new RegExp(_0x2848d4(_0x208071),'gi');this[_0x4d6adc(0x1c8)][_0x4d6adc(0x1c0)](_0x138daf);}[_0x20071b(0x1b8)](_0x2ca34c){const _0x35cd11=_0x20071b;this[_0x35cd11(0x1c1)][_0x35cd11(0x1bc)]=_0x2ca34c,this[_0x35cd11(0x1bc)]=_0x2ca34c,this[_0x35cd11(0x1cd)]();}[_0x20071b(0x1cf)](){const _0x44f070=_0x20071b,_0x1bfcfe=new _0xaa21b3();return _0x1bfcfe[_0x44f070(0x1d1)]=this[_0x44f070(0x1c1)][_0x44f070(0x1d6)],_0x1bfcfe[_0x44f070(0x1d0)]({'tag':_0x44f070(0x1c7),'attributes':{'class':[Hr]}}),_0x1bfcfe;}[_0x20071b(0x1be)](){const _0x2f2120=_0x20071b,_0x1c39b6=new _0x5afdc1();return _0x1c39b6[_0x2f2120(0x1c2)]=this[_0x2f2120(0x1bd)](this[_0x2f2120(0x1c1)]),_0x1c39b6;}[_0x20071b(0x1d5)](){const _0x5a0f9a=_0x20071b,_0x5764cb=this[_0x5a0f9a(0x1c4)];this[_0x5a0f9a(0x1ad)]({'tag':_0x5a0f9a(0x1af),'attributes':{'class':[zr,_0x5764cb['if'](_0x5a0f9a(0x1b9),_0x5a0f9a(0x1cb),_0x227840=>!_0x227840),_0x5764cb['if'](_0x5a0f9a(0x1bc),Gr)]},'children':[{'tag':_0x5a0f9a(0x1af),'attributes':{'class':[Jr]},'children':[this[_0x5a0f9a(0x1c6)]]},this[_0x5a0f9a(0x1c8)]],'on':{'click':_0x5764cb['to'](_0x5a0f9a(0x1b3))}});}[_0x20071b(0x1cd)](){const _0x359915=_0x20071b;this[_0x359915(0x1c6)][_0x359915(0x1c2)]=this[_0x359915(0x1bd)](this[_0x359915(0x1c1)]);}}