@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +9 -2
  3. package/dist/index-editor.css +119 -34
  4. package/dist/index.css +144 -35
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +5 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.d.ts +3 -3
  182. package/src/aichat/aichat.js +1 -1
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +6 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.d.ts +2 -4
  188. package/src/aichat/model/aichatconversation.js +1 -1
  189. package/src/aichat/model/aichatinteraction.js +1 -1
  190. package/src/aichat/model/aichatmodels.d.ts +11 -4
  191. package/src/aichat/model/aichatmodels.js +1 -1
  192. package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
  193. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  194. package/src/aichat/ui/aichatfeedview.js +1 -1
  195. package/src/aichat/ui/aichatheaderview.js +1 -1
  196. package/src/aichat/ui/aichatview.js +1 -1
  197. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  200. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  203. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  204. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  216. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  217. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  218. package/src/aichat/utils/eventnames.js +1 -1
  219. package/src/aichat/utils/promisequeue.js +1 -1
  220. package/src/aichat/utils/scrollmanager.js +1 -1
  221. package/src/aichathistory/aichathistory.js +1 -1
  222. package/src/aichathistory/aichathistorycontroller.js +1 -1
  223. package/src/aichathistory/aichathistoryui.js +1 -1
  224. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  225. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  226. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  227. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  228. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  229. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  230. package/src/aiconfig.d.ts +4 -0
  231. package/src/aicore/aiconnector.js +1 -1
  232. package/src/aicore/aiediting.js +1 -1
  233. package/src/aicore/model/aicapabilities.js +1 -1
  234. package/src/aicore/model/aicontext.js +1 -1
  235. package/src/aicore/model/aiinteraction.js +1 -1
  236. package/src/aicore/model/aireply.d.ts +1 -1
  237. package/src/aicore/model/aireply.js +1 -1
  238. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  239. package/src/aicore/pipeline/airesponseparser.js +2 -2
  240. package/src/aicore/ui/aidisclaimerview.js +1 -1
  241. package/src/aicore/ui/aiskeleton.js +1 -1
  242. package/src/aicore/ui/aispinner.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  248. package/src/aicore/utils/common-translations.js +1 -1
  249. package/src/aicore/utils/createresizebutton.js +1 -1
  250. package/src/aicore/utils/documentposition.js +1 -1
  251. package/src/aicore/utils/documentrange.js +1 -1
  252. package/src/aicore/utils/eventnames.js +1 -1
  253. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  254. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  255. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  256. package/src/aicore/utils/htmlparser.js +1 -1
  257. package/src/aicore/utils/htmlstreamer.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.d.ts +2 -1
  262. package/src/aiquickactions/aiquickactions.js +1 -1
  263. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  264. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  265. package/src/aiquickactions/aiquickactionsui.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +2 -1
  267. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  270. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  271. package/src/aireviewmode/aireviewmode.js +1 -1
  272. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  273. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  274. package/src/aireviewmode/aireviewmodeui.d.ts +3 -1
  275. package/src/aireviewmode/aireviewmodeui.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  278. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  279. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  280. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  281. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  282. package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
  283. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  285. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  286. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  287. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
  288. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  289. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
  290. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  291. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
  292. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  293. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
  294. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  295. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
  296. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  298. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
  299. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  300. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  301. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  302. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  303. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  304. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  305. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  306. package/src/aitabs/aitabs.js +1 -1
  307. package/src/aitabs/aitabsmainview.d.ts +4 -0
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/errors.d.ts +5 -0
  313. package/src/errors.js +23 -0
  314. package/src/index.js +1 -1
  315. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
  316. package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
  317. package/theme/aichat/aichat-controls.css +1 -0
  318. package/theme/aichat/aichat.css +0 -1
  319. package/theme/aichat/aichatfeed.css +9 -0
  320. package/theme/aichat/aisuggestioncontainer.css +7 -1
  321. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
  322. package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
  323. package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
  324. package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
  325. package/theme/aitabs/aitabsview.css +2 -2
  326. package/theme/aitabs/tabs/tabsview.css +13 -3
  327. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
  328. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
