@ckeditor/ckeditor5-ai 47.4.0-alpha.0 → 47.4.0-alpha.2

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 _0x2b5cbd=_0x4808;(function(_0x24bfa9,_0x3a8b30){const _0xf31928=_0x4808,_0x2082b5=_0x24bfa9();while(!![]){try{const _0x188a61=parseInt(_0xf31928(0xad))/0x1+parseInt(_0xf31928(0xb0))/0x2+-parseInt(_0xf31928(0xa4))/0x3*(parseInt(_0xf31928(0xa6))/0x4)+-parseInt(_0xf31928(0xb2))/0x5+parseInt(_0xf31928(0x9d))/0x6+-parseInt(_0xf31928(0x99))/0x7*(parseInt(_0xf31928(0xc2))/0x8)+parseInt(_0xf31928(0x96))/0x9;if(_0x188a61===_0x3a8b30)break;else _0x2082b5['push'](_0x2082b5['shift']());}catch(_0x389ad1){_0x2082b5['push'](_0x2082b5['shift']());}}}(_0x32e9,0xd9b5f));import{ButtonView as _0x3017bc,IconView as _0x539946}from'ckeditor5/src/ui.js';import{IconClose as _0x19d2f0,IconDocument as _0x1e6a19,IconFileUpload as _0x14fdd1,IconLink as _0x5b7698,IconSelection as _0x117372}from'@ckeditor/ckeditor5-icons';function _0x32e9(){const _0x1fa082=['1725796VtSUWR','ck-ai-chat-context-chip__label','selection','308764AkJOXV','ck-hidden','3634300rxOGpV','classList','small','ck-ai-chat-context-chip_wide','webkitAnimationEnd','document','animationend','element','_initializeProperties','uiId','span','execute','setTemplate','addEventListener','div','_setupTemplate','32TVDjdh','label','content','add','itemType','_createLabelElement','extendTemplate','lastIndexOf','slice','type','isVisible','locale','set','_createIconView','_createLoaderIcon','ck-ai-chat-context-chip_document','length','ck-ai-chat-context-chip_new-chip','disableAnimationOnEnter','isLoading','_createTemplateChildren','15588873FWeezc','removeContextItemChip','ck-ai-chat-context-chip__type-icon','1649746dPbrRg','bind','_isAnimationOnEnterEnabled','_createRemoveButton','2127576DvbBob','tooltip','removeEventListener','_createTemplateAttributes','bindTemplate','readonly','ck-ai-chat-context-chip','113964dCrzDD','remove','148dCUZXy','render','_handleAnimationEndOnce','ck-ai-chat-context-controls__chip-tooltip','fire','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_setupRemoveButtonEvent'];_0x32e9=function(){return _0x1fa082;};return _0x32e9();}function _0x4808(_0x139977,_0x4cfa9f){const _0x32e955=_0x32e9();return _0x4808=function(_0x4808c4,_0x12fc2b){_0x4808c4=_0x4808c4-0x8a;let _0x3bc1d2=_0x32e955[_0x4808c4];return _0x3bc1d2;},_0x4808(_0x139977,_0x4cfa9f);}import{getTranslation as _0x3f3c9d}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3e19d0}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x14fdd1,'document':_0x1e6a19,'web-resource':_0x5b7698,'text':_0x14fdd1,'selection':_0x117372},bn=_0x2b5cbd(0xa3),wn=_0x2b5cbd(0xb5),Tn=_0x2b5cbd(0x90),En=_0x2b5cbd(0xae),fn=_0x2b5cbd(0x98),An=_0x2b5cbd(0xa9),Cn='n';export class AIChatContextItemButtonView extends _0x3017bc{constructor(_0x437255,_0x12e3f0,_0x132c82,_0xd883c9,_0x32bf85=!0x1){const _0x102ee0=_0x2b5cbd;super(_0x437255),this[_0x102ee0(0x9b)]=_0xd883c9,this[_0x102ee0(0xba)](_0x12e3f0,_0x132c82,_0x32bf85),this[_0x102ee0(0xc1)]();}[_0x2b5cbd(0xa7)](){const _0x5450f3=_0x2b5cbd;super[_0x5450f3(0xa7)](),this[_0x5450f3(0x9b)]&&this[_0x5450f3(0xb9)]&&(this[_0x5450f3(0xb9)][_0x5450f3(0xb3)][_0x5450f3(0xc5)](_0x5450f3(0x92)),this[_0x5450f3(0xa8)](this[_0x5450f3(0xb9)],()=>{const _0x391dcf=_0x5450f3;this[_0x391dcf(0xb9)]&&this[_0x391dcf(0xb9)][_0x391dcf(0xb3)][_0x391dcf(0xa5)](_0x391dcf(0x92));}));}[_0x2b5cbd(0x93)](){const _0x2d7748=_0x2b5cbd;this[_0x2d7748(0x9b)]=!0x1,this[_0x2d7748(0xb9)]&&this[_0x2d7748(0xb9)][_0x2d7748(0xb3)][_0x2d7748(0xa5)](_0x2d7748(0x92));}[_0x2b5cbd(0xba)](_0x543f2b,_0x41b5e1,_0x4a8aec){const _0x5b6ee0=_0x2b5cbd;this[_0x5b6ee0(0x8d)](_0x5b6ee0(0xc3),_0x543f2b[_0x5b6ee0(0xc3)]),this[_0x5b6ee0(0x8d)](_0x5b6ee0(0x9e),!0x0),this[_0x5b6ee0(0x8d)](_0x5b6ee0(0xc6),_0x543f2b[_0x5b6ee0(0x8a)]),this[_0x5b6ee0(0x8d)]('id',_0x543f2b[_0x5b6ee0(0xbb)]),this[_0x5b6ee0(0x8d)](_0x5b6ee0(0xa2),_0x41b5e1),this[_0x5b6ee0(0x8d)](_0x5b6ee0(0x94),_0x4a8aec);}[_0x2b5cbd(0xc1)](){const _0x2f814a=_0x2b5cbd,_0x4247bf=this[_0x2f814a(0x8e)](),_0x34db28=this[_0x2f814a(0x9c)](),_0x3d8bd2=this[_0x2f814a(0xa1)];this[_0x2f814a(0xbe)]({'tag':_0x2f814a(0xc0),'attributes':this[_0x2f814a(0xa0)](_0x3d8bd2),'children':this[_0x2f814a(0x95)](_0x4247bf,_0x34db28,_0x3d8bd2)});}[_0x2b5cbd(0xa0)](_0x122b9e){const _0x4d6983=_0x2b5cbd;return{'class':[bn,_0x122b9e['if'](_0x4d6983(0xc6),Tn,_0x262eb2=>_0x4d6983(0xb7)==_0x262eb2),_0x122b9e['if'](_0x4d6983(0xc6),wn,_0xa0c512=>_0x4d6983(0xaf)==_0xa0c512)],'data-cke-tooltip-text':_0x122b9e['to'](_0x4d6983(0xc3),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2b5cbd(0x95)](_0x5be559,_0x31c2e3,_0x5b90a2){const _0x4ae090=_0x2b5cbd,_0xc50c55=this[_0x4ae090(0xc7)](_0x5b90a2),_0x3f7743=this[_0x4ae090(0x8f)]();return this[_0x4ae090(0xa2)]?[_0x5be559,_0xc50c55]:[_0x5be559,_0x3f7743,_0xc50c55,_0x31c2e3];}[_0x2b5cbd(0xc7)](_0x85fc6d){const _0x1f0f59=_0x2b5cbd;return{'tag':_0x1f0f59(0xbc),'attributes':{'class':En},'children':[{'text':_0x85fc6d['to'](_0x1f0f59(0xc3))}]};}[_0x2b5cbd(0x9c)](){const _0x6ab785=_0x2b5cbd,_0x3069c3=new _0x3017bc(this[_0x6ab785(0x8c)]);return _0x3069c3[_0x6ab785(0x8d)]({'label':_0x3f3c9d(this[_0x6ab785(0x8c)],_0x6ab785(0xab)),'icon':_0x19d2f0}),this[_0x6ab785(0xac)](_0x3069c3),_0x3069c3;}[_0x2b5cbd(0xac)](_0x58825b){const _0x562010=_0x2b5cbd;_0x58825b['on'](_0x562010(0xbd),()=>{const _0x221452=_0x562010;this[_0x221452(0xaa)](_0x221452(0x97),this['id']);});}[_0x2b5cbd(0x8e)](){const _0x14c319=_0x2b5cbd,_0x266fa6=this[_0x14c319(0xa1)],_0x341c76=new _0x539946();return _0x341c76[_0x14c319(0xc4)]=xn[this[_0x14c319(0xc6)]],_0x341c76[_0x14c319(0xc8)]({'attributes':{'class':[fn,_0x266fa6['if'](_0x14c319(0x94),_0x14c319(0xb1),_0x25be86=>_0x25be86)]}}),_0x341c76;}[_0x2b5cbd(0xa8)](_0x4552a9,_0x1bbfdd){const _0x2c044e=_0x2b5cbd;if(!_0x4552a9)return;const _0x526fba=()=>{const _0x4925b5=_0x4808;_0x1bbfdd(),_0x4552a9[_0x4925b5(0x9f)](_0x4925b5(0xb8),_0x526fba),_0x4552a9[_0x4925b5(0x9f)](_0x4925b5(0xb6),_0x526fba);};_0x4552a9[_0x2c044e(0xbf)](_0x2c044e(0xb8),_0x526fba),_0x4552a9[_0x2c044e(0xbf)](_0x2c044e(0xb6),_0x526fba);}[_0x2b5cbd(0x8f)](){const _0x35ed38=_0x2b5cbd,_0x36afad=new _0x3e19d0(_0x35ed38(0xb4));return _0x36afad[_0x35ed38(0x9a)](_0x35ed38(0x8b))['to'](this,_0x35ed38(0x94),_0x5f0f4d=>_0x5f0f4d),_0x36afad;}}function In(_0x5a2cc7){const _0x222afb=_0x2b5cbd;if(!_0x5a2cc7)return _0x5a2cc7;if(_0x5a2cc7[_0x222afb(0x91)]<=0x78)return _0x5a2cc7;const _0x3c9939=_0x5a2cc7[_0x222afb(0xca)](0x0,0x78),_0x2a4038=_0x3c9939[_0x222afb(0xc9)]('\x20');return(_0x2a4038>0x0?_0x3c9939[_0x222afb(0xca)](0x0,_0x2a4038):_0x3c9939)+'…';}
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)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x37da(_0x2f8b85,_0x7845a){const _0x5affb6=_0x5aff();return _0x37da=function(_0x37da90,_0x133d40){_0x37da90=_0x37da90-0x14d;let _0x3690f3=_0x5affb6[_0x37da90];return _0x3690f3;},_0x37da(_0x2f8b85,_0x7845a);}function _0x5aff(){const _0x4a7667=['1126173LYvTyU','set','listenTo','_createConfirmButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','focusCycler','execute','_setupEventHandlers','14353497cJxUBs','2047266wcrTiR','esc','528044SJOSao','focus','render','submit','fieldView','ck-button-icon','keystrokes','div','trim','_isValidUrl','element','864NjedNW','clearError','value','setError','urlInputField','_handleSubmit','submitUrl','tab','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_updateConfirmButtonState','confirmButton','locale','clear','AI_CHAT_CONTEXT_URL_INVALID_ERROR','fire','_setupKeystrokes','ck-button-icon\x20ck-button-back','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_LABEL','forEach','add','getValue','destroy','ck-ai-chat-context-controls__url-form','ck-labeled-field-view_empty','_createBackButton','_createUrlInputField','stop','backButton','isEnabled','21125800IvWlol','errorText','AI_CHAT_CONTEXT_URL_ADD_URL','_setupTemplate','cancel','focusTracker','refreshBalloon','ck-ai-chat-context-controls__url-input-section','shift+tab','setTemplate','2KvAXdB','createCollection','form','5927315FmQGDU','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','input','18935ffbKTc','length','children','24QvKgZi','_focusables'];_0x5aff=function(){return _0x4a7667;};return _0x5aff();}const _0x56b7f3=_0x37da;(function(_0x4287a1,_0x197473){const _0x339a9b=_0x37da,_0x3d4f33=_0x4287a1();while(!![]){try{const _0x378113=-parseInt(_0x339a9b(0x158))/0x1*(-parseInt(_0x339a9b(0x14d))/0x2)+-parseInt(_0x339a9b(0x156))/0x3*(-parseInt(_0x339a9b(0x163))/0x4)+-parseInt(_0x339a9b(0x150))/0x5+-parseInt(_0x339a9b(0x161))/0x6+parseInt(_0x339a9b(0x153))/0x7*(-parseInt(_0x339a9b(0x16e))/0x8)+-parseInt(_0x339a9b(0x160))/0x9+parseInt(_0x339a9b(0x18c))/0xa;if(_0x378113===_0x197473)break;else _0x3d4f33['push'](_0x3d4f33['shift']());}catch(_0x17da70){_0x3d4f33['push'](_0x3d4f33['shift']());}}}(_0x5aff,0xd722a));import{FocusTracker as _0x59eb3f,KeystrokeHandler as _0x2fd64a}from'ckeditor5/src/utils.js';import{ButtonView as _0x4df145,FocusCycler as _0x3d7521,LabeledFieldView as _0x161f92,View as _0x5f45c3,FormHeaderView as _0x4e73b4,createLabeledInputText as _0x4249e6,submitHandler as _0x1993d9}from'ckeditor5/src/ui.js';import{IconCheck as _0x48c649,IconPreviousArrow as _0x237e89}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x17b6ad}from'../../../aicore/utils/common-translations.js';const ch=_0x56b7f3(0x185),nh=_0x56b7f3(0x193);export class AIChatContextPanelUrlInputView extends _0x5f45c3{[_0x56b7f3(0x191)];[_0x56b7f3(0x169)];[_0x56b7f3(0x157)];[_0x56b7f3(0x15d)];[_0x56b7f3(0x172)];[_0x56b7f3(0x18a)];[_0x56b7f3(0x178)];constructor(_0x9cdbf9){const _0xb74ed8=_0x56b7f3;super(_0x9cdbf9),this[_0xb74ed8(0x191)]=new _0x59eb3f(),this[_0xb74ed8(0x169)]=new _0x2fd64a(),this[_0xb74ed8(0x18a)]=this[_0xb74ed8(0x187)](),this[_0xb74ed8(0x172)]=this[_0xb74ed8(0x188)](),this[_0xb74ed8(0x178)]=this[_0xb74ed8(0x15b)](),this[_0xb74ed8(0x157)]=this[_0xb74ed8(0x14e)]([this[_0xb74ed8(0x18a)],this[_0xb74ed8(0x172)],this[_0xb74ed8(0x178)]]),this[_0xb74ed8(0x15d)]=new _0x3d7521({'focusables':this[_0xb74ed8(0x157)],'focusTracker':this[_0xb74ed8(0x191)],'keystrokeHandler':this[_0xb74ed8(0x169)],'actions':{'focusPrevious':_0xb74ed8(0x194),'focusNext':_0xb74ed8(0x175)}}),this[_0xb74ed8(0x18f)](),this[_0xb74ed8(0x15f)](),this[_0xb74ed8(0x17d)]();}[_0x56b7f3(0x165)](){const _0x1b140c=_0x56b7f3;super[_0x1b140c(0x165)](),this[_0x1b140c(0x157)][_0x1b140c(0x181)](_0x2b6f43=>{const _0x5a6f5a=_0x1b140c;this[_0x5a6f5a(0x191)][_0x5a6f5a(0x182)](_0x2b6f43[_0x5a6f5a(0x16d)]),this[_0x5a6f5a(0x169)][_0x5a6f5a(0x15a)](_0x2b6f43[_0x5a6f5a(0x16d)]);}),_0x1993d9({'view':this}),this[_0x1b140c(0x164)]();}[_0x56b7f3(0x184)](){const _0x2796aa=_0x56b7f3;super[_0x2796aa(0x184)](),this[_0x2796aa(0x191)][_0x2796aa(0x184)](),this[_0x2796aa(0x169)][_0x2796aa(0x184)]();}[_0x56b7f3(0x164)](){const _0x4d29ab=_0x56b7f3;this[_0x4d29ab(0x172)][_0x4d29ab(0x164)]();}[_0x56b7f3(0x183)](){const _0x548fe3=_0x56b7f3;return this[_0x548fe3(0x172)][_0x548fe3(0x167)][_0x548fe3(0x16d)]?.[_0x548fe3(0x170)]?.[_0x548fe3(0x16b)]()||'';}[_0x56b7f3(0x17a)](){const _0x48ee4f=_0x56b7f3;this[_0x48ee4f(0x172)][_0x48ee4f(0x167)][_0x48ee4f(0x16d)][_0x48ee4f(0x170)]='',this[_0x48ee4f(0x172)][_0x48ee4f(0x18d)]=null,this[_0x48ee4f(0x178)][_0x48ee4f(0x18b)]=!0x1;}[_0x56b7f3(0x171)](_0x2e1656){const _0x55f871=_0x56b7f3;this[_0x55f871(0x172)][_0x55f871(0x18d)]=_0x2e1656,this[_0x55f871(0x177)](),this[_0x55f871(0x17c)](_0x55f871(0x192));}[_0x56b7f3(0x16f)](){const _0x54aeb3=_0x56b7f3;this[_0x54aeb3(0x172)][_0x54aeb3(0x18d)]=null,this[_0x54aeb3(0x177)]();}[_0x56b7f3(0x187)](){const _0xd0f459=_0x56b7f3,_0x423c1f=new _0x4df145(this[_0xd0f459(0x179)]);return _0x423c1f[_0xd0f459(0x159)]({'icon':_0x237e89,'tooltip':_0x17b6ad(this[_0xd0f459(0x179)],_0xd0f459(0x151)),'tooltipPosition':'n','class':_0xd0f459(0x17e)}),_0x423c1f;}[_0x56b7f3(0x188)](){const _0x390cf6=_0x56b7f3,_0x11f0b7=new _0x161f92(this[_0x390cf6(0x179)],_0x4249e6);return _0x11f0b7[_0x390cf6(0x159)]({'label':_0x17b6ad(this[_0x390cf6(0x179)],_0x390cf6(0x180)),'class':_0x390cf6(0x186)}),_0x11f0b7[_0x390cf6(0x167)][_0x390cf6(0x159)]({'placeholder':_0x17b6ad(this[_0x390cf6(0x179)],_0x390cf6(0x15c))}),_0x11f0b7;}[_0x56b7f3(0x15b)](){const _0x4f4565=_0x56b7f3,_0xba4a7c=new _0x4df145(this[_0x4f4565(0x179)]);return _0xba4a7c[_0x4f4565(0x159)]({'icon':_0x48c649,'tooltip':_0x17b6ad(this[_0x4f4565(0x179)],_0x4f4565(0x18e)),'tooltipPosition':'n','class':_0x4f4565(0x168),'type':_0x4f4565(0x166),'isEnabled':!0x1}),_0xba4a7c;}[_0x56b7f3(0x18f)](){const _0x5aadab=_0x56b7f3,_0x1919f9=new _0x4e73b4(this[_0x5aadab(0x179)],{'label':_0x17b6ad(this[_0x5aadab(0x179)],_0x5aadab(0x18e)),'class':_0x5aadab(0x17f)});_0x1919f9[_0x5aadab(0x155)][_0x5aadab(0x182)](this[_0x5aadab(0x18a)],0x0),this[_0x5aadab(0x195)]({'tag':_0x5aadab(0x14f),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x1919f9,{'tag':_0x5aadab(0x16a),'attributes':{'class':nh},'children':[this[_0x5aadab(0x172)],this[_0x5aadab(0x178)]]}]});}[_0x56b7f3(0x15f)](){const _0xc6584b=_0x56b7f3;this[_0xc6584b(0x18a)]['on'](_0xc6584b(0x15e),()=>{const _0xcb880=_0xc6584b;this[_0xcb880(0x17a)](),this[_0xcb880(0x17c)](_0xcb880(0x190));}),this[_0xc6584b(0x172)][_0xc6584b(0x167)]['on'](_0xc6584b(0x152),()=>{const _0x28ee8d=_0xc6584b;this[_0x28ee8d(0x16f)](),this[_0x28ee8d(0x177)](),this[_0x28ee8d(0x17c)](_0x28ee8d(0x192));}),this['on'](_0xc6584b(0x166),_0x39d2da=>{const _0x571cfa=_0xc6584b;_0x39d2da[_0x571cfa(0x189)](),this[_0x571cfa(0x173)]();});}[_0x56b7f3(0x17d)](){const _0x4e1d16=_0x56b7f3;this[_0x4e1d16(0x169)][_0x4e1d16(0x159)](_0x4e1d16(0x162),(_0x2ce5a2,_0x2d1435)=>{const _0x5e2ad4=_0x4e1d16;this[_0x5e2ad4(0x17a)](),this[_0x5e2ad4(0x17c)](_0x5e2ad4(0x190)),_0x2d1435();});}[_0x56b7f3(0x173)](){const _0x4e5fa6=_0x56b7f3,_0x18dfa9=this[_0x4e5fa6(0x183)]()[_0x4e5fa6(0x16b)]();_0x18dfa9?this[_0x4e5fa6(0x16c)](_0x18dfa9)?(this[_0x4e5fa6(0x16f)](),this[_0x4e5fa6(0x17c)](_0x4e5fa6(0x174),_0x18dfa9)):this[_0x4e5fa6(0x171)](_0x17b6ad(this[_0x4e5fa6(0x179)],_0x4e5fa6(0x17b))):this[_0x4e5fa6(0x171)](_0x17b6ad(this[_0x4e5fa6(0x179)],_0x4e5fa6(0x176)));}[_0x56b7f3(0x177)](){const _0x1f03e4=_0x56b7f3,_0x5429ef=this[_0x1f03e4(0x183)]()[_0x1f03e4(0x16b)](),_0x1690a2=!!this[_0x1f03e4(0x172)][_0x1f03e4(0x18d)];this[_0x1f03e4(0x178)][_0x1f03e4(0x18b)]=_0x5429ef[_0x1f03e4(0x154)]>0x0&&!_0x1690a2;}[_0x56b7f3(0x16c)](_0x1e7fe4){try{return!!new URL(_0x1e7fe4);}catch{return!0x1;}}}
23
+ function _0x42a9(){const _0x2fc2d6=['element','829032UnEgoj','locale','input','stop','destroy','clearError','render','176349YJHBhV','focus','focusCycler','errorText','_setupTemplate','refreshBalloon','shift+tab','confirmButton','execute','_focusables','288054rXJadY','submitUrl','value','isEnabled','esc','form','_setupEventHandlers','_createUrlInputField','setError','_setupKeystrokes','getValue','ck-button-icon','_createBackButton','70vZCcTI','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','focusTracker','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','div','children','forEach','AI_CHAT_CONTEXT_URL_INVALID_ERROR','backButton','trim','clear','1890600QvfbJy','length','3610905jnBebf','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_LABEL','_createConfirmButton','setTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','createCollection','_handleSubmit','8DDobZM','684KTTbWn','urlInputField','ck-ai-chat-context-controls__url-form','_updateConfirmButtonState','keystrokes','ck-labeled-field-view_empty','tab','listenTo','fieldView','_isValidUrl','ck-ai-chat-context-controls__url-input-section','2768832jOcoPZ','21440AbLWou','cancel','set','submit','fire','add','AI_CHAT_CONTEXT_URL_PLACEHOLDER'];_0x42a9=function(){return _0x2fc2d6;};return _0x42a9();}const _0x47d17b=_0x3f9c;(function(_0x50b084,_0x2fe3ea){const _0x294923=_0x3f9c,_0x2c4256=_0x50b084();while(!![]){try{const _0x4511d5=parseInt(_0x294923(0x1d2))/0x1+parseInt(_0x294923(0x1f4))/0x2+-parseInt(_0x294923(0x1dc))/0x3+-parseInt(_0x294923(0x1ff))/0x4*(-parseInt(_0x294923(0x1f6))/0x5)+-parseInt(_0x294923(0x1cb))/0x6*(parseInt(_0x294923(0x1e9))/0x7)+-parseInt(_0x294923(0x1c2))/0x8+parseInt(_0x294923(0x200))/0x9*(parseInt(_0x294923(0x1c3))/0xa);if(_0x4511d5===_0x2fe3ea)break;else _0x2c4256['push'](_0x2c4256['shift']());}catch(_0x48e531){_0x2c4256['push'](_0x2c4256['shift']());}}}(_0x42a9,0xdcf99));import{FocusTracker as _0x3b0dc5,KeystrokeHandler as _0x113b74}from'ckeditor5/src/utils.js';import{ButtonView as _0x455755,FocusCycler as _0x2bb58f,LabeledFieldView as _0x2a5878,View as _0x1a7bda,FormHeaderView as _0x2550db,createLabeledInputText as _0x28f4b4,submitHandler as _0x4eb883}from'ckeditor5/src/ui.js';import{IconCheck as _0xe21343,IconPreviousArrow as _0x15c3dd}from'@ckeditor/ckeditor5-icons';function _0x3f9c(_0x137116,_0x576a8e){const _0x42a962=_0x42a9();return _0x3f9c=function(_0x3f9cd8,_0xbca622){_0x3f9cd8=_0x3f9cd8-0x1bf;let _0x27a62b=_0x42a962[_0x3f9cd8];return _0x27a62b;},_0x3f9c(_0x137116,_0x576a8e);}import{getTranslation as _0x22d4bd}from'../../../aicore/utils/common-translations.js';const ch=_0x47d17b(0x202),nh=_0x47d17b(0x1c1);export class AIChatContextPanelUrlInputView extends _0x1a7bda{[_0x47d17b(0x1eb)];[_0x47d17b(0x204)];[_0x47d17b(0x1db)];[_0x47d17b(0x1d4)];[_0x47d17b(0x201)];[_0x47d17b(0x1f1)];[_0x47d17b(0x1d9)];constructor(_0x4cf343){const _0x395561=_0x47d17b;super(_0x4cf343),this[_0x395561(0x1eb)]=new _0x3b0dc5(),this[_0x395561(0x204)]=new _0x113b74(),this[_0x395561(0x1f1)]=this[_0x395561(0x1e8)](),this[_0x395561(0x201)]=this[_0x395561(0x1e3)](),this[_0x395561(0x1d9)]=this[_0x395561(0x1fa)](),this[_0x395561(0x1db)]=this[_0x395561(0x1fd)]([this[_0x395561(0x1f1)],this[_0x395561(0x201)],this[_0x395561(0x1d9)]]),this[_0x395561(0x1d4)]=new _0x2bb58f({'focusables':this[_0x395561(0x1db)],'focusTracker':this[_0x395561(0x1eb)],'keystrokeHandler':this[_0x395561(0x204)],'actions':{'focusPrevious':_0x395561(0x1d8),'focusNext':_0x395561(0x206)}}),this[_0x395561(0x1d6)](),this[_0x395561(0x1e2)](),this[_0x395561(0x1e5)]();}[_0x47d17b(0x1d1)](){const _0x3da13c=_0x47d17b;super[_0x3da13c(0x1d1)](),this[_0x3da13c(0x1db)][_0x3da13c(0x1ef)](_0x56158e=>{const _0x47e0d8=_0x3da13c;this[_0x47e0d8(0x1eb)][_0x47e0d8(0x1c8)](_0x56158e[_0x47e0d8(0x1ca)]),this[_0x47e0d8(0x204)][_0x47e0d8(0x207)](_0x56158e[_0x47e0d8(0x1ca)]);}),_0x4eb883({'view':this}),this[_0x3da13c(0x1d3)]();}[_0x47d17b(0x1cf)](){const _0x342f74=_0x47d17b;super[_0x342f74(0x1cf)](),this[_0x342f74(0x1eb)][_0x342f74(0x1cf)](),this[_0x342f74(0x204)][_0x342f74(0x1cf)]();}[_0x47d17b(0x1d3)](){const _0x602bef=_0x47d17b;this[_0x602bef(0x201)][_0x602bef(0x1d3)]();}[_0x47d17b(0x1e6)](){const _0x1c37f3=_0x47d17b;return this[_0x1c37f3(0x201)][_0x1c37f3(0x1bf)][_0x1c37f3(0x1ca)]?.[_0x1c37f3(0x1de)]?.[_0x1c37f3(0x1f2)]()||'';}[_0x47d17b(0x1f3)](){const _0x103379=_0x47d17b;this[_0x103379(0x201)][_0x103379(0x1bf)][_0x103379(0x1ca)][_0x103379(0x1de)]='',this[_0x103379(0x201)][_0x103379(0x1d5)]=null,this[_0x103379(0x1d9)][_0x103379(0x1df)]=!0x1;}[_0x47d17b(0x1e4)](_0x1500f2){const _0xc60810=_0x47d17b;this[_0xc60810(0x201)][_0xc60810(0x1d5)]=_0x1500f2,this[_0xc60810(0x203)](),this[_0xc60810(0x1c7)](_0xc60810(0x1d7));}[_0x47d17b(0x1d0)](){const _0x4d581f=_0x47d17b;this[_0x4d581f(0x201)][_0x4d581f(0x1d5)]=null,this[_0x4d581f(0x203)]();}[_0x47d17b(0x1e8)](){const _0x3966d9=_0x47d17b,_0x24c88a=new _0x455755(this[_0x3966d9(0x1cc)]);return _0x24c88a[_0x3966d9(0x1c5)]({'icon':_0x15c3dd,'tooltip':_0x22d4bd(this[_0x3966d9(0x1cc)],_0x3966d9(0x1ec)),'tooltipPosition':'n','class':_0x3966d9(0x1f8)}),_0x24c88a;}[_0x47d17b(0x1e3)](){const _0x360db4=_0x47d17b,_0x309aed=new _0x2a5878(this[_0x360db4(0x1cc)],_0x28f4b4);return _0x309aed[_0x360db4(0x1c5)]({'label':_0x22d4bd(this[_0x360db4(0x1cc)],_0x360db4(0x1f9)),'class':_0x360db4(0x205)}),_0x309aed[_0x360db4(0x1bf)][_0x360db4(0x1c5)]({'placeholder':_0x22d4bd(this[_0x360db4(0x1cc)],_0x360db4(0x1c9))}),_0x309aed;}[_0x47d17b(0x1fa)](){const _0x194c11=_0x47d17b,_0x1a0a88=new _0x455755(this[_0x194c11(0x1cc)]);return _0x1a0a88[_0x194c11(0x1c5)]({'icon':_0xe21343,'tooltip':_0x22d4bd(this[_0x194c11(0x1cc)],_0x194c11(0x1fc)),'tooltipPosition':'n','class':_0x194c11(0x1e7),'type':_0x194c11(0x1c6),'isEnabled':!0x1}),_0x1a0a88;}[_0x47d17b(0x1d6)](){const _0x2956c7=_0x47d17b,_0x8bcd6d=new _0x2550db(this[_0x2956c7(0x1cc)],{'label':_0x22d4bd(this[_0x2956c7(0x1cc)],_0x2956c7(0x1fc)),'class':_0x2956c7(0x1ea)});_0x8bcd6d[_0x2956c7(0x1ee)][_0x2956c7(0x1c8)](this[_0x2956c7(0x1f1)],0x0),this[_0x2956c7(0x1fb)]({'tag':_0x2956c7(0x1e1),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x8bcd6d,{'tag':_0x2956c7(0x1ed),'attributes':{'class':nh},'children':[this[_0x2956c7(0x201)],this[_0x2956c7(0x1d9)]]}]});}[_0x47d17b(0x1e2)](){const _0x5f16c4=_0x47d17b;this[_0x5f16c4(0x1f1)]['on'](_0x5f16c4(0x1da),()=>{const _0x2fbdf0=_0x5f16c4;this[_0x2fbdf0(0x1f3)](),this[_0x2fbdf0(0x1c7)](_0x2fbdf0(0x1c4));}),this[_0x5f16c4(0x201)][_0x5f16c4(0x1bf)]['on'](_0x5f16c4(0x1cd),()=>{const _0x3132d3=_0x5f16c4;this[_0x3132d3(0x1d0)](),this[_0x3132d3(0x203)](),this[_0x3132d3(0x1c7)](_0x3132d3(0x1d7));}),this['on'](_0x5f16c4(0x1c6),_0x2b2b26=>{const _0x43f007=_0x5f16c4;_0x2b2b26[_0x43f007(0x1ce)](),this[_0x43f007(0x1fe)]();});}[_0x47d17b(0x1e5)](){const _0x95ead4=_0x47d17b;this[_0x95ead4(0x204)][_0x95ead4(0x1c5)](_0x95ead4(0x1e0),(_0x3128df,_0x31190c)=>{const _0x5df6be=_0x95ead4;this[_0x5df6be(0x1f3)](),this[_0x5df6be(0x1c7)](_0x5df6be(0x1c4)),_0x31190c();});}[_0x47d17b(0x1fe)](){const _0x271450=_0x47d17b,_0x147740=this[_0x271450(0x1e6)]()[_0x271450(0x1f2)]();_0x147740?this[_0x271450(0x1c0)](_0x147740)?(this[_0x271450(0x1d0)](),this[_0x271450(0x1c7)](_0x271450(0x1dd),_0x147740)):this[_0x271450(0x1e4)](_0x22d4bd(this[_0x271450(0x1cc)],_0x271450(0x1f0))):this[_0x271450(0x1e4)](_0x22d4bd(this[_0x271450(0x1cc)],_0x271450(0x1f7)));}[_0x47d17b(0x203)](){const _0x456535=_0x47d17b,_0x2f9d78=this[_0x456535(0x1e6)]()[_0x456535(0x1f2)](),_0x5a2988=!!this[_0x456535(0x201)][_0x456535(0x1d5)];this[_0x456535(0x1d9)][_0x456535(0x1df)]=_0x2f9d78[_0x456535(0x1f5)]>0x0&&!_0x5a2988;}[_0x47d17b(0x1c0)](_0x548a62){try{return!!new URL(_0x548a62);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2330a2=_0x298f;(function(_0x5e5751,_0x602ef9){const _0xa48bc1=_0x298f,_0x368ccb=_0x5e5751();while(!![]){try{const _0x1fed01=-parseInt(_0xa48bc1(0x1ac))/0x1*(-parseInt(_0xa48bc1(0x189))/0x2)+-parseInt(_0xa48bc1(0x1c9))/0x3*(parseInt(_0xa48bc1(0x1b8))/0x4)+-parseInt(_0xa48bc1(0x208))/0x5+parseInt(_0xa48bc1(0x191))/0x6+-parseInt(_0xa48bc1(0x1dc))/0x7*(-parseInt(_0xa48bc1(0x1b6))/0x8)+-parseInt(_0xa48bc1(0x20c))/0x9*(-parseInt(_0xa48bc1(0x1de))/0xa)+parseInt(_0xa48bc1(0x1b3))/0xb*(-parseInt(_0xa48bc1(0x194))/0xc);if(_0x1fed01===_0x602ef9)break;else _0x368ccb['push'](_0x368ccb['shift']());}catch(_0x2e1e3b){_0x368ccb['push'](_0x368ccb['shift']());}}}(_0x456b,0xdd130));import{BalloonPanelView as _0x556ef8,ButtonView as _0x15cae6,clickOutsideHandler as _0x190e3f,FileDialogButtonView as _0xc3e90f,IconView as _0xef743,View as _0x4fe5fe}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x591a15,IconDocument as _0x506a7b,IconDocumentOutline as _0x2a83aa,IconDropdownArrow as _0x395458,IconLink as _0x323291,IconPaperClip as _0x3f6c31}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x16236e}from'./aichatcontextitembuttonview.js';function _0x456b(){const _0x308332=['clear','extendTemplate','clearCurrentContextItems','addContextButtonView','type','add','addResourceToContext','ck-ai-chat-controls_context_show-more-button','_handleAddContextButtonClick','105ZAYdzp','ck-ai-chat-context-chips-wrapper-balloon','__arrow','body','populateSourceResourceBalloon','isEnabled','current','files','ck-reset_all-excluded','ck-ai-chat-context-controls__pending-contexts','_urlBalloonPanelView','render','remove','setConversationContext','ck-ai-chat-controls-button','isOn','_handleUrlSubmit','balloonView','northArrowSouth','4210682WNMKMB','_urlInputView','17582210xSYFpx','_createUrlBalloonPanelView','icon','label','northArrowSouthWest','isAnyResourceBalloonVisible','refreshBalloon','source','_showSourceResourcesBalloon','arrowView','updateResourceState','_setupAllBalloonClickOutsideHandlers','overflowChips','southArrowNorthEast','ck-ai-chat-context-controls','locale','_setupUrlBalloonClickOutsideHandler','sources','urls','_addContextBalloonPanelView','defaultPositions','ck-ai-chat-context-controls__balloon-button','southArrowNorth','addContextItem','ck-ai-chat-context-controls__add-context-button','showUrlBalloonPanel','showAddContextBalloonPanel','cancel','conversation','ck-ai-chat','set','_createAddContextButtonView','AI_CHAT_CONTEXT_URL_LABEL','_toggleAddContextBalloon','_addContextToCollection','northArrowSouthEast','_currentContextsChips','_setBalloonPanelContent','createCollection','AI_CHAT_CONTEXT_FILE_LABEL','pin','loadSourceResources','5371425sHfIPW','addFileToContext','_createContextButton','ck-ai-chat-context-controls__add-context-balloon-panel','9OqsKbN','southArrowNorthWest','_getLimiterElement','_addUrlContent','menuitem','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__balloon-button-source','find','_overflowManager','_removeContextFromCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','buttonView','hideAddContextBalloonPanel','_setupAddContextBalloonClickOutsideHandler','removeContextItemChip','4fzyKcR','done','addUrlToContext','hide','_conversationContextsChips','clearConversationContextItems','destroy','focus','10135068LXJmwU','document','reorganizeChips','319524parPsp','hideUrlBalloonPanel','enabled','_resourcesBalloonView','children','ck-ai-chat-context-controls__show-more-balloon-panel','isLoading','_createAddContextBalloonPanelView','fire','closest','show','_addContextBalloonConfig','closeSourceResourceBalloon','isVisible','_createResourcesBalloonView','content','isReadOnly','showSourceResourcesBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','bodyCollection','_createBalloonButton','div','execute','tooltip','842839zoKigH','setContextItemLoading','submitUrl','_setAddContextButtonEnabled','_bindEventHandlers','_createArrowView','removeContextItem','869KKjDmX','element','addDocumentToContext','8ovHzSr','_createBaseBalloonPanel','188716rQjcue','isHidden','setContainerElement','_setupTemplate','setTemplate','searchInputVisibleFrom','setAddContextOptions','bind'];_0x456b=function(){return _0x308332;};return _0x456b();}import{AIChatContextPanelUrlInputView as _0x4aff20}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x350c2c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2ca9e0}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x50bad9}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2330a2(0x1b5),_0x2330a2(0x209),_0x2330a2(0x18b),_0x2330a2(0x1c6),_0x2330a2(0x1b2),_0x2330a2(0x207)];function _0x298f(_0x1cde0c,_0xf4fdb5){const _0x456b61=_0x456b();return _0x298f=function(_0x298f35,_0x28e5c7){_0x298f35=_0x298f35-0x180;let _0x48d8ff=_0x456b61[_0x298f35];return _0x48d8ff;},_0x298f(_0x1cde0c,_0xf4fdb5);}const Ao=_0x2330a2(0x1ec),ko=_0x2330a2(0x1d2),Eo=_0x2330a2(0x20b),vo=_0x2330a2(0x1f6),Vo=_0x2330a2(0x211),Io=_0x2330a2(0x1f3),Po=_0x2330a2(0x180),Ro=_0x2330a2(0x1d7),Uo=_0x2330a2(0x1ca),Lo=_0x2330a2(0x1c7),No=_0x2330a2(0x199),Oo=_0x2330a2(0x1fb),Mo=[_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x1e2)],_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x1db)],_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x201)],_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x20d)],_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x1f4)],_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x1eb)]];export class AIChatContextPanelView extends _0x4fe5fe{[_0x2330a2(0x1c3)];[_0x2330a2(0x202)]=this[_0x2330a2(0x204)]();[_0x2330a2(0x18d)]=this[_0x2330a2(0x204)]();[_0x2330a2(0x182)];[_0x2330a2(0x1f1)];[_0x2330a2(0x1d3)];[_0x2330a2(0x1dd)];[_0x2330a2(0x197)];[_0x2330a2(0x19f)];[_0x2330a2(0x1a7)];constructor(_0x4a983a,_0x38ccd7){const _0xb33d01=_0x2330a2;super(_0x4a983a),this[_0xb33d01(0x1a7)]=_0x38ccd7[_0xb33d01(0x1a7)],this[_0xb33d01(0x202)]=this[_0xb33d01(0x204)](),this[_0xb33d01(0x18d)]=this[_0xb33d01(0x204)](),this[_0xb33d01(0x1c3)]=this[_0xb33d01(0x1fd)](_0x4a983a),this[_0xb33d01(0x1f1)]=this[_0xb33d01(0x19b)](_0x4a983a),this[_0xb33d01(0x1d3)]=this[_0xb33d01(0x1df)](_0x4a983a),this[_0xb33d01(0x197)]=this[_0xb33d01(0x1a2)](_0x4a983a,_0x38ccd7);const _0x401865={'cssClasses':{'showMoreButton':Lo,'showMoreBalloon':No,'overflowContainer':Uo,'controlsButton':Ro}};this[_0xb33d01(0x182)]=new _0x350c2c(_0x4a983a,this[_0xb33d01(0x202)],_0x401865,this[_0xb33d01(0x1a7)],this),this[_0xb33d01(0x19f)]={'buttonView':this[_0xb33d01(0x1c3)],'balloonView':this[_0xb33d01(0x1f1)],'hideMethod':this[_0xb33d01(0x186)][_0xb33d01(0x1bf)](this),'showMethod':this[_0xb33d01(0x1f8)][_0xb33d01(0x1bf)](this)},this[_0xb33d01(0x1bb)](),this[_0xb33d01(0x1b0)]();}[_0x2330a2(0x1d4)](){const _0x115bad=_0x2330a2;super[_0x115bad(0x1d4)](),this[_0x115bad(0x1e9)](),this[_0x115bad(0x182)][_0x115bad(0x1ba)](this[_0x115bad(0x1b4)]),this[_0x115bad(0x182)][_0x115bad(0x193)]();}[_0x2330a2(0x18f)](){const _0x3d36d3=_0x2330a2;super[_0x3d36d3(0x18f)](),this[_0x3d36d3(0x182)][_0x3d36d3(0x18f)](),this[_0x3d36d3(0x197)][_0x3d36d3(0x18f)]();}[_0x2330a2(0x1f5)](_0x4bc7e1,_0xc45276){const _0x5940a2=_0x2330a2,_0x2727c2=this[_0x5940a2(0x20a)](_0x4bc7e1,_0x5940a2(0x1cf),!0x0,_0xc45276);this[_0x5940a2(0x200)](_0x2727c2,this[_0x5940a2(0x202)]),this[_0x5940a2(0x182)][_0x5940a2(0x193)]();}[_0x2330a2(0x1b2)](_0x32b159){const _0xa5ee7a=_0x2330a2;this[_0xa5ee7a(0x183)](_0x32b159,this[_0xa5ee7a(0x202)]),this[_0xa5ee7a(0x183)](_0x32b159,this[_0xa5ee7a(0x182)][_0xa5ee7a(0x1ea)]),this[_0xa5ee7a(0x182)][_0xa5ee7a(0x193)]();}[_0x2330a2(0x1ad)](_0x4d17f4,_0x5dcd86){const _0x4a4979=_0x2330a2;let _0x30ecbd=this[_0x4a4979(0x202)][_0x4a4979(0x181)](_0x5c4f1e=>_0x5c4f1e['id']===_0x4d17f4);_0x30ecbd||(_0x30ecbd=this[_0x4a4979(0x182)][_0x4a4979(0x1ea)][_0x4a4979(0x181)](_0x42525d=>_0x42525d['id']===_0x4d17f4)),_0x30ecbd&&(_0x30ecbd[_0x4a4979(0x19a)]=_0x5dcd86);}[_0x2330a2(0x1d6)](_0x27dfe4){const _0x81d5b4=_0x2330a2;this[_0x81d5b4(0x18d)][_0x81d5b4(0x1c0)]();for(const _0x2425db of _0x27dfe4){const _0x2d1e69=this[_0x81d5b4(0x20a)](_0x2425db,_0x81d5b4(0x1fa),!0x1,!0x1);this[_0x81d5b4(0x200)](_0x2d1e69,this[_0x81d5b4(0x18d)]);}}[_0x2330a2(0x1c2)](){const _0x17e353=_0x2330a2;this[_0x17e353(0x202)][_0x17e353(0x1c0)](),this[_0x17e353(0x182)][_0x17e353(0x1c0)]();}[_0x2330a2(0x18e)](){const _0x39515e=_0x2330a2;this[_0x39515e(0x18d)][_0x39515e(0x1c0)]();}[_0x2330a2(0x1e8)](_0x3d6c79,_0x41857e,_0x3a17e0){const _0x346b1b=_0x2330a2;this[_0x346b1b(0x197)][_0x346b1b(0x1e8)](_0x3d6c79,_0x41857e,_0x3a17e0);}[_0x2330a2(0x186)](){const _0xd9f544=_0x2330a2;this[_0xd9f544(0x1ff)](!0x1);}[_0x2330a2(0x1f8)](){const _0x401e33=_0x2330a2;this[_0x401e33(0x1ff)](!0x0);}[_0x2330a2(0x195)](){const _0x4d5a8f=_0x2330a2;this[_0x4d5a8f(0x1d3)][_0x4d5a8f(0x18c)](),this[_0x4d5a8f(0x1c3)][_0x4d5a8f(0x1d8)]=!0x1,this[_0x4d5a8f(0x1dd)]&&this[_0x4d5a8f(0x1dd)][_0x4d5a8f(0x1c0)]();}[_0x2330a2(0x1f7)](){const _0xbc358d=_0x2330a2;this[_0xbc358d(0x1d3)][_0xbc358d(0x19e)](),this[_0xbc358d(0x1c3)][_0xbc358d(0x1d8)]=!0x0;}[_0x2330a2(0x1e6)](_0x177ebd){const _0x168307=_0x2330a2;this[_0x168307(0x197)][_0x168307(0x1a5)](_0x177ebd),this[_0x168307(0x1c3)][_0x168307(0x1d8)]=!0x0;}[_0x2330a2(0x1cd)](_0x2bc32b,_0x151430,_0x1ba9c1,_0x5cd60d){const _0x44156f=_0x2330a2;this[_0x44156f(0x197)][_0x44156f(0x1cd)](_0x2bc32b,_0x1ba9c1,_0x5cd60d);}[_0x2330a2(0x1a0)](_0x557d0e){const _0x1191b5=_0x2330a2;this[_0x1191b5(0x197)][_0x1191b5(0x1a0)](_0x557d0e),this[_0x1191b5(0x1c3)][_0x1191b5(0x1d8)]=!0x1;}[_0x2330a2(0x1be)](_0x3bdfdd){const _0x12e57c=_0x2330a2;this[_0x12e57c(0x203)](this[_0x12e57c(0x1f1)],this[_0x12e57c(0x1ed)],_0x3bdfdd),this[_0x12e57c(0x1af)](_0x3bdfdd);}[_0x2330a2(0x1af)](_0x199a73){const _0x5a7f7f=_0x2330a2,_0x3ad681=!_0x199a73[_0x5a7f7f(0x192)][_0x5a7f7f(0x1b9)]&&_0x199a73[_0x5a7f7f(0x192)][_0x5a7f7f(0x196)],_0x4b49f6=_0x199a73[_0x5a7f7f(0x1f0)][_0x5a7f7f(0x196)],_0x120d55=_0x199a73[_0x5a7f7f(0x1d0)][_0x5a7f7f(0x196)];this[_0x5a7f7f(0x1c3)][_0x5a7f7f(0x1ce)]=_0x3ad681||_0x4b49f6||_0x120d55;}[_0x2330a2(0x1bb)](){const _0x315120=_0x2330a2;this[_0x315120(0x1bc)]({'tag':_0x315120(0x1a9),'attributes':{'class':[Ao,_0x315120(0x1d1)]},'children':[{'tag':_0x315120(0x1a9),'attributes':{'class':ko},'children':this[_0x315120(0x202)]}]});}[_0x2330a2(0x1b0)](){const _0x11dad8=_0x2330a2;this[_0x11dad8(0x1c3)]['on'](_0x11dad8(0x1aa),()=>{const _0x2c5cad=_0x11dad8;this[_0x2c5cad(0x1c8)]();});}[_0x2330a2(0x1fd)](_0x2b2e03){const _0xff3464=_0x2330a2,_0xaf4b9b=new _0x15cae6(_0x2b2e03);return _0xaf4b9b[_0xff3464(0x1fc)]({'label':_0x2ca9e0(_0x2b2e03,_0xff3464(0x184)),'class':Ro+'\x20'+vo,'icon':_0x3f6c31,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xaf4b9b;}[_0x2330a2(0x19b)](_0x348135){const _0xcb68a6=_0x2330a2;return this[_0xcb68a6(0x1b7)](_0x348135,Eo);}[_0x2330a2(0x1df)](_0x16ac9a){const _0x168882=_0x2330a2,_0x1e8088=this[_0x168882(0x1b7)](_0x16ac9a,Vo);return this[_0x168882(0x20f)](_0x1e8088,_0x16ac9a),_0x1e8088;}[_0x2330a2(0x1a2)](_0x283cc5,_0x17bf23){const _0x500267=_0x2330a2,_0x38414a={'searchInputVisibleFrom':_0x17bf23[_0x500267(0x1bd)],'onBackToContext':()=>{const _0x1f1aa9=_0x500267;this[_0x1f1aa9(0x1f8)](),this[_0x1f1aa9(0x1f1)][_0x1f1aa9(0x206)]({'target':this[_0x1f1aa9(0x1c3)][_0x1f1aa9(0x1b4)],'limiter':this[_0x1f1aa9(0x20e)](),'positions':Mo});},'onResourceSelected':(_0x2e4381,_0x463129)=>{const _0x347aee=_0x500267;this[_0x347aee(0x19c)](_0x347aee(0x1c6),{'source':_0x2e4381,'resource':_0x463129});},'onLoadSourceResources':_0x3654bd=>{const _0x5175f7=_0x500267;this[_0x5175f7(0x19c)](_0x5175f7(0x207),_0x3654bd);},'onBalloonClosed':()=>{const _0x2206c7=_0x500267;this[_0x2206c7(0x1c3)][_0x2206c7(0x1d8)]=!0x1;},'getLimiterElement':()=>this[_0x500267(0x20e)](),'getTargetElement':()=>this[_0x500267(0x1c3)][_0x500267(0x1b4)]};return new _0x50bad9(_0x283cc5,_0x17bf23[_0x500267(0x1a7)],_0x38414a);}[_0x2330a2(0x20e)](){const _0x2311d5=_0x2330a2;return this[_0x2311d5(0x1b4)]?.[_0x2311d5(0x19d)]('.'+Oo)||document[_0x2311d5(0x1cc)];}[_0x2330a2(0x1b7)](_0x53c084,_0x14e585){const _0x174cb0=_0x2330a2,_0xedf6a0=new _0x556ef8(_0x53c084);return _0xedf6a0[_0x174cb0(0x1c1)]({'attributes':{'class':_0x14e585}}),this[_0x174cb0(0x1a7)][_0x174cb0(0x1c5)](_0xedf6a0),_0xedf6a0;}[_0x2330a2(0x203)](_0x2c369b,_0x523e27,_0x3dd2bd){const _0x1c5a67=_0x2330a2;if(_0x2c369b[_0x1c5a67(0x1a3)][_0x1c5a67(0x1c0)](),!_0x3dd2bd[_0x1c5a67(0x192)][_0x1c5a67(0x1b9)]&&_0x3dd2bd[_0x1c5a67(0x192)][_0x1c5a67(0x196)]){const _0x4144a3=this[_0x1c5a67(0x1a8)](_0x523e27,{'label':_0x2ca9e0(_0x523e27,_0x1c5a67(0x1a6)),'icon':_0x506a7b});_0x4144a3['on'](_0x1c5a67(0x1aa),()=>{const _0x356476=_0x1c5a67;this[_0x356476(0x19c)](_0x356476(0x1b5)),this[_0x356476(0x186)]();}),_0x2c369b[_0x1c5a67(0x1a3)][_0x1c5a67(0x1c5)](_0x4144a3);}if(_0x3dd2bd[_0x1c5a67(0x1f0)][_0x1c5a67(0x196)]){const _0x49abc9=this[_0x1c5a67(0x1a8)](_0x523e27,{'label':_0x2ca9e0(_0x523e27,_0x1c5a67(0x1fe)),'icon':_0x323291});_0x49abc9['on'](_0x1c5a67(0x1aa),()=>{const _0x493818=_0x1c5a67;this[_0x493818(0x186)](),this[_0x493818(0x1f7)](),this[_0x493818(0x1d3)][_0x493818(0x206)]({'target':this[_0x493818(0x1c3)][_0x493818(0x1b4)],'limiter':this[_0x493818(0x20e)](),'positions':Mo}),this[_0x493818(0x1dd)][_0x493818(0x190)]();}),_0x2c369b[_0x1c5a67(0x1a3)][_0x1c5a67(0x1c5)](_0x49abc9);}if(_0x3dd2bd[_0x1c5a67(0x1d0)][_0x1c5a67(0x196)]){const _0x532fc6=new _0xc3e90f(_0x523e27);_0x532fc6[_0x1c5a67(0x1fc)]({'label':_0x2ca9e0(_0x523e27,_0x1c5a67(0x205)),'icon':_0x591a15,'withText':!0x0,'tooltip':!0x0,'class':Io,'allowMultipleFiles':!0x0}),_0x532fc6['on'](_0x1c5a67(0x18a),(_0x30b026,_0xbb7520)=>{const _0x5c9558=_0x1c5a67;this[_0x5c9558(0x19c)](_0x5c9558(0x209),_0xbb7520),this[_0x5c9558(0x186)]();}),_0x532fc6[_0x1c5a67(0x1ab)]=!0x0,_0x2c369b[_0x1c5a67(0x1a3)][_0x1c5a67(0x1c5)](_0x532fc6);}for(const _0x5bcad2 of _0x3dd2bd[_0x1c5a67(0x1ef)]){const _0x1ed346=this[_0x1c5a67(0x1a8)](_0x523e27,{'label':_0x5bcad2[_0x1c5a67(0x1e1)],'icon':_0x5bcad2[_0x1c5a67(0x1e0)]||_0x2a83aa,'type':_0x1c5a67(0x1e5)});_0x2c369b[_0x1c5a67(0x1a3)][_0x1c5a67(0x1c5)](_0x1ed346),_0x1ed346['on'](_0x1c5a67(0x1aa),()=>{const _0x34f944=_0x1c5a67;this[_0x34f944(0x186)](),this[_0x34f944(0x1e6)](_0x5bcad2);});}}[_0x2330a2(0x20f)](_0x1adce1,_0x814204){const _0x5bd0ea=_0x2330a2;this[_0x5bd0ea(0x1dd)]=new _0x4aff20(_0x814204),this[_0x5bd0ea(0x1dd)]['on'](_0x5bd0ea(0x1ae),(_0x225075,_0x41b70c)=>{const _0x6091aa=_0x5bd0ea;this[_0x6091aa(0x1d9)](_0x41b70c);}),this[_0x5bd0ea(0x1dd)]['on'](_0x5bd0ea(0x1f9),()=>{const _0x4cf8c9=_0x5bd0ea;this[_0x4cf8c9(0x195)](),this[_0x4cf8c9(0x1f8)](),this[_0x4cf8c9(0x1f1)][_0x4cf8c9(0x206)]({'target':this[_0x4cf8c9(0x1c3)][_0x4cf8c9(0x1b4)],'limiter':this[_0x4cf8c9(0x20e)](),'positions':Mo});}),this[_0x5bd0ea(0x1dd)]['on'](_0x5bd0ea(0x1e4),()=>{const _0x41b380=_0x5bd0ea;this[_0x41b380(0x1d3)][_0x41b380(0x1a1)]&&this[_0x41b380(0x1d3)][_0x41b380(0x206)]({'target':this[_0x41b380(0x1c3)][_0x41b380(0x1b4)],'limiter':this[_0x41b380(0x20e)](),'positions':Mo});}),_0x1adce1[_0x5bd0ea(0x1a3)][_0x5bd0ea(0x1c5)](this[_0x5bd0ea(0x1dd)]);}[_0x2330a2(0x1a8)](_0x55b924,_0xc75824){const _0x566c15=_0x2330a2,_0x45e4b9=_0x566c15(0x1e5)===_0xc75824[_0x566c15(0x1c4)]?new SourcesBalloonButtonView(_0x55b924):new _0x15cae6(_0x55b924);return _0x45e4b9[_0x566c15(0x1fc)]({'label':_0xc75824[_0x566c15(0x1e1)],'icon':_0xc75824[_0x566c15(0x1e0)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Io}),_0x45e4b9;}[_0x2330a2(0x1e9)](){const _0x1c0789=_0x2330a2;this[_0x1c0789(0x187)](),this[_0x1c0789(0x1ee)]();}[_0x2330a2(0x1ee)](){const _0x147ac3=_0x2330a2;_0x190e3f({'emitter':this[_0x147ac3(0x1d3)],'contextElements':[this[_0x147ac3(0x1d3)][_0x147ac3(0x1b4)]],'callback':()=>{const _0x174ac6=_0x147ac3;this[_0x174ac6(0x195)]();},'activator':()=>this[_0x147ac3(0x1d3)][_0x147ac3(0x1a1)]});}[_0x2330a2(0x1ff)](_0x1da195){const _0x47056d=_0x2330a2,_0xa53c74=this[_0x47056d(0x19f)];_0xa53c74[_0x47056d(0x185)][_0x47056d(0x1d8)]=_0x1da195,_0x1da195?_0xa53c74[_0x47056d(0x1da)][_0x47056d(0x19e)]():_0xa53c74[_0x47056d(0x1da)][_0x47056d(0x18c)]();}[_0x2330a2(0x187)](){const _0xca6ce0=_0x2330a2,{balloonView:_0xc30c30,buttonView:_0xa73840,hideMethod:_0x292fc0}=this[_0xca6ce0(0x19f)];_0x190e3f({'emitter':_0xc30c30,'contextElements':[_0xc30c30[_0xca6ce0(0x1b4)],_0xa73840[_0xca6ce0(0x1b4)]],'callback':()=>{_0x292fc0();},'activator':()=>_0xa73840[_0xca6ce0(0x1d8)]&&!this[_0xca6ce0(0x1d3)][_0xca6ce0(0x1a1)]&&!this[_0xca6ce0(0x197)][_0xca6ce0(0x1e3)]()});}[_0x2330a2(0x20a)](_0x53c885,_0x28db05,_0x50168b=!0x1,_0x27a9f3=!0x1){const _0x4232d0=_0x2330a2,_0x7381d5=_0x4232d0(0x1fa)===_0x28db05||!0x0===_0x53c885[_0x4232d0(0x1a4)],_0x165fcb=new _0x16236e(this[_0x4232d0(0x1ed)],_0x53c885,_0x7381d5,_0x50168b,_0x27a9f3);return _0x7381d5||_0x165fcb['on'](_0x4232d0(0x188),()=>{const _0x388b76=_0x4232d0;this[_0x388b76(0x19c)](_0x388b76(0x1b2),_0x165fcb['id']);}),_0x165fcb;}[_0x2330a2(0x200)](_0x5e06f9,_0x3e35d1){const _0x2cc3e2=_0x2330a2;_0x3e35d1[_0x2cc3e2(0x1c5)](_0x5e06f9,0x0);}[_0x2330a2(0x183)](_0x18a5ef,_0x445808){const _0x2f51b0=_0x2330a2,_0x4d97ef=_0x445808[_0x2f51b0(0x181)](_0x3037a7=>_0x3037a7['id']===_0x18a5ef);_0x4d97ef&&_0x445808[_0x2f51b0(0x1d5)](_0x4d97ef);}[_0x2330a2(0x1c8)](){const _0x5e35aa=_0x2330a2;this[_0x5e35aa(0x1c3)][_0x5e35aa(0x1d8)]?this[_0x5e35aa(0x186)]():(this[_0x5e35aa(0x1f8)](),this[_0x5e35aa(0x1f1)][_0x5e35aa(0x206)]({'target':this[_0x5e35aa(0x1c3)][_0x5e35aa(0x1b4)],'limiter':this[_0x5e35aa(0x20e)](),'positions':Mo}));}[_0x2330a2(0x1d9)](_0x175983){const _0x34aed0=_0x2330a2;this[_0x34aed0(0x1dd)][_0x34aed0(0x1c0)](),this[_0x34aed0(0x195)](),this[_0x34aed0(0x19c)](_0x34aed0(0x18b),_0x175983);}}export class SourcesBalloonButtonView extends _0x15cae6{[_0x2330a2(0x1e7)];constructor(_0x10680f){const _0x965606=_0x2330a2;super(_0x10680f),this[_0x965606(0x1fc)]({'withText':!0x0,'role':_0x965606(0x210)}),this[_0x965606(0x1e7)]=this[_0x965606(0x1b1)](),this[_0x965606(0x1c1)]({'attributes':{'class':[Po]}});}[_0x2330a2(0x1d4)](){const _0x2a9913=_0x2330a2;super[_0x2a9913(0x1d4)](),this[_0x2a9913(0x198)][_0x2a9913(0x1c5)](this[_0x2a9913(0x1e7)]);}[_0x2330a2(0x1b1)](){const _0x6a2559=_0x2330a2,_0x7e8a3e=new _0xef743();return _0x7e8a3e[_0x6a2559(0x1a3)]=_0x395458,_0x7e8a3e[_0x6a2559(0x1c1)]({'attributes':{'class':Po+_0x6a2559(0x1cb)}}),_0x7e8a3e;}}
23
+ function _0x436a(){const _0x9a4e=['isEnabled','cancel','icon','ck-ai-chat','show','southArrowNorthEast','submitUrl','children','tooltip','northArrowSouthEast','ck-ai-chat-context-controls__add-context-balloon-panel','document','closeSourceResourceBalloon','hide','bind','createCollection','_createAddContextButtonView','southArrowNorth','11065txydmu','_setAddContextButtonEnabled','_getLimiterElement','render','clearCurrentContextItems','sources','element','northArrowSouthWest','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createBalloonButton','remove','AI_CHAT_CONTEXT_FILE_LABEL','buttonView','extendTemplate','ck-ai-chat-context-controls__balloon-button','reorganizeChips','setContextItemLoading','populateSourceResourceBalloon','_addContextToCollection','defaultPositions','_overflowManager','arrowView','_bindEventHandlers','removeContextItemChip','addDocumentToContext','enabled','8657310YEjWQP','ck-ai-chat-context-controls__url-balloon-panel','pin','balloonView','hideAddContextBalloonPanel','destroy','30165ulRURE','setContainerElement','isAnyResourceBalloonVisible','isOn','_createBaseBalloonPanel','clearConversationContextItems','_conversationContextsChips','showUrlBalloonPanel','setConversationContext','setTemplate','urls','_createResourcesBalloonView','_createContextButton','AI_CHAT_CONTEXT_ADD_CONTEXT','8YziOkL','refreshBalloon','removeContextItem','48YUgWgr','_toggleAddContextBalloon','_setBalloonPanelContent','_handleAddContextButtonClick','_setupAddContextBalloonClickOutsideHandler','_createUrlBalloonPanelView','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-controls-button','_currentContextsChips','bodyCollection','set','_setupUrlBalloonClickOutsideHandler','isLoading','locale','updateResourceState','isHidden','__arrow','fire','div','hideUrlBalloonPanel','ck-ai-chat-context-controls__show-more-balloon-panel','current','_createAddContextBalloonPanelView','closest','addFileToContext','_addContextBalloonConfig','clear','add','_resourcesBalloonView','204vflyvl','_createArrowView','1045440kNdQPU','6144bwGXts','_urlInputView','setAddContextOptions','_setupAllBalloonClickOutsideHandlers','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls_context_show-more-button','files','done','searchInputVisibleFrom','conversation','ck-ai-chat-context-controls__add-context-button','execute','focus','isVisible','source','_handleUrlSubmit','_addUrlContent','addResourceToContext','_setupTemplate','2424THMtrn','label','ck-ai-chat-context-controls__pending-contexts','addContextButtonView','_addContextBalloonPanelView','menuitem','overflowChips','find','_showSourceResourcesBalloon','_urlBalloonPanelView','5804436nXZOiF','loadSourceResources','334936FNhXzW','AI_CHAT_CONTEXT_URL_LABEL','showAddContextBalloonPanel','ck-ai-chat-context-controls','addContextItem','ck-reset_all-excluded','addUrlToContext','southArrowNorthWest','body','_removeContextFromCollection','showSourceResourcesBalloon','northArrowSouth','isReadOnly','type','content'];_0x436a=function(){return _0x9a4e;};return _0x436a();}const _0x4acd59=_0x51dd;(function(_0x537bd0,_0x8bf7e){const _0x482415=_0x51dd,_0x365349=_0x537bd0();while(!![]){try{const _0x2dd45a=parseInt(_0x482415(0x1c4))/0x1*(parseInt(_0x482415(0x1a1))/0x2)+parseInt(_0x482415(0x224))/0x3*(-parseInt(_0x482415(0x1c1))/0x4)+parseInt(_0x482415(0x204))/0x5*(parseInt(_0x482415(0x1d7))/0x6)+-parseInt(_0x482415(0x1e3))/0x7*(-parseInt(_0x482415(0x1a4))/0x8)+parseInt(_0x482415(0x1c3))/0x9+-parseInt(_0x482415(0x21e))/0xa+parseInt(_0x482415(0x1e1))/0xb;if(_0x2dd45a===_0x8bf7e)break;else _0x365349['push'](_0x365349['shift']());}catch(_0x5d7c91){_0x365349['push'](_0x365349['shift']());}}}(_0x436a,0x72fe8));import{BalloonPanelView as _0x1be137,ButtonView as _0x3808bb,clickOutsideHandler as _0x199031,FileDialogButtonView as _0x3c1e31,IconView as _0x4ec24f,View as _0x5e48bb}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x329c58,IconDocument as _0x175401,IconDocumentOutline as _0x540d6b,IconDropdownArrow as _0x428490,IconLink as _0x4dbdea,IconPaperClip as _0x4fb726}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x43dea2}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xbbf1a6}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2c9b7e}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3c5d82}from'../../../aicore/utils/common-translations.js';function _0x51dd(_0x24d09f,_0x3bde50){const _0x436afb=_0x436a();return _0x51dd=function(_0x51ddd3,_0x40a244){_0x51ddd3=_0x51ddd3-0x195;let _0x5dc6e1=_0x436afb[_0x51ddd3];return _0x5dc6e1;},_0x51dd(_0x24d09f,_0x3bde50);}import{AIChatResourcesBalloonView as _0x72adf1}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4acd59(0x21c),_0x4acd59(0x1bc),_0x4acd59(0x1e9),_0x4acd59(0x1d5),_0x4acd59(0x1a3),_0x4acd59(0x1e2)];const ko=_0x4acd59(0x1e6),Eo=_0x4acd59(0x1d9),vo=_0x4acd59(0x1fc),Vo=_0x4acd59(0x1ce),Io=_0x4acd59(0x21f),Po=_0x4acd59(0x212),Ro=_0x4acd59(0x1c8),Uo=_0x4acd59(0x1ab),Lo=_0x4acd59(0x1aa),No=_0x4acd59(0x1c9),Oo=_0x4acd59(0x1b8),Mo=_0x4acd59(0x1f5),Ho=[_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x20b)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1ee)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1fb)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1ea)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x203)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1f7)]];export class AIChatContextPanelView extends _0x5e48bb{[_0x4acd59(0x1da)];[_0x4acd59(0x1ac)]=this[_0x4acd59(0x201)]();[_0x4acd59(0x199)]=this[_0x4acd59(0x201)]();[_0x4acd59(0x218)];[_0x4acd59(0x1db)];[_0x4acd59(0x1e0)];[_0x4acd59(0x1c5)];[_0x4acd59(0x1c0)];[_0x4acd59(0x1bd)];[_0x4acd59(0x1ad)];constructor(_0x5c3559,_0x267484){const _0x280aa1=_0x4acd59;super(_0x5c3559),this[_0x280aa1(0x1ad)]=_0x267484[_0x280aa1(0x1ad)],this[_0x280aa1(0x1ac)]=this[_0x280aa1(0x201)](),this[_0x280aa1(0x199)]=this[_0x280aa1(0x201)](),this[_0x280aa1(0x1da)]=this[_0x280aa1(0x202)](_0x5c3559),this[_0x280aa1(0x1db)]=this[_0x280aa1(0x1ba)](_0x5c3559),this[_0x280aa1(0x1e0)]=this[_0x280aa1(0x1a9)](_0x5c3559),this[_0x280aa1(0x1c0)]=this[_0x280aa1(0x19e)](_0x5c3559,_0x267484);const _0x21e268={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x280aa1(0x218)]=new _0x2c9b7e(_0x5c3559,this[_0x280aa1(0x1ac)],_0x21e268,this[_0x280aa1(0x1ad)],this),this[_0x280aa1(0x1bd)]={'buttonView':this[_0x280aa1(0x1da)],'balloonView':this[_0x280aa1(0x1db)],'hideMethod':this[_0x280aa1(0x222)][_0x280aa1(0x200)](this),'showMethod':this[_0x280aa1(0x1e5)][_0x280aa1(0x200)](this)},this[_0x280aa1(0x1d6)](),this[_0x280aa1(0x21a)]();}[_0x4acd59(0x207)](){const _0x270225=_0x4acd59;super[_0x270225(0x207)](),this[_0x270225(0x1c7)](),this[_0x270225(0x218)][_0x270225(0x225)](this[_0x270225(0x20a)]),this[_0x270225(0x218)][_0x270225(0x213)]();}[_0x4acd59(0x223)](){const _0x2a97d1=_0x4acd59;super[_0x2a97d1(0x223)](),this[_0x2a97d1(0x218)][_0x2a97d1(0x223)](),this[_0x2a97d1(0x1c0)][_0x2a97d1(0x223)]();}[_0x4acd59(0x1e7)](_0x5a2d57,_0x2ff556){const _0x15d023=_0x4acd59,_0xf387d0=this[_0x15d023(0x19f)](_0x5a2d57,_0x15d023(0x1b9),!0x0,_0x2ff556);this[_0x15d023(0x216)](_0xf387d0,this[_0x15d023(0x1ac)]),this[_0x15d023(0x218)][_0x15d023(0x213)]();}[_0x4acd59(0x1a3)](_0x36b6bd){const _0x2346ee=_0x4acd59;this[_0x2346ee(0x1ec)](_0x36b6bd,this[_0x2346ee(0x1ac)]),this[_0x2346ee(0x1ec)](_0x36b6bd,this[_0x2346ee(0x218)][_0x2346ee(0x1dd)]),this[_0x2346ee(0x218)][_0x2346ee(0x213)]();}[_0x4acd59(0x214)](_0x4c94c0,_0x5919c6){const _0x1fc899=_0x4acd59;let _0x323790=this[_0x1fc899(0x1ac)][_0x1fc899(0x1de)](_0x4cb6df=>_0x4cb6df['id']===_0x4c94c0);_0x323790||(_0x323790=this[_0x1fc899(0x218)][_0x1fc899(0x1dd)][_0x1fc899(0x1de)](_0x4027e3=>_0x4027e3['id']===_0x4c94c0)),_0x323790&&(_0x323790[_0x1fc899(0x1b0)]=_0x5919c6);}[_0x4acd59(0x19b)](_0x5b7eeb){const _0x41cbb3=_0x4acd59;this[_0x41cbb3(0x199)][_0x41cbb3(0x1be)]();for(const _0x587bac of _0x5b7eeb){const _0x4d459a=this[_0x41cbb3(0x19f)](_0x587bac,_0x41cbb3(0x1cd),!0x1,!0x1);this[_0x41cbb3(0x216)](_0x4d459a,this[_0x41cbb3(0x199)]);}}[_0x4acd59(0x208)](){const _0x38978c=_0x4acd59;this[_0x38978c(0x1ac)][_0x38978c(0x1be)](),this[_0x38978c(0x218)][_0x38978c(0x1be)]();}[_0x4acd59(0x198)](){const _0x4026f8=_0x4acd59;this[_0x4026f8(0x199)][_0x4026f8(0x1be)]();}[_0x4acd59(0x1b2)](_0x523c1e,_0x42fbba,_0x23a60a){const _0x41bd46=_0x4acd59;this[_0x41bd46(0x1c0)][_0x41bd46(0x1b2)](_0x523c1e,_0x42fbba,_0x23a60a);}[_0x4acd59(0x222)](){const _0x59fc0c=_0x4acd59;this[_0x59fc0c(0x1a5)](!0x1);}[_0x4acd59(0x1e5)](){const _0x145970=_0x4acd59;this[_0x145970(0x1a5)](!0x0);}[_0x4acd59(0x1b7)](){const _0x42e17a=_0x4acd59;this[_0x42e17a(0x1e0)][_0x42e17a(0x1ff)](),this[_0x42e17a(0x1da)][_0x42e17a(0x196)]=!0x1,this[_0x42e17a(0x1c5)]&&this[_0x42e17a(0x1c5)][_0x42e17a(0x1be)]();}[_0x4acd59(0x19a)](){const _0x4717c6=_0x4acd59;this[_0x4717c6(0x1e0)][_0x4717c6(0x1f6)](),this[_0x4717c6(0x1da)][_0x4717c6(0x196)]=!0x0;}[_0x4acd59(0x1df)](_0x1b2eaa){const _0x2d9e25=_0x4acd59;this[_0x2d9e25(0x1c0)][_0x2d9e25(0x1ed)](_0x1b2eaa),this[_0x2d9e25(0x1da)][_0x2d9e25(0x196)]=!0x0;}[_0x4acd59(0x215)](_0x335a41,_0x1e1382,_0x8b06ff,_0xb8b745){const _0x27b8a6=_0x4acd59;this[_0x27b8a6(0x1c0)][_0x27b8a6(0x215)](_0x335a41,_0x8b06ff,_0xb8b745);}[_0x4acd59(0x1fe)](_0x279f53){const _0x3eef89=_0x4acd59;this[_0x3eef89(0x1c0)][_0x3eef89(0x1fe)](_0x279f53),this[_0x3eef89(0x1da)][_0x3eef89(0x196)]=!0x1;}[_0x4acd59(0x1c6)](_0x13c673){const _0xf006ec=_0x4acd59;this[_0xf006ec(0x1a6)](this[_0xf006ec(0x1db)],this[_0xf006ec(0x1b1)],_0x13c673),this[_0xf006ec(0x205)](_0x13c673);}[_0x4acd59(0x205)](_0x2204e4){const _0x3c8c32=_0x4acd59,_0x45b253=!_0x2204e4[_0x3c8c32(0x1fd)][_0x3c8c32(0x1b3)]&&_0x2204e4[_0x3c8c32(0x1fd)][_0x3c8c32(0x21d)],_0x1921b9=_0x2204e4[_0x3c8c32(0x19d)][_0x3c8c32(0x21d)],_0x12c5f5=_0x2204e4[_0x3c8c32(0x1ca)][_0x3c8c32(0x21d)];this[_0x3c8c32(0x1da)][_0x3c8c32(0x1f2)]=_0x45b253||_0x1921b9||_0x12c5f5;}[_0x4acd59(0x1d6)](){const _0x5e2166=_0x4acd59;this[_0x5e2166(0x19c)]({'tag':_0x5e2166(0x1b6),'attributes':{'class':[ko,_0x5e2166(0x1e8)]},'children':[{'tag':_0x5e2166(0x1b6),'attributes':{'class':Eo},'children':this[_0x5e2166(0x1ac)]}]});}[_0x4acd59(0x21a)](){const _0x127cee=_0x4acd59;this[_0x127cee(0x1da)]['on'](_0x127cee(0x1cf),()=>{const _0x218b44=_0x127cee;this[_0x218b44(0x1a7)]();});}[_0x4acd59(0x202)](_0x523465){const _0x3dbe92=_0x4acd59,_0xa535f1=new _0x3808bb(_0x523465);return _0xa535f1[_0x3dbe92(0x1ae)]({'label':_0x3c5d82(_0x523465,_0x3dbe92(0x1a0)),'class':Uo+'\x20'+Vo,'icon':_0x4fb726,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xa535f1;}[_0x4acd59(0x1ba)](_0x173b13){const _0x12f13a=_0x4acd59;return this[_0x12f13a(0x197)](_0x173b13,vo);}[_0x4acd59(0x1a9)](_0x5e3ac2){const _0x428c3c=_0x4acd59,_0x1f4814=this[_0x428c3c(0x197)](_0x5e3ac2,Io);return this[_0x428c3c(0x1d4)](_0x1f4814,_0x5e3ac2),_0x1f4814;}[_0x4acd59(0x19e)](_0x28df8c,_0x46c55c){const _0x257698=_0x4acd59,_0x438ccd={'searchInputVisibleFrom':_0x46c55c[_0x257698(0x1cc)],'onBackToContext':()=>{const _0x387e22=_0x257698;this[_0x387e22(0x1e5)](),this[_0x387e22(0x1db)][_0x387e22(0x220)]({'target':this[_0x387e22(0x1da)][_0x387e22(0x20a)],'limiter':this[_0x387e22(0x206)](),'positions':Ho});},'onResourceSelected':(_0x3411b4,_0x674a5)=>{const _0x3382e6=_0x257698;this[_0x3382e6(0x1b5)](_0x3382e6(0x1d5),{'source':_0x3411b4,'resource':_0x674a5});},'onLoadSourceResources':_0x2f2408=>{const _0xac3a82=_0x257698;this[_0xac3a82(0x1b5)](_0xac3a82(0x1e2),_0x2f2408);},'onBalloonClosed':()=>{const _0x25f806=_0x257698;this[_0x25f806(0x1da)][_0x25f806(0x196)]=!0x1;},'getLimiterElement':()=>this[_0x257698(0x206)](),'getTargetElement':()=>this[_0x257698(0x1da)][_0x257698(0x20a)]};return new _0x72adf1(_0x28df8c,_0x46c55c[_0x257698(0x1ad)],_0x438ccd);}[_0x4acd59(0x206)](){const _0x46f3df=_0x4acd59;return this[_0x46f3df(0x20a)]?.[_0x46f3df(0x1bb)]('.'+Mo)||document[_0x46f3df(0x1eb)];}[_0x4acd59(0x197)](_0x39399d,_0x1b78ad){const _0x34492f=_0x4acd59,_0x34bce8=new _0x1be137(_0x39399d);return _0x34bce8[_0x34492f(0x211)]({'attributes':{'class':_0x1b78ad}}),this[_0x34492f(0x1ad)][_0x34492f(0x1bf)](_0x34bce8),_0x34bce8;}[_0x4acd59(0x1a6)](_0x903611,_0x4299a3,_0x3f27d8){const _0x5e4f3b=_0x4acd59;if(_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1be)](),!_0x3f27d8[_0x5e4f3b(0x1fd)][_0x5e4f3b(0x1b3)]&&_0x3f27d8[_0x5e4f3b(0x1fd)][_0x5e4f3b(0x21d)]){const _0x565ed3=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x20c)),'icon':_0x175401});_0x565ed3['on'](_0x5e4f3b(0x1cf),()=>{const _0xf292c3=_0x5e4f3b;this[_0xf292c3(0x1b5)](_0xf292c3(0x21c)),this[_0xf292c3(0x222)]();}),_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x565ed3);}if(_0x3f27d8[_0x5e4f3b(0x19d)][_0x5e4f3b(0x21d)]){const _0x4a2a31=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x1e4)),'icon':_0x4dbdea});_0x4a2a31['on'](_0x5e4f3b(0x1cf),()=>{const _0x3f46e6=_0x5e4f3b;this[_0x3f46e6(0x222)](),this[_0x3f46e6(0x19a)](),this[_0x3f46e6(0x1e0)][_0x3f46e6(0x220)]({'target':this[_0x3f46e6(0x1da)][_0x3f46e6(0x20a)],'limiter':this[_0x3f46e6(0x206)](),'positions':Ho}),this[_0x3f46e6(0x1c5)][_0x3f46e6(0x1d0)]();}),_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x4a2a31);}if(_0x3f27d8[_0x5e4f3b(0x1ca)][_0x5e4f3b(0x21d)]){const _0x4cce0f=new _0x3c1e31(_0x4299a3);_0x4cce0f[_0x5e4f3b(0x1ae)]({'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x20f)),'icon':_0x329c58,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4cce0f['on'](_0x5e4f3b(0x1cb),(_0x29f99e,_0x5c103b)=>{const _0x246bb2=_0x5e4f3b;this[_0x246bb2(0x1b5)](_0x246bb2(0x1bc),_0x5c103b),this[_0x246bb2(0x222)]();}),_0x4cce0f[_0x5e4f3b(0x1fa)]=!0x0,_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x4cce0f);}for(const _0x3d231a of _0x3f27d8[_0x5e4f3b(0x209)]){const _0x5d317d=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3d231a[_0x5e4f3b(0x1d8)],'icon':_0x3d231a[_0x5e4f3b(0x1f4)]||_0x540d6b,'type':_0x5e4f3b(0x1d2)});_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x5d317d),_0x5d317d['on'](_0x5e4f3b(0x1cf),()=>{const _0x57aff4=_0x5e4f3b;this[_0x57aff4(0x222)](),this[_0x57aff4(0x1df)](_0x3d231a);});}}[_0x4acd59(0x1d4)](_0x4fd2b8,_0x2450df){const _0x462ec8=_0x4acd59;this[_0x462ec8(0x1c5)]=new _0xbbf1a6(_0x2450df),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1f8),(_0x541291,_0xc51ea1)=>{const _0x3429ff=_0x462ec8;this[_0x3429ff(0x1d3)](_0xc51ea1);}),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1f3),()=>{const _0x390fc9=_0x462ec8;this[_0x390fc9(0x1b7)](),this[_0x390fc9(0x1e5)](),this[_0x390fc9(0x1db)][_0x390fc9(0x220)]({'target':this[_0x390fc9(0x1da)][_0x390fc9(0x20a)],'limiter':this[_0x390fc9(0x206)](),'positions':Ho});}),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1a2),()=>{const _0x1c2e05=_0x462ec8;this[_0x1c2e05(0x1e0)][_0x1c2e05(0x1d1)]&&this[_0x1c2e05(0x1e0)][_0x1c2e05(0x220)]({'target':this[_0x1c2e05(0x1da)][_0x1c2e05(0x20a)],'limiter':this[_0x1c2e05(0x206)](),'positions':Ho});}),_0x4fd2b8[_0x462ec8(0x1f1)][_0x462ec8(0x1bf)](this[_0x462ec8(0x1c5)]);}[_0x4acd59(0x20d)](_0x46915f,_0x456b09){const _0x5c310d=_0x4acd59,_0x17a1d9=_0x5c310d(0x1d2)===_0x456b09[_0x5c310d(0x1f0)]?new SourcesBalloonButtonView(_0x46915f):new _0x3808bb(_0x46915f);return _0x17a1d9[_0x5c310d(0x1ae)]({'label':_0x456b09[_0x5c310d(0x1d8)],'icon':_0x456b09[_0x5c310d(0x1f4)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x17a1d9;}[_0x4acd59(0x1c7)](){const _0x2599ad=_0x4acd59;this[_0x2599ad(0x1a8)](),this[_0x2599ad(0x1af)]();}[_0x4acd59(0x1af)](){const _0x3b3560=_0x4acd59;_0x199031({'emitter':this[_0x3b3560(0x1e0)],'contextElements':[this[_0x3b3560(0x1e0)][_0x3b3560(0x20a)]],'callback':()=>{const _0x3b9cf8=_0x3b3560;this[_0x3b9cf8(0x1b7)]();},'activator':()=>this[_0x3b3560(0x1e0)][_0x3b3560(0x1d1)]});}[_0x4acd59(0x1a5)](_0x209779){const _0x10b768=_0x4acd59,_0x26ad8d=this[_0x10b768(0x1bd)];_0x26ad8d[_0x10b768(0x210)][_0x10b768(0x196)]=_0x209779,_0x209779?_0x26ad8d[_0x10b768(0x221)][_0x10b768(0x1f6)]():_0x26ad8d[_0x10b768(0x221)][_0x10b768(0x1ff)]();}[_0x4acd59(0x1a8)](){const _0xef8231=_0x4acd59,{balloonView:_0xe8beb0,buttonView:_0x54d1ec,hideMethod:_0x2c391b}=this[_0xef8231(0x1bd)];_0x199031({'emitter':_0xe8beb0,'contextElements':[_0xe8beb0[_0xef8231(0x20a)],_0x54d1ec[_0xef8231(0x20a)]],'callback':()=>{_0x2c391b();},'activator':()=>_0x54d1ec[_0xef8231(0x196)]&&!this[_0xef8231(0x1e0)][_0xef8231(0x1d1)]&&!this[_0xef8231(0x1c0)][_0xef8231(0x195)]()});}[_0x4acd59(0x19f)](_0xf9a8c6,_0x430061,_0x297c0f=!0x1,_0xd36195=!0x1){const _0x3494fa=_0x4acd59,_0x15381d=_0x3494fa(0x1cd)===_0x430061||!0x0===_0xf9a8c6[_0x3494fa(0x1ef)],_0x103cb1=new _0x43dea2(this[_0x3494fa(0x1b1)],_0xf9a8c6,_0x15381d,_0x297c0f,_0xd36195);return _0x15381d||_0x103cb1['on'](_0x3494fa(0x21b),()=>{const _0x515274=_0x3494fa;this[_0x515274(0x1b5)](_0x515274(0x1a3),_0x103cb1['id']);}),_0x103cb1;}[_0x4acd59(0x216)](_0x34c63d,_0x6daa68){const _0x515e9f=_0x4acd59;_0x6daa68[_0x515e9f(0x1bf)](_0x34c63d,0x0);}[_0x4acd59(0x1ec)](_0x5c5035,_0xe7f486){const _0x2098ee=_0x4acd59,_0x61eb0b=_0xe7f486[_0x2098ee(0x1de)](_0x194ca0=>_0x194ca0['id']===_0x5c5035);_0x61eb0b&&_0xe7f486[_0x2098ee(0x20e)](_0x61eb0b);}[_0x4acd59(0x1a7)](){const _0x3220ee=_0x4acd59;this[_0x3220ee(0x1da)][_0x3220ee(0x196)]?this[_0x3220ee(0x222)]():(this[_0x3220ee(0x1e5)](),this[_0x3220ee(0x1db)][_0x3220ee(0x220)]({'target':this[_0x3220ee(0x1da)][_0x3220ee(0x20a)],'limiter':this[_0x3220ee(0x206)](),'positions':Ho}));}[_0x4acd59(0x1d3)](_0x124a03){const _0x317ac3=_0x4acd59;this[_0x317ac3(0x1c5)][_0x317ac3(0x1be)](),this[_0x317ac3(0x1b7)](),this[_0x317ac3(0x1b5)](_0x317ac3(0x1e9),_0x124a03);}}export class SourcesBalloonButtonView extends _0x3808bb{[_0x4acd59(0x219)];constructor(_0x318159){const _0x30c07f=_0x4acd59;super(_0x318159),this[_0x30c07f(0x1ae)]({'withText':!0x0,'role':_0x30c07f(0x1dc)}),this[_0x30c07f(0x219)]=this[_0x30c07f(0x1c2)](),this[_0x30c07f(0x211)]({'attributes':{'class':[Ro]}});}[_0x4acd59(0x207)](){const _0x2a4293=_0x4acd59;super[_0x2a4293(0x207)](),this[_0x2a4293(0x1f9)][_0x2a4293(0x1bf)](this[_0x2a4293(0x219)]);}[_0x4acd59(0x1c2)](){const _0x2fe587=_0x4acd59,_0x437f2c=new _0x4ec24f();return _0x437f2c[_0x2fe587(0x1f1)]=_0x428490,_0x437f2c[_0x2fe587(0x211)]({'attributes':{'class':Ro+_0x2fe587(0x1b4)}}),_0x437f2c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xc71a(){const _0x35e1b7=['2901kYKIEw','ck-ai-chat-controls-loader','ck-ai-chat-controls-loader-icon-dot','139112XrULxX','AI_CHAT_STOP_GENERATING','_createCancelButtonView','120IosFee','263011YzwpQo','set','AI_CHAT_IS_WRITING','execute','423IZbCdw','421967IWjITW','ck-ai-button-secondary\x20ck-ai-button-stop-generating','setTemplate','1108ltnjiF','18463236UZocvf','ck-ai-chat-controls-loader-icon','_loaderView','fire','9656200fQuipx','div','ck-ai-chat-controls-loader-wrapper','abortPromptStream','ck-reset_all','locale','2735vqJGXy','154oTSilr','_createLoaderView','_cancelButtonView'];_0xc71a=function(){return _0x35e1b7;};return _0xc71a();}const _0x2cbab3=_0x4f73;(function(_0x32e5e0,_0x545559){const _0x461092=_0x4f73,_0x38119b=_0x32e5e0();while(!![]){try{const _0x16e5ab=-parseInt(_0x461092(0x7a))/0x1+-parseInt(_0x461092(0x6b))/0x2*(-parseInt(_0x461092(0x6e))/0x3)+-parseInt(_0x461092(0x7d))/0x4*(-parseInt(_0x461092(0x6a))/0x5)+parseInt(_0x461092(0x74))/0x6*(parseInt(_0x461092(0x75))/0x7)+-parseInt(_0x461092(0x71))/0x8*(-parseInt(_0x461092(0x79))/0x9)+parseInt(_0x461092(0x82))/0xa+-parseInt(_0x461092(0x7e))/0xb;if(_0x16e5ab===_0x545559)break;else _0x38119b['push'](_0x38119b['shift']());}catch(_0x72bf7e){_0x38119b['push'](_0x38119b['shift']());}}}(_0xc71a,0xa11ba));import{ButtonView as _0x2c641f,View as _0x244980}from'ckeditor5/src/ui.js';import{IconStop as _0x5b8774}from'ckeditor5/src/icons.js';function _0x4f73(_0xe23c02,_0x7a7045){const _0xc71af2=_0xc71a();return _0x4f73=function(_0x4f73e7,_0x2e2da9){_0x4f73e7=_0x4f73e7-0x67;let _0x5083c2=_0xc71af2[_0x4f73e7];return _0x5083c2;},_0x4f73(_0xe23c02,_0x7a7045);}import{getTranslation as _0x4e8874}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x244980{[_0x2cbab3(0x6d)];[_0x2cbab3(0x80)];constructor(_0x399f46){const _0x2f982f=_0x2cbab3;super(_0x399f46),this[_0x2f982f(0x6d)]=this[_0x2f982f(0x73)](),this[_0x2f982f(0x80)]=this[_0x2f982f(0x6c)](),this[_0x2f982f(0x7c)]({'tag':_0x2f982f(0x83),'attributes':{'class':['ck',_0x2f982f(0x84),_0x2f982f(0x68)]},'children':[this[_0x2f982f(0x80)],this[_0x2f982f(0x6d)]]});}[_0x2cbab3(0x73)](){const _0x2cfce8=_0x2cbab3,_0x20d956=new _0x2c641f(this[_0x2cfce8(0x69)]);return _0x20d956[_0x2cfce8(0x76)]({'label':_0x4e8874(this[_0x2cfce8(0x69)],_0x2cfce8(0x72)),'withText':!0x0,'class':_0x2cfce8(0x7b),'icon':_0x5b8774}),_0x20d956['on'](_0x2cfce8(0x78),()=>{const _0x37be2a=_0x2cfce8;this[_0x37be2a(0x81)](_0x37be2a(0x67));}),_0x20d956;}[_0x2cbab3(0x6c)](){const _0x1292a7=_0x2cbab3,_0x5a1436=new _0x244980(this[_0x1292a7(0x69)]);return _0x5a1436[_0x1292a7(0x7c)]({'tag':_0x1292a7(0x83),'attributes':{'class':[_0x1292a7(0x6f)]},'children':[{'tag':_0x1292a7(0x83),'attributes':{'class':[_0x1292a7(0x7f)]},'children':[{'tag':_0x1292a7(0x83),'attributes':{'class':[_0x1292a7(0x70)]}},{'tag':_0x1292a7(0x83),'attributes':{'class':[_0x1292a7(0x70)]}},{'tag':_0x1292a7(0x83),'attributes':{'class':[_0x1292a7(0x70)]}}]},{'text':_0x4e8874(this[_0x1292a7(0x69)],_0x1292a7(0x77))}]}),_0x5a1436;}}
23
+ function _0x4c27(_0x3d582e,_0x42aedb){const _0x3c7f1b=_0x3c7f();return _0x4c27=function(_0x4c2727,_0x5c7d03){_0x4c2727=_0x4c2727-0x1df;let _0xcca763=_0x3c7f1b[_0x4c2727];return _0xcca763;},_0x4c27(_0x3d582e,_0x42aedb);}const _0x59cd71=_0x4c27;(function(_0x453488,_0x3c7c1a){const _0x40899f=_0x4c27,_0x23d941=_0x453488();while(!![]){try{const _0x19acd5=parseInt(_0x40899f(0x1e6))/0x1+parseInt(_0x40899f(0x1ed))/0x2+-parseInt(_0x40899f(0x1f7))/0x3*(parseInt(_0x40899f(0x1df))/0x4)+parseInt(_0x40899f(0x1e0))/0x5*(-parseInt(_0x40899f(0x1f3))/0x6)+-parseInt(_0x40899f(0x1ea))/0x7+parseInt(_0x40899f(0x1ef))/0x8+parseInt(_0x40899f(0x1f2))/0x9;if(_0x19acd5===_0x3c7c1a)break;else _0x23d941['push'](_0x23d941['shift']());}catch(_0x4d9a59){_0x23d941['push'](_0x23d941['shift']());}}}(_0x3c7f,0x2a5b6));function _0x3c7f(){const _0x23c117=['2152066VvYRmU','ck-ai-chat-controls-loader','_createLoaderView','344324eUbxJn','div','2124136ntSTVZ','AI_CHAT_IS_WRITING','_createCancelButtonView','1064133tnVfZE','18BUmFAC','ck-ai-chat-controls-loader-icon-dot','set','ck-ai-button-secondary\x20ck-ai-button-stop-generating','237oSgYQn','AI_CHAT_STOP_GENERATING','setTemplate','abortPromptStream','2052blhhmq','327195dlVyOm','ck-ai-chat-controls-loader-wrapper','locale','execute','ck-reset_all','_loaderView','161860dncklL','fire','ck-ai-chat-controls-loader-icon','_cancelButtonView'];_0x3c7f=function(){return _0x23c117;};return _0x3c7f();}import{ButtonView as _0x2d9f10,View as _0x51b73c}from'ckeditor5/src/ui.js';import{IconStop as _0x34786d}from'ckeditor5/src/icons.js';import{getTranslation as _0x555fb2}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x51b73c{[_0x59cd71(0x1e9)];[_0x59cd71(0x1e5)];constructor(_0x3f3076){const _0x344a60=_0x59cd71;super(_0x3f3076),this[_0x344a60(0x1e9)]=this[_0x344a60(0x1f1)](),this[_0x344a60(0x1e5)]=this[_0x344a60(0x1ec)](),this[_0x344a60(0x1f9)]({'tag':_0x344a60(0x1ee),'attributes':{'class':['ck',_0x344a60(0x1e1),_0x344a60(0x1e4)]},'children':[this[_0x344a60(0x1e5)],this[_0x344a60(0x1e9)]]});}[_0x59cd71(0x1f1)](){const _0x34f174=_0x59cd71,_0x1210c6=new _0x2d9f10(this[_0x34f174(0x1e2)]);return _0x1210c6[_0x34f174(0x1f5)]({'label':_0x555fb2(this[_0x34f174(0x1e2)],_0x34f174(0x1f8)),'withText':!0x0,'class':_0x34f174(0x1f6),'icon':_0x34786d}),_0x1210c6['on'](_0x34f174(0x1e3),()=>{const _0x2c3129=_0x34f174;this[_0x2c3129(0x1e7)](_0x2c3129(0x1fa));}),_0x1210c6;}[_0x59cd71(0x1ec)](){const _0x4d02d3=_0x59cd71,_0x136c84=new _0x51b73c(this[_0x4d02d3(0x1e2)]);return _0x136c84[_0x4d02d3(0x1f9)]({'tag':_0x4d02d3(0x1ee),'attributes':{'class':[_0x4d02d3(0x1eb)]},'children':[{'tag':_0x4d02d3(0x1ee),'attributes':{'class':[_0x4d02d3(0x1e8)]},'children':[{'tag':_0x4d02d3(0x1ee),'attributes':{'class':[_0x4d02d3(0x1f4)]}},{'tag':_0x4d02d3(0x1ee),'attributes':{'class':[_0x4d02d3(0x1f4)]}},{'tag':_0x4d02d3(0x1ee),'attributes':{'class':[_0x4d02d3(0x1f4)]}}]},{'text':_0x555fb2(this[_0x4d02d3(0x1e2)],_0x4d02d3(0x1f0))}]}),_0x136c84;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x90ddf8=_0x4652;(function(_0x723891,_0x40f90a){const _0x1a7ee1=_0x4652,_0x53b900=_0x723891();while(!![]){try{const _0x5e0306=parseInt(_0x1a7ee1(0xf5))/0x1+-parseInt(_0x1a7ee1(0x115))/0x2*(parseInt(_0x1a7ee1(0xb6))/0x3)+parseInt(_0x1a7ee1(0xc4))/0x4+-parseInt(_0x1a7ee1(0xeb))/0x5+-parseInt(_0x1a7ee1(0xde))/0x6+-parseInt(_0x1a7ee1(0x10d))/0x7*(parseInt(_0x1a7ee1(0xf6))/0x8)+-parseInt(_0x1a7ee1(0xed))/0x9*(-parseInt(_0x1a7ee1(0x109))/0xa);if(_0x5e0306===_0x40f90a)break;else _0x53b900['push'](_0x53b900['shift']());}catch(_0x5dfda2){_0x53b900['push'](_0x53b900['shift']());}}}(_0x224d,0xafff3));import{Collection as _0x2b8522}from'ckeditor5/src/utils.js';import{IconAI as _0x5dd93e,IconBulb as _0x50b07c,IconWeb as _0x40018a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x25f555,ButtonLabelView as _0x32af79,ButtonView as _0x5971e0,createDropdown as _0xa1ee8f,IconView as _0x42e9f9,UIModel as _0x471728,View as _0x5b7650}from'ckeditor5/src/ui.js';import{getTranslation as _0x195a94}from'../../../aicore/utils/common-translations.js';const Wo=_0x90ddf8(0xc9),Ro=_0x90ddf8(0x102),yo=_0x90ddf8(0xe5),Go=_0x90ddf8(0xcd),jo=_0x90ddf8(0xce),Yo=_0x90ddf8(0xbe),qo=_0x90ddf8(0xe0),zo='n';function _0x224d(){const _0x3df296=['_createModelNameView','_webSearchButton','style','extendTemplate','setModelList','activeModelName','bindTemplate','add','selectModel','reasoningActive','toggleReasoning','ck-ai-chat-controls-button','AI_CHAT_ENABLE_REASONING','reasoning','div','_commandsButton','toggleWebSearch','length','2610TyvgPw','AI_CHAT_COMMANDS','ck-button__label','setWebSearch','25669cyFHta','toLowerCase','AI_CHAT_SEARCH_WEB','modelSelectorEnabled','webSearch','set','_getCapabilityParts','modelSelectorVisible','2mJePjz','text','clear','log','2412924rtDfJq','isEnabled','createCollection','name','ck-hidden','isOn','AI_CHAT_REASONING','webSearchActive','ck-ai-chat-controls__model-selection__item-description','startsWith','_createWebSearchButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','menuitemradio','setReasoning','3683656qVFyTN','AI_CHAT_CAPABILITIES_NO','agent','_createModelSelectionDropdown','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat__prompt-capabilities','addMany','locale','activeModelId','ck-ai-chat-controls__model-selection','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','tooltip','model','ck-ai-chat-controls__model-name','isVisible','source','execute','_reasoningButton','bind','_modelSelectionDropdownItems','buttonView','description','listenTo','span','label','1598784lrREdS','withText','ck-ai-chat-controls__model-selection__item-capabilities','fire','_createCommandsButton','AI_CHAT_CAPABILITIES_YES','enabled','ck-ai-chat-controls-button--commands','disableModelSelector','_modelSelectionDropdown','button','content','_modelNameView','434295IZRxOh','Commands\x20are\x20not\x20implemented\x20yet.','5013bNEFak','capabilities','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_DISABLE_REASONING','setModel','_createReasoningButton','setTemplate','enableModelSelector','999240vxWxWC','408FdSfbr'];_0x224d=function(){return _0x3df296;};return _0x224d();}export class AIChatPromptCapabilitiesView extends _0x5b7650{[_0x90ddf8(0xf8)];[_0x90ddf8(0xd6)];[_0x90ddf8(0x106)];[_0x90ddf8(0xe7)];[_0x90ddf8(0xd8)];[_0x90ddf8(0xea)];constructor(_0x38d68e){const _0x177ede=_0x90ddf8;super(_0x38d68e),this[_0x177ede(0x112)](_0x177ede(0xbd),!0x1),this[_0x177ede(0x112)](_0x177ede(0x100),!0x1),this[_0x177ede(0x112)](_0x177ede(0x114),!0x0),this[_0x177ede(0x112)](_0x177ede(0x110),!0x0),this[_0x177ede(0x112)](_0x177ede(0xcc),null),this[_0x177ede(0x112)](_0x177ede(0xfc),null),this[_0x177ede(0xe7)]=this[_0x177ede(0xc7)](),this[_0x177ede(0xea)]=this[_0x177ede(0xf7)](),this[_0x177ede(0xf8)]=this[_0x177ede(0xc0)](),this[_0x177ede(0xd6)]=this[_0x177ede(0xf2)](),this[_0x177ede(0x106)]=this[_0x177ede(0xe2)](),this[_0x177ede(0xe7)][_0x177ede(0xd9)][_0x177ede(0xd7)](_0x177ede(0xd3))['to'](this,_0x177ede(0x114),_0x4915c0=>_0x4915c0),this[_0x177ede(0xe7)][_0x177ede(0xd9)][_0x177ede(0xd7)](_0x177ede(0xd0))['to'](this,_0x177ede(0x110),_0x3b39ac=>_0x3b39ac?this[_0x177ede(0xe7)][_0x177ede(0xd9)][_0x177ede(0xdd)]:_0x195a94(this[_0x177ede(0xcb)],_0x177ede(0xcf))),this[_0x177ede(0xe7)][_0x177ede(0xd7)](_0x177ede(0xb7))['to'](this,_0x177ede(0x110),_0x1ada90=>_0x1ada90),this[_0x177ede(0xf8)][_0x177ede(0xd7)](_0x177ede(0xbb))['to'](this,_0x177ede(0xbd),_0x360463=>_0x360463),this[_0x177ede(0xf8)][_0x177ede(0xd7)](_0x177ede(0xdf))['to'](this,_0x177ede(0x114),_0x4f7275=>!_0x4f7275),this[_0x177ede(0xf8)][_0x177ede(0xd7)](_0x177ede(0xd0))['to'](this,_0x177ede(0xbd),_0x239de5=>_0x195a94(this[_0x177ede(0xcb)],_0x239de5?_0x177ede(0xc8):_0x177ede(0xef))),this[_0x177ede(0xd6)][_0x177ede(0xd7)](_0x177ede(0xbb))['to'](this,_0x177ede(0x100),_0xac1c28=>_0xac1c28),this[_0x177ede(0xd6)][_0x177ede(0xd7)](_0x177ede(0xdf))['to'](this,_0x177ede(0x114),_0x4b04e9=>!_0x4b04e9),this[_0x177ede(0xd6)][_0x177ede(0xd7)](_0x177ede(0xd0))['to'](this,_0x177ede(0x100),_0x17af54=>_0x195a94(this[_0x177ede(0xcb)],_0x17af54?_0x177ede(0xf0):_0x177ede(0x103))),this[_0x177ede(0xf3)]({'tag':_0x177ede(0x105),'attributes':{'class':[Wo]},'children':[this[_0x177ede(0xe7)],this[_0x177ede(0xea)],this[_0x177ede(0xf8)],this[_0x177ede(0xd6)],this[_0x177ede(0x106)]]}),this[_0x177ede(0xd8)]=new _0x2b8522(),_0x25f555(this[_0x177ede(0xe7)],this[_0x177ede(0xd8)]);}[_0x90ddf8(0xfb)](_0x1bdf32,_0x2f19ff){const _0x34b52f=_0x90ddf8;if(this[_0x34b52f(0x112)](_0x34b52f(0x114),!(_0x2f19ff&&_0x1bdf32[_0x34b52f(0x108)]<=0x1)),this[_0x34b52f(0xd8)][_0x34b52f(0x117)](),_0x1bdf32?.[_0x34b52f(0x108)])for(const _0x55f85e of _0x1bdf32){const _0x3e13e7=new _0x471728({'label':_0x55f85e[_0x34b52f(0xb9)],'withText':!0x0,'role':_0x34b52f(0xc2),'id':_0x55f85e['id'],'model':_0x55f85e});_0x3e13e7[_0x34b52f(0xd7)](_0x34b52f(0xbb))['to'](this,_0x34b52f(0xcc),_0x26ee27=>_0x26ee27===_0x55f85e['id']),this[_0x34b52f(0xd8)][_0x34b52f(0xfe)]({'type':_0x34b52f(0xe8),'model':_0x3e13e7,'labelView':new Us(this[_0x34b52f(0xcb)],_0x55f85e)});}}[_0x90ddf8(0x10c)](_0x5d353d){const _0x3c3745=_0x90ddf8;this[_0x3c3745(0x112)](_0x3c3745(0xbd),_0x5d353d);}[_0x90ddf8(0xc3)](_0x1b6ef8){const _0x1d7d80=_0x90ddf8;this[_0x1d7d80(0x112)](_0x1d7d80(0x100),_0x1b6ef8);}[_0x90ddf8(0xf1)](_0x545a0d){const _0x5da3bc=_0x90ddf8;if(!_0x545a0d)return;this[_0x5da3bc(0xcc)]=_0x545a0d['id'],this[_0x5da3bc(0xfc)]=_0x545a0d[_0x5da3bc(0xb9)]||_0x545a0d['id'],this[_0x5da3bc(0xe7)][_0x5da3bc(0xd9)][_0x5da3bc(0x112)](_0x5da3bc(0xdd),_0x545a0d[_0x5da3bc(0xb9)]),this[_0x5da3bc(0xe7)][_0x5da3bc(0xd9)][_0x5da3bc(0x112)](_0x5da3bc(0xd0),_0x545a0d[_0x5da3bc(0xb9)]);const _0x34de04=_0x545a0d[_0x5da3bc(0xee)][_0x5da3bc(0x111)]?.[_0x5da3bc(0xe4)]??!0x1;this[_0x5da3bc(0x112)](_0x5da3bc(0xbd),!0x1),this[_0x5da3bc(0xf8)][_0x5da3bc(0x112)](_0x5da3bc(0xbb),!0x1),this[_0x5da3bc(0xf8)][_0x5da3bc(0x112)](_0x5da3bc(0xb7),_0x34de04),this[_0x5da3bc(0xf8)][_0x5da3bc(0x112)](_0x5da3bc(0xd3),_0x34de04);const _0x4ce4a1=_0x545a0d[_0x5da3bc(0xee)][_0x5da3bc(0x104)]?.[_0x5da3bc(0xe4)]??!0x1;this[_0x5da3bc(0x112)](_0x5da3bc(0x100),!0x1),this[_0x5da3bc(0xd6)][_0x5da3bc(0x112)](_0x5da3bc(0xbb),!0x1),this[_0x5da3bc(0xd6)][_0x5da3bc(0x112)](_0x5da3bc(0xb7),_0x4ce4a1),this[_0x5da3bc(0xd6)][_0x5da3bc(0x112)](_0x5da3bc(0xd3),_0x4ce4a1);}[_0x90ddf8(0xf4)](){const _0x4deb03=_0x90ddf8;this[_0x4deb03(0x112)](_0x4deb03(0x110),!0x0),this[_0x4deb03(0x112)](_0x4deb03(0x114),!0x0);}[_0x90ddf8(0xe6)](_0x19acb1){const _0x5cad5d=_0x90ddf8;this[_0x5cad5d(0x112)](_0x5cad5d(0x110),!0x1),_0x19acb1&&this[_0x5cad5d(0x112)](_0x5cad5d(0x114),!0x1);}[_0x90ddf8(0xc0)](){const _0x1d253d=_0x90ddf8,_0x5c9571=new _0x5971e0();return _0x5c9571[_0x1d253d(0x112)]({'label':_0x195a94(this[_0x1d253d(0xcb)],_0x1d253d(0x10f)),'icon':_0x40018a,'class':Ro,'isToggleable':!0x0,'tooltipPosition':zo}),_0x5c9571['on'](_0x1d253d(0xd5),()=>{const _0x118a90=_0x1d253d;this[_0x118a90(0xe1)](_0x118a90(0x107));}),_0x5c9571;}[_0x90ddf8(0xf2)](){const _0x28d638=_0x90ddf8,_0x4ab6c4=new _0x5971e0();return _0x4ab6c4[_0x28d638(0x112)]({'label':_0x195a94(this[_0x28d638(0xcb)],_0x28d638(0xbc)),'icon':_0x50b07c,'class':Ro,'isToggleable':!0x0,'tooltipPosition':zo}),_0x4ab6c4['on'](_0x28d638(0xd5),()=>{const _0x17cfee=_0x28d638;this[_0x17cfee(0xe1)](_0x17cfee(0x101));}),_0x4ab6c4;}[_0x90ddf8(0xe2)](){const _0x509cd5=_0x90ddf8,_0x246921=new _0x5971e0();return _0x246921[_0x509cd5(0x112)]({'label':_0x195a94(this[_0x509cd5(0xcb)],_0x509cd5(0x10a)),'icon':_0x5dd93e,'withText':!0x0,'class':Ro,'isToggleable':!0x0,'tooltip':_0x195a94(this[_0x509cd5(0xcb)],_0x509cd5(0x10a)),'tooltipPosition':zo}),_0x246921[_0x509cd5(0xfa)]({'attributes':{'class':[yo]}}),_0x246921['on'](_0x509cd5(0xd5),()=>{const _0x35de17=_0x509cd5;console[_0x35de17(0xb5)](_0x35de17(0xec)),alert(_0x35de17(0xec));}),_0x246921;}[_0x90ddf8(0xc7)](){const _0xecf199=_0x90ddf8,_0x12ce90=_0xa1ee8f(this[_0xecf199(0xcb)]);return _0x12ce90[_0xecf199(0x112)]({'panelPosition':'ne','class':[Go]}),_0x12ce90[_0xecf199(0xd9)][_0xecf199(0x112)]({'label':_0x195a94(this[_0xecf199(0xcb)],_0xecf199(0xc1)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':zo}),this[_0xecf199(0xdb)](_0x12ce90,_0xecf199(0xd5),_0x47b8bf=>{const _0x1a9bb2=_0xecf199;this[_0x1a9bb2(0xe1)](_0x1a9bb2(0xff),_0x47b8bf[_0x1a9bb2(0xd4)][_0x1a9bb2(0xd1)]);}),_0x12ce90;}[_0x90ddf8(0xf7)](){const _0x3ede12=_0x90ddf8,_0x28eeac=new Fo(this[_0x3ede12(0xcb)]);return _0x28eeac[_0x3ede12(0xd7)](_0x3ede12(0x116))['to'](this,_0x3ede12(0xfc),_0x13083e=>_0x13083e??''),_0x28eeac[_0x3ede12(0xd7)](_0x3ede12(0xd3))['to'](this,_0x3ede12(0x114),this,_0x3ede12(0xfc),(_0x10b5a6,_0x260c3b)=>!_0x10b5a6&&!_0x260c3b?.[_0x3ede12(0x10e)]()[_0x3ede12(0xbf)](_0x3ede12(0xc6))),_0x28eeac;}}class Us extends _0x32af79{constructor(_0x145118,_0x4d9079){const _0x2028c3=_0x90ddf8;super();const _0x1da83b=this[_0x2028c3(0xfd)],_0x420cc7=this[_0x2028c3(0xb8)]();this[_0x2028c3(0xf3)]({'tag':_0x2028c3(0x105),'attributes':{'class':['ck',_0x2028c3(0x10b)],'style':_0x1da83b['to'](_0x2028c3(0xf9)),'id':_0x1da83b['to']('id')},'children':[{'tag':_0x2028c3(0x105),'attributes':{'class':[jo]},'children':[{'text':_0x1da83b['to'](_0x2028c3(0x116))}]},{'tag':_0x2028c3(0x105),'attributes':{'class':[Yo]},'children':[{'tag':_0x2028c3(0xdc),'children':[{'text':_0x4d9079[_0x2028c3(0xda)]}]}]},{'tag':_0x2028c3(0x105),'attributes':{'class':[qo]},'children':_0x420cc7}]}),_0x420cc7[_0x2028c3(0xca)](this[_0x2028c3(0x113)](_0x145118,_0x40018a,_0x2028c3(0x10f),_0x4d9079[_0x2028c3(0xee)][_0x2028c3(0x111)]?.[_0x2028c3(0xe4)]??!0x1)),_0x420cc7[_0x2028c3(0xca)](this[_0x2028c3(0x113)](_0x145118,_0x50b07c,_0x2028c3(0xbc),_0x4d9079[_0x2028c3(0xee)][_0x2028c3(0x104)]?.[_0x2028c3(0xe4)]??!0x1));}[_0x90ddf8(0x113)](_0x15f977,_0x274186,_0x902a2f,_0x2f6233){const _0x5f5713=_0x90ddf8,_0xa91dd2=new _0x42e9f9();_0xa91dd2[_0x5f5713(0xe9)]=_0x274186;const _0x386121=new _0x5b7650(_0x15f977);_0x386121[_0x5f5713(0xf3)]({'tag':_0x5f5713(0xdc),'children':[{'text':_0x195a94(_0x15f977,_0x902a2f)+':\x20'}]});const _0x365ed=new _0x5b7650(_0x15f977);return _0x365ed[_0x5f5713(0xf3)]({'tag':_0x5f5713(0xdc),'children':[{'text':_0x195a94(_0x15f977,_0x2f6233?_0x5f5713(0xe3):_0x5f5713(0xc5))}]}),[_0xa91dd2,_0x386121,_0x365ed];}}function _0x4652(_0x545f6b,_0x4458d6){const _0x224d1e=_0x224d();return _0x4652=function(_0x465282,_0x5e6b2b){_0x465282=_0x465282-0xb5;let _0x91c459=_0x224d1e[_0x465282];return _0x91c459;},_0x4652(_0x545f6b,_0x4458d6);}class Fo extends _0x5b7650{constructor(_0x44de2e){const _0x52997a=_0x90ddf8;super(_0x44de2e),this[_0x52997a(0x112)](_0x52997a(0x116),void 0x0),this[_0x52997a(0x112)](_0x52997a(0xd3),!0x0);const _0x2ca3c0=this[_0x52997a(0xfd)];this[_0x52997a(0xf3)]({'tag':_0x52997a(0xdc),'attributes':{'class':['ck',_0x52997a(0xd2),_0x2ca3c0['if'](_0x52997a(0xd3),_0x52997a(0xba),_0x1fd693=>!_0x1fd693)]},'children':[{'text':_0x2ca3c0['to'](_0x52997a(0x116))}]});}}
23
+ const _0x206f6c=_0x3347;(function(_0x5b3d83,_0x18427c){const _0x4cbae9=_0x3347,_0x8489a8=_0x5b3d83();while(!![]){try{const _0x3a6336=-parseInt(_0x4cbae9(0x1f0))/0x1*(-parseInt(_0x4cbae9(0x1e0))/0x2)+parseInt(_0x4cbae9(0x206))/0x3+-parseInt(_0x4cbae9(0x1e5))/0x4*(-parseInt(_0x4cbae9(0x1eb))/0x5)+parseInt(_0x4cbae9(0x1d1))/0x6*(parseInt(_0x4cbae9(0x217))/0x7)+parseInt(_0x4cbae9(0x1c3))/0x8*(-parseInt(_0x4cbae9(0x1fe))/0x9)+-parseInt(_0x4cbae9(0x1c2))/0xa*(parseInt(_0x4cbae9(0x220))/0xb)+parseInt(_0x4cbae9(0x1e8))/0xc*(parseInt(_0x4cbae9(0x21d))/0xd);if(_0x3a6336===_0x18427c)break;else _0x8489a8['push'](_0x8489a8['shift']());}catch(_0x5386cf){_0x8489a8['push'](_0x8489a8['shift']());}}}(_0x2466,0x38dee));import{Collection as _0x23f1eb}from'ckeditor5/src/utils.js';import{IconAI as _0x103b6e,IconBulb as _0x14c6ea,IconWeb as _0x79d5c0}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x369e46,ButtonLabelView as _0x2f83aa,ButtonView as _0x4aee6b,createDropdown as _0x2bcede,IconView as _0x563876,UIModel as _0xfd2744,View as _0xfe161e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e060f}from'../../../aicore/utils/common-translations.js';function _0x2466(){const _0x45b92d=['setModelList','capabilities','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-name','ck-ai-chat-controls__model-selection__item-description','_commandsButton','enabled','220113JddBYE','locale','log','_createModelSelectionDropdown','disableModelSelector','clear','enableModelSelector','addMany','124338qTCORv','webSearch','listenTo','isEnabled','AI_CHAT_REASONING','name','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','description','_modelSelectionDropdown','style','AI_CHAT_SEARCH_WEB','isVisible','content','model','AI_CHAT_COMMANDS','activeModelName','createCollection','583646rQdyYl','reasoningActive','startsWith','reasoning','_createCommandsButton','ck-ai-chat-controls-button--commands','325TphazB','ck-ai-chat-controls-button','isOn','77NbExJu','div','_createReasoningButton','agent','AI_CHAT_ENABLE_REASONING','menuitemradio','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection','436510XYFZGB','8hdGSfj','execute','_createWebSearchButton','toLowerCase','setReasoning','set','bindTemplate','_createModelNameView','toggleReasoning','add','buttonView','span','length','ck-button__label','12YRvEEt','text','_modelSelectionDropdownItems','webSearchActive','extendTemplate','button','_modelNameView','modelSelectorEnabled','bind','setTemplate','AI_CHAT_DISABLE_REASONING','_webSearchButton','fire','toggleWebSearch','Commands\x20are\x20not\x20implemented\x20yet.','114254mwewnO','tooltip','ck-ai-chat-controls__model-selection__item-name','_getCapabilityParts','AI_CHAT_DISABLE_WEB_SEARCH','1524WUwVVg','AI_CHAT_ENABLE_WEB_SEARCH','modelSelectorVisible','66600tRvWZx','selectModel','_reasoningButton','2085JJOanl','label','withText','ck-hidden','activeModelId','1QNWpRJ','setWebSearch','source','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','ck-ai-chat__prompt-capabilities','setModel'];_0x2466=function(){return _0x45b92d;};return _0x2466();}const yo=_0x206f6c(0x1f5),Uo=_0x206f6c(0x21e),Go=_0x206f6c(0x21c),jo=_0x206f6c(0x1c1),Yo=_0x206f6c(0x1e2),qo=_0x206f6c(0x1fb),zo=_0x206f6c(0x1f3),Fo='n';function _0x3347(_0x2e6668,_0x11fddc){const _0x246633=_0x2466();return _0x3347=function(_0x33475c,_0xb562bb){_0x33475c=_0x33475c-0x1bb;let _0x2802ca=_0x246633[_0x33475c];return _0x2802ca;},_0x3347(_0x2e6668,_0x11fddc);}export class AIChatPromptCapabilitiesView extends _0xfe161e{[_0x206f6c(0x1dc)];[_0x206f6c(0x1ea)];[_0x206f6c(0x1fc)];[_0x206f6c(0x20e)];[_0x206f6c(0x1d3)];[_0x206f6c(0x1d7)];constructor(_0x554e81){const _0x389d0e=_0x206f6c;super(_0x554e81),this[_0x389d0e(0x1c8)](_0x389d0e(0x1d4),!0x1),this[_0x389d0e(0x1c8)](_0x389d0e(0x218),!0x1),this[_0x389d0e(0x1c8)](_0x389d0e(0x1e7),!0x0),this[_0x389d0e(0x1c8)](_0x389d0e(0x1d8),!0x0),this[_0x389d0e(0x1c8)](_0x389d0e(0x1ef),null),this[_0x389d0e(0x1c8)](_0x389d0e(0x215),null),this[_0x389d0e(0x20e)]=this[_0x389d0e(0x201)](),this[_0x389d0e(0x1d7)]=this[_0x389d0e(0x1ca)](),this[_0x389d0e(0x1dc)]=this[_0x389d0e(0x1c5)](),this[_0x389d0e(0x1ea)]=this[_0x389d0e(0x1bc)](),this[_0x389d0e(0x1fc)]=this[_0x389d0e(0x21b)](),this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1d9)](_0x389d0e(0x211))['to'](this,_0x389d0e(0x1e7),_0x101719=>_0x101719),this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x1d8),_0x20ea27=>_0x20ea27?this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1ec)]:_0x5e060f(this[_0x389d0e(0x1ff)],_0x389d0e(0x20c))),this[_0x389d0e(0x20e)][_0x389d0e(0x1d9)](_0x389d0e(0x209))['to'](this,_0x389d0e(0x1d8),_0x11e00c=>_0x11e00c),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x21f))['to'](this,_0x389d0e(0x1d4),_0xa261c=>_0xa261c),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x1ed))['to'](this,_0x389d0e(0x1e7),_0x4d112f=>!_0x4d112f),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x1d4),_0x537aff=>_0x5e060f(this[_0x389d0e(0x1ff)],_0x537aff?_0x389d0e(0x1e4):_0x389d0e(0x1e6))),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x21f))['to'](this,_0x389d0e(0x218),_0xd0bd60=>_0xd0bd60),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x1ed))['to'](this,_0x389d0e(0x1e7),_0x407e17=>!_0x407e17),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x218),_0x49abe4=>_0x5e060f(this[_0x389d0e(0x1ff)],_0x49abe4?_0x389d0e(0x1db):_0x389d0e(0x1be))),this[_0x389d0e(0x1da)]({'tag':_0x389d0e(0x1bb),'attributes':{'class':[yo]},'children':[this[_0x389d0e(0x20e)],this[_0x389d0e(0x1d7)],this[_0x389d0e(0x1dc)],this[_0x389d0e(0x1ea)],this[_0x389d0e(0x1fc)]]}),this[_0x389d0e(0x1d3)]=new _0x23f1eb(),_0x369e46(this[_0x389d0e(0x20e)],this[_0x389d0e(0x1d3)]);}[_0x206f6c(0x1f7)](_0x3576b0,_0x5d64ed){const _0x4ce994=_0x206f6c;if(this[_0x4ce994(0x1c8)](_0x4ce994(0x1e7),!(_0x5d64ed&&_0x3576b0[_0x4ce994(0x1cf)]<=0x1)),this[_0x4ce994(0x1d3)][_0x4ce994(0x203)](),_0x3576b0?.[_0x4ce994(0x1cf)])for(const _0x120b82 of _0x3576b0){const _0x2abf8f=new _0xfd2744({'label':_0x120b82[_0x4ce994(0x20b)],'withText':!0x0,'role':_0x4ce994(0x1bf),'id':_0x120b82['id'],'model':_0x120b82});_0x2abf8f[_0x4ce994(0x1d9)](_0x4ce994(0x21f))['to'](this,_0x4ce994(0x1ef),_0x5ed78b=>_0x5ed78b===_0x120b82['id']),this[_0x4ce994(0x1d3)][_0x4ce994(0x1cc)]({'type':_0x4ce994(0x1d6),'model':_0x2abf8f,'labelView':new Us(this[_0x4ce994(0x1ff)],_0x120b82)});}}[_0x206f6c(0x1f1)](_0x4c34c5){const _0x561d5f=_0x206f6c;this[_0x561d5f(0x1c8)](_0x561d5f(0x1d4),_0x4c34c5);}[_0x206f6c(0x1c7)](_0x54ec7a){const _0x122b0b=_0x206f6c;this[_0x122b0b(0x1c8)](_0x122b0b(0x218),_0x54ec7a);}[_0x206f6c(0x1f6)](_0x540ae2){const _0x49b12f=_0x206f6c;if(!_0x540ae2)return;this[_0x49b12f(0x1ef)]=_0x540ae2['id'],this[_0x49b12f(0x215)]=_0x540ae2[_0x49b12f(0x20b)]||_0x540ae2['id'],this[_0x49b12f(0x20e)][_0x49b12f(0x1cd)][_0x49b12f(0x1c8)](_0x49b12f(0x1ec),_0x540ae2[_0x49b12f(0x20b)]),this[_0x49b12f(0x20e)][_0x49b12f(0x1cd)][_0x49b12f(0x1c8)](_0x49b12f(0x1e1),_0x540ae2[_0x49b12f(0x20b)]);const _0x8c2321=_0x540ae2[_0x49b12f(0x1f8)][_0x49b12f(0x207)]?.[_0x49b12f(0x1fd)]??!0x1;this[_0x49b12f(0x1c8)](_0x49b12f(0x1d4),!0x1),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x21f),!0x1),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x209),_0x8c2321),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x211),_0x8c2321);const _0x34ed02=_0x540ae2[_0x49b12f(0x1f8)][_0x49b12f(0x21a)]?.[_0x49b12f(0x1fd)]??!0x1;this[_0x49b12f(0x1c8)](_0x49b12f(0x218),!0x1),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x21f),!0x1),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x209),_0x34ed02),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x211),_0x34ed02);}[_0x206f6c(0x204)](){const _0x380990=_0x206f6c;this[_0x380990(0x1c8)](_0x380990(0x1d8),!0x0),this[_0x380990(0x1c8)](_0x380990(0x1e7),!0x0);}[_0x206f6c(0x202)](_0x3c6fc7){const _0x51a72e=_0x206f6c;this[_0x51a72e(0x1c8)](_0x51a72e(0x1d8),!0x1),_0x3c6fc7&&this[_0x51a72e(0x1c8)](_0x51a72e(0x1e7),!0x1);}[_0x206f6c(0x1c5)](){const _0x1e687a=_0x206f6c,_0xa2f9d9=new _0x4aee6b();return _0xa2f9d9[_0x1e687a(0x1c8)]({'label':_0x5e060f(this[_0x1e687a(0x1ff)],_0x1e687a(0x210)),'icon':_0x79d5c0,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0xa2f9d9['on'](_0x1e687a(0x1c4),()=>{const _0x5e6a2d=_0x1e687a;this[_0x5e6a2d(0x1dd)](_0x5e6a2d(0x1de));}),_0xa2f9d9;}[_0x206f6c(0x1bc)](){const _0x55d491=_0x206f6c,_0x507f90=new _0x4aee6b();return _0x507f90[_0x55d491(0x1c8)]({'label':_0x5e060f(this[_0x55d491(0x1ff)],_0x55d491(0x20a)),'icon':_0x14c6ea,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x507f90['on'](_0x55d491(0x1c4),()=>{const _0x1d00fb=_0x55d491;this[_0x1d00fb(0x1dd)](_0x1d00fb(0x1cb));}),_0x507f90;}[_0x206f6c(0x21b)](){const _0x20c918=_0x206f6c,_0x557a35=new _0x4aee6b();return _0x557a35[_0x20c918(0x1c8)]({'label':_0x5e060f(this[_0x20c918(0x1ff)],_0x20c918(0x214)),'icon':_0x103b6e,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x5e060f(this[_0x20c918(0x1ff)],_0x20c918(0x214)),'tooltipPosition':Fo}),_0x557a35[_0x20c918(0x1d5)]({'attributes':{'class':[Go]}}),_0x557a35['on'](_0x20c918(0x1c4),()=>{const _0x5cbe8d=_0x20c918;console[_0x5cbe8d(0x200)](_0x5cbe8d(0x1df)),alert(_0x5cbe8d(0x1df));}),_0x557a35;}[_0x206f6c(0x201)](){const _0x194eb6=_0x206f6c,_0x7f88fc=_0x2bcede(this[_0x194eb6(0x1ff)]);return _0x7f88fc[_0x194eb6(0x1c8)]({'panelPosition':'ne','class':[jo]}),_0x7f88fc[_0x194eb6(0x1cd)][_0x194eb6(0x1c8)]({'label':_0x5e060f(this[_0x194eb6(0x1ff)],_0x194eb6(0x1c0)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x194eb6(0x208)](_0x7f88fc,_0x194eb6(0x1c4),_0x232cc7=>{const _0x1187d3=_0x194eb6;this[_0x1187d3(0x1dd)](_0x1187d3(0x1e9),_0x232cc7[_0x1187d3(0x1f2)][_0x1187d3(0x213)]);}),_0x7f88fc;}[_0x206f6c(0x1ca)](){const _0x29bfc5=_0x206f6c,_0x58160f=new Jo(this[_0x29bfc5(0x1ff)]);return _0x58160f[_0x29bfc5(0x1d9)](_0x29bfc5(0x1d2))['to'](this,_0x29bfc5(0x215),_0x485493=>_0x485493??''),_0x58160f[_0x29bfc5(0x1d9)](_0x29bfc5(0x211))['to'](this,_0x29bfc5(0x1e7),this,_0x29bfc5(0x215),(_0x3f0bcc,_0xbcf433)=>!_0x3f0bcc&&!_0xbcf433?.[_0x29bfc5(0x1c6)]()[_0x29bfc5(0x219)](_0x29bfc5(0x1bd))),_0x58160f;}}class Us extends _0x2f83aa{constructor(_0x2eebfb,_0x2b3fa3){const _0x4d8915=_0x206f6c;super();const _0x202709=this[_0x4d8915(0x1c9)],_0x4b7810=this[_0x4d8915(0x216)]();this[_0x4d8915(0x1da)]({'tag':_0x4d8915(0x1bb),'attributes':{'class':['ck',_0x4d8915(0x1d0)],'style':_0x202709['to'](_0x4d8915(0x20f)),'id':_0x202709['to']('id')},'children':[{'tag':_0x4d8915(0x1bb),'attributes':{'class':[Yo]},'children':[{'text':_0x202709['to'](_0x4d8915(0x1d2))}]},{'tag':_0x4d8915(0x1bb),'attributes':{'class':[qo]},'children':[{'tag':_0x4d8915(0x1ce),'children':[{'text':_0x2b3fa3[_0x4d8915(0x20d)]}]}]},{'tag':_0x4d8915(0x1bb),'attributes':{'class':[zo]},'children':_0x4b7810}]}),_0x4b7810[_0x4d8915(0x205)](this[_0x4d8915(0x1e3)](_0x2eebfb,_0x79d5c0,_0x4d8915(0x210),_0x2b3fa3[_0x4d8915(0x1f8)][_0x4d8915(0x207)]?.[_0x4d8915(0x1fd)]??!0x1)),_0x4b7810[_0x4d8915(0x205)](this[_0x4d8915(0x1e3)](_0x2eebfb,_0x14c6ea,_0x4d8915(0x20a),_0x2b3fa3[_0x4d8915(0x1f8)][_0x4d8915(0x21a)]?.[_0x4d8915(0x1fd)]??!0x1));}[_0x206f6c(0x1e3)](_0x2645a2,_0x19c463,_0x572ba6,_0x3e008f){const _0x37417d=_0x206f6c,_0xb42ce8=new _0x563876();_0xb42ce8[_0x37417d(0x212)]=_0x19c463;const _0x320463=new _0xfe161e(_0x2645a2);_0x320463[_0x37417d(0x1da)]({'tag':_0x37417d(0x1ce),'children':[{'text':_0x5e060f(_0x2645a2,_0x572ba6)+':\x20'}]});const _0x4ced8d=new _0xfe161e(_0x2645a2);return _0x4ced8d[_0x37417d(0x1da)]({'tag':_0x37417d(0x1ce),'children':[{'text':_0x5e060f(_0x2645a2,_0x3e008f?_0x37417d(0x1f4):_0x37417d(0x1f9))}]}),[_0xb42ce8,_0x320463,_0x4ced8d];}}class Jo extends _0xfe161e{constructor(_0x53c167){const _0x34dae2=_0x206f6c;super(_0x53c167),this[_0x34dae2(0x1c8)](_0x34dae2(0x1d2),void 0x0),this[_0x34dae2(0x1c8)](_0x34dae2(0x211),!0x0);const _0x75ee0a=this[_0x34dae2(0x1c9)];this[_0x34dae2(0x1da)]({'tag':_0x34dae2(0x1ce),'attributes':{'class':['ck',_0x34dae2(0x1fa),_0x75ee0a['if'](_0x34dae2(0x211),_0x34dae2(0x1ee),_0x47e019=>!_0x47e019)]},'children':[{'text':_0x75ee0a['to'](_0x34dae2(0x1d2))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x35125e=_0x284a;function _0x284a(_0x1b117a,_0x5ef9fc){const _0x1748b9=_0x1748();return _0x284a=function(_0x284a0d,_0x48d88a){_0x284a0d=_0x284a0d-0x1bf;let _0x438cb3=_0x1748b9[_0x284a0d];return _0x438cb3;},_0x284a(_0x1b117a,_0x5ef9fc);}(function(_0x4a6058,_0x27ea38){const _0x432d57=_0x284a,_0xb6698f=_0x4a6058();while(!![]){try{const _0x34fc09=parseInt(_0x432d57(0x1ce))/0x1+-parseInt(_0x432d57(0x1d7))/0x2+parseInt(_0x432d57(0x1d3))/0x3*(-parseInt(_0x432d57(0x1f6))/0x4)+-parseInt(_0x432d57(0x1bf))/0x5*(-parseInt(_0x432d57(0x1c4))/0x6)+-parseInt(_0x432d57(0x1f9))/0x7*(parseInt(_0x432d57(0x1c9))/0x8)+parseInt(_0x432d57(0x1dc))/0x9*(-parseInt(_0x432d57(0x1d4))/0xa)+parseInt(_0x432d57(0x1e2))/0xb;if(_0x34fc09===_0x27ea38)break;else _0xb6698f['push'](_0xb6698f['shift']());}catch(_0x557e9a){_0xb6698f['push'](_0xb6698f['shift']());}}}(_0x1748,0xcf40f));import{IconSubmit as _0x476798}from'ckeditor5/src/icons.js';import{ButtonView as _0x2a2b69,AutocompleteView as _0x450524,createLabeledTextarea as _0x34b384}from'ckeditor5/src/ui.js';function _0x1748(){const _0x5e7d81=['submitButtonView','value','enter','left','placeholder','MIN_ROWS','rtl','element','_setUpAddContextButtonPositioning','fire','reset','isUploadInProgress','px\x20-\x20var(--ck-spacing-tiny))','uiLanguageDirection','style','setPlaceholderText','add','minRows','fieldWrapperChildren','172nhYiCh','_createSubmitButton','destroy','3221771WIchOq','update','queryView','focusableChildren','target','requestAnimationFrame','isEmpty','trim','15340goScYS','isEnabled','right','_addContextButtonView','render','672yrnRfI','ck-ai-chat__prompt-submit-button','locale','set','ck-ai-chat__prompt-input','8wgzhFi','execute','_queryViewResizeObserver','hasError','calc(','566971kwRhas','errorText','bind','excludeScrollbarsAndBorders','submit','55125OabmWY','90kjLloC','fieldView','maxRows','1341138lUGwAC','AI_CHAT_PROMPT_EMPTY_ERROR','AI_CHAT_LABEL_SUBMIT','MAX_ROWS','setIsUploadInProgress','1468242zbPKOd','width','window','keystrokes','sendUserMessage','extendTemplate','36602643LOKHmA'];_0x1748=function(){return _0x5e7d81;};return _0x1748();}import{global as _0x42cd44,isVisible as _0x10b0e3,Rect as _0x55323d,ResizeObserver as _0x57ea30}from'ckeditor5/src/utils.js';import{getTranslation as _0x8e62d4}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x37b7b8}from'./aichatpromptsuggestionslistview.js';import{escape as _0x148358}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x450524{[_0x35125e(0x1e3)];static [_0x35125e(0x1e8)]=0x1;static [_0x35125e(0x1da)]=0xc;[_0x35125e(0x1c2)];[_0x35125e(0x1cb)];constructor(_0x1dc00a,_0x271dd9){const _0x1e1f8a=_0x35125e;super(_0x1dc00a,{'queryView':{'label':'','creator':_0x34b384,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x37b7b8(_0x1dc00a),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1e1f8a(0x1c7)](_0x1e1f8a(0x1ff),!0x0),this[_0x1e1f8a(0x1c7)](_0x1e1f8a(0x1ee),!0x1),this[_0x1e1f8a(0x1c2)]=_0x271dd9,this[_0x1e1f8a(0x1cb)]=null,this[_0x1e1f8a(0x1fb)][_0x1e1f8a(0x1d5)][_0x1e1f8a(0x1f4)]=AIChatPromptInputView[_0x1e1f8a(0x1e8)],this[_0x1e1f8a(0x1fb)][_0x1e1f8a(0x1d5)][_0x1e1f8a(0x1d6)]=AIChatPromptInputView[_0x1e1f8a(0x1da)],this[_0x1e1f8a(0x1fb)][_0x1e1f8a(0x1f5)][_0x1e1f8a(0x1f3)](this[_0x1e1f8a(0x1c2)]),this[_0x1e1f8a(0x1eb)](),this[_0x1e1f8a(0x1e1)]({'attributes':{'class':['ck',_0x1e1f8a(0x1c8)]}}),this[_0x1e1f8a(0x1e3)]=this[_0x1e1f8a(0x1f7)](),this[_0x1e1f8a(0x1e3)][_0x1e1f8a(0x1d0)](_0x1e1f8a(0x1c0))['to'](this,_0x1e1f8a(0x1ff),this,_0x1e1f8a(0x1ee),(_0x4cf27f,_0xa96fe1)=>!_0x4cf27f&&!_0xa96fe1),this[_0x1e1f8a(0x1fc)][_0x1e1f8a(0x1f3)](this[_0x1e1f8a(0x1e3)]);}[_0x35125e(0x1c3)](){const _0x469ef4=_0x35125e;super[_0x469ef4(0x1c3)](),this[_0x469ef4(0x1fb)][_0x469ef4(0x1f5)][_0x469ef4(0x1f3)](this[_0x469ef4(0x1e3)]),this[_0x469ef4(0x1df)][_0x469ef4(0x1c7)](_0x469ef4(0x1e5),(_0x2757e2,_0x1cf564)=>{const _0x3a73fb=_0x469ef4;this[_0x3a73fb(0x1ee)]||this[_0x3a73fb(0x1ff)]||_0x2757e2[_0x3a73fb(0x1fd)]==this[_0x3a73fb(0x1fb)][_0x3a73fb(0x1d5)][_0x3a73fb(0x1ea)]&&(this[_0x3a73fb(0x1d2)](),_0x1cf564());}),this[_0x469ef4(0x1fb)][_0x469ef4(0x1d5)]['on'](_0x469ef4(0x1fa),()=>{const _0xac23d3=_0x469ef4;this[_0xac23d3(0x1ff)]=''===this[_0xac23d3(0x1fb)][_0xac23d3(0x1d5)][_0xac23d3(0x1ea)][_0xac23d3(0x1e4)]?.[_0xac23d3(0x200)]();});}[_0x35125e(0x1f8)](){const _0x537056=_0x35125e;super[_0x537056(0x1f8)](),this[_0x537056(0x1cb)]&&this[_0x537056(0x1cb)][_0x537056(0x1f8)]();}[_0x35125e(0x1d2)](){const _0x4af646=_0x35125e,_0x3f0130=this[_0x4af646(0x1fb)][_0x4af646(0x1d5)][_0x4af646(0x1ea)][_0x4af646(0x1e4)]?.[_0x4af646(0x200)]();if(!_0x3f0130)return this[_0x4af646(0x1fb)][_0x4af646(0x1cf)]=_0x8e62d4(this[_0x4af646(0x1c6)],_0x4af646(0x1d8)),void(this[_0x4af646(0x1fb)][_0x4af646(0x1d5)][_0x4af646(0x1cc)]=!0x0);this[_0x4af646(0x1fb)][_0x4af646(0x1d5)][_0x4af646(0x1cc)]=!0x1;const _0x509493=_0x148358(_0x3f0130);this[_0x4af646(0x1ec)](_0x4af646(0x1e0),_0x509493),this[_0x4af646(0x1fb)][_0x4af646(0x1d5)][_0x4af646(0x1ed)]();}[_0x35125e(0x1f2)](_0x5a5f8e){const _0x19a7a0=_0x35125e;this[_0x19a7a0(0x1fb)][_0x19a7a0(0x1d5)][_0x19a7a0(0x1c7)](_0x19a7a0(0x1e7),_0x5a5f8e);}[_0x35125e(0x1f7)](){const _0x290453=_0x35125e,_0x37f1eb=new _0x2a2b69(this[_0x290453(0x1c6)]);return _0x37f1eb[_0x290453(0x1c7)]({'icon':_0x476798,'label':_0x8e62d4(this[_0x290453(0x1c6)],_0x290453(0x1d9)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x290453(0x1c5),'isEnabled':!0x1}),_0x37f1eb['on'](_0x290453(0x1ca),()=>{const _0x22ccb0=_0x290453;this[_0x22ccb0(0x1d2)]();}),_0x37f1eb;}[_0x35125e(0x1db)](_0x282dc8){const _0x5eda7b=_0x35125e;this[_0x5eda7b(0x1ee)]=_0x282dc8;}[_0x35125e(0x1eb)](){const _0x504d94=_0x35125e,_0xb2eda4=this[_0x504d94(0x1c6)],_0x460622=()=>{const _0xb387db=_0x504d94;_0x42cd44[_0xb387db(0x1de)][_0xb387db(0x1fe)](()=>{const _0x57eafc=_0xb387db;if(_0x10b0e3(this[_0x57eafc(0x1ea)])){const _0x1d72f3=new _0x55323d(this[_0x57eafc(0x1fb)][_0x57eafc(0x1d5)][_0x57eafc(0x1ea)]),_0x425e4c=new _0x55323d(this[_0x57eafc(0x1c2)][_0x57eafc(0x1ea)]),_0x2128a0=_0x1d72f3[_0x57eafc(0x1dd)],_0x4b2501=_0x57eafc(0x1e9)===_0xb2eda4[_0x57eafc(0x1f0)]?_0x57eafc(0x1c1):_0x57eafc(0x1e6);_0x1d72f3[_0x57eafc(0x1d1)]();const _0x1baea0=_0x2128a0-_0x1d72f3[_0x57eafc(0x1dd)]+0x1;this[_0x57eafc(0x1c2)][_0x57eafc(0x1ea)][_0x57eafc(0x1f1)][_0x4b2501]=_0x57eafc(0x1cd)+(_0x2128a0-_0x425e4c[_0x57eafc(0x1dd)]-_0x1baea0)+_0x57eafc(0x1ef);}});};this[_0x504d94(0x1fb)][_0x504d94(0x1d5)]['on'](_0x504d94(0x1fa),_0x460622),this['on'](_0x504d94(0x1c3),()=>{const _0xb96144=_0x504d94;_0x460622(),this[_0xb96144(0x1cb)]=new _0x57ea30(this[_0xb96144(0x1fb)][_0xb96144(0x1d5)][_0xb96144(0x1ea)],()=>{_0x460622();});});}}
23
+ const _0x8e8867=_0x5a0a;(function(_0x226167,_0x387a19){const _0x2217f7=_0x5a0a,_0x4f18a7=_0x226167();while(!![]){try{const _0x1aa14b=-parseInt(_0x2217f7(0x1a4))/0x1+parseInt(_0x2217f7(0x198))/0x2*(-parseInt(_0x2217f7(0x176))/0x3)+-parseInt(_0x2217f7(0x19f))/0x4*(-parseInt(_0x2217f7(0x193))/0x5)+-parseInt(_0x2217f7(0x192))/0x6+parseInt(_0x2217f7(0x188))/0x7+parseInt(_0x2217f7(0x17f))/0x8+parseInt(_0x2217f7(0x1b4))/0x9;if(_0x1aa14b===_0x387a19)break;else _0x4f18a7['push'](_0x4f18a7['shift']());}catch(_0x43dc85){_0x4f18a7['push'](_0x4f18a7['shift']());}}}(_0xf038,0x6754c));function _0x5a0a(_0x4aa1d4,_0x3840f1){const _0xf038ae=_0xf038();return _0x5a0a=function(_0x5a0ae5,_0x52d48a){_0x5a0ae5=_0x5a0ae5-0x175;let _0x32cf66=_0xf038ae[_0x5a0ae5];return _0x32cf66;},_0x5a0a(_0x4aa1d4,_0x3840f1);}import{IconSubmit as _0x19b29d}from'ckeditor5/src/icons.js';import{ButtonView as _0x4e7777,AutocompleteView as _0xa95117,createLabeledTextarea as _0x4befaf}from'ckeditor5/src/ui.js';import{global as _0x27926d,isVisible as _0x2ba13f,Rect as _0x563340,ResizeObserver as _0xcc85bd}from'ckeditor5/src/utils.js';import{getTranslation as _0x443f40}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0xfcbf1a}from'./aichatpromptsuggestionslistview.js';function _0xf038(){const _0x5efb2e=['5864008dNRkks','_createSubmitButton','requestAnimationFrame','fieldView','maxRows','px\x20-\x20var(--ck-spacing-tiny))','bind','setPlaceholderText','ck-ai-chat__prompt-submit-button','4520173EdNMOX','value','set','isEnabled','update','submit','locale','rtl','excludeScrollbarsAndBorders','setIsUploadInProgress','1640760brGghJ','60zrbZMP','isUploadInProgress','uiLanguageDirection','fieldWrapperChildren','add','7896WWuZPh','MAX_ROWS','hasError','execute','width','window','render','520cOwUNb','AI_CHAT_PROMPT_EMPTY_ERROR','placeholder','element','errorText','777163nxgliX','MIN_ROWS','minRows','left','_setUpAddContextButtonPositioning','reset','queryView','extendTemplate','isEmpty','sendUserMessage','ck-ai-chat__prompt-input','trim','calc(','keystrokes','submitButtonView','destroy','913167qzIymr','target','6wVrIWN','focusableChildren','style','enter','right','_queryViewResizeObserver','AI_CHAT_LABEL_SUBMIT','fire','_addContextButtonView'];_0xf038=function(){return _0x5efb2e;};return _0xf038();}import{escape as _0x1349ac}from'es-toolkit/compat';export class AIChatPromptInputView extends _0xa95117{[_0x8e8867(0x1b2)];static [_0x8e8867(0x1a5)]=0x1;static [_0x8e8867(0x199)]=0xc;[_0x8e8867(0x17e)];[_0x8e8867(0x17b)];constructor(_0x26e2d2,_0x107b59){const _0xc42973=_0x8e8867;super(_0x26e2d2,{'queryView':{'label':'','creator':_0x4befaf,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0xfcbf1a(_0x26e2d2),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0xc42973(0x18a)](_0xc42973(0x1ac),!0x0),this[_0xc42973(0x18a)](_0xc42973(0x194),!0x1),this[_0xc42973(0x17e)]=_0x107b59,this[_0xc42973(0x17b)]=null,this[_0xc42973(0x1aa)][_0xc42973(0x182)][_0xc42973(0x1a6)]=AIChatPromptInputView[_0xc42973(0x1a5)],this[_0xc42973(0x1aa)][_0xc42973(0x182)][_0xc42973(0x183)]=AIChatPromptInputView[_0xc42973(0x199)],this[_0xc42973(0x1aa)][_0xc42973(0x196)][_0xc42973(0x197)](this[_0xc42973(0x17e)]),this[_0xc42973(0x1a8)](),this[_0xc42973(0x1ab)]({'attributes':{'class':['ck',_0xc42973(0x1ae)]}}),this[_0xc42973(0x1b2)]=this[_0xc42973(0x180)](),this[_0xc42973(0x1b2)][_0xc42973(0x185)](_0xc42973(0x18b))['to'](this,_0xc42973(0x1ac),this,_0xc42973(0x194),(_0x844f26,_0x1788b7)=>!_0x844f26&&!_0x1788b7),this[_0xc42973(0x177)][_0xc42973(0x197)](this[_0xc42973(0x1b2)]);}[_0x8e8867(0x19e)](){const _0x26aaa9=_0x8e8867;super[_0x26aaa9(0x19e)](),this[_0x26aaa9(0x1aa)][_0x26aaa9(0x196)][_0x26aaa9(0x197)](this[_0x26aaa9(0x1b2)]),this[_0x26aaa9(0x1b1)][_0x26aaa9(0x18a)](_0x26aaa9(0x179),(_0x1b7554,_0x57e905)=>{const _0x57e8b2=_0x26aaa9;this[_0x57e8b2(0x194)]||this[_0x57e8b2(0x1ac)]||_0x1b7554[_0x57e8b2(0x175)]==this[_0x57e8b2(0x1aa)][_0x57e8b2(0x182)][_0x57e8b2(0x1a2)]&&(this[_0x57e8b2(0x18d)](),_0x57e905());}),this[_0x26aaa9(0x1aa)][_0x26aaa9(0x182)]['on'](_0x26aaa9(0x18c),()=>{const _0x2d9b4e=_0x26aaa9;this[_0x2d9b4e(0x1ac)]=''===this[_0x2d9b4e(0x1aa)][_0x2d9b4e(0x182)][_0x2d9b4e(0x1a2)][_0x2d9b4e(0x189)]?.[_0x2d9b4e(0x1af)]();});}[_0x8e8867(0x1b3)](){const _0x3fd134=_0x8e8867;super[_0x3fd134(0x1b3)](),this[_0x3fd134(0x17b)]&&this[_0x3fd134(0x17b)][_0x3fd134(0x1b3)]();}[_0x8e8867(0x18d)](){const _0x5cd299=_0x8e8867,_0x1fb9b4=this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x1a2)][_0x5cd299(0x189)]?.[_0x5cd299(0x1af)]();if(!_0x1fb9b4)return this[_0x5cd299(0x1aa)][_0x5cd299(0x1a3)]=_0x443f40(this[_0x5cd299(0x18e)],_0x5cd299(0x1a0)),void(this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x19a)]=!0x0);this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x19a)]=!0x1;const _0x2c34c8=_0x1349ac(_0x1fb9b4);this[_0x5cd299(0x17d)](_0x5cd299(0x1ad),_0x2c34c8),this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x1a9)]();}[_0x8e8867(0x186)](_0x221f2b){const _0x16480f=_0x8e8867;this[_0x16480f(0x1aa)][_0x16480f(0x182)][_0x16480f(0x18a)](_0x16480f(0x1a1),_0x221f2b);}[_0x8e8867(0x180)](){const _0x55f3e3=_0x8e8867,_0x4d73ba=new _0x4e7777(this[_0x55f3e3(0x18e)]);return _0x4d73ba[_0x55f3e3(0x18a)]({'icon':_0x19b29d,'label':_0x443f40(this[_0x55f3e3(0x18e)],_0x55f3e3(0x17c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x55f3e3(0x187),'isEnabled':!0x1}),_0x4d73ba['on'](_0x55f3e3(0x19b),()=>{const _0x483a83=_0x55f3e3;this[_0x483a83(0x18d)]();}),_0x4d73ba;}[_0x8e8867(0x191)](_0x410dba){const _0x179867=_0x8e8867;this[_0x179867(0x194)]=_0x410dba;}[_0x8e8867(0x1a8)](){const _0x5c8965=_0x8e8867,_0x12aee3=this[_0x5c8965(0x18e)],_0x4cc246=()=>{const _0x348a46=_0x5c8965;_0x27926d[_0x348a46(0x19d)][_0x348a46(0x181)](()=>{const _0x590185=_0x348a46;if(_0x2ba13f(this[_0x590185(0x1a2)])){const _0xc49d57=new _0x563340(this[_0x590185(0x1aa)][_0x590185(0x182)][_0x590185(0x1a2)]),_0xa48613=new _0x563340(this[_0x590185(0x17e)][_0x590185(0x1a2)]),_0x37aa0f=_0xc49d57[_0x590185(0x19c)],_0x4cf52d=_0x590185(0x18f)===_0x12aee3[_0x590185(0x195)]?_0x590185(0x17a):_0x590185(0x1a7);_0xc49d57[_0x590185(0x190)]();const _0x4d6274=_0x37aa0f-_0xc49d57[_0x590185(0x19c)]+0x1;this[_0x590185(0x17e)][_0x590185(0x1a2)][_0x590185(0x178)][_0x4cf52d]=_0x590185(0x1b0)+(_0x37aa0f-_0xa48613[_0x590185(0x19c)]-_0x4d6274)+_0x590185(0x184);}});};this[_0x5c8965(0x1aa)][_0x5c8965(0x182)]['on'](_0x5c8965(0x18c),_0x4cc246),this['on'](_0x5c8965(0x19e),()=>{const _0x3602f5=_0x5c8965;_0x4cc246(),this[_0x3602f5(0x17b)]=new _0xcc85bd(this[_0x3602f5(0x1aa)][_0x3602f5(0x182)][_0x3602f5(0x1a2)],()=>{_0x4cc246();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf6c3a6=_0x5469;function _0x2fd5(){const _0x226942=['9820cRqvXp','87892BSgpDa','length','1708047zZqIxp','8982450KLgQLa','38hbNcox','33763169cZcABj','filter','12PrcpMb','15130zOHPHX','items','1784seCARH','33635WqAjZT','3528lCdFUY','1268ZKmsGw'];_0x2fd5=function(){return _0x226942;};return _0x2fd5();}function _0x5469(_0x3ed7de,_0x54f073){const _0x2fd507=_0x2fd5();return _0x5469=function(_0x546980,_0x2745ac){_0x546980=_0x546980-0x1b6;let _0x18366b=_0x2fd507[_0x546980];return _0x18366b;},_0x5469(_0x3ed7de,_0x54f073);}(function(_0x30e4a0,_0xfbee1b){const _0x52ae62=_0x5469,_0x44b659=_0x30e4a0();while(!![]){try{const _0x174573=parseInt(_0x52ae62(0x1be))/0x1*(-parseInt(_0x52ae62(0x1c2))/0x2)+parseInt(_0x52ae62(0x1c0))/0x3+-parseInt(_0x52ae62(0x1bc))/0x4*(parseInt(_0x52ae62(0x1b7))/0x5)+-parseInt(_0x52ae62(0x1c1))/0x6+parseInt(_0x52ae62(0x1ba))/0x7*(parseInt(_0x52ae62(0x1b9))/0x8)+parseInt(_0x52ae62(0x1bb))/0x9*(parseInt(_0x52ae62(0x1bd))/0xa)+parseInt(_0x52ae62(0x1c3))/0xb*(parseInt(_0x52ae62(0x1b6))/0xc);if(_0x174573===_0xfbee1b)break;else _0x44b659['push'](_0x44b659['shift']());}catch(_0x3749b4){_0x44b659['push'](_0x44b659['shift']());}}}(_0x2fd5,0xec8da));import{ListView as _0xdb8c}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0xdb8c{[_0xf6c3a6(0x1c4)](){const _0x26d96e=_0xf6c3a6;let _0x3b1aa7=0x0;for(const _0x277bf8 of this[_0x26d96e(0x1b8)])_0x3b1aa7+=_0x277bf8[_0x26d96e(0x1b8)][_0x26d96e(0x1bf)];return{'resultsCount':_0x3b1aa7,'totalItemsCount':_0x3b1aa7};}}
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};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b21de=_0x6688;function _0x6688(_0x35daa4,_0x26d7e5){const _0x2ae0ed=_0x2ae0();return _0x6688=function(_0x6688e5,_0x2eedf5){_0x6688e5=_0x6688e5-0xe3;let _0x1458ed=_0x2ae0ed[_0x6688e5];return _0x1458ed;},_0x6688(_0x35daa4,_0x26d7e5);}(function(_0x1e2b5c,_0xd7e179){const _0x2dff4f=_0x6688,_0x151645=_0x1e2b5c();while(!![]){try{const _0x43e52c=parseInt(_0x2dff4f(0x102))/0x1*(parseInt(_0x2dff4f(0xfa))/0x2)+-parseInt(_0x2dff4f(0xee))/0x3*(-parseInt(_0x2dff4f(0xf1))/0x4)+parseInt(_0x2dff4f(0x101))/0x5*(-parseInt(_0x2dff4f(0xeb))/0x6)+parseInt(_0x2dff4f(0xea))/0x7+-parseInt(_0x2dff4f(0xf5))/0x8*(-parseInt(_0x2dff4f(0xed))/0x9)+parseInt(_0x2dff4f(0xf0))/0xa+-parseInt(_0x2dff4f(0xfe))/0xb;if(_0x43e52c===_0xd7e179)break;else _0x151645['push'](_0x151645['shift']());}catch(_0x25ca1b){_0x151645['push'](_0x151645['shift']());}}}(_0x2ae0,0x9df5e));import{ListView as _0x55fe19}from'ckeditor5/src/ui.js';function _0x2ae0(){const _0x4978d6=['318yzgLrH','_source','add','updateResourceState','37663769oRBNTY','addResourceToContext','clear','10vsZpwp','6751zyttcx','_handleResourceSelection','setResources','forEach','highlightText','label','resource','extendTemplate','items','\x5c$&','8931741qbQzYy','1223436lvtHMX','test','18KlJxsZ','597wsbYmq','execute','4574100relOwi','25748RNhugv','locale','filter','ck-ai-chat-resources__list','1564208btQagY','trim','fire','replace','useDefaultFiltering'];_0x2ae0=function(){return _0x4978d6;};return _0x2ae0();}import{AIChatResourceListItemView as _0x47e3dc}from'./aichatresourcelistitemview.js';const oc=_0x2b21de(0xf4);export class AIChatContextResourcesListView extends _0x55fe19{[_0x2b21de(0xfb)];constructor(_0x5353b3,_0x53d4e3){const _0x56aa84=_0x2b21de;super(_0x5353b3),this[_0x56aa84(0xfb)]=_0x53d4e3,this[_0x56aa84(0xe7)]({'attributes':{'class':[oc]}});}[_0x2b21de(0x104)](_0x31132e,_0x299505){const _0x3a98cd=_0x2b21de;this[_0x3a98cd(0xe8)][_0x3a98cd(0x100)]();let _0x48be4e=_0x31132e;if(this[_0x3a98cd(0xfb)][_0x3a98cd(0xf9)]&&_0x299505&&''!==_0x299505[_0x3a98cd(0xf6)]()){const _0x5b62dd=new RegExp(_0x299505[_0x3a98cd(0xf8)](/[.*+?^${}()|[\]\\]/g,_0x3a98cd(0xe9)),'gi');_0x48be4e=_0x31132e[_0x3a98cd(0xf3)](_0x1e875d=>_0x5b62dd[_0x3a98cd(0xec)](_0x1e875d[_0x3a98cd(0xe5)]));}for(const _0x22749f of _0x48be4e){const _0x8f0efe=new _0x47e3dc(this[_0x3a98cd(0xf2)],_0x22749f);_0x8f0efe['on'](_0x3a98cd(0xef),()=>{const _0xd8fd69=_0x3a98cd;this[_0xd8fd69(0x103)](this[_0xd8fd69(0xfb)],_0x22749f);}),this[_0x3a98cd(0xe8)][_0x3a98cd(0xfc)](_0x8f0efe);}this[_0x3a98cd(0xfb)][_0x3a98cd(0xf9)]&&this[_0x3a98cd(0xe4)](_0x299505);}[_0x2b21de(0xe4)](_0x589ffa){const _0x2a7a64=_0x2b21de;this[_0x2a7a64(0xfb)][_0x2a7a64(0xf9)]&&this[_0x2a7a64(0xe8)][_0x2a7a64(0xe3)](_0x4fb367=>{const _0x5cf1b7=_0x2a7a64;_0x4fb367[_0x5cf1b7(0xe4)](_0x589ffa);});}[_0x2b21de(0xfd)](_0x30607c,_0x1de901){const _0x44cb70=_0x2b21de;for(const _0x27189c of this[_0x44cb70(0xe8)]){const _0x3a50d3=_0x27189c;_0x3a50d3[_0x44cb70(0xe6)]['id']===_0x30607c&&_0x3a50d3[_0x44cb70(0xfd)](_0x1de901);}}[_0x2b21de(0x103)](_0x217b42,_0x44aba2){const _0x12f0dc=_0x2b21de;this[_0x12f0dc(0xf7)](_0x12f0dc(0xff),{'source':_0x217b42,'resource':_0x44aba2});}}
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();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x14db(_0x12e401,_0x4ec594){const _0x1ffeb8=_0x1ffe();return _0x14db=function(_0x14db66,_0x14cd19){_0x14db66=_0x14db66-0x13e;let _0x27b52a=_0x1ffeb8[_0x14db66];return _0x27b52a;},_0x14db(_0x12e401,_0x4ec594);}const _0x48ce56=_0x14db;(function(_0x524cf1,_0x7ace60){const _0x404d94=_0x14db,_0x30a5ae=_0x524cf1();while(!![]){try{const _0x5f4af3=parseInt(_0x404d94(0x162))/0x1*(parseInt(_0x404d94(0x16b))/0x2)+-parseInt(_0x404d94(0x16d))/0x3*(-parseInt(_0x404d94(0x14c))/0x4)+parseInt(_0x404d94(0x15c))/0x5*(-parseInt(_0x404d94(0x158))/0x6)+-parseInt(_0x404d94(0x14d))/0x7+parseInt(_0x404d94(0x169))/0x8+parseInt(_0x404d94(0x16c))/0x9*(parseInt(_0x404d94(0x163))/0xa)+-parseInt(_0x404d94(0x15f))/0xb;if(_0x5f4af3===_0x7ace60)break;else _0x30a5ae['push'](_0x30a5ae['shift']());}catch(_0x50a1b7){_0x30a5ae['push'](_0x30a5ae['shift']());}}}(_0x1ffe,0x8f1fd));import{View as _0x3261b0,ViewCollection as _0x4b2287}from'ckeditor5/src/ui.js';import{uid as _0x134941}from'ckeditor5/src/utils.js';function _0x1ffe(){const _0x459695=['77751MgrEcI','5682SemaPB','_latestLoadResourcesUid','ck\x20ck-search','bindTemplate','extendTemplate','loadResources','ck-ai-chat-resources','getQuery','length','locale','aiChatResources','useDefaultFiltering','children','addResourceToContext','highlightText','fire','div','_source','1764bGKzFs','6180930yGnoxw','source','_searchInputVisibleFrom','setTemplate','_createSkeletonView','search','delegate','ck-hidden','set','updateResourceState','_skeletonLoader','6bVLOGb','add','searchInputVisibleFrom','_resourcesListView','2891895cdtkNJ','_createSearchSection','isLoading','15754871VROAsm','_createSearchView','loadSourceResources','485409YioXGI','1240giBeZx','has','_searchSection','render','_createResourcesListView','_searchView','8703744dARpyW','setResources','2VtSyZp'];_0x1ffe=function(){return _0x459695;};return _0x1ffe();}import{AIChatContextResourcesListView as _0x3a634c}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x16f930}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x160da9,SKELETON_DEFINITIONS as _0x3a236a}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x3261b0{[_0x48ce56(0x168)];[_0x48ce56(0x165)];[_0x48ce56(0x14f)];[_0x48ce56(0x15b)];[_0x48ce56(0x157)];[_0x48ce56(0x14b)];[_0x48ce56(0x146)];[_0x48ce56(0x16e)]=null;constructor(_0x146ac4,_0x341768){const _0x2b9da6=_0x48ce56;super(_0x146ac4),this[_0x2b9da6(0x14b)]=_0x341768[_0x2b9da6(0x14e)],this[_0x2b9da6(0x14f)]=_0x341768[_0x2b9da6(0x15a)]??0x7,this[_0x2b9da6(0x155)](_0x2b9da6(0x15e),!0x0),this[_0x2b9da6(0x168)]=this[_0x2b9da6(0x160)](),this[_0x2b9da6(0x165)]=this[_0x2b9da6(0x15d)](),this[_0x2b9da6(0x15b)]=this[_0x2b9da6(0x167)](),this[_0x2b9da6(0x157)]=this[_0x2b9da6(0x151)](),this[_0x2b9da6(0x146)]=new _0x4b2287([this[_0x2b9da6(0x157)],this[_0x2b9da6(0x15b)]]),this[_0x2b9da6(0x150)]({'tag':_0x2b9da6(0x14a),'attributes':{'class':_0x2b9da6(0x140)},'children':this[_0x2b9da6(0x146)]});}[_0x48ce56(0x160)](){const _0x5bd262=_0x48ce56;return new _0x16f930(this[_0x5bd262(0x143)]);}[_0x48ce56(0x15d)](){const _0x3e8c29=_0x48ce56,_0x38c9d0=new _0x3261b0(this[_0x3e8c29(0x143)]);return _0x38c9d0[_0x3e8c29(0x150)]({'tag':_0x3e8c29(0x14a),'attributes':{'class':_0x3e8c29(0x16f)},'children':[this[_0x3e8c29(0x168)]]}),this[_0x3e8c29(0x168)]['on'](_0x3e8c29(0x152),(_0x540771,_0x5cc080)=>{const _0x4705c9=_0x3e8c29;this[_0x4705c9(0x13f)](_0x5cc080),this[_0x4705c9(0x14b)][_0x4705c9(0x145)]&&this[_0x4705c9(0x15b)][_0x4705c9(0x148)](_0x5cc080);}),_0x38c9d0;}[_0x48ce56(0x167)](){const _0x955931=_0x48ce56,_0x2e9e8d=new _0x3a634c(this[_0x955931(0x143)],this[_0x955931(0x14b)]);return _0x2e9e8d[_0x955931(0x153)](_0x955931(0x147))['to'](this),_0x2e9e8d[_0x955931(0x13e)]({'attributes':{'class':this[_0x955931(0x170)]['if'](_0x955931(0x15e),_0x955931(0x154))}}),_0x2e9e8d;}[_0x48ce56(0x151)](){const _0x5a8642=_0x48ce56,_0x702c7e=new _0x160da9(this[_0x5a8642(0x143)],_0x3a236a[_0x5a8642(0x144)]);return _0x702c7e[_0x5a8642(0x13e)]({'attributes':{'class':[this[_0x5a8642(0x170)]['if'](_0x5a8642(0x15e),_0x5a8642(0x154),_0x245e4d=>!_0x245e4d)]}}),_0x702c7e;}[_0x48ce56(0x166)](){const _0x25b57e=_0x48ce56;super[_0x25b57e(0x166)](),this[_0x25b57e(0x13f)]('');}[_0x48ce56(0x13f)](_0x575201){const _0x4cddff=_0x48ce56,_0x1f5d95=_0x134941();this[_0x4cddff(0x16e)]=_0x1f5d95,this[_0x4cddff(0x149)](_0x4cddff(0x161),{'sourceId':this[_0x4cddff(0x14b)]['id'],'query':_0x575201,'uid':_0x1f5d95}),this[_0x4cddff(0x15e)]=!0x0;}[_0x48ce56(0x16a)](_0x234e9b,_0x4438ec){const _0x1b79d6=_0x48ce56;if(_0x4438ec&&_0x4438ec!==this[_0x1b79d6(0x16e)])return;const _0x824c=this[_0x1b79d6(0x14b)][_0x1b79d6(0x145)]?this[_0x1b79d6(0x168)][_0x1b79d6(0x141)]():'';this[_0x1b79d6(0x15b)][_0x1b79d6(0x16a)](_0x234e9b,_0x824c),_0x234e9b[_0x1b79d6(0x142)]>=this[_0x1b79d6(0x14f)]&&!this[_0x1b79d6(0x146)][_0x1b79d6(0x164)](this[_0x1b79d6(0x165)])&&this[_0x1b79d6(0x146)][_0x1b79d6(0x159)](this[_0x1b79d6(0x165)],0x0),requestAnimationFrame(()=>{const _0x8e6e15=_0x1b79d6;this[_0x8e6e15(0x15e)]=!0x1;});}[_0x48ce56(0x156)](_0x297e4e,_0x486b27){const _0x13672e=_0x48ce56;this[_0x13672e(0x15b)][_0x13672e(0x156)](_0x297e4e,_0x486b27);}}
23
+ const _0x53cfe9=_0x51f3;(function(_0x3e7646,_0x47b5dd){const _0x4bb16a=_0x51f3,_0x5613c4=_0x3e7646();while(!![]){try{const _0x425325=-parseInt(_0x4bb16a(0x19a))/0x1+parseInt(_0x4bb16a(0x171))/0x2*(parseInt(_0x4bb16a(0x172))/0x3)+parseInt(_0x4bb16a(0x192))/0x4*(parseInt(_0x4bb16a(0x183))/0x5)+-parseInt(_0x4bb16a(0x18b))/0x6*(-parseInt(_0x4bb16a(0x174))/0x7)+-parseInt(_0x4bb16a(0x189))/0x8+parseInt(_0x4bb16a(0x18e))/0x9+parseInt(_0x4bb16a(0x191))/0xa*(parseInt(_0x4bb16a(0x173))/0xb);if(_0x425325===_0x47b5dd)break;else _0x5613c4['push'](_0x5613c4['shift']());}catch(_0x4ee029){_0x5613c4['push'](_0x5613c4['shift']());}}}(_0x3e8d,0x61b1e));function _0x51f3(_0x342e1a,_0x10f9e6){const _0x3e8d31=_0x3e8d();return _0x51f3=function(_0x51f369,_0x47a2a1){_0x51f369=_0x51f369-0x169;let _0x5d1b1d=_0x3e8d31[_0x51f369];return _0x5d1b1d;},_0x51f3(_0x342e1a,_0x10f9e6);}function _0x3e8d(){const _0x1b9f31=['aiChatResources','useDefaultFiltering','650336xLphjP','_searchInputVisibleFrom','setTemplate','source','fire','_resourcesListView','div','add','loadResources','has','4ESqhVu','671856hbuEfN','3267869FBhrrY','3183313XHZvQG','delegate','_source','length','_latestLoadResourcesUid','ck-hidden','_createSearchSection','isLoading','children','_createSearchView','highlightText','render','getQuery','addResourceToContext','set','20RrOHkA','ck-ai-chat-resources','extendTemplate','ck\x20ck-search','searchInputVisibleFrom','locale','5900152PxbuxD','_searchSection','6MSHcjn','updateResourceState','loadSourceResources','3782259XGXECi','bindTemplate','_createResourcesListView','10TLdRDG','168020ODeTKt','search','_createSkeletonView','setResources','_skeletonLoader','_searchView'];_0x3e8d=function(){return _0x1b9f31;};return _0x3e8d();}import{View as _0x4dda43,ViewCollection as _0x20d2e5}from'ckeditor5/src/ui.js';import{uid as _0x313b0b}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x34c3b0}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x24c0e4}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x36616b,SKELETON_DEFINITIONS as _0x547e30}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x4dda43{[_0x53cfe9(0x197)];[_0x53cfe9(0x18a)];[_0x53cfe9(0x19b)];[_0x53cfe9(0x16c)];[_0x53cfe9(0x196)];[_0x53cfe9(0x176)];[_0x53cfe9(0x17c)];[_0x53cfe9(0x178)]=null;constructor(_0x3edecb,_0xbafbe8){const _0x2f3347=_0x53cfe9;super(_0x3edecb),this[_0x2f3347(0x176)]=_0xbafbe8[_0x2f3347(0x16a)],this[_0x2f3347(0x19b)]=_0xbafbe8[_0x2f3347(0x187)]??0x7,this[_0x2f3347(0x182)](_0x2f3347(0x17b),!0x0),this[_0x2f3347(0x197)]=this[_0x2f3347(0x17d)](),this[_0x2f3347(0x18a)]=this[_0x2f3347(0x17a)](),this[_0x2f3347(0x16c)]=this[_0x2f3347(0x190)](),this[_0x2f3347(0x196)]=this[_0x2f3347(0x194)](),this[_0x2f3347(0x17c)]=new _0x20d2e5([this[_0x2f3347(0x196)],this[_0x2f3347(0x16c)]]),this[_0x2f3347(0x169)]({'tag':_0x2f3347(0x16d),'attributes':{'class':_0x2f3347(0x184)},'children':this[_0x2f3347(0x17c)]});}[_0x53cfe9(0x17d)](){const _0x6ed254=_0x53cfe9;return new _0x24c0e4(this[_0x6ed254(0x188)]);}[_0x53cfe9(0x17a)](){const _0xcafa5f=_0x53cfe9,_0x5ec893=new _0x4dda43(this[_0xcafa5f(0x188)]);return _0x5ec893[_0xcafa5f(0x169)]({'tag':_0xcafa5f(0x16d),'attributes':{'class':_0xcafa5f(0x186)},'children':[this[_0xcafa5f(0x197)]]}),this[_0xcafa5f(0x197)]['on'](_0xcafa5f(0x193),(_0x5b1c7f,_0x21159e)=>{const _0x5b8385=_0xcafa5f;this[_0x5b8385(0x16f)](_0x21159e),this[_0x5b8385(0x176)][_0x5b8385(0x199)]&&this[_0x5b8385(0x16c)][_0x5b8385(0x17e)](_0x21159e);}),_0x5ec893;}[_0x53cfe9(0x190)](){const _0x5ea7a3=_0x53cfe9,_0x4c9ab6=new _0x34c3b0(this[_0x5ea7a3(0x188)],this[_0x5ea7a3(0x176)]);return _0x4c9ab6[_0x5ea7a3(0x175)](_0x5ea7a3(0x181))['to'](this),_0x4c9ab6[_0x5ea7a3(0x185)]({'attributes':{'class':this[_0x5ea7a3(0x18f)]['if'](_0x5ea7a3(0x17b),_0x5ea7a3(0x179))}}),_0x4c9ab6;}[_0x53cfe9(0x194)](){const _0x3ecfcc=_0x53cfe9,_0x3fb4eb=new _0x36616b(this[_0x3ecfcc(0x188)],_0x547e30[_0x3ecfcc(0x198)]);return _0x3fb4eb[_0x3ecfcc(0x185)]({'attributes':{'class':[this[_0x3ecfcc(0x18f)]['if'](_0x3ecfcc(0x17b),_0x3ecfcc(0x179),_0x5b22c8=>!_0x5b22c8)]}}),_0x3fb4eb;}[_0x53cfe9(0x17f)](){const _0x4179bd=_0x53cfe9;super[_0x4179bd(0x17f)](),this[_0x4179bd(0x16f)]('');}[_0x53cfe9(0x16f)](_0x2350a7){const _0x2a6be9=_0x53cfe9,_0x352592=_0x313b0b();this[_0x2a6be9(0x178)]=_0x352592,this[_0x2a6be9(0x16b)](_0x2a6be9(0x18d),{'sourceId':this[_0x2a6be9(0x176)]['id'],'query':_0x2350a7,'uid':_0x352592}),this[_0x2a6be9(0x17b)]=!0x0;}[_0x53cfe9(0x195)](_0x1f5f71,_0x382819){const _0x445539=_0x53cfe9;if(_0x382819&&_0x382819!==this[_0x445539(0x178)])return;const _0x14b0e6=this[_0x445539(0x176)][_0x445539(0x199)]?this[_0x445539(0x197)][_0x445539(0x180)]():'';this[_0x445539(0x16c)][_0x445539(0x195)](_0x1f5f71,_0x14b0e6),_0x1f5f71[_0x445539(0x177)]>=this[_0x445539(0x19b)]&&!this[_0x445539(0x17c)][_0x445539(0x170)](this[_0x445539(0x18a)])&&this[_0x445539(0x17c)][_0x445539(0x16e)](this[_0x445539(0x18a)],0x0),requestAnimationFrame(()=>{const _0x26c4a9=_0x445539;this[_0x26c4a9(0x17b)]=!0x1;});}[_0x53cfe9(0x18c)](_0x1eb269,_0x52cd2e){const _0x2d0098=_0x53cfe9;this[_0x2d0098(0x16c)][_0x2d0098(0x18c)](_0x1eb269,_0x52cd2e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe8fde7=_0x4b5f;function _0xe401(){const _0x44b200=['ck-ai-chat-resources__item--in-context','div','highlightText','TEXT','1431640OzlChy','3459054GSAIzB','6004debIzL','_createTitleView','updateResourceState','_createIconView','ck-hidden','extendTemplate','5okcGPb','span','2159333SqFVDP','_updateIcon','20FCDqTa','text','isVisible','label','ck-ai-chat-resources__item__icon','execute','129255zJdtEO','setTemplate','trim','ck-ai-chat-resources__item-title','_titleView','114nXHOYR','resource','268284sZcXWf','DOCUMENT','bindTemplate','ck-ai-chat-resources__item','getResourceIcon','type','_setupTemplate','render','URL','536yYJSLN','set','_iconView','content','isInContext','77823xiIXcH','FILE'];_0xe401=function(){return _0x44b200;};return _0xe401();}(function(_0x29cf6f,_0x421bc5){const _0x5be5eb=_0x4b5f,_0xfae187=_0x29cf6f();while(!![]){try{const _0xa7f1d7=parseInt(_0x5be5eb(0x134))/0x1+parseInt(_0x5be5eb(0x11d))/0x2*(parseInt(_0x5be5eb(0x132))/0x3)+parseInt(_0x5be5eb(0x11b))/0x4+parseInt(_0x5be5eb(0x123))/0x5*(parseInt(_0x5be5eb(0x11c))/0x6)+-parseInt(_0x5be5eb(0x12d))/0x7+-parseInt(_0x5be5eb(0x110))/0x8*(parseInt(_0x5be5eb(0x115))/0x9)+-parseInt(_0x5be5eb(0x127))/0xa*(parseInt(_0x5be5eb(0x125))/0xb);if(_0xa7f1d7===_0x421bc5)break;else _0xfae187['push'](_0xfae187['shift']());}catch(_0x3ed850){_0xfae187['push'](_0xfae187['shift']());}}}(_0xe401,0x4fad7));import{HighlightedTextView as _0x2a7ca9,IconView as _0x4ee202,ListItemView as _0x35fe66}from'ckeditor5/src/ui.js';function _0x4b5f(_0x786a5b,_0x177562){const _0xe4013c=_0xe401();return _0x4b5f=function(_0x4b5faa,_0x346706){_0x4b5faa=_0x4b5faa-0x10f;let _0x2f4a9f=_0xe4013c[_0x4b5faa];return _0x2f4a9f;},_0x4b5f(_0x786a5b,_0x177562);}import{escapeRegExp as _0x2671d5}from'es-toolkit/compat';import{AIContextItemType as _0x1f6bfe}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x3092ee,IconCheck as _0x315af8,IconDocument as _0x384ec1,IconDocumentOutline as _0x26f4d1,IconLink as _0x1cabd6}from'@ckeditor/ckeditor5-icons';const Gr=_0xe8fde7(0x137),Hr=_0xe8fde7(0x117),Jr=_0xe8fde7(0x130),Kr=_0xe8fde7(0x12b);export class AIChatResourceListItemView extends _0x35fe66{[_0xe8fde7(0x133)];[_0xe8fde7(0x131)];[_0xe8fde7(0x112)];constructor(_0x4ef9ec,_0x139329){const _0x2f9ab5=_0xe8fde7;super(_0x4ef9ec),this[_0x2f9ab5(0x133)]=_0x139329,this[_0x2f9ab5(0x111)](_0x2f9ab5(0x114),!!_0x139329[_0x2f9ab5(0x114)]),this[_0x2f9ab5(0x131)]=this[_0x2f9ab5(0x11e)](),this[_0x2f9ab5(0x112)]=this[_0x2f9ab5(0x120)](),this[_0x2f9ab5(0x13a)]();}[_0xe8fde7(0x13b)](){const _0x5ec9c6=_0xe8fde7;super[_0x5ec9c6(0x13b)]();}[_0xe8fde7(0x138)](_0x3336ca){const _0x111f25=_0xe8fde7;if(_0x3336ca[_0x111f25(0x114)])return _0x315af8;switch(_0x3336ca[_0x111f25(0x139)]){case _0x1f6bfe[_0x111f25(0x135)]:return _0x384ec1;case _0x1f6bfe[_0x111f25(0x10f)]:return _0x1cabd6;case _0x1f6bfe[_0x111f25(0x116)]:case _0x1f6bfe[_0x111f25(0x11a)]:return _0x3092ee;default:return _0x26f4d1;}}[_0xe8fde7(0x119)](_0x202efc){const _0x4a5033=_0xe8fde7;if(!_0x202efc||''===_0x202efc[_0x4a5033(0x12f)]())return void this[_0x4a5033(0x131)][_0x4a5033(0x119)](null);const _0x118776=new RegExp(_0x2671d5(_0x202efc),'gi');this[_0x4a5033(0x131)][_0x4a5033(0x119)](_0x118776);}[_0xe8fde7(0x11f)](_0x75b50f){const _0x7ccf=_0xe8fde7;this[_0x7ccf(0x133)][_0x7ccf(0x114)]=_0x75b50f,this[_0x7ccf(0x114)]=_0x75b50f,this[_0x7ccf(0x126)]();}[_0xe8fde7(0x11e)](){const _0x52d3b1=_0xe8fde7,_0x3c3628=new _0x2a7ca9();return _0x3c3628[_0x52d3b1(0x128)]=this[_0x52d3b1(0x133)][_0x52d3b1(0x12a)],_0x3c3628[_0x52d3b1(0x122)]({'tag':_0x52d3b1(0x124),'attributes':{'class':[Jr]}}),_0x3c3628;}[_0xe8fde7(0x120)](){const _0x57e5d1=_0xe8fde7,_0x34a548=new _0x4ee202();return _0x34a548[_0x57e5d1(0x113)]=this[_0x57e5d1(0x138)](this[_0x57e5d1(0x133)]),_0x34a548;}[_0xe8fde7(0x13a)](){const _0x1850ab=_0xe8fde7,_0x20e2a3=this[_0x1850ab(0x136)];this[_0x1850ab(0x12e)]({'tag':_0x1850ab(0x118),'attributes':{'class':[Gr,_0x20e2a3['if'](_0x1850ab(0x129),_0x1850ab(0x121),_0x1adf24=>!_0x1adf24),_0x20e2a3['if'](_0x1850ab(0x114),Hr)]},'children':[{'tag':_0x1850ab(0x118),'attributes':{'class':[Kr]},'children':[this[_0x1850ab(0x112)]]},this[_0x1850ab(0x131)]],'on':{'click':_0x20e2a3['to'](_0x1850ab(0x12c))}});}[_0xe8fde7(0x126)](){const _0x95deb0=_0xe8fde7;this[_0x95deb0(0x112)][_0x95deb0(0x113)]=this[_0x95deb0(0x138)](this[_0x95deb0(0x133)]);}}
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)]);}}