@@ -14,17 +14,24 @@ export declare class AIChatModels extends /* #__PURE__ */ AIChatModels_base {
14
14
  /**
15
15
  * @inheritDoc
16
16
  */
17
- constructor({ connector }: {
17
+ constructor({ connector, displayedModels, defaultModelId }: {
18
18
  connector: AIConnector;
19
+ displayedModels?: string | Array<string>;
20
+ defaultModelId?: string;
19
21
  });
20
22
  /**
21
23
  * Returns a list of available AI chat models.
22
24
  */
23
25
  getAll(): Promise<Array<AIChatModel>>;
26
+ getAvailableModels(): Promise<Array<AIChatModel>>;
27
+ /**
28
+ * Returns a specific AI chat model.
29
+ */
30
+ getModel(modelId?: string): Promise<AIChatModel | null>;
24
31
  /**
25
32
  * Returns default AI chat model.
26
33
  */
27
- getDefault(defaultModelId?: string): Promise<AIChatModel | null>;
34
+ getDefault(): Promise<AIChatModel | null>;
28
35
  /**
29
36
  * Checks whether the given model is available.
30
37
  */
@@ -67,9 +74,9 @@ export type AIChatModelsConfig = {
67
74
  modelSelectorAlwaysVisible?: boolean;
68
75
  /**
69
76
  * Decides which models are visible in the model selector dropdown. It can be a string or an array of strings.
70
- * It is optional and if not provided, all models are supported.
71
77
  *
72
- * If configured, editor will try to match the passed models by their ID, name or provider. Order by which the models are matched
78
+ * * It is optional and if not provided, all models are supported.
79
+ * * If configured, editor will try to match the passed models by their ID, name or provider. Order by which the models are matched
73
80
  * is later reflected in the model selector dropdown.
74
81
  */
75
82
  displayedModels?: string | Array<string>;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x201a3b=_0x39ef;function _0x39ef(_0x4db7a6,_0x2fb113){const _0x303ddc=_0x303d();return _0x39ef=function(_0x39ef6e,_0x1b3545){_0x39ef6e=_0x39ef6e-0xb7;let _0x5e9428=_0x303ddc[_0x39ef6e];return _0x5e9428;},_0x39ef(_0x4db7a6,_0x2fb113);}(function(_0x2c95d4,_0x8a4c73){const _0xf8a51d=_0x39ef,_0x2b1cde=_0x2c95d4();while(!![]){try{const _0x5e477f=parseInt(_0xf8a51d(0xbc))/0x1*(parseInt(_0xf8a51d(0xc0))/0x2)+parseInt(_0xf8a51d(0xcd))/0x3+parseInt(_0xf8a51d(0xce))/0x4+parseInt(_0xf8a51d(0xcc))/0x5+parseInt(_0xf8a51d(0xba))/0x6+parseInt(_0xf8a51d(0xbe))/0x7*(-parseInt(_0xf8a51d(0xc4))/0x8)+-parseInt(_0xf8a51d(0xd2))/0x9;if(_0x5e477f===_0x8a4c73)break;else _0x2b1cde['push'](_0x2b1cde['shift']());}catch(_0x390333){_0x2b1cde['push'](_0x2b1cde['shift']());}}}(_0x303d,0x555f9));function _0x303d(){const _0x29bb68=['15898104EwXBZm','getDefault','filter','sort','3840048Qiduqr','getAll','528twIaHm','provider','287IgiErq','capabilities','2038XttfvQ','isAvailable','getModels','items','40576cjvVnq','ai-chat-default-model-id-unrecognized','_modelList','length','name','values','enabled','some','1509750SuRwKg','498033xKekzW','2712384EJeglN','_connector','list','find'];_0x303d=function(){return _0x29bb68;};return _0x303d();}import{EmitterMixin as _0x8d9a3e,logWarning as _0x31cb08}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x8d9a3e(){[_0x201a3b(0xc6)]=[];[_0x201a3b(0xcf)];constructor({connector:_0x31469f}){const _0x4e1890=_0x201a3b;super(),this[_0x4e1890(0xcf)]=_0x31469f;}async[_0x201a3b(0xbb)](){const _0x1cb0d0=_0x201a3b;if(!this[_0x1cb0d0(0xc6)][_0x1cb0d0(0xc7)]){const _0x403d75=this[_0x1cb0d0(0xcf)][_0x1cb0d0(0xc2)](),_0x4d3656=(await _0x403d75[_0x1cb0d0(0xd0)]())[_0x1cb0d0(0xc3)][_0x1cb0d0(0xb9)]((_0x35e9ce,_0x293a8f)=>{const _0x5ecdc6=_0x1cb0d0,_0x10311f=Object[_0x5ecdc6(0xc9)](_0x35e9ce[_0x5ecdc6(0xbf)])[_0x5ecdc6(0xb8)](_0x417808=>_0x417808[_0x5ecdc6(0xca)])[_0x5ecdc6(0xc7)];return Object[_0x5ecdc6(0xc9)](_0x293a8f[_0x5ecdc6(0xbf)])[_0x5ecdc6(0xb8)](_0x390dac=>_0x390dac[_0x5ecdc6(0xca)])[_0x5ecdc6(0xc7)]-_0x10311f;});this[_0x1cb0d0(0xc6)]=_0x4d3656;}return this[_0x1cb0d0(0xc6)];}async[_0x201a3b(0xb7)](_0x595217){const _0x543cda=_0x201a3b,_0x204d70=await this[_0x543cda(0xbb)]();if(!_0x204d70[_0x543cda(0xc7)])return null;if(_0x595217){const _0x638497=_0x204d70[_0x543cda(0xd1)](_0x4a66cc=>_0x4a66cc['id']===_0x595217);if(_0x638497)return _0x638497;_0x31cb08(_0x543cda(0xc5),{'defaultModelId':_0x595217,'fallBackModelId':_0x204d70[0x0]['id']});}return _0x204d70[0x0];}async[_0x201a3b(0xc1)](_0x2ea36d){const _0xe51743=_0x201a3b;return(await this[_0xe51743(0xbb)]())[_0xe51743(0xcb)](_0x547b81=>_0x547b81[_0xe51743(0xc8)]===_0x2ea36d[_0xe51743(0xc8)]&&_0x547b81[_0xe51743(0xbd)]===_0x2ea36d[_0xe51743(0xbd)]);}}
23
+ const _0x2cfdeb=_0x26ff;function _0x2454(){const _0x47d3e2=['getAvailableModels','608SeXMzq','_filterModels','11635496erdNVw','string','14NDXzcn','capabilities','_displayedModels','some','list','_modelList','push','12WEPUyA','184213zngZKB','name','_defaultModelId','getDefault','ai-chat-default-model-id-unrecognized','10PIyBkq','startsWith','values','enabled','getAll','55xYYpmm','find','provider','getModel','766974vAgrBo','ai-chat-model-id-unrecognized','2635320UFgxNf','length','isAvailable','4938010lHAYMZ','getModels','7135290LpOXDw','map','items','filter','_connector','sort','8886JLHtKU','toLocaleLowerCase'];_0x2454=function(){return _0x47d3e2;};return _0x2454();}(function(_0xd9d0bd,_0x55651b){const _0x334100=_0x26ff,_0x565cd8=_0xd9d0bd();while(!![]){try{const _0x422e87=parseInt(_0x334100(0x1ac))/0x1*(parseInt(_0x334100(0x1ab))/0x2)+parseInt(_0x334100(0x19d))/0x3*(parseInt(_0x334100(0x1a0))/0x4)+-parseInt(_0x334100(0x195))/0x5+-parseInt(_0x334100(0x1ba))/0x6*(parseInt(_0x334100(0x1a4))/0x7)+-parseInt(_0x334100(0x1a2))/0x8+-parseInt(_0x334100(0x197))/0x9*(-parseInt(_0x334100(0x1b1))/0xa)+-parseInt(_0x334100(0x1b6))/0xb*(-parseInt(_0x334100(0x192))/0xc);if(_0x422e87===_0x55651b)break;else _0x565cd8['push'](_0x565cd8['shift']());}catch(_0xb3105d){_0x565cd8['push'](_0x565cd8['shift']());}}}(_0x2454,0xb6c79));import{EmitterMixin as _0x20f49b,logWarning as _0x4abe22}from'ckeditor5/src/utils.js';function _0x26ff(_0x42f928,_0x5baccd){const _0x245402=_0x2454();return _0x26ff=function(_0x26ff86,_0x2ac9d1){_0x26ff86=_0x26ff86-0x191;let _0x1a09ac=_0x245402[_0x26ff86];return _0x1a09ac;},_0x26ff(_0x42f928,_0x5baccd);}export class AIChatModels extends _0x20f49b(){[_0x2cfdeb(0x1a9)]=[];[_0x2cfdeb(0x19b)];[_0x2cfdeb(0x1a6)];[_0x2cfdeb(0x1ae)];constructor({connector:_0x402e2e,displayedModels:_0x535a52,defaultModelId:_0x361cb5}){const _0x5c952b=_0x2cfdeb;super(),this[_0x5c952b(0x19b)]=_0x402e2e,this[_0x5c952b(0x1a6)]=_0x535a52,this[_0x5c952b(0x1ae)]=_0x361cb5;}async[_0x2cfdeb(0x1b5)](){const _0x252449=_0x2cfdeb;if(!this[_0x252449(0x1a9)][_0x252449(0x193)]){const _0xf3a8b5=this[_0x252449(0x19b)][_0x252449(0x196)](),_0x5a3c30=(await _0xf3a8b5[_0x252449(0x1a8)]())[_0x252449(0x199)][_0x252449(0x19c)]((_0x43be9f,_0x9955e6)=>{const _0x486627=_0x252449,_0x20d99a=Object[_0x486627(0x1b3)](_0x43be9f[_0x486627(0x1a5)])[_0x486627(0x19a)](_0x3b06d4=>_0x3b06d4[_0x486627(0x1b4)])[_0x486627(0x193)];return Object[_0x486627(0x1b3)](_0x9955e6[_0x486627(0x1a5)])[_0x486627(0x19a)](_0x28ae1d=>_0x28ae1d[_0x486627(0x1b4)])[_0x486627(0x193)]-_0x20d99a;});this[_0x252449(0x1a9)]=_0x5a3c30;}return this[_0x252449(0x1a9)];}async[_0x2cfdeb(0x19f)](){const _0xf2365b=_0x2cfdeb,_0x4d3a01=await this[_0xf2365b(0x1b5)]();return this[_0xf2365b(0x1a1)](_0x4d3a01,this[_0xf2365b(0x1a6)]);}async[_0x2cfdeb(0x1b9)](_0x5b0655){const _0x28359f=_0x2cfdeb,_0xd983c5=await this[_0x28359f(0x1b5)]();if(!_0xd983c5[_0x28359f(0x193)])return null;if(_0x5b0655){const _0x418581=_0xd983c5[_0x28359f(0x1b7)](_0x3f77ae=>_0x3f77ae['id']===_0x5b0655);if(_0x418581)return _0x418581;_0x4abe22(_0x28359f(0x191),{'modelId':_0x5b0655,'fallBackModelId':this[_0x28359f(0x1ae)]});}return this[_0x28359f(0x1af)]();}async[_0x2cfdeb(0x1af)](){const _0x5779e6=_0x2cfdeb,_0x3f3699=await this[_0x5779e6(0x19f)]();if(!_0x3f3699[_0x5779e6(0x193)])return null;if(this[_0x5779e6(0x1ae)]){const _0x4ce0b8=_0x3f3699[_0x5779e6(0x1b7)](_0x30c32b=>_0x30c32b['id']===this[_0x5779e6(0x1ae)]);if(_0x4ce0b8)return _0x4ce0b8;_0x4abe22(_0x5779e6(0x1b0),{'defaultModelId':this[_0x5779e6(0x1ae)],'fallBackModelId':_0x3f3699[0x0]['id']});}return _0x3f3699[0x0];}async[_0x2cfdeb(0x194)](_0x380f1e){const _0x57e59f=_0x2cfdeb;return(await this[_0x57e59f(0x19f)]())[_0x57e59f(0x1a7)](_0x10abc8=>_0x10abc8[_0x57e59f(0x1ad)]===_0x380f1e[_0x57e59f(0x1ad)]&&_0x10abc8[_0x57e59f(0x1b8)]===_0x380f1e[_0x57e59f(0x1b8)]);}[_0x2cfdeb(0x1a1)](_0x4cc2a5,_0x36345f){const _0x1a65c2=_0x2cfdeb;let _0x352844;if(_0x36345f){_0x352844=[];const _0x376ff8=_0x1a65c2(0x1a3)==typeof _0x36345f?[_0x36345f[_0x1a65c2(0x19e)]()]:_0x36345f[_0x1a65c2(0x198)](_0x2789d8=>_0x2789d8[_0x1a65c2(0x19e)]());for(const _0x3b0a48 of _0x376ff8)for(const _0x2e9a5e of _0x4cc2a5)(_0x2e9a5e['id'][_0x1a65c2(0x19e)]()===_0x3b0a48||_0x2e9a5e[_0x1a65c2(0x1ad)][_0x1a65c2(0x19e)]()===_0x3b0a48||_0x2e9a5e[_0x1a65c2(0x1b8)][_0x1a65c2(0x19e)]()===_0x3b0a48||_0x2e9a5e['id'][_0x1a65c2(0x19e)]()[_0x1a65c2(0x1b2)](_0x3b0a48))&&_0x352844[_0x1a65c2(0x1aa)](_0x2e9a5e);}else _0x352844=_0x4cc2a5;return _0x352844;}}
@@ -23,6 +23,12 @@ export declare class AIChatControlsView extends View {
23
23
  * @observable
24
24
  */
25
25
  isDisabled: boolean;
26
+ /**
27
+ * Indicates if the active model is available.
28
+ *
29
+ * @observable
30
+ */
31
+ isModelAvailable: boolean;
26
32
  constructor(locale: Locale, bodyCollection: BodyCollection);
27
33
  /**
28
34
  * Adds an item chip to the current context list.
@@ -100,5 +106,8 @@ export declare class AIChatControlsView extends View {
100
106
  * Closes the source resource balloon and cleans up its state.
101
107
  */
102
108
  closeSourceResourceBalloon(sourceId: string): void;
109
+ /**
110
+ * Focuses the prompt input.
111
+ */
103
112
  focusPromptInput(): void;
104
113
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1956f5=_0x4736;function _0xb771(){const _0xba80f5=['130tafYBV','900FyhgAl','_contextPanelView','16642219WOMTxH','isDisabled','_promptInputView','ck-hidden','setAddContextOptions','addContextItem','bindTemplate','disableModelSelector','67cmUMuR','closeSourceResourceBalloon','setInputPlaceholder','isLoading','form','setContextItemLoading','clearConversationContextUI','delegate','29870wuuMdS','toggleWebSearch','_createContextPanelView','538376DjKVlu','sendUserMessage','clearCurrentContextItems','clearPendingContextUI','updateResourceState','div','focusPromptInput','setPlaceholderText','change:isLoading','3949104dldTaW','setConversationContext','_loaderView','ck-ai-chat-controls-disabled','element','_handlePromptInputFocus','_createLoaderView','low','toggleReasoning','enableModelSelector','_createPromptCapabilitiesView','set','resetMessageInput','removeContextItem','1123560XMfusk','_createPromptInputView','focus','28624cpajJB','setTemplate','_promptCapabilitiesView','setIsUploadInProgress','setReasoning','clearConversationContextItems','selectModel','setWebSearch','setModelList','addContextButtonView','abortPromptStream','ck-ai-chat-controls','3611454nEUIaT','_shouldRestorePromptInputFocus','49kyAKFQ','populateSourceResourceBalloon','setModel','reset'];_0xb771=function(){return _0xba80f5;};return _0xb771();}(function(_0x5309ce,_0xe408ef){const _0x20afa2=_0x4736,_0xbb72a6=_0x5309ce();while(!![]){try{const _0x18dec7=parseInt(_0x20afa2(0x168))/0x1*(parseInt(_0x20afa2(0x14b))/0x2)+parseInt(_0x20afa2(0x157))/0x3+-parseInt(_0x20afa2(0x13a))/0x4+parseInt(_0x20afa2(0x170))/0x5*(-parseInt(_0x20afa2(0x15e))/0x6)+-parseInt(_0x20afa2(0x159))/0x7*(-parseInt(_0x20afa2(0x173))/0x8)+-parseInt(_0x20afa2(0x148))/0x9*(-parseInt(_0x20afa2(0x15d))/0xa)+-parseInt(_0x20afa2(0x160))/0xb;if(_0x18dec7===_0xe408ef)break;else _0xbb72a6['push'](_0xbb72a6['shift']());}catch(_0x3a8cbb){_0xbb72a6['push'](_0xbb72a6['shift']());}}}(_0xb771,0xd2100));import{clickOutsideHandler as _0x5b4d67,View as _0x14797c}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x47efb3}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4443ef}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x2e50f4,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1f691a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x305328}from'./controls/aichatcontrolsloaderview.js';function _0x4736(_0x2bf9b4,_0x50842e){const _0xb77161=_0xb771();return _0x4736=function(_0x47363b,_0x47f83d){_0x47363b=_0x47363b-0x137;let _0x353a0a=_0xb77161[_0x47363b];return _0x353a0a;},_0x4736(_0x2bf9b4,_0x50842e);}export class AIChatControlsView extends _0x14797c{[_0x1956f5(0x15f)];[_0x1956f5(0x162)];[_0x1956f5(0x14d)];[_0x1956f5(0x13c)];[_0x1956f5(0x158)];constructor(_0x57cb5d,_0x2d7486){const _0xf51f35=_0x1956f5;super(_0x57cb5d),this[_0xf51f35(0x15f)]=this[_0xf51f35(0x172)](_0x57cb5d,_0x2d7486),this[_0xf51f35(0x162)]=this[_0xf51f35(0x149)](_0x57cb5d),this[_0xf51f35(0x14d)]=this[_0xf51f35(0x144)](_0x57cb5d),this[_0xf51f35(0x13c)]=this[_0xf51f35(0x140)](_0x57cb5d),this[_0xf51f35(0x158)]=!0x1,this[_0xf51f35(0x162)][_0xf51f35(0x16f)](_0xf51f35(0x174))['to'](this),this[_0xf51f35(0x13c)][_0xf51f35(0x16f)](_0xf51f35(0x155))['to'](this),this[_0xf51f35(0x14d)][_0xf51f35(0x16f)](_0xf51f35(0x171))['to'](this),this[_0xf51f35(0x14d)][_0xf51f35(0x16f)](_0xf51f35(0x142))['to'](this),this[_0xf51f35(0x14d)][_0xf51f35(0x16f)](_0xf51f35(0x151))['to'](this),this[_0xf51f35(0x15f)][_0xf51f35(0x16f)](..._0x1f691a)['to'](this),this[_0xf51f35(0x145)](_0xf51f35(0x161),!0x1);const _0x549ed7=this[_0xf51f35(0x166)];this[_0xf51f35(0x14c)]({'tag':_0xf51f35(0x16c),'attributes':{'class':['ck',_0xf51f35(0x156),_0x549ed7['if'](_0xf51f35(0x161),_0xf51f35(0x13d))]},'children':[{'tag':_0xf51f35(0x178),'attributes':{'class':[_0x549ed7['if'](_0xf51f35(0x16b),_0xf51f35(0x163))]},'children':[this[_0xf51f35(0x15f)],this[_0xf51f35(0x162)],this[_0xf51f35(0x14d)]]},{'tag':_0xf51f35(0x178),'attributes':{'class':[_0x549ed7['if'](_0xf51f35(0x16b),_0xf51f35(0x163),_0x7373f2=>!_0x7373f2)]},'children':[this[_0xf51f35(0x13c)]]}]}),_0x5b4d67({'emitter':this[_0xf51f35(0x162)],'activator':()=>this[_0xf51f35(0x16b)],'contextElements':()=>[this[_0xf51f35(0x13e)]],'callback':()=>{const _0x278e73=_0xf51f35;this[_0x278e73(0x158)]=!0x1;}}),this['on'](_0xf51f35(0x139),this[_0xf51f35(0x13f)],{'priority':_0xf51f35(0x141)});}[_0x1956f5(0x172)](_0x5f269b,_0x41064a){return new _0x2e50f4(_0x5f269b,_0x41064a);}[_0x1956f5(0x149)](_0x30518d){const _0x1330e4=_0x1956f5;return new _0x47efb3(_0x30518d,this[_0x1330e4(0x15f)][_0x1330e4(0x154)]);}[_0x1956f5(0x144)](_0x541510){return new _0x4443ef(_0x541510);}[_0x1956f5(0x140)](_0x322cc6){return new _0x305328(_0x322cc6);}[_0x1956f5(0x13f)](_0x52ad4c,_0x283109,_0x426670){const _0x40d5a0=_0x1956f5;_0x426670?this[_0x40d5a0(0x158)]=!0x0:this[_0x40d5a0(0x158)]&&this[_0x40d5a0(0x162)][_0x40d5a0(0x14a)]();}[_0x1956f5(0x165)](_0x19b421,_0x5a157d){const _0x1946e9=_0x1956f5;this[_0x1946e9(0x15f)][_0x1946e9(0x165)](_0x19b421,_0x5a157d);}[_0x1956f5(0x147)](_0x385449){const _0x31b18f=_0x1956f5;this[_0x31b18f(0x15f)][_0x31b18f(0x147)](_0x385449);}[_0x1956f5(0x16d)](_0x2c932e,_0x2cbfda){const _0x5bf62e=_0x1956f5;this[_0x5bf62e(0x15f)][_0x5bf62e(0x16d)](_0x2c932e,_0x2cbfda);}[_0x1956f5(0x14e)](_0x2bb0cf){const _0x50c756=_0x1956f5;this[_0x50c756(0x162)][_0x50c756(0x14e)](_0x2bb0cf);}[_0x1956f5(0x13b)](_0x20bf1e){const _0x334156=_0x1956f5;this[_0x334156(0x15f)][_0x334156(0x13b)](_0x20bf1e);}[_0x1956f5(0x176)](){const _0x1b4f57=_0x1956f5;this[_0x1b4f57(0x15f)][_0x1b4f57(0x175)]();}[_0x1956f5(0x16e)](){const _0x2077bb=_0x1956f5;this[_0x2077bb(0x15f)][_0x2077bb(0x150)]();}[_0x1956f5(0x177)](_0x48f98c,_0x2bd21d,_0x37b67b){const _0x28fd64=_0x1956f5;this[_0x28fd64(0x15f)][_0x28fd64(0x177)](_0x48f98c,_0x2bd21d,_0x37b67b);}[_0x1956f5(0x152)](_0xe216b1){const _0x5cf647=_0x1956f5;this[_0x5cf647(0x14d)][_0x5cf647(0x152)](_0xe216b1);}[_0x1956f5(0x14f)](_0x1d0401){const _0x22dd67=_0x1956f5;this[_0x22dd67(0x14d)][_0x22dd67(0x14f)](_0x1d0401);}[_0x1956f5(0x146)](){const _0x4a7aa8=_0x1956f5;this[_0x4a7aa8(0x162)][_0x4a7aa8(0x15c)]();}[_0x1956f5(0x164)](_0x334e7f){const _0x56affd=_0x1956f5;this[_0x56affd(0x15f)][_0x56affd(0x164)](_0x334e7f);}[_0x1956f5(0x16a)](_0x2ce784){const _0x587e1e=_0x1956f5;this[_0x587e1e(0x162)][_0x587e1e(0x138)](_0x2ce784);}[_0x1956f5(0x153)](_0x514a9d,_0xb26d97){const _0x4dac3a=_0x1956f5;this[_0x4dac3a(0x14d)][_0x4dac3a(0x153)](_0x514a9d,_0xb26d97);}[_0x1956f5(0x15b)](_0x10c7b9){const _0x5d654c=_0x1956f5;this[_0x5d654c(0x14d)][_0x5d654c(0x15b)](_0x10c7b9);}[_0x1956f5(0x143)](){const _0x19ad1a=_0x1956f5;this[_0x19ad1a(0x14d)][_0x19ad1a(0x143)]();}[_0x1956f5(0x167)](_0x4e2252){const _0x1adf69=_0x1956f5;this[_0x1adf69(0x14d)][_0x1adf69(0x167)](_0x4e2252);}[_0x1956f5(0x15a)](_0x2e3931,_0x37718f,_0x3dbc08,_0x1ff528){const _0x14da8c=_0x1956f5;this[_0x14da8c(0x15f)][_0x14da8c(0x15a)](_0x2e3931,_0x37718f,_0x3dbc08,_0x1ff528);}[_0x1956f5(0x169)](_0x51d485){const _0x49725b=_0x1956f5;this[_0x49725b(0x15f)][_0x49725b(0x169)](_0x51d485);}[_0x1956f5(0x137)](){const _0x39bb79=_0x1956f5;this[_0x39bb79(0x162)][_0x39bb79(0x14a)]();}}
23
+ function _0x4be2(_0xf07a2e,_0x2acc25){const _0x1e1e8b=_0x1e1e();return _0x4be2=function(_0x4be23e,_0x13d19e){_0x4be23e=_0x4be23e-0x15b;let _0x1ccc5e=_0x1e1e8b[_0x4be23e];return _0x1ccc5e;},_0x4be2(_0xf07a2e,_0x2acc25);}const _0x540c98=_0x4be2;(function(_0x31116a,_0x3da991){const _0x2222f4=_0x4be2,_0x2c7f0c=_0x31116a();while(!![]){try{const _0x2433e7=parseInt(_0x2222f4(0x1a7))/0x1*(-parseInt(_0x2222f4(0x162))/0x2)+parseInt(_0x2222f4(0x1a6))/0x3*(parseInt(_0x2222f4(0x173))/0x4)+-parseInt(_0x2222f4(0x174))/0x5+-parseInt(_0x2222f4(0x18b))/0x6+-parseInt(_0x2222f4(0x167))/0x7+parseInt(_0x2222f4(0x168))/0x8*(-parseInt(_0x2222f4(0x172))/0x9)+-parseInt(_0x2222f4(0x192))/0xa*(-parseInt(_0x2222f4(0x1a3))/0xb);if(_0x2433e7===_0x3da991)break;else _0x2c7f0c['push'](_0x2c7f0c['shift']());}catch(_0x5f220e){_0x2c7f0c['push'](_0x2c7f0c['shift']());}}}(_0x1e1e,0xb5e49));import{ButtonView as _0x593373,clickOutsideHandler as _0x4c041a,View as _0x4db962}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x208b88}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x468809}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4b9546,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x45cdae}from'./controls/aichatcontextpanelview.js';function _0x1e1e(){const _0x4a65c4=['35532UNvlFm','40myvkTu','389195BvabXU','isModelAvailable','updateResourceState','bindTemplate','_shouldRestorePromptInputFocus','execute','removeContextItem','setWebSearch','find','toggleReasoning','abortPromptStream','_displayedModels','selectModel','addContextButtonView','ck-ai-chat-controls-model-unavailable-message','clearCurrentContextItems','reset','setInputPlaceholder','agent','focusPromptInput','resetMessageInput','ck-ai-chat-controls__start-new-chat-button','set','8359062ZgRxoL','setReasoning','ck-ai-chat-controls-disabled','setPlaceholderText','toggleWebSearch','_createContextPanelView','locale','10wVcwBV','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','disableModelSelector','element','setAddContextOptions','setTemplate','ck-hidden','low','_createPromptCapabilitiesView','ck-ai-chat-controls','_modelUnavailableMessageView','closeSourceResourceBalloon','_loaderView','clearConversationContextUI','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setModel','delegate','48183179lJHAQK','_promptCapabilitiesView','focus','18534eQaTNo','110452NejNkA','div','addContextItem','isLoading','_createModelUnavailableMessageView','_promptInputView','startsWith','setContextItemLoading','enableModelSelector','setModelList','_createLoaderView','2eTMOTL','form','populateSourceResourceBalloon','_contextPanelView','setConversationContext','8121064LBTvTW','1936buJwbJ','_createPromptInputView','sendUserMessage','startConversation','clearPendingContextUI','clearConversationContextItems','change:isLoading','_handlePromptInputFocus','setIsUploadInProgress','isDisabled'];_0x1e1e=function(){return _0x4a65c4;};return _0x1e1e();}import{AIChatControlsLoaderView as _0x4a5a0d}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4874e0}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x4db962{[_0x540c98(0x17f)]=[];[_0x540c98(0x165)];[_0x540c98(0x15c)];[_0x540c98(0x1a4)];[_0x540c98(0x19e)];[_0x540c98(0x19c)];[_0x540c98(0x178)];constructor(_0xc039ed,_0x4312bb){const _0x2299db=_0x540c98;super(_0xc039ed),this[_0x2299db(0x165)]=this[_0x2299db(0x190)](_0xc039ed,_0x4312bb),this[_0x2299db(0x15c)]=this[_0x2299db(0x169)](_0xc039ed),this[_0x2299db(0x1a4)]=this[_0x2299db(0x19a)](_0xc039ed),this[_0x2299db(0x19e)]=this[_0x2299db(0x161)](_0xc039ed),this[_0x2299db(0x19c)]=this[_0x2299db(0x15b)](_0xc039ed),this[_0x2299db(0x178)]=!0x1,this[_0x2299db(0x15c)][_0x2299db(0x1a2)](_0x2299db(0x16a))['to'](this),this[_0x2299db(0x19e)][_0x2299db(0x1a2)](_0x2299db(0x17e))['to'](this),this[_0x2299db(0x1a4)][_0x2299db(0x1a2)](_0x2299db(0x18f))['to'](this),this[_0x2299db(0x1a4)][_0x2299db(0x1a2)](_0x2299db(0x17d))['to'](this),this[_0x2299db(0x1a4)][_0x2299db(0x1a2)](_0x2299db(0x180))['to'](this),this[_0x2299db(0x165)][_0x2299db(0x1a2)](..._0x45cdae)['to'](this),this[_0x2299db(0x18a)](_0x2299db(0x175),!0x0),this[_0x2299db(0x18a)](_0x2299db(0x171),!0x1);const _0x36092d=this[_0x2299db(0x177)];this[_0x2299db(0x197)]({'tag':_0x2299db(0x163),'attributes':{'class':['ck',_0x2299db(0x19b),_0x36092d['if'](_0x2299db(0x171),_0x2299db(0x18d))]},'children':[{'tag':_0x2299db(0x1a8),'attributes':{'class':[_0x36092d['if'](_0x2299db(0x1aa),_0x2299db(0x198),_0x249813=>_0x249813||!this[_0x2299db(0x175)]),_0x36092d['if'](_0x2299db(0x175),_0x2299db(0x198),_0x3aa545=>!_0x3aa545||this[_0x2299db(0x1aa)])]},'children':[this[_0x2299db(0x165)],this[_0x2299db(0x15c)],this[_0x2299db(0x1a4)]]},{'tag':_0x2299db(0x1a8),'attributes':{'class':[_0x36092d['if'](_0x2299db(0x1aa),_0x2299db(0x198),_0x8615bb=>!_0x8615bb)]},'children':[this[_0x2299db(0x19e)]]},{'tag':_0x2299db(0x1a8),'attributes':{'class':[_0x36092d['if'](_0x2299db(0x175),_0x2299db(0x198),_0x439028=>_0x439028)]},'children':[this[_0x2299db(0x19c)]]}]}),_0x4c041a({'emitter':this[_0x2299db(0x15c)],'activator':()=>this[_0x2299db(0x1aa)],'contextElements':()=>[this[_0x2299db(0x195)]],'callback':()=>{const _0x34862b=_0x2299db;this[_0x34862b(0x178)]=!0x1;}}),this['on'](_0x2299db(0x16e),this[_0x2299db(0x16f)],{'priority':_0x2299db(0x199)});}[_0x540c98(0x190)](_0x32189c,_0x1887aa){return new _0x4b9546(_0x32189c,_0x1887aa);}[_0x540c98(0x169)](_0x569767){const _0x4cf548=_0x540c98;return new _0x208b88(_0x569767,this[_0x4cf548(0x165)][_0x4cf548(0x181)]);}[_0x540c98(0x19a)](_0xf6a85a){return new _0x468809(_0xf6a85a);}[_0x540c98(0x161)](_0x2ce103){return new _0x4a5a0d(_0x2ce103);}[_0x540c98(0x15b)](_0x16d467){const _0x2cabd1=_0x540c98,_0x4cd421=new _s(_0x16d467);return _0x4cd421[_0x2cabd1(0x1a2)](_0x2cabd1(0x16b))['to'](this),_0x4cd421;}[_0x540c98(0x16f)](_0x314416,_0x446c68,_0x2bd29d){const _0x37e13d=_0x540c98;_0x2bd29d?this[_0x37e13d(0x178)]=!0x0:this[_0x37e13d(0x178)]&&this[_0x37e13d(0x15c)][_0x37e13d(0x1a5)]();}[_0x540c98(0x1a9)](_0x53c1d4,_0x21d223){const _0x99953a=_0x540c98;this[_0x99953a(0x165)][_0x99953a(0x1a9)](_0x53c1d4,_0x21d223);}[_0x540c98(0x17a)](_0x1539be){const _0x255f46=_0x540c98;this[_0x255f46(0x165)][_0x255f46(0x17a)](_0x1539be);}[_0x540c98(0x15e)](_0x4c14e,_0x543957){const _0x4a8910=_0x540c98;this[_0x4a8910(0x165)][_0x4a8910(0x15e)](_0x4c14e,_0x543957);}[_0x540c98(0x170)](_0x4c849a){const _0x1f9906=_0x540c98;this[_0x1f9906(0x15c)][_0x1f9906(0x170)](_0x4c849a);}[_0x540c98(0x166)](_0x3f3389){const _0x332d3e=_0x540c98;this[_0x332d3e(0x165)][_0x332d3e(0x166)](_0x3f3389);}[_0x540c98(0x16c)](){const _0x517c74=_0x540c98;this[_0x517c74(0x165)][_0x517c74(0x183)]();}[_0x540c98(0x19f)](){const _0x1bee14=_0x540c98;this[_0x1bee14(0x165)][_0x1bee14(0x16d)]();}[_0x540c98(0x176)](_0x57707d,_0xa7c157,_0x1f225e){const _0x2bdc51=_0x540c98;this[_0x2bdc51(0x165)][_0x2bdc51(0x176)](_0x57707d,_0xa7c157,_0x1f225e);}[_0x540c98(0x17b)](_0x222f1a){const _0x1aa6a6=_0x540c98;this[_0x1aa6a6(0x1a4)][_0x1aa6a6(0x17b)](_0x222f1a);}[_0x540c98(0x18c)](_0x4fc486){const _0x13e43f=_0x540c98;this[_0x13e43f(0x1a4)][_0x13e43f(0x18c)](_0x4fc486);}[_0x540c98(0x188)](){const _0x4cc82f=_0x540c98;this[_0x4cc82f(0x15c)][_0x4cc82f(0x184)]();}[_0x540c98(0x196)](_0x52721f){const _0x49c426=_0x540c98;this[_0x49c426(0x165)][_0x49c426(0x196)](_0x52721f);}[_0x540c98(0x185)](_0x1b39dc){const _0x37e624=_0x540c98;this[_0x37e624(0x15c)][_0x37e624(0x18e)](_0x1b39dc);}[_0x540c98(0x160)](_0x1b8501,_0x6d6cf){const _0x12ab6b=_0x540c98;this[_0x12ab6b(0x17f)]=_0x1b8501,this[_0x12ab6b(0x1a4)][_0x12ab6b(0x160)](_0x1b8501,_0x6d6cf);}[_0x540c98(0x1a1)](_0x3fa80d){const _0x24a419=_0x540c98;(_0x3fa80d?this[_0x24a419(0x17f)][_0x24a419(0x17c)](_0xdbc8a5=>_0xdbc8a5['id']===_0x3fa80d['id']):null)?(this[_0x24a419(0x175)]=!0x0,this[_0x24a419(0x1a4)][_0x24a419(0x1a1)](_0x3fa80d)):_0x3fa80d?.['id'][_0x24a419(0x15d)](_0x24a419(0x186))?(this[_0x24a419(0x175)]=!0x0,this[_0x24a419(0x1a4)][_0x24a419(0x1a1)](this[_0x24a419(0x17f)][0x0])):this[_0x24a419(0x175)]=!0x1;}[_0x540c98(0x15f)](){const _0x5efe04=_0x540c98;this[_0x5efe04(0x1a4)][_0x5efe04(0x15f)]();}[_0x540c98(0x194)](_0x290947){const _0x4ff8d7=_0x540c98;this[_0x4ff8d7(0x1a4)][_0x4ff8d7(0x194)](_0x290947);}[_0x540c98(0x164)](_0x50e45b,_0x3d402f,_0x5e98ce,_0x5a1906){const _0x421add=_0x540c98;this[_0x421add(0x165)][_0x421add(0x164)](_0x50e45b,_0x3d402f,_0x5e98ce,_0x5a1906);}[_0x540c98(0x19d)](_0x468fee){const _0x3e1088=_0x540c98;this[_0x3e1088(0x165)][_0x3e1088(0x19d)](_0x468fee);}[_0x540c98(0x187)](){const _0xa4ba37=_0x540c98;this[_0xa4ba37(0x15c)][_0xa4ba37(0x1a5)]();}}class _s extends _0x4db962{constructor(_0x575fc4){const _0x5a82f2=_0x540c98;super(_0x575fc4);const _0x3794db=new _0x593373(_0x575fc4);_0x3794db[_0x5a82f2(0x18a)]({'label':_0x4874e0(this[_0x5a82f2(0x191)],_0x5a82f2(0x193)),'withText':!0x0,'class':[_0x5a82f2(0x189)],'tooltip':''}),_0x3794db[_0x5a82f2(0x1a2)](_0x5a82f2(0x179))['to'](this,_0x5a82f2(0x16b)),this[_0x5a82f2(0x197)]({'tag':_0x5a82f2(0x1a8),'attributes':{'class':['ck',_0x5a82f2(0x182)]},'children':[{'tag':'p','children':[{'text':_0x4874e0(this[_0x5a82f2(0x191)],_0x5a82f2(0x1a0))+'\x20'},_0x3794db]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x560ae1=_0x57ac;(function(_0x3d93ce,_0x5b1db3){const _0x223d75=_0x57ac,_0x3a4319=_0x3d93ce();while(!![]){try{const _0xf27f2b=parseInt(_0x223d75(0xec))/0x1+parseInt(_0x223d75(0xda))/0x2*(-parseInt(_0x223d75(0x114))/0x3)+parseInt(_0x223d75(0x120))/0x4+-parseInt(_0x223d75(0xf8))/0x5+-parseInt(_0x223d75(0x116))/0x6*(-parseInt(_0x223d75(0xf5))/0x7)+-parseInt(_0x223d75(0x10e))/0x8*(parseInt(_0x223d75(0x119))/0x9)+parseInt(_0x223d75(0x100))/0xa;if(_0xf27f2b===_0x5b1db3)break;else _0x3a4319['push'](_0x3a4319['shift']());}catch(_0x4e9d42){_0x3a4319['push'](_0x3a4319['shift']());}}}(_0x58a3,0xb5cfe));import{CKEditorError as _0x55632c,logWarning as _0x29e433,scrollViewportToShowTarget as _0x3078e0}from'ckeditor5/src/utils.js';function _0x57ac(_0x50e628,_0x52c3e6){const _0x58a308=_0x58a3();return _0x57ac=function(_0x57ac9c,_0x518b11){_0x57ac9c=_0x57ac9c-0xd0;let _0x3bbedb=_0x58a308[_0x57ac9c];return _0x3bbedb;},_0x57ac(_0x50e628,_0x52c3e6);}import{View as _0x21eaa1}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xba874d}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0xe66263}from'./feed/aichatfeedsuggestionitemview.js';function _0x58a3(){const _0x2b2164=['getItemById','updatePartState','aiFeed','8aZyvSK','setTemplate','ai-reply','span','ck-ai-chat__loader','find','150YMDqaQ','getPartView','41868rVtTed','_bodyCollection','addItem','6673743yHubrF','includes','ck-ai-chat__feed','markItemAsDone','stop','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','createCollection','1781336kOlhoU','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','getItemIds','_createFeedLoader','extendTemplate','isPending','scrollToSuggestion','bindTemplate','map','delegate','11606vqDuPJ','ai-chat-feed-view-item-not-a-reply-item','locale','_setupTemplate','element','scrollManager','updateWebSources','destroy','setLoadingMessage','isLoadingSkeletonVisible','stopAutoScroll','_createFeedItems','interaction-header','updateSuggestionPartState','children','div','updateContent','start','1173565zqIIqL','user-message','ai-suggestion-reply','set','bind','ck-hidden','isTrackChangesOn','remove','_createSkeletonLoader','819BJfVND','clear','options','5692570RHMwfB','ck-ai-chat__feed__items','ck-ai-chat__loader-text','add','toggleLoadingSkeleton','markAsDone','updateSources','render','4795680IaBWkm','startAutoScroll','updateSuggestionItem','_createLoaderChildren','loadingMessage','_createTemplateChildren','removeItem','isVisible','ai-chat-feed-view-item-not-a-suggestion-item','updateReplyItem','ai-chat-feed-view-item-not-found'];_0x58a3=function(){return _0x2b2164;};return _0x58a3();}import{AIChatFeedReplyItemView as _0x125c83}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4d88ec}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x15961c}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x57ddc8}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x8f99d2}from'../utils/scrollmanager.js';import{AISkeletonView as _0x5349eb,SKELETON_DEFINITIONS as _0x2e0bc0}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x513ceb}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x21eaa1{[_0x560ae1(0xe8)];[_0x560ae1(0xdf)];[_0x560ae1(0x117)];constructor(_0x4a60fe,_0x245ef2){const _0xafa718=_0x560ae1;super(_0x4a60fe),this[_0xafa718(0x117)]=_0x245ef2,this[_0xafa718(0xef)](_0xafa718(0xd5),!0x1),this[_0xafa718(0xef)](_0xafa718(0x104),''),this[_0xafa718(0xef)](_0xafa718(0xe3),!0x1),this[_0xafa718(0xef)](_0xafa718(0xf2),!0x1),this[_0xafa718(0xe8)]=this[_0xafa718(0x11f)](),this[_0xafa718(0xe8)][_0xafa718(0xd9)](..._0xba874d)['to'](this),this[_0xafa718(0xdd)]();}[_0x560ae1(0xff)](){const _0x4a61f7=_0x560ae1;super[_0x4a61f7(0xff)](),this[_0x4a61f7(0xdf)]=new _0x8f99d2(this[_0x4a61f7(0xde)]);}[_0x560ae1(0xe1)](){const _0x59d583=_0x560ae1;super[_0x59d583(0xe1)](),this[_0x59d583(0xdf)][_0x59d583(0xe1)]();}[_0x560ae1(0xf6)](){const _0x31f5bd=_0x560ae1;this[_0x31f5bd(0xe8)][_0x31f5bd(0xf6)]();}[_0x560ae1(0x118)](_0x306cc3,_0x100f27){const _0x82c533=_0x560ae1;let _0x7b133d;_0x82c533(0x110)===_0x306cc3?_0x7b133d=new _0x125c83(this[_0x82c533(0xdc)],_0x100f27):_0x82c533(0xee)===_0x306cc3?(_0x7b133d=new _0xe66263(this[_0x82c533(0xdc)],_0x100f27),_0x7b133d[_0x82c533(0xf0)](_0x82c533(0xf2))['to'](this,_0x82c533(0xf2))):_0x7b133d=_0x82c533(0xed)===_0x306cc3?new _0x4d88ec(this[_0x82c533(0xdc)],_0x100f27,this[_0x82c533(0x117)]):_0x82c533(0xe6)===_0x306cc3?new _0x57ddc8(this[_0x82c533(0xdc)],_0x100f27):new _0x15961c(_0x100f27),this[_0x82c533(0xe8)][_0x82c533(0xfb)](_0x7b133d);}async[_0x560ae1(0x109)]({id:_0x4dab6e,parsedContent:_0x5aa2d3,renderingStrategy:_0x38b914,abortSignal:_0x58f093}){const _0x26dccd=_0x560ae1,_0xcc9d76=this[_0x26dccd(0x10b)](_0x4dab6e);if(!(_0xcc9d76 instanceof _0x125c83))throw new _0x55632c(_0x26dccd(0xdb),null,{'itemView':_0xcc9d76,'id':_0x4dab6e,'parsedContent':_0x5aa2d3});await _0xcc9d76[_0x26dccd(0xea)]({'parsedContent':_0x5aa2d3,'renderingStrategy':_0x38b914,'abortSignal':_0x58f093});}async[_0x560ae1(0xe0)](_0x173cae,_0x5d1b67){const _0x2a72c9=_0x560ae1,_0x105d62=this[_0x2a72c9(0x10b)](_0x173cae);if(_0x105d62 instanceof _0xe66263)_0x105d62[_0x2a72c9(0xfe)](_0x5d1b67);else{if(!(_0x105d62 instanceof _0x125c83))throw new _0x55632c(_0x2a72c9(0x11e),null,{'itemView':_0x105d62,'id':_0x173cae,'sources':_0x5d1b67});_0x105d62[_0x2a72c9(0xfe)](_0x5d1b67);}}async[_0x560ae1(0x102)]({id:_0x4190b5,parts:_0x18f195,renderingStrategy:_0x50cb1e,abortSignal:_0x1a16f8}){const _0x1ecf4e=_0x560ae1,_0x53b699=this[_0x1ecf4e(0x10b)](_0x4190b5);if(!(_0x53b699 instanceof _0xe66263))throw new _0x55632c(_0x1ecf4e(0x108),null,{'itemView':_0x53b699,'id':_0x4190b5,'parts':_0x18f195});await _0x53b699[_0x1ecf4e(0xea)]({'parts':_0x18f195,'renderingStrategy':_0x50cb1e,'abortSignal':_0x1a16f8});}[_0x560ae1(0xe7)]({id:_0x15c217,index:_0xf9bc22,state:_0x51a430}){const _0x256941=_0x560ae1,_0x142b0d=this[_0x256941(0x10b)](_0x15c217);if(!(_0x142b0d instanceof _0xe66263))throw new _0x55632c(_0x256941(0x108),this,{'id':_0x15c217});_0x142b0d[_0x256941(0x10c)](_0xf9bc22,_0x51a430);}[_0x560ae1(0x11c)](_0x242db8){const _0x262fe1=_0x560ae1;this[_0x262fe1(0x10b)](_0x242db8)[_0x262fe1(0xfd)]();}[_0x560ae1(0xd2)](){const _0x3ca589=_0x560ae1;return this[_0x3ca589(0xe8)][_0x3ca589(0xd8)](_0x208c3a=>_0x208c3a[_0x3ca589(0xf7)]['id']);}[_0x560ae1(0x106)](_0x45cf04){const _0x17f7ee=_0x560ae1;this[_0x17f7ee(0xe8)][_0x17f7ee(0xf3)](this[_0x17f7ee(0x10b)](_0x45cf04));}[_0x560ae1(0xd6)](_0x7401ee,_0x4f7be5){const _0x35046d=_0x560ae1,_0x1b5e19=this[_0x35046d(0x10b)](_0x7401ee);if(!(_0x1b5e19 instanceof _0xe66263))return void _0x29e433(_0x35046d(0xd1),{'replyId':_0x7401ee,'partIndex':_0x4f7be5});const _0x24b437=_0x1b5e19[_0x35046d(0x115)](_0x4f7be5);_0x24b437?_0x3078e0({'target':_0x24b437[_0x35046d(0xde)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x29e433(_0x35046d(0xd0),{'replyId':_0x7401ee,'partIndex':_0x4f7be5});}[_0x560ae1(0xdd)](){const _0x2554dd=_0x560ae1;this[_0x2554dd(0x10f)]({'tag':_0x2554dd(0xe9),'attributes':{'class':['ck',_0x2554dd(0x11b)]},'children':this[_0x2554dd(0x105)]()});}[_0x560ae1(0x105)](){const _0x2c1390=_0x560ae1,_0x13dc36=this[_0x2c1390(0xf4)]();return[this[_0x2c1390(0xe5)](),_0x13dc36,this[_0x2c1390(0xd3)]()];}[_0x560ae1(0xf4)](){const _0x57da28=_0x560ae1,_0x570a42=new _0x5349eb(this[_0x57da28(0xdc)],_0x2e0bc0[_0x57da28(0x10d)]);return _0x570a42[_0x57da28(0xd4)]({'attributes':{'class':[this[_0x57da28(0xd7)]['if'](_0x57da28(0xe3),_0x57da28(0xf1),_0x4fe09c=>!_0x4fe09c)]}}),_0x570a42;}[_0x560ae1(0xe5)](){const _0x452e01=_0x560ae1,_0xf188dd=new _0x21eaa1(this[_0x452e01(0xdc)]);return _0xf188dd[_0x452e01(0x10f)]({'tag':_0x452e01(0xe9),'attributes':{'class':['ck',_0x452e01(0xf9),this[_0x452e01(0xd7)]['if'](_0x452e01(0xe3),_0x452e01(0xf1))]},'children':this[_0x452e01(0xe8)]}),_0xf188dd;}[_0x560ae1(0xd3)](){const _0x4c4ed3=_0x560ae1,_0x54ece0=new _0x21eaa1(this[_0x4c4ed3(0xdc)]);return _0x54ece0[_0x4c4ed3(0x10f)]({'tag':_0x4c4ed3(0xe9),'attributes':{'class':['ck',_0x4c4ed3(0x112),this[_0x4c4ed3(0xd7)]['if'](_0x4c4ed3(0xd5),_0x4c4ed3(0xf1),_0x441519=>!_0x441519)]},'children':this[_0x4c4ed3(0x103)]()}),_0x54ece0;}[_0x560ae1(0x103)](){const _0x446a3c=_0x560ae1,_0x101df3=new _0x513ceb();return _0x101df3[_0x446a3c(0x107)]=!0x0,[_0x101df3,{'tag':_0x446a3c(0x111),'attributes':{'class':['ck',_0x446a3c(0xfa)]},'children':[{'text':this[_0x446a3c(0xd7)]['to'](_0x446a3c(0x104))}]}];}[_0x560ae1(0x10b)](_0x210b6f){const _0x4d87ee=_0x560ae1,_0x212b3a=this[_0x4d87ee(0xe8)][_0x4d87ee(0x113)](_0x30ed32=>_0x30ed32[_0x4d87ee(0xf7)]['id'][_0x4d87ee(0x11a)](_0x210b6f));if(!_0x212b3a)throw new _0x55632c(_0x4d87ee(0x10a),this,{'id':_0x210b6f});return _0x212b3a;}[_0x560ae1(0xe2)](_0x2d2f77){const _0x8cba6d=_0x560ae1;this[_0x8cba6d(0xef)](_0x8cba6d(0x104),_0x2d2f77);}[_0x560ae1(0xfc)](_0x251c61){const _0xb979b6=_0x560ae1;this[_0xb979b6(0xef)](_0xb979b6(0xe3),_0x251c61);}[_0x560ae1(0x101)](){const _0x2e7e52=_0x560ae1;this[_0x2e7e52(0xdf)][_0x2e7e52(0xeb)]();}[_0x560ae1(0xe4)](){const _0xd07782=_0x560ae1;this[_0xd07782(0xdf)][_0xd07782(0x11d)]();}}
23
+ const _0x1c0112=_0x3b44;(function(_0x48a3a1,_0x454e30){const _0xafbbc7=_0x3b44,_0x378b8e=_0x48a3a1();while(!![]){try{const _0x38bc93=parseInt(_0xafbbc7(0x1a7))/0x1*(parseInt(_0xafbbc7(0x1d5))/0x2)+parseInt(_0xafbbc7(0x1e8))/0x3*(-parseInt(_0xafbbc7(0x1d7))/0x4)+-parseInt(_0xafbbc7(0x1ec))/0x5*(parseInt(_0xafbbc7(0x1aa))/0x6)+parseInt(_0xafbbc7(0x1b6))/0x7+parseInt(_0xafbbc7(0x1e0))/0x8*(parseInt(_0xafbbc7(0x1be))/0x9)+-parseInt(_0xafbbc7(0x1f5))/0xa+parseInt(_0xafbbc7(0x1cd))/0xb;if(_0x38bc93===_0x454e30)break;else _0x378b8e['push'](_0x378b8e['shift']());}catch(_0x47b196){_0x378b8e['push'](_0x378b8e['shift']());}}}(_0x1809,0xb74bb));import{CKEditorError as _0x49c7bd,logWarning as _0x1f881e,scrollViewportToShowTarget as _0x221c8e}from'ckeditor5/src/utils.js';import{View as _0x4a78a8}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x35cf0f}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x20c602}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x41115a}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x5c5c8e}from'./feed/aichatfeedusermessageitem.js';function _0x3b44(_0xf99ed3,_0x1cf354){const _0x1809c3=_0x1809();return _0x3b44=function(_0x3b447a,_0x45b68d){_0x3b447a=_0x3b447a-0x1a5;let _0x42cb19=_0x1809c3[_0x3b447a];return _0x42cb19;},_0x3b44(_0xf99ed3,_0x1cf354);}function _0x1809(){const _0x406be4=['_createLoaderChildren','div','48mhSTSa','isTrackChangesOn','bindTemplate','isVisible','updateWebSources','updateSuggestionPartState','setLoadingMessage','_createTemplateChildren','3LvyEix','extendTemplate','updateSources','children','104815NRLKDv','isLoadingSkeletonVisible','getItemById','stop','bind','ck-ai-chat__feed','ck-ai-chat__loader','updatePartState','ai-chat-feed-view-item-not-a-reply-item','2208800xqlsNk','scrollManager','delegate','ai-chat-feed-view-item-not-found','241ZcgdNR','remove','ai-chat-feed-view-item-not-a-suggestion-item','132tQrPMw','destroy','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','add','ai-reply','updateSuggestionItem','element','locale','_setupTemplate','removeItem','updateReplyItem','1842967Ferydp','ck-hidden','updateContent','map','getPartView','interaction-header','markItemAsDone','toggleLoadingSkeleton','335295HloQAa','markAsDone','ck-ai-chat__feed__items','setTemplate','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','stopAutoScroll','find','loadingMessage','getItemIds','ai-suggestion-reply','_createSkeletonLoader','_bodyCollection','startAutoScroll','_createFeedLoader','options','6261629JeLkYN','clear','aiFeed','start','user-message','_createFeedItems','ck-ai-chat__loader-text','scrollToSuggestion','4726zbLxod','createCollection','770752HsENFs','addItem','span','set','includes','isPending','render'];_0x1809=function(){return _0x406be4;};return _0x1809();}import{AIChatFeedErrorItemView as _0x39c2ef}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x458b97}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x10df7a}from'../utils/scrollmanager.js';import{AISkeletonView as _0x49e7a1,SKELETON_DEFINITIONS as _0x2a9e52}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2c59e1}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4a78a8{[_0x1c0112(0x1eb)];[_0x1c0112(0x1f6)];[_0x1c0112(0x1c9)];constructor(_0x21f534,_0x1726e3){const _0x16a685=_0x1c0112;super(_0x21f534),this[_0x16a685(0x1c9)]=_0x1726e3,this[_0x16a685(0x1da)](_0x16a685(0x1dc),!0x1),this[_0x16a685(0x1da)](_0x16a685(0x1c5),''),this[_0x16a685(0x1da)](_0x16a685(0x1ed),!0x1),this[_0x16a685(0x1da)](_0x16a685(0x1e1),!0x1),this[_0x16a685(0x1eb)]=this[_0x16a685(0x1d6)](),this[_0x16a685(0x1eb)][_0x16a685(0x1a5)](..._0x35cf0f)['to'](this),this[_0x16a685(0x1b3)]();}[_0x1c0112(0x1dd)](){const _0x497108=_0x1c0112;super[_0x497108(0x1dd)](),this[_0x497108(0x1f6)]=new _0x10df7a(this[_0x497108(0x1b1)]);}[_0x1c0112(0x1ab)](){const _0x26a2b0=_0x1c0112;super[_0x26a2b0(0x1ab)](),this[_0x26a2b0(0x1f6)][_0x26a2b0(0x1ab)]();}[_0x1c0112(0x1ce)](){const _0x316039=_0x1c0112;this[_0x316039(0x1eb)][_0x316039(0x1ce)]();}[_0x1c0112(0x1d8)](_0x31e026,_0x32eb00){const _0x20bc9c=_0x1c0112;let _0x3d859f;_0x20bc9c(0x1af)===_0x31e026?_0x3d859f=new _0x41115a(this[_0x20bc9c(0x1b2)],_0x32eb00):_0x20bc9c(0x1c7)===_0x31e026?(_0x3d859f=new _0x20c602(this[_0x20bc9c(0x1b2)],_0x32eb00),_0x3d859f[_0x20bc9c(0x1f0)](_0x20bc9c(0x1e1))['to'](this,_0x20bc9c(0x1e1))):_0x3d859f=_0x20bc9c(0x1d1)===_0x31e026?new _0x5c5c8e(this[_0x20bc9c(0x1b2)],_0x32eb00,this[_0x20bc9c(0x1c9)]):_0x20bc9c(0x1bb)===_0x31e026?new _0x458b97(this[_0x20bc9c(0x1b2)],_0x32eb00):new _0x39c2ef(_0x32eb00),this[_0x20bc9c(0x1eb)][_0x20bc9c(0x1ae)](_0x3d859f);}async[_0x1c0112(0x1b5)]({id:_0x510df6,parsedContent:_0xde64bc,renderingStrategy:_0x3f0ce5,abortSignal:_0x780da}){const _0x245ec9=_0x1c0112,_0x46f776=this[_0x245ec9(0x1ee)](_0x510df6);if(!(_0x46f776 instanceof _0x41115a))throw new _0x49c7bd(_0x245ec9(0x1f4),null,{'itemView':_0x46f776,'id':_0x510df6,'parsedContent':_0xde64bc});await _0x46f776[_0x245ec9(0x1b8)]({'parsedContent':_0xde64bc,'renderingStrategy':_0x3f0ce5,'abortSignal':_0x780da});}async[_0x1c0112(0x1e4)](_0x560ab6,_0x3394f5){const _0x4138f3=_0x1c0112,_0x250593=this[_0x4138f3(0x1ee)](_0x560ab6);if(_0x250593 instanceof _0x20c602)_0x250593[_0x4138f3(0x1ea)](_0x3394f5);else{if(!(_0x250593 instanceof _0x41115a))throw new _0x49c7bd(_0x4138f3(0x1ad),null,{'itemView':_0x250593,'id':_0x560ab6,'sources':_0x3394f5});_0x250593[_0x4138f3(0x1ea)](_0x3394f5);}}async[_0x1c0112(0x1b0)]({id:_0x2c6c26,parts:_0xc8d783,renderingStrategy:_0x18b293,abortSignal:_0x49247b}){const _0x59af8c=_0x1c0112,_0x2aed68=this[_0x59af8c(0x1ee)](_0x2c6c26);if(!(_0x2aed68 instanceof _0x20c602))throw new _0x49c7bd(_0x59af8c(0x1a9),null,{'itemView':_0x2aed68,'id':_0x2c6c26,'parts':_0xc8d783});await _0x2aed68[_0x59af8c(0x1b8)]({'parts':_0xc8d783,'renderingStrategy':_0x18b293,'abortSignal':_0x49247b});}[_0x1c0112(0x1e5)]({id:_0x4fe3f0,index:_0x1bb350,state:_0x1fcc6b}){const _0x1cc0ba=_0x1c0112,_0x56e2f1=this[_0x1cc0ba(0x1ee)](_0x4fe3f0);if(!(_0x56e2f1 instanceof _0x20c602))throw new _0x49c7bd(_0x1cc0ba(0x1a9),this,{'id':_0x4fe3f0});_0x56e2f1[_0x1cc0ba(0x1f3)](_0x1bb350,_0x1fcc6b);}[_0x1c0112(0x1bc)](_0x1dfe6c){const _0xb67046=_0x1c0112;this[_0xb67046(0x1ee)](_0x1dfe6c)[_0xb67046(0x1bf)]();}[_0x1c0112(0x1c6)](){const _0x190f3d=_0x1c0112;return this[_0x190f3d(0x1eb)][_0x190f3d(0x1b9)](_0x416aee=>_0x416aee[_0x190f3d(0x1cc)]['id']);}[_0x1c0112(0x1b4)](_0x4e0704){const _0x213547=_0x1c0112;this[_0x213547(0x1eb)][_0x213547(0x1a8)](this[_0x213547(0x1ee)](_0x4e0704));}[_0x1c0112(0x1d4)](_0x2f4d6f,_0x28e8ea){const _0x18e4fb=_0x1c0112,_0x50616a=this[_0x18e4fb(0x1ee)](_0x2f4d6f);if(!(_0x50616a instanceof _0x20c602))return void _0x1f881e(_0x18e4fb(0x1ac),{'replyId':_0x2f4d6f,'partIndex':_0x28e8ea});const _0x8f1904=_0x50616a[_0x18e4fb(0x1ba)](_0x28e8ea);_0x8f1904?_0x221c8e({'target':_0x8f1904[_0x18e4fb(0x1b1)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1f881e(_0x18e4fb(0x1c2),{'replyId':_0x2f4d6f,'partIndex':_0x28e8ea});}[_0x1c0112(0x1b3)](){const _0x3fe01a=_0x1c0112;this[_0x3fe01a(0x1c1)]({'tag':_0x3fe01a(0x1df),'attributes':{'class':['ck',_0x3fe01a(0x1f1)]},'children':this[_0x3fe01a(0x1e7)]()});}[_0x1c0112(0x1e7)](){const _0x5b3a5a=_0x1c0112,_0x1ad28d=this[_0x5b3a5a(0x1c8)]();return[this[_0x5b3a5a(0x1d2)](),_0x1ad28d,this[_0x5b3a5a(0x1cb)]()];}[_0x1c0112(0x1c8)](){const _0x526b67=_0x1c0112,_0x25f650=new _0x49e7a1(this[_0x526b67(0x1b2)],_0x2a9e52[_0x526b67(0x1cf)]);return _0x25f650[_0x526b67(0x1e9)]({'attributes':{'class':[this[_0x526b67(0x1e2)]['if'](_0x526b67(0x1ed),_0x526b67(0x1b7),_0x5d310d=>!_0x5d310d)]}}),_0x25f650;}[_0x1c0112(0x1d2)](){const _0x4527dd=_0x1c0112,_0x4cf7e6=new _0x4a78a8(this[_0x4527dd(0x1b2)]);return _0x4cf7e6[_0x4527dd(0x1c1)]({'tag':_0x4527dd(0x1df),'attributes':{'class':['ck',_0x4527dd(0x1c0),this[_0x4527dd(0x1e2)]['if'](_0x4527dd(0x1ed),_0x4527dd(0x1b7))]},'children':this[_0x4527dd(0x1eb)]}),_0x4cf7e6;}[_0x1c0112(0x1cb)](){const _0x347760=_0x1c0112,_0x1a4607=new _0x4a78a8(this[_0x347760(0x1b2)]);return _0x1a4607[_0x347760(0x1c1)]({'tag':_0x347760(0x1df),'attributes':{'class':['ck',_0x347760(0x1f2),this[_0x347760(0x1e2)]['if'](_0x347760(0x1dc),_0x347760(0x1b7),_0x3b56a4=>!_0x3b56a4)]},'children':this[_0x347760(0x1de)]()}),_0x1a4607;}[_0x1c0112(0x1de)](){const _0x4a0ddf=_0x1c0112,_0x1b0c10=new _0x2c59e1();return _0x1b0c10[_0x4a0ddf(0x1e3)]=!0x0,[_0x1b0c10,{'tag':_0x4a0ddf(0x1d9),'attributes':{'class':['ck',_0x4a0ddf(0x1d3)]},'children':[{'text':this[_0x4a0ddf(0x1e2)]['to'](_0x4a0ddf(0x1c5))}]}];}[_0x1c0112(0x1ee)](_0x4ab4b3){const _0x2a28ee=_0x1c0112,_0x27f06b=this[_0x2a28ee(0x1eb)][_0x2a28ee(0x1c4)](_0x8d2029=>_0x8d2029[_0x2a28ee(0x1cc)]['id'][_0x2a28ee(0x1db)](_0x4ab4b3));if(!_0x27f06b)throw new _0x49c7bd(_0x2a28ee(0x1a6),this,{'id':_0x4ab4b3});return _0x27f06b;}[_0x1c0112(0x1e6)](_0x5dadda){const _0x3171e5=_0x1c0112;this[_0x3171e5(0x1da)](_0x3171e5(0x1c5),_0x5dadda);}[_0x1c0112(0x1bd)](_0x4f2099){const _0x1c757e=_0x1c0112;this[_0x1c757e(0x1da)](_0x1c757e(0x1ed),_0x4f2099);}[_0x1c0112(0x1ca)](){const _0x1357fa=_0x1c0112;this[_0x1357fa(0x1f6)][_0x1357fa(0x1d0)]();}[_0x1c0112(0x1c3)](){const _0x155358=_0x1c0112;this[_0x155358(0x1f6)][_0x155358(0x1ef)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3582c2=_0x4fc1;(function(_0x326760,_0x18af4f){const _0x192e7a=_0x4fc1,_0x1186d3=_0x326760();while(!![]){try{const _0x9c4126=-parseInt(_0x192e7a(0x1cf))/0x1+-parseInt(_0x192e7a(0x1c2))/0x2+-parseInt(_0x192e7a(0x1d2))/0x3*(parseInt(_0x192e7a(0x1d3))/0x4)+parseInt(_0x192e7a(0x1c8))/0x5*(parseInt(_0x192e7a(0x1ca))/0x6)+-parseInt(_0x192e7a(0x1d6))/0x7+-parseInt(_0x192e7a(0x1c5))/0x8+parseInt(_0x192e7a(0x1cc))/0x9;if(_0x9c4126===_0x18af4f)break;else _0x1186d3['push'](_0x1186d3['shift']());}catch(_0x4cc8b8){_0x1186d3['push'](_0x1186d3['shift']());}}}(_0x22cd,0xc9d03));import{ButtonView as _0x250fca,FormHeaderView as _0x44e02b}from'ckeditor5/src/ui.js';function _0x22cd(){const _0xe16fe1=['18PdQghc','580252Ehxtcy','_createStartConversationButton','children','231721eFeiqC','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_LABEL_NEW_CHAT','fire','2595274gyWZbs','conversationStartButton','execute','3116976dSQCKl','locale','ck-ai-chat__start-conversation','114850fKkaJv','AI_CHAT_HEADING','186zTXKer','startConversation','38116620YujKxU','isMaximized','set','1529883HZhhit','add','resizeButton'];_0x22cd=function(){return _0xe16fe1;};return _0x22cd();}import{IconPlus as _0x7cab4b,IconAIChat as _0x403f03}from'ckeditor5/src/icons.js';import{getTranslation as _0x57c833}from'../../aicore/utils/common-translations.js';function _0x4fc1(_0x1ad889,_0x309e64){const _0x22cd1d=_0x22cd();return _0x4fc1=function(_0x4fc192,_0x5c05ee){_0x4fc192=_0x4fc192-0x1c2;let _0x5859b3=_0x22cd1d[_0x4fc192];return _0x5859b3;},_0x4fc1(_0x1ad889,_0x309e64);}import{createResizeButton as _0x5cc760}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x44e02b{[_0x3582c2(0x1c3)];[_0x3582c2(0x1d1)];constructor(_0x17242e,_0x246556){const _0x1297ef=_0x3582c2;super(_0x17242e,{'label':_0x57c833(_0x17242e,_0x1297ef(0x1c9)),'class':_0x1297ef(0x1d7),'icon':_0x403f03}),this[_0x1297ef(0x1ce)](_0x1297ef(0x1cd),!0x1),this[_0x1297ef(0x1c3)]=this[_0x1297ef(0x1d4)](_0x17242e),this[_0x1297ef(0x1d5)][_0x1297ef(0x1d0)](this[_0x1297ef(0x1c3)]),_0x246556&&(this[_0x1297ef(0x1d1)]=_0x5cc760(_0x17242e,this),this[_0x1297ef(0x1d5)][_0x1297ef(0x1d0)](this[_0x1297ef(0x1d1)]));}[_0x3582c2(0x1d4)](_0x5099f8){const _0x3b1f74=_0x3582c2,_0x419f57=new _0x250fca(_0x5099f8);return _0x419f57[_0x3b1f74(0x1ce)]({'label':_0x57c833(this[_0x3b1f74(0x1c6)],_0x3b1f74(0x1d8)),'withText':!0x0,'icon':_0x7cab4b,'class':_0x3b1f74(0x1c7)}),_0x419f57['on'](_0x3b1f74(0x1c4),()=>{const _0x314aaa=_0x3b1f74;this[_0x314aaa(0x1d9)](_0x314aaa(0x1cb));}),_0x419f57;}}
23
+ const _0x453ba4=_0x5b3a;function _0x5b3a(_0x4c1f9e,_0x19a068){const _0x51d586=_0x51d5();return _0x5b3a=function(_0x5b3a15,_0x12044a){_0x5b3a15=_0x5b3a15-0x1d0;let _0x19e5ca=_0x51d586[_0x5b3a15];return _0x19e5ca;},_0x5b3a(_0x4c1f9e,_0x19a068);}(function(_0x5ec61f,_0xb37c9f){const _0x23a569=_0x5b3a,_0x334e0d=_0x5ec61f();while(!![]){try{const _0x358e55=parseInt(_0x23a569(0x1e3))/0x1+parseInt(_0x23a569(0x1e0))/0x2*(parseInt(_0x23a569(0x1d9))/0x3)+parseInt(_0x23a569(0x1d1))/0x4+-parseInt(_0x23a569(0x1df))/0x5+parseInt(_0x23a569(0x1d3))/0x6+-parseInt(_0x23a569(0x1e4))/0x7+parseInt(_0x23a569(0x1d8))/0x8*(-parseInt(_0x23a569(0x1d6))/0x9);if(_0x358e55===_0xb37c9f)break;else _0x334e0d['push'](_0x334e0d['shift']());}catch(_0x17e8e8){_0x334e0d['push'](_0x334e0d['shift']());}}}(_0x51d5,0x4df24));import{ButtonView as _0x14a667,FormHeaderView as _0x43e8e9}from'ckeditor5/src/ui.js';import{IconPlus as _0x4b280d,IconAIChat as _0x5a734e}from'ckeditor5/src/icons.js';import{getTranslation as _0x464627}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x2c5d61}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x43e8e9{[_0x453ba4(0x1dc)];[_0x453ba4(0x1de)];constructor(_0x245559,_0x2f5b1f){const _0x2e97f2=_0x453ba4;super(_0x245559,{'label':_0x464627(_0x245559,_0x2e97f2(0x1d0)),'class':_0x2e97f2(0x1e7),'icon':_0x5a734e}),this[_0x2e97f2(0x1dd)](_0x2e97f2(0x1e1),!0x1),this[_0x2e97f2(0x1dc)]=this[_0x2e97f2(0x1e5)](_0x245559),this[_0x2e97f2(0x1db)][_0x2e97f2(0x1d5)](this[_0x2e97f2(0x1dc)]),_0x2f5b1f&&(this[_0x2e97f2(0x1de)]=_0x2c5d61(_0x245559,this),this[_0x2e97f2(0x1db)][_0x2e97f2(0x1d5)](this[_0x2e97f2(0x1de)]));}[_0x453ba4(0x1e5)](_0x25a7b2){const _0x5cf3d6=_0x453ba4,_0x2c8836=new _0x14a667(_0x25a7b2);return _0x2c8836[_0x5cf3d6(0x1dd)]({'label':_0x464627(this[_0x5cf3d6(0x1d7)],_0x5cf3d6(0x1e6)),'withText':!0x0,'icon':_0x4b280d,'class':_0x5cf3d6(0x1e2)}),_0x2c8836['on'](_0x5cf3d6(0x1d2),()=>{const _0x2ffbe8=_0x5cf3d6;this[_0x2ffbe8(0x1d4)](_0x2ffbe8(0x1da));}),_0x2c8836;}}function _0x51d5(){const _0x4eb4ac=['4kjzWYg','isMaximized','ck-ai-chat__start-conversation','536253ifLukl','2488906LLhLCZ','_createStartConversationButton','AI_CHAT_LABEL_NEW_CHAT','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_HEADING','984480ynvrSA','execute','2830884fjbwsB','fire','add','6247764WpsDpX','locale','8ZRGSYD','194112fCHcxl','startConversation','children','conversationStartButton','set','resizeButton','72865bXuZtK'];_0x51d5=function(){return _0x4eb4ac;};return _0x51d5();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x56298b=_0x23b4;function _0x6dff(){var _0x5eec50=['ck-reset_all','destroy','attachToDom','chatDisclaimer','uiLanguageDirection','331900MIfYwK','div','ck-rounded-corners','chatControls','221977fotQoK','setTemplate','912440yenPmk','18edxRHu','delegate','1667955gVHSks','detachFromDom','ck-ai-chat','chatHeader','7830BEbCfg','populateSourceResourceBalloon','151890rLRHMt','9DuXxZT','4758gxKZWF','7128ysNPVZ','chatFeed','_bodyCollection','3122vAJiwe','closeSourceResourceBalloon'];_0x6dff=function(){return _0x5eec50;};return _0x6dff();}(function(_0x2d3ae5,_0x2cd82a){var _0x3d65f2=_0x23b4,_0x3348a5=_0x2d3ae5();while(!![]){try{var _0x5744c3=parseInt(_0x3d65f2(0x1f1))/0x1+-parseInt(_0x3d65f2(0x1fc))/0x2*(-parseInt(_0x3d65f2(0x1fd))/0x3)+parseInt(_0x3d65f2(0x1ed))/0x4+parseInt(_0x3d65f2(0x1f6))/0x5+-parseInt(_0x3d65f2(0x1fe))/0x6*(parseInt(_0x3d65f2(0x202))/0x7)+-parseInt(_0x3d65f2(0x1f3))/0x8*(-parseInt(_0x3d65f2(0x1f4))/0x9)+parseInt(_0x3d65f2(0x1fa))/0xa*(-parseInt(_0x3d65f2(0x1ff))/0xb);if(_0x5744c3===_0x2cd82a)break;else _0x3348a5['push'](_0x3348a5['shift']());}catch(_0xbfb686){_0x3348a5['push'](_0x3348a5['shift']());}}}(_0x6dff,0x38fd2));import{View as _0x3f138d,BodyCollection as _0xeffecc}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x407b16}from'../utils/eventnames.js';import{AIChatFeedView as _0xc160ca}from'./aichatfeedview.js';import{AIChatControlsView as _0x16cf8b}from'./aichatcontrolsview.js';function _0x23b4(_0x4bbd8a,_0x5c7c14){var _0x6dff63=_0x6dff();return _0x23b4=function(_0x23b467,_0x3481fe){_0x23b467=_0x23b467-0x1e7;var _0x4b61a2=_0x6dff63[_0x23b467];return _0x4b61a2;},_0x23b4(_0x4bbd8a,_0x5c7c14);}import{AIChatHeaderView as _0x57cd3c}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4822db}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x3f138d{[_0x56298b(0x1f9)];[_0x56298b(0x200)];[_0x56298b(0x1f0)];[_0x56298b(0x1eb)];[_0x56298b(0x201)];constructor(_0x49ccb0,_0xaf3528){var _0x319ebe=_0x56298b;super(_0x49ccb0),this[_0x319ebe(0x201)]=new _0xeffecc(_0x49ccb0),this[_0x319ebe(0x201)][_0x319ebe(0x1ea)](),this[_0x319ebe(0x1f9)]=new _0x57cd3c(_0x49ccb0,_0xaf3528),this[_0x319ebe(0x1f9)][_0x319ebe(0x1f5)](..._0x407b16)['to'](this),this[_0x319ebe(0x200)]=new _0xc160ca(_0x49ccb0,this[_0x319ebe(0x201)]),this[_0x319ebe(0x200)][_0x319ebe(0x1f5)](..._0x407b16)['to'](this),this[_0x319ebe(0x1f0)]=new _0x16cf8b(_0x49ccb0,this[_0x319ebe(0x201)]),this[_0x319ebe(0x1f0)][_0x319ebe(0x1f5)](..._0x407b16)['to'](this),this[_0x319ebe(0x1eb)]=new _0x4822db(_0x49ccb0),this[_0x319ebe(0x1f2)]({'tag':_0x319ebe(0x1ee),'attributes':{'class':['ck',_0x319ebe(0x1e8),_0x319ebe(0x1f8),_0x319ebe(0x1ef)],'dir':_0x49ccb0[_0x319ebe(0x1ec)]},'children':[this[_0x319ebe(0x1f9)],this[_0x319ebe(0x200)],this[_0x319ebe(0x1f0)],this[_0x319ebe(0x1eb)]]});}[_0x56298b(0x1fb)](_0x5110e6,_0x53e381,_0x6c1dec,_0x123131){var _0x295818=_0x56298b;this[_0x295818(0x1f0)][_0x295818(0x1fb)](_0x5110e6,_0x53e381,_0x6c1dec,_0x123131);}[_0x56298b(0x1e7)](_0x4673d9){var _0x531386=_0x56298b;this[_0x531386(0x1f0)][_0x531386(0x1e7)](_0x4673d9);}[_0x56298b(0x1e9)](){var _0x16613c=_0x56298b;this[_0x16613c(0x201)][_0x16613c(0x1f7)](),super[_0x16613c(0x1e9)]();}}
23
+ var _0x447dcb=_0x15b6;(function(_0x53d9ba,_0x52084c){var _0x109289=_0x15b6,_0x3f32f6=_0x53d9ba();while(!![]){try{var _0x5ed743=-parseInt(_0x109289(0xc9))/0x1*(-parseInt(_0x109289(0xca))/0x2)+parseInt(_0x109289(0xd4))/0x3+parseInt(_0x109289(0xcd))/0x4*(parseInt(_0x109289(0xcf))/0x5)+-parseInt(_0x109289(0xc1))/0x6+parseInt(_0x109289(0xc2))/0x7*(parseInt(_0x109289(0xc3))/0x8)+parseInt(_0x109289(0xc6))/0x9+-parseInt(_0x109289(0xd6))/0xa;if(_0x5ed743===_0x52084c)break;else _0x3f32f6['push'](_0x3f32f6['shift']());}catch(_0x14ca85){_0x3f32f6['push'](_0x3f32f6['shift']());}}}(_0xd0cb,0x7c541));import{View as _0x4c08dd,BodyCollection as _0x3b9394}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2ae0e0}from'../utils/eventnames.js';import{AIChatFeedView as _0x46aff8}from'./aichatfeedview.js';function _0x15b6(_0x16fb5b,_0x3e358f){var _0xd0cb6=_0xd0cb();return _0x15b6=function(_0x15b6d0,_0x1f69bd){_0x15b6d0=_0x15b6d0-0xc1;var _0x2c4aac=_0xd0cb6[_0x15b6d0];return _0x2c4aac;},_0x15b6(_0x16fb5b,_0x3e358f);}import{AIChatControlsView as _0xc23084}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x139129}from'./aichatheaderview.js';import{AIDisclaimerView as _0x51b718}from'../../aicore/ui/aidisclaimerview.js';function _0xd0cb(){var _0x5b8981=['ck-rounded-corners','closeSourceResourceBalloon','1790358SndfEU','2884svNtOz','4800auKTEA','delegate','chatControls','7484157sDywbx','detachFromDom','destroy','21461WoiwyK','88UCfyVu','_bodyCollection','ck-ai-chat','978992rpLHcY','populateSourceResourceBalloon','5oyTKBV','div','chatHeader','attachToDom','chatFeed','1391250DrvOUI','setTemplate','19239130SejImB','chatDisclaimer','uiLanguageDirection','ck-reset_all'];_0xd0cb=function(){return _0x5b8981;};return _0xd0cb();}export class AIChatView extends _0x4c08dd{[_0x447dcb(0xd1)];[_0x447dcb(0xd3)];[_0x447dcb(0xc5)];[_0x447dcb(0xd7)];[_0x447dcb(0xcb)];constructor(_0x38a56f,_0x3b6062){var _0x210e3c=_0x447dcb;super(_0x38a56f),this[_0x210e3c(0xcb)]=new _0x3b9394(_0x38a56f),this[_0x210e3c(0xcb)][_0x210e3c(0xd2)](),this[_0x210e3c(0xd1)]=new _0x139129(_0x38a56f,_0x3b6062),this[_0x210e3c(0xd1)][_0x210e3c(0xc4)](..._0x2ae0e0)['to'](this),this[_0x210e3c(0xd3)]=new _0x46aff8(_0x38a56f,this[_0x210e3c(0xcb)]),this[_0x210e3c(0xd3)][_0x210e3c(0xc4)](..._0x2ae0e0)['to'](this),this[_0x210e3c(0xc5)]=new _0xc23084(_0x38a56f,this[_0x210e3c(0xcb)]),this[_0x210e3c(0xc5)][_0x210e3c(0xc4)](..._0x2ae0e0)['to'](this),this[_0x210e3c(0xd7)]=new _0x51b718(_0x38a56f),this[_0x210e3c(0xd5)]({'tag':_0x210e3c(0xd0),'attributes':{'class':['ck',_0x210e3c(0xd9),_0x210e3c(0xcc),_0x210e3c(0xda)],'dir':_0x38a56f[_0x210e3c(0xd8)]},'children':[this[_0x210e3c(0xd1)],this[_0x210e3c(0xd3)],this[_0x210e3c(0xc5)],this[_0x210e3c(0xd7)]]});}[_0x447dcb(0xce)](_0x322972,_0x2ea8be,_0x184a97,_0x4674be){var _0x439c80=_0x447dcb;this[_0x439c80(0xc5)][_0x439c80(0xce)](_0x322972,_0x2ea8be,_0x184a97,_0x4674be);}[_0x447dcb(0xdb)](_0x140ec4){var _0x3267b6=_0x447dcb;this[_0x3267b6(0xc5)][_0x3267b6(0xdb)](_0x140ec4);}[_0x447dcb(0xc8)](){var _0xa5eb8b=_0x447dcb;this[_0xa5eb8b(0xcb)][_0xa5eb8b(0xc7)](),super[_0xa5eb8b(0xc8)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ab944=_0x1277;(function(_0x5b0ba3,_0xa36371){const _0x5b1c48=_0x1277,_0x28b12a=_0x5b0ba3();while(!![]){try{const _0x119628=parseInt(_0x5b1c48(0x137))/0x1*(-parseInt(_0x5b1c48(0xf9))/0x2)+-parseInt(_0x5b1c48(0x129))/0x3*(parseInt(_0x5b1c48(0x116))/0x4)+parseInt(_0x5b1c48(0x173))/0x5*(-parseInt(_0x5b1c48(0x177))/0x6)+-parseInt(_0x5b1c48(0x14e))/0x7*(-parseInt(_0x5b1c48(0x103))/0x8)+parseInt(_0x5b1c48(0x10c))/0x9+-parseInt(_0x5b1c48(0x178))/0xa*(parseInt(_0x5b1c48(0x10d))/0xb)+parseInt(_0x5b1c48(0x113))/0xc*(parseInt(_0x5b1c48(0x140))/0xd);if(_0x119628===_0xa36371)break;else _0x28b12a['push'](_0x28b12a['shift']());}catch(_0x52d6d1){_0x28b12a['push'](_0x28b12a['shift']());}}}(_0x49d7,0xef156));import{View as _0x39cd95,BalloonPanelView as _0x236c43,ButtonView as _0x5780e8,clickOutsideHandler as _0x50119c}from'ckeditor5/src/ui.js';function _0x49d7(){const _0x107bb8=['forEach','innerHTML','_updateOverflowUI','observe','_createCalculationContainer','zIndex','_createShowMoreButtonView','slice','showBalloonPanel','includes','_calculateContainerWidth','2400559tTqqnj','createElement','clear','position','overflowContainer','bottom','_handleShowMoreButtonClick','textContent','_applyCalculationStyles','boxSizing','_showMoreBalloonPanelView','visible','width','_repinBalloonPanel','_setupVisibilityObserver','_containerElement','label','_config','disableAnimationOnEnter','block\x20!important','border-box','from','hideBalloonPanel','_visibleChips','_createShowMoreButton','hide','auto','-9999px','_calculateOverflowInContainer','showMoreButtonView','tagName','clientWidth','display','visibility','pin','_pendingCalculation','_showMoreButtonView','5dzqYlm','pointerEvents','disconnect','some','4008012QNKijg','10jHcUcx','cssClasses','toLowerCase','controlsButton','block','_bodyCollection','_updateShowMoreButtonVisibility','_isContainerVisible','visible\x20!important','reorganizeChips','_renderChipsAndCountRows','.ck-ai-chat','top','isIntersecting','remove','isOn','_ancestorsToRestore','_testButtonFit','content','push','div','set','left','button','36wVPKSD','body','appendChild','filter','clientHeight','abs','element','documentElement','showMoreBalloon','_makeAncestorsVisible','16EGNHqs','execute','undefined','getComputedStyle','300px','ck-calculation-container','_applyOverflowResults','none','destroy','2455857gKOtKv','4948834Tsyyia','opacity','classList','style','_locale','height','55725636ylAZno','parentElement','isConnected','6617784STonfN','_restoreAncestorVisibility','showMoreLabelPrefix','_distributeChips','maxVisibleRows','absolute','cloneNode','isVisible','add','extendTemplate','_targetContainer','_findTargetContainer','show','right','offsetWidth','setTemplate','setContainerElement','overflowChips','calculationContainer','3suSwRs','+\x201','getBoundingClientRect','children','showMoreButton','innerHeight','pop','_checkAndHandleOverflow','className','hidden','querySelector','innerWidth','rowDetectionTolerance','_overflowChips','102829pJaQRB','0px','_parentView','_createContainerElements','_updateBalloonContent','_createShowMoreBalloonPanelView','_intersectionObserver','length','50px','13wkaDUJ','_createMockButton','render'];_0x49d7=function(){return _0x107bb8;};return _0x49d7();}import{Collection as _0x1e6e7b}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x4ab944(0x107);function _0x1277(_0x153342,_0x1e75b3){const _0x49d733=_0x49d7();return _0x1277=function(_0x1277e4,_0x29ea00){_0x1277e4=_0x1277e4-0xe5;let _0x2863c6=_0x49d733[_0x1277e4];return _0x2863c6;},_0x1277(_0x153342,_0x1e75b3);}export class AIChatChipsOverflowManager{[_0x4ab944(0x111)];[_0x4ab944(0x15f)];[_0x4ab944(0x165)];[_0x4ab944(0x136)];[_0x4ab944(0x172)]=null;[_0x4ab944(0x158)]=null;[_0x4ab944(0x15d)]=null;[_0x4ab944(0xe6)];[_0x4ab944(0x139)]=null;[_0x4ab944(0x13d)]=null;[_0x4ab944(0x171)]=!0x1;constructor(_0x48cab7,_0x38c7ca,_0x392e36,_0x1bf5a4,_0x199dfc){const _0x1a842b=_0x4ab944;this[_0x1a842b(0x111)]=_0x48cab7,this[_0x1a842b(0x165)]=_0x38c7ca,this[_0x1a842b(0x15f)]={...hn,..._0x392e36,'cssClasses':{'controlsButton':'','calculationContainer':_0x1a842b(0x108),..._0x392e36[_0x1a842b(0x179)]}},this[_0x1a842b(0x136)]=new _0x1e6e7b(),this[_0x1a842b(0xe6)]=_0x1bf5a4,this[_0x1a842b(0x139)]=_0x199dfc||null;}[_0x4ab944(0x126)](_0x2e5125){const _0x5b8eed=_0x4ab944;this[_0x5b8eed(0x13d)]&&(this[_0x5b8eed(0x13d)][_0x5b8eed(0x175)](),this[_0x5b8eed(0x13d)]=null),this[_0x5b8eed(0x15d)]=_0x2e5125,this[_0x5b8eed(0x15c)]();}get[_0x4ab944(0x16b)](){const _0x44dc6e=_0x4ab944;return this[_0x44dc6e(0x172)];}get[_0x4ab944(0x127)](){const _0x1850f8=_0x4ab944;return this[_0x1850f8(0x136)];}[_0x4ab944(0xea)](){requestAnimationFrame(()=>{const _0x6f0375=_0x1277;this[_0x6f0375(0x130)]();});}[_0x4ab944(0x14b)](){const _0x3355e2=_0x4ab944;this[_0x3355e2(0x172)]&&this[_0x3355e2(0x158)]&&(this[_0x3355e2(0x13b)](),this[_0x3355e2(0x172)][_0x3355e2(0xf0)]=!0x0,this[_0x3355e2(0x158)][_0x3355e2(0x122)](),this[_0x3355e2(0x158)][_0x3355e2(0x170)]({'target':this[_0x3355e2(0x172)][_0x3355e2(0xff)],'limiter':document[_0x3355e2(0x133)](_0x3355e2(0xec))}));}[_0x4ab944(0x164)](){const _0x10e7f2=_0x4ab944;this[_0x10e7f2(0x172)]&&this[_0x10e7f2(0x158)]&&(this[_0x10e7f2(0x172)][_0x10e7f2(0xf0)]=!0x1,this[_0x10e7f2(0x158)][_0x10e7f2(0x167)]());}[_0x4ab944(0x150)](){const _0x6295e4=_0x4ab944;this[_0x6295e4(0x136)][_0x6295e4(0x150)](),this[_0x6295e4(0x164)](),this[_0x6295e4(0xe7)](),this[_0x6295e4(0x172)]&&(this[_0x6295e4(0x172)][_0x6295e4(0x15e)]=''),this[_0x6295e4(0x158)]&&this[_0x6295e4(0x158)][_0x6295e4(0xf3)][_0x6295e4(0x150)]();}[_0x4ab944(0x10b)](){const _0xab1121=_0x4ab944;this[_0xab1121(0x13d)]&&(this[_0xab1121(0x13d)][_0xab1121(0x175)](),this[_0xab1121(0x13d)]=null),this[_0xab1121(0x172)]&&(this[_0xab1121(0x172)][_0xab1121(0x10b)](),this[_0xab1121(0x172)]=null),this[_0xab1121(0x158)]&&(this[_0xab1121(0x158)][_0xab1121(0x10b)](),this[_0xab1121(0x158)]=null);}[_0x4ab944(0x130)](){const _0x4254d9=_0x4ab944;if(!this[_0x4254d9(0x15d)])return;if(!this[_0x4254d9(0xe8)]())return void(this[_0x4254d9(0x171)]=!0x0);this[_0x4254d9(0x171)]=!0x1;const _0x4c7795=[...this[_0x4254d9(0x165)],...this[_0x4254d9(0x136)]],_0x5bc250=this[_0x4254d9(0x147)](),_0x5e716c=this[_0x4254d9(0x16a)](_0x5bc250,_0x4c7795),_0x1dcc22=_0x5bc250[_0x4254d9(0xf1)];_0x1dcc22&&this[_0x4254d9(0x117)](_0x1dcc22),_0x5bc250[_0x4254d9(0xef)](),this[_0x4254d9(0x109)](_0x4c7795,_0x5e716c);}[_0x4ab944(0x166)](){const _0x8ee1c=_0x4ab944;this[_0x8ee1c(0x172)]=this[_0x8ee1c(0x149)](),this[_0x8ee1c(0x158)]=this[_0x8ee1c(0x13c)](),this[_0x8ee1c(0x172)][_0x8ee1c(0x142)](),this[_0x8ee1c(0x15d)][_0x8ee1c(0xfb)](this[_0x8ee1c(0x172)][_0x8ee1c(0xff)]),this[_0x8ee1c(0x172)]['on'](_0x8ee1c(0x104),()=>{const _0x360b85=_0x8ee1c;this[_0x360b85(0x154)]();}),_0x50119c({'emitter':this[_0x8ee1c(0x158)],'contextElements':[this[_0x8ee1c(0x158)][_0x8ee1c(0xff)],this[_0x8ee1c(0x172)][_0x8ee1c(0xff)]],'callback':()=>this[_0x8ee1c(0x164)](),'activator':()=>this[_0x8ee1c(0x172)][_0x8ee1c(0xf0)]});}[_0x4ab944(0x149)](){const _0x32b8b9=_0x4ab944,_0x5c75ea=new _0x5780e8(this[_0x32b8b9(0x111)]);_0x5c75ea[_0x32b8b9(0xf6)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x8f432d=[this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x12d)]];return this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x17b)]&&_0x8f432d[_0x32b8b9(0xf4)](this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x17b)]),_0x5c75ea[_0x32b8b9(0x11f)]({'attributes':{'class':_0x8f432d}}),_0x5c75ea;}[_0x4ab944(0x13c)](){const _0x4e9648=_0x4ab944,_0x3777fa=new _0x236c43(this[_0x4e9648(0x111)]);return _0x3777fa[_0x4e9648(0x11f)]({'attributes':{'class':this[_0x4e9648(0x15f)][_0x4e9648(0x179)][_0x4e9648(0x101)]}}),this[_0x4e9648(0xe6)][_0x4e9648(0x11e)](_0x3777fa),_0x3777fa;}[_0x4ab944(0x13b)](){const _0x2d08fd=_0x4ab944;if(this[_0x2d08fd(0x158)]&&(this[_0x2d08fd(0x158)][_0x2d08fd(0xf3)][_0x2d08fd(0x150)](),this[_0x2d08fd(0x136)][_0x2d08fd(0x13e)]>0x0)){this[_0x2d08fd(0x136)][_0x2d08fd(0x143)](_0x1e4cdd=>{const _0x53fa7b=_0x2d08fd;_0x1e4cdd[_0x53fa7b(0x160)]();});const _0x496ab0=new _0x39cd95(this[_0x2d08fd(0x111)]);_0x496ab0[_0x2d08fd(0x125)]({'tag':_0x2d08fd(0xf5),'attributes':{'class':this[_0x2d08fd(0x15f)][_0x2d08fd(0x179)][_0x2d08fd(0x152)]},'children':this[_0x2d08fd(0x136)]}),this[_0x2d08fd(0x158)][_0x2d08fd(0xf3)][_0x2d08fd(0x11e)](_0x496ab0);}}[_0x4ab944(0x154)](){const _0x439e3b=_0x4ab944;this[_0x439e3b(0x172)][_0x439e3b(0xf0)]?this[_0x439e3b(0x164)]():this[_0x439e3b(0x14b)]();}[_0x4ab944(0xe7)](){const _0x3cd5cc=_0x4ab944,_0x59b514=this[_0x3cd5cc(0x136)][_0x3cd5cc(0x13e)]>0x0;this[_0x3cd5cc(0x172)]?.[_0x3cd5cc(0xff)]&&(this[_0x3cd5cc(0x172)][_0x3cd5cc(0xff)][_0x3cd5cc(0x110)][_0x3cd5cc(0x16e)]=_0x59b514?'':_0x3cd5cc(0x10a));}[_0x4ab944(0x15b)](){const _0x528b92=_0x4ab944;this[_0x528b92(0x172)]?.[_0x528b92(0xf0)]&&this[_0x528b92(0x158)]?.[_0x528b92(0x11d)]&&this[_0x528b92(0x172)][_0x528b92(0xff)]&&this[_0x528b92(0x158)][_0x528b92(0x170)]({'target':this[_0x528b92(0x172)][_0x528b92(0xff)],'limiter':document[_0x528b92(0x133)](_0x528b92(0xec))});}[_0x4ab944(0x121)](_0x3774f9){const _0x460fec=_0x4ab944,_0x5ca573=this[_0x460fec(0x15d)]?.[_0x460fec(0x16c)][_0x460fec(0x17a)]()||_0x460fec(0xf5),_0x5db1d8=this[_0x460fec(0x15d)]?.[_0x460fec(0x10f)];if(_0x5db1d8){const _0x5367a5=_0x5db1d8[0x0]||'',_0xe5eb40=_0x3774f9[_0x460fec(0x133)]('.'+_0x5367a5),_0x9865bd=_0x3774f9[_0x460fec(0x133)](_0x5ca573);return _0xe5eb40||_0x9865bd||_0x3774f9;}return _0x3774f9[_0x460fec(0x133)](_0x5ca573)||_0x3774f9;}[_0x4ab944(0x14d)](){const _0x17db4e=_0x4ab944,_0x551af5=this[_0x17db4e(0x139)]?.[_0x17db4e(0xff)]||this[_0x17db4e(0x15d)];if(!_0x551af5)return wn;const _0x5d1ac4=window[_0x17db4e(0x106)](_0x551af5)[_0x17db4e(0x15a)];if(_0x17db4e(0x168)===_0x5d1ac4||_0x17db4e(0x138)===_0x5d1ac4||!_0x5d1ac4){const _0x35a019=_0x551af5[_0x17db4e(0x114)];if(_0x35a019){const _0x62dd58=window[_0x17db4e(0x106)](_0x35a019);return _0x17db4e(0x168)!==_0x62dd58[_0x17db4e(0x15a)]?_0x62dd58[_0x17db4e(0x15a)]:wn;}return wn;}return _0x5d1ac4;}[_0x4ab944(0x156)](_0x583fef,_0x29c026){const _0x289dec=_0x4ab944;this[_0x289dec(0x15f)][_0x289dec(0x179)][_0x289dec(0x128)]&&_0x583fef[_0x289dec(0x10f)][_0x289dec(0x11e)](this[_0x289dec(0x15f)][_0x289dec(0x179)][_0x289dec(0x128)]),_0x583fef[_0x289dec(0x110)][_0x289dec(0x15a)]=_0x29c026,_0x583fef[_0x289dec(0x110)][_0x289dec(0x151)]=_0x289dec(0x11b),_0x583fef[_0x289dec(0x110)][_0x289dec(0xed)]=_0x289dec(0x169),_0x583fef[_0x289dec(0x110)][_0x289dec(0xf7)]=_0x289dec(0x169),_0x583fef[_0x289dec(0x110)][_0x289dec(0x10e)]='0',_0x583fef[_0x289dec(0x110)][_0x289dec(0x174)]=_0x289dec(0x10a),_0x583fef[_0x289dec(0x110)][_0x289dec(0x148)]='-1',_0x583fef[_0x289dec(0x110)][_0x289dec(0x16f)]=_0x289dec(0xe9),_0x583fef[_0x289dec(0x110)][_0x289dec(0x16e)]=_0x289dec(0x161),_0x583fef[_0x289dec(0x110)][_0x289dec(0x157)]=_0x289dec(0x162);}[_0x4ab944(0x117)](_0x1cf0ac){const _0x512054=_0x4ab944;_0x1cf0ac[_0x512054(0x143)](({element:_0x297bba,originalDisplay:_0x67955f,originalVisibility:_0x3bbf65})=>{const _0x382cc9=_0x512054;_0x297bba[_0x382cc9(0x110)][_0x382cc9(0x16e)]=_0x67955f,_0x297bba[_0x382cc9(0x110)][_0x382cc9(0x16f)]=_0x3bbf65;});}[_0x4ab944(0x102)](_0x55ec3f){const _0x17f6d9=_0x4ab944,_0x21ef24=[];let _0x11b402=_0x55ec3f;for(;_0x11b402&&_0x11b402!==document[_0x17f6d9(0xfa)];){const _0x4a8fc6=window[_0x17f6d9(0x106)](_0x11b402);_0x17f6d9(0x10a)!==_0x4a8fc6[_0x17f6d9(0x16e)]&&_0x17f6d9(0x132)!==_0x4a8fc6[_0x17f6d9(0x16f)]||(_0x21ef24[_0x17f6d9(0xf4)]({'element':_0x11b402,'originalDisplay':_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16e)],'originalVisibility':_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16f)]}),_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16e)]=_0x17f6d9(0xe5),_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16f)]=_0x17f6d9(0x159)),_0x11b402=_0x11b402[_0x17f6d9(0x114)];}return _0x21ef24;}[_0x4ab944(0x13a)](){const _0x410b25=_0x4ab944;let _0x5977d8,_0x1d5d15;return this[_0x410b25(0x139)]?.[_0x410b25(0xff)]?(_0x5977d8=this[_0x410b25(0x139)][_0x410b25(0xff)][_0x410b25(0x11c)](!0x0),_0x1d5d15=this[_0x410b25(0x121)](_0x5977d8)):(_0x5977d8=document[_0x410b25(0x14f)](_0x410b25(0xf5)),_0x1d5d15=_0x5977d8),{'calculationContainer':_0x5977d8,'targetContainer':_0x1d5d15};}[_0x4ab944(0x147)](){const _0x4b577e=_0x4ab944,{calculationContainer:_0x413f21,targetContainer:_0x4b3501}=this[_0x4b577e(0x13a)](),_0x24d7d8=this[_0x4b577e(0x14d)]();this[_0x4b577e(0x156)](_0x413f21,_0x24d7d8);const _0x39d475=this[_0x4b577e(0x139)]?.[_0x4b577e(0xff)]||this[_0x4b577e(0x15d)],_0x500b6f=_0x39d475?.[_0x4b577e(0x114)];_0x500b6f?_0x500b6f[_0x4b577e(0xfb)](_0x413f21):document[_0x4b577e(0xfa)][_0x4b577e(0xfb)](_0x413f21),_0x413f21[_0x4b577e(0x120)]=_0x4b3501;const _0x530809=this[_0x4b577e(0x102)](_0x500b6f||null);return _0x413f21[_0x4b577e(0x124)],_0x413f21[_0x4b577e(0xf1)]=_0x530809,_0x413f21;}[_0x4ab944(0x16a)](_0x4aedec,_0x91861b){const _0x1f2da0=_0x4ab944,_0x170ab2=_0x4aedec[_0x1f2da0(0x120)]||_0x4aedec,_0x1bc76c=[],{rowCount:_0x36c5cb}=this[_0x1f2da0(0xeb)](_0x170ab2,_0x91861b);if(_0x36c5cb<=this[_0x1f2da0(0x15f)][_0x1f2da0(0x11a)])return _0x1bc76c;const _0x245506=_0x91861b[_0x1f2da0(0x14a)]();for(;_0x245506[_0x1f2da0(0x13e)]>0x0;){if(this[_0x1f2da0(0xf2)](_0x4aedec,_0x170ab2,_0x245506)){const _0xba11c1=_0x91861b[_0x1f2da0(0xfc)](_0x1982a7=>!_0x245506[_0x1f2da0(0x14c)](_0x1982a7));_0x1bc76c[_0x1f2da0(0xf4)](..._0xba11c1);break;}if(!_0x245506[_0x1f2da0(0x12f)]())break;}return _0x1bc76c;}[_0x4ab944(0xeb)](_0x4930f7,_0x10490f){const _0xf30d01=_0x4ab944;_0x4930f7[_0xf30d01(0x144)]='',_0x10490f[_0xf30d01(0x143)](_0x2d8d4c=>{const _0x58ee47=_0xf30d01;if(_0x2d8d4c[_0x58ee47(0xff)]){const _0x1a1794=_0x2d8d4c[_0x58ee47(0xff)][_0x58ee47(0x11c)](!0x0);_0x4930f7[_0x58ee47(0xfb)](_0x1a1794);}}),_0x4930f7[_0xf30d01(0x124)];const _0x96e796=_0x4930f7[_0xf30d01(0x12c)],_0x5a7713=[];return Array[_0xf30d01(0x163)](_0x96e796)[_0xf30d01(0x143)](_0x3e9291=>{const _0x249bc7=_0xf30d01,_0x3ebd94=_0x3e9291[_0x249bc7(0x12b)]()[_0x249bc7(0xed)];_0x5a7713[_0x249bc7(0x176)](_0x15bf93=>Math[_0x249bc7(0xfe)](_0x15bf93-_0x3ebd94)<this[_0x249bc7(0x15f)][_0x249bc7(0x135)])||_0x5a7713[_0x249bc7(0xf4)](_0x3ebd94);}),{'rowCount':_0x5a7713[_0xf30d01(0x13e)]};}[_0x4ab944(0x141)](){const _0xa87372=_0x4ab944,_0x9a55b7=document[_0xa87372(0x14f)](_0xa87372(0xf8));return _0x9a55b7[_0xa87372(0x131)]=this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x12d)],this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x17b)]&&_0x9a55b7[_0xa87372(0x10f)][_0xa87372(0x11e)](this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x17b)]),_0x9a55b7[_0xa87372(0x155)]=_0xa87372(0x12a),_0x9a55b7;}[_0x4ab944(0xf2)](_0x6443b0,_0x4a6abf,_0x55514a){const _0x257b9a=_0x4ab944;this[_0x257b9a(0xeb)](_0x4a6abf,_0x55514a);const _0x4b4627=this[_0x257b9a(0x141)]();_0x6443b0[_0x257b9a(0xfb)](_0x4b4627),_0x6443b0[_0x257b9a(0x124)];const _0x4ff50e=[..._0x4a6abf[_0x257b9a(0x12c)],_0x4b4627],_0x475658=[];_0x4ff50e[_0x257b9a(0x143)](_0x3e11db=>{const _0x26b9e9=_0x257b9a,_0x378d5a=_0x3e11db[_0x26b9e9(0x12b)]()[_0x26b9e9(0xed)];_0x475658[_0x26b9e9(0x176)](_0x545264=>Math[_0x26b9e9(0xfe)](_0x545264-_0x378d5a)<this[_0x26b9e9(0x15f)][_0x26b9e9(0x135)])||_0x475658[_0x26b9e9(0xf4)](_0x378d5a);});const _0x1e69ad=_0x475658[_0x257b9a(0x13e)];return _0x4b4627[_0x257b9a(0xef)](),_0x1e69ad<=this[_0x257b9a(0x15f)][_0x257b9a(0x11a)];}[_0x4ab944(0x119)](_0x23b5e0,_0x528fc8){const _0x31c700=_0x4ab944;this[_0x31c700(0x165)][_0x31c700(0x150)](),this[_0x31c700(0x136)][_0x31c700(0x150)](),_0x23b5e0[_0x31c700(0x143)](_0xf8a55d=>{const _0x49e0fe=_0x31c700;_0x528fc8[_0x49e0fe(0x14c)](_0xf8a55d)?this[_0x49e0fe(0x136)][_0x49e0fe(0x11e)](_0xf8a55d):this[_0x49e0fe(0x165)][_0x49e0fe(0x11e)](_0xf8a55d);});}[_0x4ab944(0x145)](_0xe409a0){const _0x2d77d6=_0x4ab944;if(_0xe409a0>0x0&&!this[_0x2d77d6(0x172)]&&this[_0x2d77d6(0x166)](),_0xe409a0>0x0&&this[_0x2d77d6(0x172)]){const _0x3023df=''+this[_0x2d77d6(0x15f)][_0x2d77d6(0x118)]+(_0xe409a0<0x63?_0xe409a0:'99');this[_0x2d77d6(0x172)][_0x2d77d6(0x15e)]=_0x3023df;}this[_0x2d77d6(0x13b)](),this[_0x2d77d6(0xe7)](),this[_0x2d77d6(0x15b)]();}[_0x4ab944(0x109)](_0x477dc3,_0x4a9858){const _0x3b7167=_0x4ab944;this[_0x3b7167(0x119)](_0x477dc3,_0x4a9858),this[_0x3b7167(0x145)](_0x4a9858[_0x3b7167(0x13e)]);}[_0x4ab944(0x15c)](){const _0x590308=_0x4ab944;this[_0x590308(0x15d)]&&_0x590308(0x105)!=typeof IntersectionObserver&&(this[_0x590308(0x13d)]=new IntersectionObserver(_0x4c1b22=>{const _0x2dd6eb=_0x590308;_0x4c1b22[0x0][_0x2dd6eb(0xee)]&&this[_0x2dd6eb(0x171)]&&requestAnimationFrame(()=>{const _0x40f308=_0x2dd6eb;this[_0x40f308(0x130)]();});},{'threshold':0.01,'rootMargin':_0x590308(0x13f)}),this[_0x590308(0x13d)][_0x590308(0x146)](this[_0x590308(0x15d)]));}[_0x4ab944(0xe8)](){const _0x5aa775=_0x4ab944;if(!this[_0x5aa775(0x15d)])return!0x1;if(!this[_0x5aa775(0x15d)][_0x5aa775(0x115)])return!0x1;const _0x3b30a1=this[_0x5aa775(0x15d)][_0x5aa775(0x12b)]();if(0x0===_0x3b30a1[_0x5aa775(0x15a)]||0x0===_0x3b30a1[_0x5aa775(0x112)])return!0x1;const _0x22dcc3=window[_0x5aa775(0x12e)]||document[_0x5aa775(0x100)][_0x5aa775(0xfd)],_0x408d81=window[_0x5aa775(0x134)]||document[_0x5aa775(0x100)][_0x5aa775(0x16d)],_0x3106f8=0xc8;return _0x3b30a1[_0x5aa775(0x153)]>=-0xc8&&_0x3b30a1[_0x5aa775(0xed)]<=_0x22dcc3+_0x3106f8&&_0x3b30a1[_0x5aa775(0x123)]>=-0xc8&&_0x3b30a1[_0x5aa775(0xf7)]<=_0x408d81+_0x3106f8;}}
23
+ const _0x103eef=_0x5c94;(function(_0x49d17c,_0x2090ad){const _0x5b75ff=_0x5c94,_0x529334=_0x49d17c();while(!![]){try{const _0x65dc69=parseInt(_0x5b75ff(0x183))/0x1*(-parseInt(_0x5b75ff(0x17f))/0x2)+parseInt(_0x5b75ff(0x1ba))/0x3+-parseInt(_0x5b75ff(0x15f))/0x4*(-parseInt(_0x5b75ff(0x1ae))/0x5)+-parseInt(_0x5b75ff(0x1a6))/0x6+-parseInt(_0x5b75ff(0x1d2))/0x7+-parseInt(_0x5b75ff(0x1a7))/0x8+-parseInt(_0x5b75ff(0x175))/0x9*(-parseInt(_0x5b75ff(0x196))/0xa);if(_0x65dc69===_0x2090ad)break;else _0x529334['push'](_0x529334['shift']());}catch(_0x14fa2c){_0x529334['push'](_0x529334['shift']());}}}(_0x36ff,0x81be6));import{View as _0x48e354,BalloonPanelView as _0x3f17ca,ButtonView as _0x5ab417,clickOutsideHandler as _0x2ab105}from'ckeditor5/src/ui.js';import{Collection as _0x437402}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x103eef(0x17d);function _0x5c94(_0x54f1a3,_0x26f3e0){const _0x36ff17=_0x36ff();return _0x5c94=function(_0x5c94db,_0xd977c){_0x5c94db=_0x5c94db-0x157;let _0x402d43=_0x36ff17[_0x5c94db];return _0x402d43;},_0x5c94(_0x54f1a3,_0x26f3e0);}function _0x36ff(){const _0x858061=['auto','_createShowMoreButtonView','opacity','execute','_createCalculationContainer','showBalloonPanel','_createContainerElements','appendChild','controlsButton','width','setTemplate','_distributeChips','block\x20!important','visible','141564VHkmXV','children','extendTemplate','_visibleChips','overflowContainer','_createMockButton','destroy','_applyOverflowResults','_ancestorsToRestore','pointerEvents','height','_parentView','_createShowMoreButton','pin','isOn','visible\x20!important','show','slice','length','push','_renderChipsAndCountRows','_intersectionObserver','81AOecso','content','top','absolute','_handleShowMoreButtonClick','_updateShowMoreButtonVisibility','_targetContainer','filter','300px','isIntersecting','2049586cQqdTJ','_calculateOverflowInContainer','disableAnimationOnEnter','.ck-ai-chat','1cpbQnG','clientHeight','left','calculationContainer','hidden','showMoreButtonView','style','_showMoreBalloonPanelView','cloneNode','_locale','getBoundingClientRect','className','rowDetectionTolerance','_testButtonFit','display','render','innerHTML','div','clientWidth','2197110NFkwue','createElement','maxVisibleRows','_makeAncestorsVisible','set','isConnected','innerWidth','_config','disconnect','button','showMoreLabelPrefix','none','observe','body','visibility','_showMoreButtonView','716514WroQqj','8206472dJsYNn','_setupVisibilityObserver','boxSizing','-9999px','_pendingCalculation','_restoreAncestorVisibility','hideBalloonPanel','15xeqMsR','pop','clear','undefined','overflowChips','_updateOverflowUI','position','remove','classList','border-box','showMoreBalloon','_checkAndHandleOverflow','2190588BYDcQA','innerHeight','_containerElement','querySelector','tagName','_applyCalculationStyles','0px','add','_isContainerVisible','reorganizeChips','element','_findTargetContainer','toLowerCase','hide','abs','isVisible','bottom','_bodyCollection','_createShowMoreBalloonPanelView','some','label','block','_repinBalloonPanel','getComputedStyle','786219PcbDqQ','from','parentElement','+\x201','forEach','setContainerElement','_overflowChips','50px','right','offsetWidth','zIndex','_updateBalloonContent','cssClasses','ck-calculation-container','textContent','_calculateContainerWidth','showMoreButton','includes','documentElement'];_0x36ff=function(){return _0x858061;};return _0x36ff();}export class AIChatChipsOverflowManager{[_0x103eef(0x18c)];[_0x103eef(0x19d)];[_0x103eef(0x162)];[_0x103eef(0x1d8)];[_0x103eef(0x1a5)]=null;[_0x103eef(0x18a)]=null;[_0x103eef(0x1bc)]=null;[_0x103eef(0x1cb)];[_0x103eef(0x16a)]=null;[_0x103eef(0x174)]=null;[_0x103eef(0x1ab)]=!0x1;constructor(_0x2fb68,_0x2e9031,_0x273aec,_0x46bc6f,_0x322e2f){const _0x3f3c56=_0x103eef;this[_0x3f3c56(0x18c)]=_0x2fb68,this[_0x3f3c56(0x162)]=_0x2e9031,this[_0x3f3c56(0x19d)]={...hn,..._0x273aec,'cssClasses':{'controlsButton':'','calculationContainer':_0x3f3c56(0x1df),..._0x273aec[_0x3f3c56(0x1de)]}},this[_0x3f3c56(0x1d8)]=new _0x437402(),this[_0x3f3c56(0x1cb)]=_0x46bc6f,this[_0x3f3c56(0x16a)]=_0x322e2f||null;}[_0x103eef(0x1d7)](_0x1624a1){const _0x479938=_0x103eef;this[_0x479938(0x174)]&&(this[_0x479938(0x174)][_0x479938(0x19e)](),this[_0x479938(0x174)]=null),this[_0x479938(0x1bc)]=_0x1624a1,this[_0x479938(0x1a8)]();}get[_0x103eef(0x188)](){const _0x28d8f7=_0x103eef;return this[_0x28d8f7(0x1a5)];}get[_0x103eef(0x1b2)](){const _0x4cb34a=_0x103eef;return this[_0x4cb34a(0x1d8)];}[_0x103eef(0x1c3)](){requestAnimationFrame(()=>{const _0x3cf56e=_0x5c94;this[_0x3cf56e(0x1b9)]();});}[_0x103eef(0x1ea)](){const _0x1a22a5=_0x103eef;this[_0x1a22a5(0x1a5)]&&this[_0x1a22a5(0x18a)]&&(this[_0x1a22a5(0x1dd)](),this[_0x1a22a5(0x1a5)][_0x1a22a5(0x16d)]=!0x0,this[_0x1a22a5(0x18a)][_0x1a22a5(0x16f)](),this[_0x1a22a5(0x18a)][_0x1a22a5(0x16c)]({'target':this[_0x1a22a5(0x1a5)][_0x1a22a5(0x1c4)],'limiter':document[_0x1a22a5(0x1bd)](_0x1a22a5(0x182))}));}[_0x103eef(0x1ad)](){const _0x3d75d9=_0x103eef;this[_0x3d75d9(0x1a5)]&&this[_0x3d75d9(0x18a)]&&(this[_0x3d75d9(0x1a5)][_0x3d75d9(0x16d)]=!0x1,this[_0x3d75d9(0x18a)][_0x3d75d9(0x1c7)]());}[_0x103eef(0x1b0)](){const _0x242c76=_0x103eef;this[_0x242c76(0x1d8)][_0x242c76(0x1b0)](),this[_0x242c76(0x1ad)](),this[_0x242c76(0x17a)](),this[_0x242c76(0x1a5)]&&(this[_0x242c76(0x1a5)][_0x242c76(0x1ce)]=''),this[_0x242c76(0x18a)]&&this[_0x242c76(0x18a)][_0x242c76(0x176)][_0x242c76(0x1b0)]();}[_0x103eef(0x165)](){const _0x40fc11=_0x103eef;this[_0x40fc11(0x174)]&&(this[_0x40fc11(0x174)][_0x40fc11(0x19e)](),this[_0x40fc11(0x174)]=null),this[_0x40fc11(0x1a5)]&&(this[_0x40fc11(0x1a5)][_0x40fc11(0x165)](),this[_0x40fc11(0x1a5)]=null),this[_0x40fc11(0x18a)]&&(this[_0x40fc11(0x18a)][_0x40fc11(0x165)](),this[_0x40fc11(0x18a)]=null);}[_0x103eef(0x1b9)](){const _0x33567c=_0x103eef;if(!this[_0x33567c(0x1bc)])return;if(!this[_0x33567c(0x1c2)]())return void(this[_0x33567c(0x1ab)]=!0x0);this[_0x33567c(0x1ab)]=!0x1;const _0x51a600=[...this[_0x33567c(0x162)],...this[_0x33567c(0x1d8)]],_0x53186f=this[_0x33567c(0x1e9)](),_0x2e8b8b=this[_0x33567c(0x180)](_0x53186f,_0x51a600),_0x3f35af=_0x53186f[_0x33567c(0x167)];_0x3f35af&&this[_0x33567c(0x1ac)](_0x3f35af),_0x53186f[_0x33567c(0x1b5)](),this[_0x33567c(0x166)](_0x51a600,_0x2e8b8b);}[_0x103eef(0x16b)](){const _0x28c2cc=_0x103eef;this[_0x28c2cc(0x1a5)]=this[_0x28c2cc(0x1e6)](),this[_0x28c2cc(0x18a)]=this[_0x28c2cc(0x1cc)](),this[_0x28c2cc(0x1a5)][_0x28c2cc(0x192)](),this[_0x28c2cc(0x1bc)][_0x28c2cc(0x158)](this[_0x28c2cc(0x1a5)][_0x28c2cc(0x1c4)]),this[_0x28c2cc(0x1a5)]['on'](_0x28c2cc(0x1e8),()=>{const _0x431325=_0x28c2cc;this[_0x431325(0x179)]();}),_0x2ab105({'emitter':this[_0x28c2cc(0x18a)],'contextElements':[this[_0x28c2cc(0x18a)][_0x28c2cc(0x1c4)],this[_0x28c2cc(0x1a5)][_0x28c2cc(0x1c4)]],'callback':()=>this[_0x28c2cc(0x1ad)](),'activator':()=>this[_0x28c2cc(0x1a5)][_0x28c2cc(0x16d)]});}[_0x103eef(0x1e6)](){const _0x2a2839=_0x103eef,_0x50e128=new _0x5ab417(this[_0x2a2839(0x18c)]);_0x50e128[_0x2a2839(0x19a)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x475399=[this[_0x2a2839(0x19d)][_0x2a2839(0x1de)][_0x2a2839(0x1e2)]];return this[_0x2a2839(0x19d)][_0x2a2839(0x1de)][_0x2a2839(0x159)]&&_0x475399[_0x2a2839(0x172)](this[_0x2a2839(0x19d)][_0x2a2839(0x1de)][_0x2a2839(0x159)]),_0x50e128[_0x2a2839(0x161)]({'attributes':{'class':_0x475399}}),_0x50e128;}[_0x103eef(0x1cc)](){const _0x6b1284=_0x103eef,_0x16f8b2=new _0x3f17ca(this[_0x6b1284(0x18c)]);return _0x16f8b2[_0x6b1284(0x161)]({'attributes':{'class':this[_0x6b1284(0x19d)][_0x6b1284(0x1de)][_0x6b1284(0x1b8)]}}),this[_0x6b1284(0x1cb)][_0x6b1284(0x1c1)](_0x16f8b2),_0x16f8b2;}[_0x103eef(0x1dd)](){const _0xd7e180=_0x103eef;if(this[_0xd7e180(0x18a)]&&(this[_0xd7e180(0x18a)][_0xd7e180(0x176)][_0xd7e180(0x1b0)](),this[_0xd7e180(0x1d8)][_0xd7e180(0x171)]>0x0)){this[_0xd7e180(0x1d8)][_0xd7e180(0x1d6)](_0x17208c=>{const _0x512666=_0xd7e180;_0x17208c[_0x512666(0x181)]();});const _0x557853=new _0x48e354(this[_0xd7e180(0x18c)]);_0x557853[_0xd7e180(0x15b)]({'tag':_0xd7e180(0x194),'attributes':{'class':this[_0xd7e180(0x19d)][_0xd7e180(0x1de)][_0xd7e180(0x163)]},'children':this[_0xd7e180(0x1d8)]}),this[_0xd7e180(0x18a)][_0xd7e180(0x176)][_0xd7e180(0x1c1)](_0x557853);}}[_0x103eef(0x179)](){const _0x450c57=_0x103eef;this[_0x450c57(0x1a5)][_0x450c57(0x16d)]?this[_0x450c57(0x1ad)]():this[_0x450c57(0x1ea)]();}[_0x103eef(0x17a)](){const _0x191a2f=_0x103eef,_0x27ac75=this[_0x191a2f(0x1d8)][_0x191a2f(0x171)]>0x0;this[_0x191a2f(0x1a5)]?.[_0x191a2f(0x1c4)]&&(this[_0x191a2f(0x1a5)][_0x191a2f(0x1c4)][_0x191a2f(0x189)][_0x191a2f(0x191)]=_0x27ac75?'':_0x191a2f(0x1a1));}[_0x103eef(0x1d0)](){const _0x5a3a3d=_0x103eef;this[_0x5a3a3d(0x1a5)]?.[_0x5a3a3d(0x16d)]&&this[_0x5a3a3d(0x18a)]?.[_0x5a3a3d(0x1c9)]&&this[_0x5a3a3d(0x1a5)][_0x5a3a3d(0x1c4)]&&this[_0x5a3a3d(0x18a)][_0x5a3a3d(0x16c)]({'target':this[_0x5a3a3d(0x1a5)][_0x5a3a3d(0x1c4)],'limiter':document[_0x5a3a3d(0x1bd)](_0x5a3a3d(0x182))});}[_0x103eef(0x1c5)](_0x58f1b3){const _0x41dd07=_0x103eef,_0x72461b=this[_0x41dd07(0x1bc)]?.[_0x41dd07(0x1be)][_0x41dd07(0x1c6)]()||_0x41dd07(0x194),_0x2580fa=this[_0x41dd07(0x1bc)]?.[_0x41dd07(0x1b6)];if(_0x2580fa){const _0x109913=_0x2580fa[0x0]||'',_0x321884=_0x58f1b3[_0x41dd07(0x1bd)]('.'+_0x109913),_0x375502=_0x58f1b3[_0x41dd07(0x1bd)](_0x72461b);return _0x321884||_0x375502||_0x58f1b3;}return _0x58f1b3[_0x41dd07(0x1bd)](_0x72461b)||_0x58f1b3;}[_0x103eef(0x1e1)](){const _0x381aee=_0x103eef,_0x4caafe=this[_0x381aee(0x16a)]?.[_0x381aee(0x1c4)]||this[_0x381aee(0x1bc)];if(!_0x4caafe)return ln;const _0xbca312=window[_0x381aee(0x1d1)](_0x4caafe)[_0x381aee(0x15a)];if(_0x381aee(0x1e5)===_0xbca312||_0x381aee(0x1c0)===_0xbca312||!_0xbca312){const _0x511007=_0x4caafe[_0x381aee(0x1d4)];if(_0x511007){const _0x8f352f=window[_0x381aee(0x1d1)](_0x511007);return _0x381aee(0x1e5)!==_0x8f352f[_0x381aee(0x15a)]?_0x8f352f[_0x381aee(0x15a)]:ln;}return ln;}return _0xbca312;}[_0x103eef(0x1bf)](_0x85f8c4,_0x50dcf1){const _0x3c81b1=_0x103eef;this[_0x3c81b1(0x19d)][_0x3c81b1(0x1de)][_0x3c81b1(0x186)]&&_0x85f8c4[_0x3c81b1(0x1b6)][_0x3c81b1(0x1c1)](this[_0x3c81b1(0x19d)][_0x3c81b1(0x1de)][_0x3c81b1(0x186)]),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x15a)]=_0x50dcf1,_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1b4)]=_0x3c81b1(0x178),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x177)]=_0x3c81b1(0x1aa),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x185)]=_0x3c81b1(0x1aa),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1e7)]='0',_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x168)]=_0x3c81b1(0x1a1),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1dc)]='-1',_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1a4)]=_0x3c81b1(0x16e),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x191)]=_0x3c81b1(0x15d),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1a9)]=_0x3c81b1(0x1b7);}[_0x103eef(0x1ac)](_0x39beda){const _0xafcf4=_0x103eef;_0x39beda[_0xafcf4(0x1d6)](({element:_0x55614e,originalDisplay:_0x202ca1,originalVisibility:_0xdd452c})=>{const _0x29bb2b=_0xafcf4;_0x55614e[_0x29bb2b(0x189)][_0x29bb2b(0x191)]=_0x202ca1,_0x55614e[_0x29bb2b(0x189)][_0x29bb2b(0x1a4)]=_0xdd452c;});}[_0x103eef(0x199)](_0x4bb0cc){const _0x583720=_0x103eef,_0x172ed0=[];let _0x1d11d7=_0x4bb0cc;for(;_0x1d11d7&&_0x1d11d7!==document[_0x583720(0x1a3)];){const _0xcdb2d5=window[_0x583720(0x1d1)](_0x1d11d7);_0x583720(0x1a1)!==_0xcdb2d5[_0x583720(0x191)]&&_0x583720(0x187)!==_0xcdb2d5[_0x583720(0x1a4)]||(_0x172ed0[_0x583720(0x172)]({'element':_0x1d11d7,'originalDisplay':_0x1d11d7[_0x583720(0x189)][_0x583720(0x191)],'originalVisibility':_0x1d11d7[_0x583720(0x189)][_0x583720(0x1a4)]}),_0x1d11d7[_0x583720(0x189)][_0x583720(0x191)]=_0x583720(0x1cf),_0x1d11d7[_0x583720(0x189)][_0x583720(0x1a4)]=_0x583720(0x15e)),_0x1d11d7=_0x1d11d7[_0x583720(0x1d4)];}return _0x172ed0;}[_0x103eef(0x157)](){const _0x428ff4=_0x103eef;let _0xb7a8b0,_0x11d9c9;return this[_0x428ff4(0x16a)]?.[_0x428ff4(0x1c4)]?(_0xb7a8b0=this[_0x428ff4(0x16a)][_0x428ff4(0x1c4)][_0x428ff4(0x18b)](!0x0),_0x11d9c9=this[_0x428ff4(0x1c5)](_0xb7a8b0)):(_0xb7a8b0=document[_0x428ff4(0x197)](_0x428ff4(0x194)),_0x11d9c9=_0xb7a8b0),{'calculationContainer':_0xb7a8b0,'targetContainer':_0x11d9c9};}[_0x103eef(0x1e9)](){const _0x1e6bee=_0x103eef,{calculationContainer:_0x392d5d,targetContainer:_0x43b819}=this[_0x1e6bee(0x157)](),_0x562053=this[_0x1e6bee(0x1e1)]();this[_0x1e6bee(0x1bf)](_0x392d5d,_0x562053);const _0x23a88d=this[_0x1e6bee(0x16a)]?.[_0x1e6bee(0x1c4)]||this[_0x1e6bee(0x1bc)],_0x7bab9c=_0x23a88d?.[_0x1e6bee(0x1d4)];_0x7bab9c?_0x7bab9c[_0x1e6bee(0x158)](_0x392d5d):document[_0x1e6bee(0x1a3)][_0x1e6bee(0x158)](_0x392d5d),_0x392d5d[_0x1e6bee(0x17b)]=_0x43b819;const _0x3cb8f6=this[_0x1e6bee(0x199)](_0x7bab9c||null);return _0x392d5d[_0x1e6bee(0x1db)],_0x392d5d[_0x1e6bee(0x167)]=_0x3cb8f6,_0x392d5d;}[_0x103eef(0x180)](_0x3e8b66,_0x5b83fe){const _0x3a3b19=_0x103eef,_0x1586bc=_0x3e8b66[_0x3a3b19(0x17b)]||_0x3e8b66,_0x5a6de4=[],{rowCount:_0x5d8a48}=this[_0x3a3b19(0x173)](_0x1586bc,_0x5b83fe);if(_0x5d8a48<=this[_0x3a3b19(0x19d)][_0x3a3b19(0x198)])return _0x5a6de4;const _0x43c182=_0x5b83fe[_0x3a3b19(0x170)]();for(;_0x43c182[_0x3a3b19(0x171)]>0x0;){if(this[_0x3a3b19(0x190)](_0x3e8b66,_0x1586bc,_0x43c182)){const _0xf07569=_0x5b83fe[_0x3a3b19(0x17c)](_0x2c53df=>!_0x43c182[_0x3a3b19(0x1e3)](_0x2c53df));_0x5a6de4[_0x3a3b19(0x172)](..._0xf07569);break;}if(!_0x43c182[_0x3a3b19(0x1af)]())break;}return _0x5a6de4;}[_0x103eef(0x173)](_0x1333e1,_0x30e8f5){const _0x4748ca=_0x103eef;_0x1333e1[_0x4748ca(0x193)]='',_0x30e8f5[_0x4748ca(0x1d6)](_0x327592=>{const _0x495348=_0x4748ca;if(_0x327592[_0x495348(0x1c4)]){const _0x5cd011=_0x327592[_0x495348(0x1c4)][_0x495348(0x18b)](!0x0);_0x1333e1[_0x495348(0x158)](_0x5cd011);}}),_0x1333e1[_0x4748ca(0x1db)];const _0x4269b4=_0x1333e1[_0x4748ca(0x160)],_0x28beea=[];return Array[_0x4748ca(0x1d3)](_0x4269b4)[_0x4748ca(0x1d6)](_0x5e133a=>{const _0x3baaa5=_0x4748ca,_0x452a16=_0x5e133a[_0x3baaa5(0x18d)]()[_0x3baaa5(0x177)];_0x28beea[_0x3baaa5(0x1cd)](_0x39e48a=>Math[_0x3baaa5(0x1c8)](_0x39e48a-_0x452a16)<this[_0x3baaa5(0x19d)][_0x3baaa5(0x18f)])||_0x28beea[_0x3baaa5(0x172)](_0x452a16);}),{'rowCount':_0x28beea[_0x4748ca(0x171)]};}[_0x103eef(0x164)](){const _0x237dd0=_0x103eef,_0x5cd663=document[_0x237dd0(0x197)](_0x237dd0(0x19f));return _0x5cd663[_0x237dd0(0x18e)]=this[_0x237dd0(0x19d)][_0x237dd0(0x1de)][_0x237dd0(0x1e2)],this[_0x237dd0(0x19d)][_0x237dd0(0x1de)][_0x237dd0(0x159)]&&_0x5cd663[_0x237dd0(0x1b6)][_0x237dd0(0x1c1)](this[_0x237dd0(0x19d)][_0x237dd0(0x1de)][_0x237dd0(0x159)]),_0x5cd663[_0x237dd0(0x1e0)]=_0x237dd0(0x1d5),_0x5cd663;}[_0x103eef(0x190)](_0x29dac1,_0x5e55d5,_0x47a289){const _0x459a57=_0x103eef;this[_0x459a57(0x173)](_0x5e55d5,_0x47a289);const _0x2d8eae=this[_0x459a57(0x164)]();_0x29dac1[_0x459a57(0x158)](_0x2d8eae),_0x29dac1[_0x459a57(0x1db)];const _0x4d5a5a=[..._0x5e55d5[_0x459a57(0x160)],_0x2d8eae],_0x48708a=[];_0x4d5a5a[_0x459a57(0x1d6)](_0x3f3853=>{const _0xe6aefa=_0x459a57,_0x123a99=_0x3f3853[_0xe6aefa(0x18d)]()[_0xe6aefa(0x177)];_0x48708a[_0xe6aefa(0x1cd)](_0x37abed=>Math[_0xe6aefa(0x1c8)](_0x37abed-_0x123a99)<this[_0xe6aefa(0x19d)][_0xe6aefa(0x18f)])||_0x48708a[_0xe6aefa(0x172)](_0x123a99);});const _0x5136f8=_0x48708a[_0x459a57(0x171)];return _0x2d8eae[_0x459a57(0x1b5)](),_0x5136f8<=this[_0x459a57(0x19d)][_0x459a57(0x198)];}[_0x103eef(0x15c)](_0x46de99,_0x50ef95){const _0x269bef=_0x103eef;this[_0x269bef(0x162)][_0x269bef(0x1b0)](),this[_0x269bef(0x1d8)][_0x269bef(0x1b0)](),_0x46de99[_0x269bef(0x1d6)](_0x491dfa=>{const _0x43d123=_0x269bef;_0x50ef95[_0x43d123(0x1e3)](_0x491dfa)?this[_0x43d123(0x1d8)][_0x43d123(0x1c1)](_0x491dfa):this[_0x43d123(0x162)][_0x43d123(0x1c1)](_0x491dfa);});}[_0x103eef(0x1b3)](_0x41ce4e){const _0x2037ea=_0x103eef;if(_0x41ce4e>0x0&&!this[_0x2037ea(0x1a5)]&&this[_0x2037ea(0x16b)](),_0x41ce4e>0x0&&this[_0x2037ea(0x1a5)]){const _0x3c2976=''+this[_0x2037ea(0x19d)][_0x2037ea(0x1a0)]+(_0x41ce4e<0x63?_0x41ce4e:'99');this[_0x2037ea(0x1a5)][_0x2037ea(0x1ce)]=_0x3c2976;}this[_0x2037ea(0x1dd)](),this[_0x2037ea(0x17a)](),this[_0x2037ea(0x1d0)]();}[_0x103eef(0x166)](_0x57563d,_0x2661e4){const _0x2ff5f3=_0x103eef;this[_0x2ff5f3(0x15c)](_0x57563d,_0x2661e4),this[_0x2ff5f3(0x1b3)](_0x2661e4[_0x2ff5f3(0x171)]);}[_0x103eef(0x1a8)](){const _0x2b116c=_0x103eef;this[_0x2b116c(0x1bc)]&&_0x2b116c(0x1b1)!=typeof IntersectionObserver&&(this[_0x2b116c(0x174)]=new IntersectionObserver(_0x5f4ef0=>{const _0x2149fd=_0x2b116c;_0x5f4ef0[0x0][_0x2149fd(0x17e)]&&this[_0x2149fd(0x1ab)]&&requestAnimationFrame(()=>{const _0x262742=_0x2149fd;this[_0x262742(0x1b9)]();});},{'threshold':0.01,'rootMargin':_0x2b116c(0x1d9)}),this[_0x2b116c(0x174)][_0x2b116c(0x1a2)](this[_0x2b116c(0x1bc)]));}[_0x103eef(0x1c2)](){const _0x3df925=_0x103eef;if(!this[_0x3df925(0x1bc)])return!0x1;if(!this[_0x3df925(0x1bc)][_0x3df925(0x19b)])return!0x1;const _0x4d54d8=this[_0x3df925(0x1bc)][_0x3df925(0x18d)]();if(0x0===_0x4d54d8[_0x3df925(0x15a)]||0x0===_0x4d54d8[_0x3df925(0x169)])return!0x1;const _0x35ef1b=window[_0x3df925(0x1bb)]||document[_0x3df925(0x1e4)][_0x3df925(0x184)],_0x20adfe=window[_0x3df925(0x19c)]||document[_0x3df925(0x1e4)][_0x3df925(0x195)],_0x333ba4=0xc8;return _0x4d54d8[_0x3df925(0x1ca)]>=-0xc8&&_0x4d54d8[_0x3df925(0x177)]<=_0x35ef1b+_0x333ba4&&_0x4d54d8[_0x3df925(0x1da)]>=-0xc8&&_0x4d54d8[_0x3df925(0x185)]<=_0x20adfe+_0x333ba4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3680(_0x29a67b,_0x477fca){const _0x2e7532=_0x2e75();return _0x3680=function(_0x36800f,_0x432068){_0x36800f=_0x36800f-0x1a8;let _0x5355a1=_0x2e7532[_0x36800f];return _0x5355a1;},_0x3680(_0x29a67b,_0x477fca);}const _0x2a89aa=_0x3680;(function(_0x5e0d0e,_0x3ca934){const _0x4028b1=_0x3680,_0x117ede=_0x5e0d0e();while(!![]){try{const _0x3353d1=parseInt(_0x4028b1(0x1bb))/0x1*(-parseInt(_0x4028b1(0x1b5))/0x2)+parseInt(_0x4028b1(0x1c4))/0x3+-parseInt(_0x4028b1(0x1dd))/0x4*(parseInt(_0x4028b1(0x1d9))/0x5)+-parseInt(_0x4028b1(0x1b8))/0x6+parseInt(_0x4028b1(0x1ac))/0x7*(-parseInt(_0x4028b1(0x1c3))/0x8)+-parseInt(_0x4028b1(0x1d0))/0x9*(parseInt(_0x4028b1(0x1ce))/0xa)+parseInt(_0x4028b1(0x1b6))/0xb;if(_0x3353d1===_0x3ca934)break;else _0x117ede['push'](_0x117ede['shift']());}catch(_0x160d70){_0x117ede['push'](_0x117ede['shift']());}}}(_0x2e75,0x760dd));import{ButtonView as _0x2e5b44,IconView as _0x2e5402}from'ckeditor5/src/ui.js';import{IconClose as _0x36b0d0,IconDocument as _0x262dc9,IconFileUpload as _0xab1dec,IconLink as _0x677f03,IconSelection as _0x2401ed}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x354072}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x158a6f}from'../../../aicore/ui/aispinner.js';function _0x2e75(){const _0x9d03cb=['extendTemplate','ck-hidden','classList','_setupRemoveButtonEvent','_createIconView','ck-ai-chat-context-controls__chip-tooltip','_isAnimationOnEnterEnabled','element','140ccvPdH','ck-ai-chat-context-chip_document','262557RaSprt','_createRemoveButton','lastIndexOf','label','locale','_createLabelElement','_initializeProperties','set','type','5PgrJJo','tooltip','isLoading','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','1821364tuefxY','addEventListener','span','small','itemType','selection','bind','ck-ai-chat-context-chip__label','_createLoaderIcon','_setupTemplate','document','render','remove','ck-ai-chat-context-chip_wide','fire','setTemplate','ck-ai-chat-context-chip__type-icon','execute','56gbFAQM','ck-ai-chat-context-chip','add','content','div','_handleAnimationEndOnce','removeContextItemChip','isVisible','length','497450FpcdKx','30935861gZdFkz','_createTemplateAttributes','4873932tRHweJ','bindTemplate','ck-ai-chat-context-chip_new-chip','1LbNUQA','_createTemplateChildren','uiId','animationend','webkitAnimationEnd','removeEventListener','disableAnimationOnEnter','readonly','616744shuQZj','638256lcnvKw','slice'];_0x2e75=function(){return _0x9d03cb;};return _0x2e75();}const bn={'file':_0xab1dec,'document':_0x262dc9,'web-resource':_0x677f03,'text':_0xab1dec,'selection':_0x2401ed},Tn=_0x2a89aa(0x1ad),En=_0x2a89aa(0x1ea),An=_0x2a89aa(0x1cf),Cn=_0x2a89aa(0x1e4),In=_0x2a89aa(0x1aa),On=_0x2a89aa(0x1cb),gn='n';export class AIChatContextItemButtonView extends _0x2e5b44{constructor(_0x2f1379,_0x217fc9,_0x33ff7b,_0x71cb32,_0x11eca6=!0x1){const _0x46706e=_0x2a89aa;super(_0x2f1379),this[_0x46706e(0x1cc)]=_0x71cb32,this[_0x46706e(0x1d6)](_0x217fc9,_0x33ff7b,_0x11eca6),this[_0x46706e(0x1e6)]();}[_0x2a89aa(0x1e8)](){const _0x2451c9=_0x2a89aa;super[_0x2451c9(0x1e8)](),this[_0x2451c9(0x1cc)]&&this[_0x2451c9(0x1cd)]&&(this[_0x2451c9(0x1cd)][_0x2451c9(0x1c8)][_0x2451c9(0x1ae)](_0x2451c9(0x1ba)),this[_0x2451c9(0x1b1)](this[_0x2451c9(0x1cd)],()=>{const _0x2a01cb=_0x2451c9;this[_0x2a01cb(0x1cd)]&&this[_0x2a01cb(0x1cd)][_0x2a01cb(0x1c8)][_0x2a01cb(0x1e9)](_0x2a01cb(0x1ba));}));}[_0x2a89aa(0x1c1)](){const _0xec22c7=_0x2a89aa;this[_0xec22c7(0x1cc)]=!0x1,this[_0xec22c7(0x1cd)]&&this[_0xec22c7(0x1cd)][_0xec22c7(0x1c8)][_0xec22c7(0x1e9)](_0xec22c7(0x1ba));}[_0x2a89aa(0x1d6)](_0x44f909,_0x16a621,_0x5f8bdb){const _0x3ba96c=_0x2a89aa;this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1d3),_0x44f909[_0x3ba96c(0x1d3)]),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1da),!0x0),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1e1),_0x44f909[_0x3ba96c(0x1d8)]),this[_0x3ba96c(0x1d7)]('id',_0x44f909[_0x3ba96c(0x1bd)]),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1c2),_0x16a621),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1db),_0x5f8bdb);}[_0x2a89aa(0x1e6)](){const _0x1f929a=_0x2a89aa,_0x4eb73e=this[_0x1f929a(0x1ca)](),_0x3e23e5=this[_0x1f929a(0x1d1)](),_0x6a005c=this[_0x1f929a(0x1b9)];this[_0x1f929a(0x1a9)]({'tag':_0x1f929a(0x1b0),'attributes':this[_0x1f929a(0x1b7)](_0x6a005c),'children':this[_0x1f929a(0x1bc)](_0x4eb73e,_0x3e23e5,_0x6a005c)});}[_0x2a89aa(0x1b7)](_0x3b248d){const _0x3bb02f=_0x2a89aa;return{'class':[Tn,_0x3b248d['if'](_0x3bb02f(0x1e1),An,_0x1b594f=>_0x3bb02f(0x1e7)==_0x1b594f),_0x3b248d['if'](_0x3bb02f(0x1e1),En,_0x13194f=>_0x3bb02f(0x1e2)==_0x13194f)],'data-cke-tooltip-text':_0x3b248d['to'](_0x3bb02f(0x1d3),vn),'data-cke-tooltip-position':gn,'data-cke-tooltip-class':On};}[_0x2a89aa(0x1bc)](_0x309496,_0x5e05cc,_0x3e551c){const _0x5802f6=_0x2a89aa,_0x256cc9=this[_0x5802f6(0x1d5)](_0x3e551c),_0x3986f3=this[_0x5802f6(0x1e5)]();return this[_0x5802f6(0x1c2)]?[_0x309496,_0x256cc9]:[_0x309496,_0x3986f3,_0x256cc9,_0x5e05cc];}[_0x2a89aa(0x1d5)](_0x226ff0){const _0xc5932a=_0x2a89aa;return{'tag':_0xc5932a(0x1df),'attributes':{'class':Cn},'children':[{'text':_0x226ff0['to'](_0xc5932a(0x1d3))}]};}[_0x2a89aa(0x1d1)](){const _0x1bb282=_0x2a89aa,_0x52c277=new _0x2e5b44(this[_0x1bb282(0x1d4)]);return _0x52c277[_0x1bb282(0x1d7)]({'label':_0x354072(this[_0x1bb282(0x1d4)],_0x1bb282(0x1dc)),'icon':_0x36b0d0}),this[_0x1bb282(0x1c9)](_0x52c277),_0x52c277;}[_0x2a89aa(0x1c9)](_0x1f02bf){const _0x74ed98=_0x2a89aa;_0x1f02bf['on'](_0x74ed98(0x1ab),()=>{const _0x1fa30f=_0x74ed98;this[_0x1fa30f(0x1a8)](_0x1fa30f(0x1b2),this['id']);});}[_0x2a89aa(0x1ca)](){const _0x6d3112=_0x2a89aa,_0x3fa37c=this[_0x6d3112(0x1b9)],_0x440aaa=new _0x2e5402();return _0x440aaa[_0x6d3112(0x1af)]=bn[this[_0x6d3112(0x1e1)]],_0x440aaa[_0x6d3112(0x1c6)]({'attributes':{'class':[In,_0x3fa37c['if'](_0x6d3112(0x1db),_0x6d3112(0x1c7),_0x564e85=>_0x564e85)]}}),_0x440aaa;}[_0x2a89aa(0x1b1)](_0xa2e576,_0x100abb){const _0x19c176=_0x2a89aa;if(!_0xa2e576)return;const _0x548a85=()=>{const _0x48c5d3=_0x3680;_0x100abb(),_0xa2e576[_0x48c5d3(0x1c0)](_0x48c5d3(0x1be),_0x548a85),_0xa2e576[_0x48c5d3(0x1c0)](_0x48c5d3(0x1bf),_0x548a85);};_0xa2e576[_0x19c176(0x1de)](_0x19c176(0x1be),_0x548a85),_0xa2e576[_0x19c176(0x1de)](_0x19c176(0x1bf),_0x548a85);}[_0x2a89aa(0x1e5)](){const _0x5bcc66=_0x2a89aa,_0x13c3f0=new _0x158a6f(_0x5bcc66(0x1e0));return _0x13c3f0[_0x5bcc66(0x1e3)](_0x5bcc66(0x1b3))['to'](this,_0x5bcc66(0x1db),_0x565e23=>_0x565e23),_0x13c3f0;}}function vn(_0xfd5ec3){const _0x5ad99b=_0x2a89aa;if(!_0xfd5ec3)return _0xfd5ec3;if(_0xfd5ec3[_0x5ad99b(0x1b4)]<=0x78)return _0xfd5ec3;const _0x2b4ae4=_0xfd5ec3[_0x5ad99b(0x1c5)](0x0,0x78),_0xb18bae=_0x2b4ae4[_0x5ad99b(0x1d2)]('\x20');return(_0xb18bae>0x0?_0x2b4ae4[_0x5ad99b(0x1c5)](0x0,_0xb18bae):_0x2b4ae4)+'…';}
23
+ function _0x32dc(_0x17957b,_0x8f9bb7){const _0x53edf7=_0x53ed();return _0x32dc=function(_0x32dc5f,_0x5a45d5){_0x32dc5f=_0x32dc5f-0xcb;let _0x46299b=_0x53edf7[_0x32dc5f];return _0x46299b;},_0x32dc(_0x17957b,_0x8f9bb7);}const _0x585d47=_0x32dc;(function(_0x1e5cd9,_0xeba80f){const _0x33b1fd=_0x32dc,_0x5d218f=_0x1e5cd9();while(!![]){try{const _0x288d2b=-parseInt(_0x33b1fd(0xce))/0x1+-parseInt(_0x33b1fd(0xf5))/0x2*(parseInt(_0x33b1fd(0xef))/0x3)+-parseInt(_0x33b1fd(0xfd))/0x4+-parseInt(_0x33b1fd(0xfa))/0x5+parseInt(_0x33b1fd(0xdc))/0x6*(-parseInt(_0x33b1fd(0xdb))/0x7)+-parseInt(_0x33b1fd(0xe8))/0x8+parseInt(_0x33b1fd(0xf2))/0x9*(parseInt(_0x33b1fd(0xf1))/0xa);if(_0x288d2b===_0xeba80f)break;else _0x5d218f['push'](_0x5d218f['shift']());}catch(_0xd478f4){_0x5d218f['push'](_0x5d218f['shift']());}}}(_0x53ed,0xe1271));import{ButtonView as _0x1a42f1,IconView as _0x2512ac}from'ckeditor5/src/ui.js';import{IconClose as _0x15537c,IconDocument as _0x5e5ca1,IconFileUpload as _0x3d31b7,IconLink as _0x2e5132,IconSelection as _0x2be1e0}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x38c828}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x2bdfd7}from'../../../aicore/ui/aispinner.js';function _0x53ed(){const _0x402022=['6YQzVOx','addEventListener','removeContextItemChip','small','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createIconView','render','_createTemplateAttributes','disableAnimationOnEnter','ck-ai-chat-context-controls__chip-tooltip','slice','_setupRemoveButtonEvent','6044304GvFNuN','element','_initializeProperties','add','itemType','_createTemplateChildren','lastIndexOf','3qqdplC','div','98510XAezSF','5481ezTqqf','animationend','length','3048154KXSJss','ck-ai-chat-context-chip__label','selection','ck-ai-chat-context-chip','ck-ai-chat-context-chip_new-chip','3605805DcqLdA','readonly','type','2654876dvjDEU','_createRemoveButton','ck-hidden','_handleAnimationEndOnce','classList','tooltip','isLoading','uiId','setTemplate','_createLoaderIcon','bind','_isAnimationOnEnterEnabled','execute','locale','removeEventListener','label','content','document','ck-ai-chat-context-chip__type-icon','1086468CzRJqf','extendTemplate','bindTemplate','webkitAnimationEnd','_setupTemplate','_createLabelElement','ck-ai-chat-context-chip_document','span','remove','ck-ai-chat-context-chip_wide','set','fire','isVisible','2282497gpkIHG'];_0x53ed=function(){return _0x402022;};return _0x53ed();}const kn={'file':_0x3d31b7,'document':_0x5e5ca1,'web-resource':_0x2e5132,'text':_0x3d31b7,'selection':_0x2be1e0},xn=_0x585d47(0xf8),bn=_0x585d47(0xd7),wn=_0x585d47(0xd4),Tn=_0x585d47(0xf6),En=_0x585d47(0xcd),An=_0x585d47(0xe5),Cn='n';export class AIChatContextItemButtonView extends _0x1a42f1{constructor(_0x4b2582,_0x54a885,_0x289b90,_0x71e721,_0x8421c1=!0x1){const _0x3fb4bc=_0x585d47;super(_0x4b2582),this[_0x3fb4bc(0x108)]=_0x71e721,this[_0x3fb4bc(0xea)](_0x54a885,_0x289b90,_0x8421c1),this[_0x3fb4bc(0xd2)]();}[_0x585d47(0xe2)](){const _0x295a84=_0x585d47;super[_0x295a84(0xe2)](),this[_0x295a84(0x108)]&&this[_0x295a84(0xe9)]&&(this[_0x295a84(0xe9)][_0x295a84(0x101)][_0x295a84(0xeb)](_0x295a84(0xf9)),this[_0x295a84(0x100)](this[_0x295a84(0xe9)],()=>{const _0x300087=_0x295a84;this[_0x300087(0xe9)]&&this[_0x300087(0xe9)][_0x300087(0x101)][_0x300087(0xd6)](_0x300087(0xf9));}));}[_0x585d47(0xe4)](){const _0x2e8368=_0x585d47;this[_0x2e8368(0x108)]=!0x1,this[_0x2e8368(0xe9)]&&this[_0x2e8368(0xe9)][_0x2e8368(0x101)][_0x2e8368(0xd6)](_0x2e8368(0xf9));}[_0x585d47(0xea)](_0x33b4e8,_0x60f139,_0x3b747a){const _0x30c99f=_0x585d47;this[_0x30c99f(0xd8)](_0x30c99f(0x10c),_0x33b4e8[_0x30c99f(0x10c)]),this[_0x30c99f(0xd8)](_0x30c99f(0x102),!0x0),this[_0x30c99f(0xd8)](_0x30c99f(0xec),_0x33b4e8[_0x30c99f(0xfc)]),this[_0x30c99f(0xd8)]('id',_0x33b4e8[_0x30c99f(0x104)]),this[_0x30c99f(0xd8)](_0x30c99f(0xfb),_0x60f139),this[_0x30c99f(0xd8)](_0x30c99f(0x103),_0x3b747a);}[_0x585d47(0xd2)](){const _0xa177b4=_0x585d47,_0x2c9902=this[_0xa177b4(0xe1)](),_0x10eed1=this[_0xa177b4(0xfe)](),_0x2ccbed=this[_0xa177b4(0xd0)];this[_0xa177b4(0x105)]({'tag':_0xa177b4(0xf0),'attributes':this[_0xa177b4(0xe3)](_0x2ccbed),'children':this[_0xa177b4(0xed)](_0x2c9902,_0x10eed1,_0x2ccbed)});}[_0x585d47(0xe3)](_0x55b187){const _0xb32963=_0x585d47;return{'class':[xn,_0x55b187['if'](_0xb32963(0xec),wn,_0x5a4636=>_0xb32963(0xcc)==_0x5a4636),_0x55b187['if'](_0xb32963(0xec),bn,_0x10ce2a=>_0xb32963(0xf7)==_0x10ce2a)],'data-cke-tooltip-text':_0x55b187['to'](_0xb32963(0x10c),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x585d47(0xed)](_0x1a20fb,_0xea027,_0x43c660){const _0x3e2144=_0x585d47,_0x33d947=this[_0x3e2144(0xd3)](_0x43c660),_0x3b0e43=this[_0x3e2144(0x106)]();return this[_0x3e2144(0xfb)]?[_0x1a20fb,_0x33d947]:[_0x1a20fb,_0x3b0e43,_0x33d947,_0xea027];}[_0x585d47(0xd3)](_0x183afb){const _0x2a2966=_0x585d47;return{'tag':_0x2a2966(0xd5),'attributes':{'class':Tn},'children':[{'text':_0x183afb['to'](_0x2a2966(0x10c))}]};}[_0x585d47(0xfe)](){const _0x41f199=_0x585d47,_0x3979dc=new _0x1a42f1(this[_0x41f199(0x10a)]);return _0x3979dc[_0x41f199(0xd8)]({'label':_0x38c828(this[_0x41f199(0x10a)],_0x41f199(0xe0)),'icon':_0x15537c}),this[_0x41f199(0xe7)](_0x3979dc),_0x3979dc;}[_0x585d47(0xe7)](_0x2ddf56){const _0x4acd46=_0x585d47;_0x2ddf56['on'](_0x4acd46(0x109),()=>{const _0x2f4b3f=_0x4acd46;this[_0x2f4b3f(0xd9)](_0x2f4b3f(0xde),this['id']);});}[_0x585d47(0xe1)](){const _0x4c9490=_0x585d47,_0x593512=this[_0x4c9490(0xd0)],_0x5315f1=new _0x2512ac();return _0x5315f1[_0x4c9490(0xcb)]=kn[this[_0x4c9490(0xec)]],_0x5315f1[_0x4c9490(0xcf)]({'attributes':{'class':[En,_0x593512['if'](_0x4c9490(0x103),_0x4c9490(0xff),_0x327973=>_0x327973)]}}),_0x5315f1;}[_0x585d47(0x100)](_0x2be4e2,_0x50ed04){const _0x2e0ff1=_0x585d47;if(!_0x2be4e2)return;const _0x245048=()=>{const _0x31738c=_0x32dc;_0x50ed04(),_0x2be4e2[_0x31738c(0x10b)](_0x31738c(0xf3),_0x245048),_0x2be4e2[_0x31738c(0x10b)](_0x31738c(0xd1),_0x245048);};_0x2be4e2[_0x2e0ff1(0xdd)](_0x2e0ff1(0xf3),_0x245048),_0x2be4e2[_0x2e0ff1(0xdd)](_0x2e0ff1(0xd1),_0x245048);}[_0x585d47(0x106)](){const _0x4e9777=_0x585d47,_0x2d7209=new _0x2bdfd7(_0x4e9777(0xdf));return _0x2d7209[_0x4e9777(0x107)](_0x4e9777(0xda))['to'](this,_0x4e9777(0x103),_0x1383a8=>_0x1383a8),_0x2d7209;}}function In(_0x139778){const _0x197888=_0x585d47;if(!_0x139778)return _0x139778;if(_0x139778[_0x197888(0xf4)]<=0x78)return _0x139778;const _0x4c0a60=_0x139778[_0x197888(0xe6)](0x0,0x78),_0x3c46d1=_0x4c0a60[_0x197888(0xee)]('\x20');return(_0x3c46d1>0x0?_0x4c0a60[_0x197888(0xe6)](0x0,_0x3c46d1):_0x4c0a60)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dc769=_0x3a22;function _0x5750(){const _0x1313b2=['urlInputField','listenTo','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','esc','input','5508vpNlvU','submit','value','_setupEventHandlers','errorText','3386024NUJmvX','destroy','clearError','render','ck-button-icon','_handleSubmit','trim','fieldView','_createBackButton','_createConfirmButton','_setupKeystrokes','locale','submitUrl','AI_CHAT_CONTEXT_URL_INVALID_ERROR','refreshBalloon','focusCycler','clear','46735ELqAfr','ck-ai-chat-context-controls__url-form','cancel','setTemplate','ck-button-icon\x20ck-button-back','focus','6WwTnui','div','2651448uUMkjo','getValue','setError','form','AI_CHAT_CONTEXT_URL_ADD_URL','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','5124dcEPDz','children','ck-ai-chat-context-controls__url-input-section','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','_setupTemplate','forEach','346880wCyzon','ck-labeled-field-view_empty','stop','_updateConfirmButtonState','fire','isEnabled','18RFAVVV','shift+tab','AI_CHAT_CONTEXT_URL_LABEL','createCollection','focusTracker','_focusables','set','execute','backButton','_createUrlInputField','confirmButton','element','_isValidUrl','add','length','keystrokes','104068BKSaTw','1228295IiJvLH'];_0x5750=function(){return _0x1313b2;};return _0x5750();}(function(_0x1910bc,_0x54ae7d){const _0x38ff49=_0x3a22,_0x37227b=_0x1910bc();while(!![]){try{const _0xe64617=parseInt(_0x38ff49(0xd4))/0x1+parseInt(_0x38ff49(0x100))/0x2*(parseInt(_0x38ff49(0xda))/0x3)+parseInt(_0x38ff49(0xdc))/0x4+-parseInt(_0x38ff49(0x101))/0x5+parseInt(_0x38ff49(0x107))/0x6*(parseInt(_0x38ff49(0xe2))/0x7)+parseInt(_0x38ff49(0x10c))/0x8*(-parseInt(_0x38ff49(0xf0))/0x9)+parseInt(_0x38ff49(0xea))/0xa;if(_0xe64617===_0x54ae7d)break;else _0x37227b['push'](_0x37227b['shift']());}catch(_0x137e09){_0x37227b['push'](_0x37227b['shift']());}}}(_0x5750,0x68884));import{FocusTracker as _0x153891,KeystrokeHandler as _0x21448d}from'ckeditor5/src/utils.js';function _0x3a22(_0x237d04,_0x32d8a3){const _0x575043=_0x5750();return _0x3a22=function(_0x3a226d,_0x7a1c66){_0x3a226d=_0x3a226d-0xc4;let _0x2f1976=_0x575043[_0x3a226d];return _0x2f1976;},_0x3a22(_0x237d04,_0x32d8a3);}import{ButtonView as _0x4135da,FocusCycler as _0xa444b4,LabeledFieldView as _0x50bd36,View as _0x1c7116,FormHeaderView as _0x48062b,createLabeledInputText as _0x124d4c,submitHandler as _0x88b37b}from'ckeditor5/src/ui.js';import{IconCheck as _0x42c1df,IconPreviousArrow as _0x5d6ea1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x7a3674}from'../../../aicore/utils/common-translations.js';const eh=_0x1dc769(0xd5),hh=_0x1dc769(0xe4);export class AIChatContextPanelUrlInputView extends _0x1c7116{[_0x1dc769(0xf4)];[_0x1dc769(0xff)];[_0x1dc769(0xf5)];[_0x1dc769(0xd2)];[_0x1dc769(0x102)];[_0x1dc769(0xf8)];[_0x1dc769(0xfa)];constructor(_0x53e18c){const _0x554b97=_0x1dc769;super(_0x53e18c),this[_0x554b97(0xf4)]=new _0x153891(),this[_0x554b97(0xff)]=new _0x21448d(),this[_0x554b97(0xf8)]=this[_0x554b97(0xcb)](),this[_0x554b97(0x102)]=this[_0x554b97(0xf9)](),this[_0x554b97(0xfa)]=this[_0x554b97(0xcc)](),this[_0x554b97(0xf5)]=this[_0x554b97(0xf3)]([this[_0x554b97(0xf8)],this[_0x554b97(0x102)],this[_0x554b97(0xfa)]]),this[_0x554b97(0xd2)]=new _0xa444b4({'focusables':this[_0x554b97(0xf5)],'focusTracker':this[_0x554b97(0xf4)],'keystrokeHandler':this[_0x554b97(0xff)],'actions':{'focusPrevious':_0x554b97(0xf1),'focusNext':_0x554b97(0xe7)}}),this[_0x554b97(0xe8)](),this[_0x554b97(0x10a)](),this[_0x554b97(0xcd)]();}[_0x1dc769(0xc6)](){const _0x41ea82=_0x1dc769;super[_0x41ea82(0xc6)](),this[_0x41ea82(0xf5)][_0x41ea82(0xe9)](_0x5dd97b=>{const _0x478647=_0x41ea82;this[_0x478647(0xf4)][_0x478647(0xfd)](_0x5dd97b[_0x478647(0xfb)]),this[_0x478647(0xff)][_0x478647(0x103)](_0x5dd97b[_0x478647(0xfb)]);}),_0x88b37b({'view':this}),this[_0x41ea82(0xd9)]();}[_0x1dc769(0xc4)](){const _0xd668e3=_0x1dc769;super[_0xd668e3(0xc4)](),this[_0xd668e3(0xf4)][_0xd668e3(0xc4)](),this[_0xd668e3(0xff)][_0xd668e3(0xc4)]();}[_0x1dc769(0xd9)](){const _0x3262aa=_0x1dc769;this[_0x3262aa(0x102)][_0x3262aa(0xd9)]();}[_0x1dc769(0xdd)](){const _0x142be5=_0x1dc769;return this[_0x142be5(0x102)][_0x142be5(0xca)][_0x142be5(0xfb)]?.[_0x142be5(0x109)]?.[_0x142be5(0xc9)]()||'';}[_0x1dc769(0xd3)](){const _0x145a99=_0x1dc769;this[_0x145a99(0x102)][_0x145a99(0xca)][_0x145a99(0xfb)][_0x145a99(0x109)]='',this[_0x145a99(0x102)][_0x145a99(0x10b)]=null,this[_0x145a99(0xfa)][_0x145a99(0xef)]=!0x1;}[_0x1dc769(0xde)](_0x307d00){const _0x8956b1=_0x1dc769;this[_0x8956b1(0x102)][_0x8956b1(0x10b)]=_0x307d00,this[_0x8956b1(0xed)](),this[_0x8956b1(0xee)](_0x8956b1(0xd1));}[_0x1dc769(0xc5)](){const _0x54e519=_0x1dc769;this[_0x54e519(0x102)][_0x54e519(0x10b)]=null,this[_0x54e519(0xed)]();}[_0x1dc769(0xcb)](){const _0x149fb6=_0x1dc769,_0x24c270=new _0x4135da(this[_0x149fb6(0xce)]);return _0x24c270[_0x149fb6(0xf6)]({'icon':_0x5d6ea1,'tooltip':_0x7a3674(this[_0x149fb6(0xce)],_0x149fb6(0xe1)),'tooltipPosition':'n','class':_0x149fb6(0xd8)}),_0x24c270;}[_0x1dc769(0xf9)](){const _0x5e1df=_0x1dc769,_0x4bfa11=new _0x50bd36(this[_0x5e1df(0xce)],_0x124d4c);return _0x4bfa11[_0x5e1df(0xf6)]({'label':_0x7a3674(this[_0x5e1df(0xce)],_0x5e1df(0xf2)),'class':_0x5e1df(0xeb)}),_0x4bfa11[_0x5e1df(0xca)][_0x5e1df(0xf6)]({'placeholder':_0x7a3674(this[_0x5e1df(0xce)],_0x5e1df(0xe6))}),_0x4bfa11;}[_0x1dc769(0xcc)](){const _0xafd7bd=_0x1dc769,_0x1c8812=new _0x4135da(this[_0xafd7bd(0xce)]);return _0x1c8812[_0xafd7bd(0xf6)]({'icon':_0x42c1df,'tooltip':_0x7a3674(this[_0xafd7bd(0xce)],_0xafd7bd(0xe0)),'tooltipPosition':'n','class':_0xafd7bd(0xc7),'type':_0xafd7bd(0x108),'isEnabled':!0x1}),_0x1c8812;}[_0x1dc769(0xe8)](){const _0x6d287c=_0x1dc769,_0x3e02b8=new _0x48062b(this[_0x6d287c(0xce)],{'label':_0x7a3674(this[_0x6d287c(0xce)],_0x6d287c(0xe0)),'class':_0x6d287c(0xe5)});_0x3e02b8[_0x6d287c(0xe3)][_0x6d287c(0xfd)](this[_0x6d287c(0xf8)],0x0),this[_0x6d287c(0xd7)]({'tag':_0x6d287c(0xdf),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x3e02b8,{'tag':_0x6d287c(0xdb),'attributes':{'class':hh},'children':[this[_0x6d287c(0x102)],this[_0x6d287c(0xfa)]]}]});}[_0x1dc769(0x10a)](){const _0x48ef37=_0x1dc769;this[_0x48ef37(0xf8)]['on'](_0x48ef37(0xf7),()=>{const _0x218161=_0x48ef37;this[_0x218161(0xd3)](),this[_0x218161(0xee)](_0x218161(0xd6));}),this[_0x48ef37(0x102)][_0x48ef37(0xca)]['on'](_0x48ef37(0x106),()=>{const _0x4e5c80=_0x48ef37;this[_0x4e5c80(0xc5)](),this[_0x4e5c80(0xed)](),this[_0x4e5c80(0xee)](_0x4e5c80(0xd1));}),this['on'](_0x48ef37(0x108),_0x2fe267=>{const _0x344e62=_0x48ef37;_0x2fe267[_0x344e62(0xec)](),this[_0x344e62(0xc8)]();});}[_0x1dc769(0xcd)](){const _0x24c38f=_0x1dc769;this[_0x24c38f(0xff)][_0x24c38f(0xf6)](_0x24c38f(0x105),(_0x163e14,_0xf8cafe)=>{const _0xe0cc5d=_0x24c38f;this[_0xe0cc5d(0xd3)](),this[_0xe0cc5d(0xee)](_0xe0cc5d(0xd6)),_0xf8cafe();});}[_0x1dc769(0xc8)](){const _0xacce1c=_0x1dc769,_0x912db4=this[_0xacce1c(0xdd)]()[_0xacce1c(0xc9)]();_0x912db4?this[_0xacce1c(0xfc)](_0x912db4)?(this[_0xacce1c(0xc5)](),this[_0xacce1c(0xee)](_0xacce1c(0xcf),_0x912db4)):this[_0xacce1c(0xde)](_0x7a3674(this[_0xacce1c(0xce)],_0xacce1c(0xd0))):this[_0xacce1c(0xde)](_0x7a3674(this[_0xacce1c(0xce)],_0xacce1c(0x104)));}[_0x1dc769(0xed)](){const _0x2a46cd=_0x1dc769,_0x5868b9=this[_0x2a46cd(0xdd)]()[_0x2a46cd(0xc9)](),_0x5dbefa=!!this[_0x2a46cd(0x102)][_0x2a46cd(0x10b)];this[_0x2a46cd(0xfa)][_0x2a46cd(0xef)]=_0x5868b9[_0x2a46cd(0xfe)]>0x0&&!_0x5dbefa;}[_0x1dc769(0xfc)](_0x19898b){try{return!!new URL(_0x19898b);}catch{return!0x1;}}}
23
+ const _0x2f203c=_0x54ad;(function(_0x4f0ee3,_0x551d2a){const _0x4a745a=_0x54ad,_0xa4f7df=_0x4f0ee3();while(!![]){try{const _0x50aa75=-parseInt(_0x4a745a(0xc2))/0x1*(parseInt(_0x4a745a(0xfd))/0x2)+parseInt(_0x4a745a(0xff))/0x3*(parseInt(_0x4a745a(0xbe))/0x4)+parseInt(_0x4a745a(0xfc))/0x5+-parseInt(_0x4a745a(0xdd))/0x6+-parseInt(_0x4a745a(0xc1))/0x7*(parseInt(_0x4a745a(0xf8))/0x8)+parseInt(_0x4a745a(0xbb))/0x9+parseInt(_0x4a745a(0xd6))/0xa*(parseInt(_0x4a745a(0xf6))/0xb);if(_0x50aa75===_0x551d2a)break;else _0xa4f7df['push'](_0xa4f7df['shift']());}catch(_0x5d1a67){_0xa4f7df['push'](_0xa4f7df['shift']());}}}(_0x481c,0x5c44c));import{FocusTracker as _0x30abcd,KeystrokeHandler as _0x351a7b}from'ckeditor5/src/utils.js';import{ButtonView as _0x2eb32c,FocusCycler as _0x52729e,LabeledFieldView as _0x30cc85,View as _0x53b846,FormHeaderView as _0x341eca,createLabeledInputText as _0x5be1bd,submitHandler as _0x1c8407}from'ckeditor5/src/ui.js';import{IconCheck as _0x3192df,IconPreviousArrow as _0x39db98}from'@ckeditor/ckeditor5-icons';function _0x54ad(_0x2c9c5f,_0x55cffc){const _0x481c85=_0x481c();return _0x54ad=function(_0x54ad62,_0x130422){_0x54ad62=_0x54ad62-0xb6;let _0x18df59=_0x481c85[_0x54ad62];return _0x18df59;},_0x54ad(_0x2c9c5f,_0x55cffc);}import{getTranslation as _0x13a761}from'../../../aicore/utils/common-translations.js';const eh=_0x2f203c(0xca),hh=_0x2f203c(0xec);function _0x481c(){const _0x521718=['focusTracker','listenTo','input','fire','refreshBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_INVALID_ERROR','keystrokes','_setupTemplate','confirmButton','_createConfirmButton','ck-ai-chat-context-controls__url-input-section','value','ck-button-icon','clear','focusCycler','submit','element','trim','div','_updateConfirmButtonState','11HcKCgR','AI_CHAT_CONTEXT_URL_ADD_URL','168pYeKLd','submitUrl','ck-labeled-field-view_empty','createCollection','3690545fXcUrF','3778ROOaYD','locale','69rgjemB','add','focus','_setupKeystrokes','AI_CHAT_CONTEXT_URL_LABEL','_focusables','3625245PnMqby','forEach','execute','17348kbOJlc','set','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','206059uaOoBu','31rSxFOr','fieldView','setTemplate','render','stop','isEnabled','esc','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-ai-chat-context-controls__url-form','form','children','_createBackButton','backButton','length','clearError','_setupEventHandlers','setError','getValue','tab','shift+tab','444330kyRKlx','_createUrlInputField','errorText','ck-button-icon\x20ck-button-back','_isValidUrl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_handleSubmit','1382580zXAfNR','urlInputField','cancel','destroy'];_0x481c=function(){return _0x521718;};return _0x481c();}export class AIChatContextPanelUrlInputView extends _0x53b846{[_0x2f203c(0xe1)];[_0x2f203c(0xe8)];[_0x2f203c(0xba)];[_0x2f203c(0xf0)];[_0x2f203c(0xde)];[_0x2f203c(0xce)];[_0x2f203c(0xea)];constructor(_0x45598e){const _0xfb3b8a=_0x2f203c;super(_0x45598e),this[_0xfb3b8a(0xe1)]=new _0x30abcd(),this[_0xfb3b8a(0xe8)]=new _0x351a7b(),this[_0xfb3b8a(0xce)]=this[_0xfb3b8a(0xcd)](),this[_0xfb3b8a(0xde)]=this[_0xfb3b8a(0xd7)](),this[_0xfb3b8a(0xea)]=this[_0xfb3b8a(0xeb)](),this[_0xfb3b8a(0xba)]=this[_0xfb3b8a(0xfb)]([this[_0xfb3b8a(0xce)],this[_0xfb3b8a(0xde)],this[_0xfb3b8a(0xea)]]),this[_0xfb3b8a(0xf0)]=new _0x52729e({'focusables':this[_0xfb3b8a(0xba)],'focusTracker':this[_0xfb3b8a(0xe1)],'keystrokeHandler':this[_0xfb3b8a(0xe8)],'actions':{'focusPrevious':_0xfb3b8a(0xd5),'focusNext':_0xfb3b8a(0xd4)}}),this[_0xfb3b8a(0xe9)](),this[_0xfb3b8a(0xd1)](),this[_0xfb3b8a(0xb8)]();}[_0x2f203c(0xc5)](){const _0x3a4165=_0x2f203c;super[_0x3a4165(0xc5)](),this[_0x3a4165(0xba)][_0x3a4165(0xbc)](_0x57d35d=>{const _0x481592=_0x3a4165;this[_0x481592(0xe1)][_0x481592(0xb6)](_0x57d35d[_0x481592(0xf2)]),this[_0x481592(0xe8)][_0x481592(0xe2)](_0x57d35d[_0x481592(0xf2)]);}),_0x1c8407({'view':this}),this[_0x3a4165(0xb7)]();}[_0x2f203c(0xe0)](){const _0x533880=_0x2f203c;super[_0x533880(0xe0)](),this[_0x533880(0xe1)][_0x533880(0xe0)](),this[_0x533880(0xe8)][_0x533880(0xe0)]();}[_0x2f203c(0xb7)](){const _0x518588=_0x2f203c;this[_0x518588(0xde)][_0x518588(0xb7)]();}[_0x2f203c(0xd3)](){const _0x51e93b=_0x2f203c;return this[_0x51e93b(0xde)][_0x51e93b(0xc3)][_0x51e93b(0xf2)]?.[_0x51e93b(0xed)]?.[_0x51e93b(0xf3)]()||'';}[_0x2f203c(0xef)](){const _0x157eeb=_0x2f203c;this[_0x157eeb(0xde)][_0x157eeb(0xc3)][_0x157eeb(0xf2)][_0x157eeb(0xed)]='',this[_0x157eeb(0xde)][_0x157eeb(0xd8)]=null,this[_0x157eeb(0xea)][_0x157eeb(0xc7)]=!0x1;}[_0x2f203c(0xd2)](_0x3e88ab){const _0x4bc261=_0x2f203c;this[_0x4bc261(0xde)][_0x4bc261(0xd8)]=_0x3e88ab,this[_0x4bc261(0xf5)](),this[_0x4bc261(0xe4)](_0x4bc261(0xe5));}[_0x2f203c(0xd0)](){const _0x26eb0a=_0x2f203c;this[_0x26eb0a(0xde)][_0x26eb0a(0xd8)]=null,this[_0x26eb0a(0xf5)]();}[_0x2f203c(0xcd)](){const _0x1097a4=_0x2f203c,_0x4e7d2c=new _0x2eb32c(this[_0x1097a4(0xfe)]);return _0x4e7d2c[_0x1097a4(0xbf)]({'icon':_0x39db98,'tooltip':_0x13a761(this[_0x1097a4(0xfe)],_0x1097a4(0xe6)),'tooltipPosition':'n','class':_0x1097a4(0xd9)}),_0x4e7d2c;}[_0x2f203c(0xd7)](){const _0x4dd7db=_0x2f203c,_0x24a3bd=new _0x30cc85(this[_0x4dd7db(0xfe)],_0x5be1bd);return _0x24a3bd[_0x4dd7db(0xbf)]({'label':_0x13a761(this[_0x4dd7db(0xfe)],_0x4dd7db(0xb9)),'class':_0x4dd7db(0xfa)}),_0x24a3bd[_0x4dd7db(0xc3)][_0x4dd7db(0xbf)]({'placeholder':_0x13a761(this[_0x4dd7db(0xfe)],_0x4dd7db(0xdb))}),_0x24a3bd;}[_0x2f203c(0xeb)](){const _0x273e51=_0x2f203c,_0x514e24=new _0x2eb32c(this[_0x273e51(0xfe)]);return _0x514e24[_0x273e51(0xbf)]({'icon':_0x3192df,'tooltip':_0x13a761(this[_0x273e51(0xfe)],_0x273e51(0xf7)),'tooltipPosition':'n','class':_0x273e51(0xee),'type':_0x273e51(0xf1),'isEnabled':!0x1}),_0x514e24;}[_0x2f203c(0xe9)](){const _0x2c0b5c=_0x2f203c,_0x29448a=new _0x341eca(this[_0x2c0b5c(0xfe)],{'label':_0x13a761(this[_0x2c0b5c(0xfe)],_0x2c0b5c(0xf7)),'class':_0x2c0b5c(0xc9)});_0x29448a[_0x2c0b5c(0xcc)][_0x2c0b5c(0xb6)](this[_0x2c0b5c(0xce)],0x0),this[_0x2c0b5c(0xc4)]({'tag':_0x2c0b5c(0xcb),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x29448a,{'tag':_0x2c0b5c(0xf4),'attributes':{'class':hh},'children':[this[_0x2c0b5c(0xde)],this[_0x2c0b5c(0xea)]]}]});}[_0x2f203c(0xd1)](){const _0x81c849=_0x2f203c;this[_0x81c849(0xce)]['on'](_0x81c849(0xbd),()=>{const _0x4857b7=_0x81c849;this[_0x4857b7(0xef)](),this[_0x4857b7(0xe4)](_0x4857b7(0xdf));}),this[_0x81c849(0xde)][_0x81c849(0xc3)]['on'](_0x81c849(0xe3),()=>{const _0x5625b6=_0x81c849;this[_0x5625b6(0xd0)](),this[_0x5625b6(0xf5)](),this[_0x5625b6(0xe4)](_0x5625b6(0xe5));}),this['on'](_0x81c849(0xf1),_0x2c23c8=>{const _0x44a7ff=_0x81c849;_0x2c23c8[_0x44a7ff(0xc6)](),this[_0x44a7ff(0xdc)]();});}[_0x2f203c(0xb8)](){const _0x55c685=_0x2f203c;this[_0x55c685(0xe8)][_0x55c685(0xbf)](_0x55c685(0xc8),(_0x81c6e7,_0x4c8222)=>{const _0x35e242=_0x55c685;this[_0x35e242(0xef)](),this[_0x35e242(0xe4)](_0x35e242(0xdf)),_0x4c8222();});}[_0x2f203c(0xdc)](){const _0x529f28=_0x2f203c,_0x319e9a=this[_0x529f28(0xd3)]()[_0x529f28(0xf3)]();_0x319e9a?this[_0x529f28(0xda)](_0x319e9a)?(this[_0x529f28(0xd0)](),this[_0x529f28(0xe4)](_0x529f28(0xf9),_0x319e9a)):this[_0x529f28(0xd2)](_0x13a761(this[_0x529f28(0xfe)],_0x529f28(0xe7))):this[_0x529f28(0xd2)](_0x13a761(this[_0x529f28(0xfe)],_0x529f28(0xc0)));}[_0x2f203c(0xf5)](){const _0x2ecf28=_0x2f203c,_0x46add6=this[_0x2ecf28(0xd3)]()[_0x2ecf28(0xf3)](),_0x20462a=!!this[_0x2ecf28(0xde)][_0x2ecf28(0xd8)];this[_0x2ecf28(0xea)][_0x2ecf28(0xc7)]=_0x46add6[_0x2ecf28(0xcf)]>0x0&&!_0x20462a;}[_0x2f203c(0xda)](_0x4aa11a){try{return!!new URL(_0x4aa11a);}catch{return!0x1;}}}