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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
+ function _0x4fe3(_0xbdd6a8,_0x50ae97){const _0x365b8e=_0x365b();return _0x4fe3=function(_0x4fe339,_0x159d32){_0x4fe339=_0x4fe339-0x1ba;let _0x1c7bee=_0x365b8e[_0x4fe339];return _0x1c7bee;},_0x4fe3(_0xbdd6a8,_0x50ae97);}const _0x4ce729=_0x4fe3;(function(_0x293b26,_0x164ffc){const _0x3a4462=_0x4fe3,_0x5dcb4f=_0x293b26();while(!![]){try{const _0x4ce7dc=parseInt(_0x3a4462(0x1d0))/0x1*(-parseInt(_0x3a4462(0x1de))/0x2)+-parseInt(_0x3a4462(0x1e0))/0x3+parseInt(_0x3a4462(0x1dc))/0x4+-parseInt(_0x3a4462(0x1d8))/0x5+-parseInt(_0x3a4462(0x1d7))/0x6+parseInt(_0x3a4462(0x1da))/0x7+parseInt(_0x3a4462(0x1c4))/0x8*(parseInt(_0x3a4462(0x1c2))/0x9);if(_0x4ce7dc===_0x164ffc)break;else _0x5dcb4f['push'](_0x5dcb4f['shift']());}catch(_0x46f0a3){_0x5dcb4f['push'](_0x5dcb4f['shift']());}}}(_0x365b,0x49485));import{EmitterMixin as _0xcd2e4c,logWarning as _0x42a2a0}from'ckeditor5/src/utils.js';export class AIChatModels extends _0xcd2e4c(){[_0x4ce729(0x1d5)]=[];[_0x4ce729(0x1c1)];[_0x4ce729(0x1cf)];[_0x4ce729(0x1c0)];constructor({connector:_0x3937a5,displayedModels:_0x3a5237,defaultModelId:_0x3c2a93}){const _0x4a991e=_0x4ce729;super(),this[_0x4a991e(0x1c1)]=_0x3937a5,this[_0x4a991e(0x1cf)]=_0x3a5237,this[_0x4a991e(0x1c0)]=_0x3c2a93;}async[_0x4ce729(0x1cd)](){const _0x5c8580=_0x4ce729;if(!this[_0x5c8580(0x1d5)][_0x5c8580(0x1c3)]){const _0x320774=this[_0x5c8580(0x1c1)][_0x5c8580(0x1bb)](),_0x35423c=(await _0x320774[_0x5c8580(0x1cc)]())[_0x5c8580(0x1d9)][_0x5c8580(0x1d3)]((_0x1d8a22,_0x314271)=>{const _0x270784=_0x5c8580,_0x54c3ea=Object[_0x270784(0x1c5)](_0x1d8a22[_0x270784(0x1bf)])[_0x270784(0x1ba)](_0x3979aa=>_0x3979aa[_0x270784(0x1ca)])[_0x270784(0x1c3)];return Object[_0x270784(0x1c5)](_0x314271[_0x270784(0x1bf)])[_0x270784(0x1ba)](_0x5428f7=>_0x5428f7[_0x270784(0x1ca)])[_0x270784(0x1c3)]-_0x54c3ea;});this[_0x5c8580(0x1d5)]=_0x35423c;}return this[_0x5c8580(0x1d5)];}async[_0x4ce729(0x1d4)](){const _0x160d52=_0x4ce729,_0x1ce18d=await this[_0x160d52(0x1cd)]();return this[_0x160d52(0x1cb)](_0x1ce18d,this[_0x160d52(0x1cf)]);}async[_0x4ce729(0x1c8)](_0x314c11){const _0x27a35b=_0x4ce729,_0x4ee89c=await this[_0x27a35b(0x1cd)]();if(!_0x4ee89c[_0x27a35b(0x1c3)])return null;if(_0x314c11){const _0x2678ad=_0x4ee89c[_0x27a35b(0x1c9)](_0x492a3a=>_0x492a3a['id']===_0x314c11);if(_0x2678ad)return _0x2678ad;_0x42a2a0(_0x27a35b(0x1d1),{'modelId':_0x314c11,'fallBackModelId':this[_0x27a35b(0x1c0)]});}return this[_0x27a35b(0x1dd)]();}async[_0x4ce729(0x1dd)](){const _0x279bf6=_0x4ce729,_0x797a05=await this[_0x279bf6(0x1d4)]();if(!_0x797a05[_0x279bf6(0x1c3)])return null;if(this[_0x279bf6(0x1c0)]){const _0x32a464=_0x797a05[_0x279bf6(0x1c9)](_0x317707=>_0x317707['id']===this[_0x279bf6(0x1c0)]);if(_0x32a464)return _0x32a464;_0x42a2a0(_0x279bf6(0x1db),{'defaultModelId':this[_0x279bf6(0x1c0)],'fallBackModelId':_0x797a05[0x0]['id']});}return _0x797a05[0x0];}async[_0x4ce729(0x1c6)](_0x147c3c){const _0x167129=_0x4ce729;return(await this[_0x167129(0x1d4)]())[_0x167129(0x1bd)](_0x2b1a1f=>_0x2b1a1f[_0x167129(0x1d2)]===_0x147c3c[_0x167129(0x1d2)]&&_0x2b1a1f[_0x167129(0x1bc)]===_0x147c3c[_0x167129(0x1bc)]);}[_0x4ce729(0x1cb)](_0x2a8849,_0x2849a4){const _0x54df79=_0x4ce729;let _0x5b7aa7;if(_0x2849a4){_0x5b7aa7=[];const _0x4fd58b=_0x54df79(0x1d6)==typeof _0x2849a4?[_0x2849a4[_0x54df79(0x1ce)]()]:_0x2849a4[_0x54df79(0x1be)](_0x36270d=>_0x36270d[_0x54df79(0x1ce)]());for(const _0x5bd37a of _0x4fd58b)for(const _0x11ea06 of _0x2a8849)(_0x11ea06['id'][_0x54df79(0x1ce)]()===_0x5bd37a||_0x11ea06[_0x54df79(0x1d2)][_0x54df79(0x1ce)]()===_0x5bd37a||_0x11ea06[_0x54df79(0x1bc)][_0x54df79(0x1ce)]()===_0x5bd37a||_0x11ea06['id'][_0x54df79(0x1ce)]()[_0x54df79(0x1c7)](_0x5bd37a))&&_0x5b7aa7[_0x54df79(0x1df)](_0x11ea06);}else _0x5b7aa7=_0x2a8849;return _0x5b7aa7;}}function _0x365b(){const _0x4d3171=['1743760iJSxSh','getDefault','294274XCrBwv','push','1143330hBVVij','filter','getModels','provider','some','map','capabilities','_defaultModelId','_connector','43245fBZygv','length','2088xXUOsh','values','isAvailable','startsWith','getModel','find','enabled','_filterModels','list','getAll','toLocaleLowerCase','_displayedModels','3gdpdhL','ai-chat-model-id-unrecognized','name','sort','getAvailableModels','_modelList','string','2924526SPJzdH','921795OOHKdp','items','730947uXexBD','ai-chat-default-model-id-unrecognized'];_0x365b=function(){return _0x4d3171;};return _0x365b();}
@@ -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
+ const _0x588e27=_0x2fa3;(function(_0x59d800,_0x201218){const _0x577fff=_0x2fa3,_0x1b71f5=_0x59d800();while(!![]){try{const _0x5d25b8=parseInt(_0x577fff(0x216))/0x1+-parseInt(_0x577fff(0x1ef))/0x2+parseInt(_0x577fff(0x213))/0x3+parseInt(_0x577fff(0x21f))/0x4+parseInt(_0x577fff(0x1e9))/0x5+-parseInt(_0x577fff(0x20b))/0x6+-parseInt(_0x577fff(0x1ee))/0x7;if(_0x5d25b8===_0x201218)break;else _0x1b71f5['push'](_0x1b71f5['shift']());}catch(_0x1ecf0d){_0x1b71f5['push'](_0x1b71f5['shift']());}}}(_0x1900,0x648ce));import{ButtonView as _0x1e1e74,clickOutsideHandler as _0x42df32,View as _0x3fcccd}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2bfc9d}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x257268}from'./controls/aichatpromptcapabilitiesview.js';function _0x1900(){const _0x1e2cc4=['updateResourceState','setInputPlaceholder','_createModelUnavailableMessageView','focusPromptInput','_shouldRestorePromptInputFocus','_createPromptInputView','abortPromptStream','setTemplate','disableModelSelector','closeSourceResourceBalloon','ck-hidden','_loaderView','element','38106mBicng','_createPromptCapabilitiesView','agent','_handlePromptInputFocus','sendUserMessage','_promptCapabilitiesView','ck-ai-chat-controls__start-new-chat-button','isDisabled','306393GUZJte','populateSourceResourceBalloon','div','396701ZoPNub','delegate','clearConversationContextUI','isLoading','execute','addContextButtonView','setIsUploadInProgress','setModelList','setAddContextOptions','816616HjKEzS','enableModelSelector','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','clearCurrentContextItems','resetMessageInput','startsWith','set','focus','removeContextItem','selectModel','setPlaceholderText','_createLoaderView','find','_modelUnavailableMessageView','locale','toggleReasoning','form','change:isLoading','_createContextPanelView','low','addContextItem','reset','2710995kPXjOJ','setModel','setConversationContext','_contextPanelView','clearPendingContextUI','5153463TecqJB','181542zSUNCC','isModelAvailable','startConversation','ck-ai-chat-controls-disabled','_displayedModels','clearConversationContextItems','setContextItemLoading','setReasoning','_promptInputView','ck-ai-chat-controls-model-unavailable-message','toggleWebSearch','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setWebSearch','ck-ai-chat-controls'];_0x1900=function(){return _0x1e2cc4;};return _0x1900();}function _0x2fa3(_0x4ddef2,_0x54b945){const _0x19007b=_0x1900();return _0x2fa3=function(_0x2fa3f6,_0x16f004){_0x2fa3f6=_0x2fa3f6-0x1e3;let _0x2a8a92=_0x19007b[_0x2fa3f6];return _0x2a8a92;},_0x2fa3(_0x4ddef2,_0x54b945);}import{AIChatContextPanelView as _0x12a833,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0xfc78b7}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x506500}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0xd1223e}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x3fcccd{[_0x588e27(0x1f3)]=[];[_0x588e27(0x1ec)];[_0x588e27(0x1f7)];[_0x588e27(0x210)];[_0x588e27(0x209)];[_0x588e27(0x22c)];[_0x588e27(0x202)];constructor(_0x19ecc9,_0x4250ce){const _0x5af301=_0x588e27;super(_0x19ecc9),this[_0x5af301(0x1ec)]=this[_0x5af301(0x1e5)](_0x19ecc9,_0x4250ce),this[_0x5af301(0x1f7)]=this[_0x5af301(0x203)](_0x19ecc9),this[_0x5af301(0x210)]=this[_0x5af301(0x20c)](_0x19ecc9),this[_0x5af301(0x209)]=this[_0x5af301(0x22a)](_0x19ecc9),this[_0x5af301(0x22c)]=this[_0x5af301(0x200)](_0x19ecc9),this[_0x5af301(0x202)]=!0x1,this[_0x5af301(0x1f7)][_0x5af301(0x217)](_0x5af301(0x20f))['to'](this),this[_0x5af301(0x209)][_0x5af301(0x217)](_0x5af301(0x204))['to'](this),this[_0x5af301(0x210)][_0x5af301(0x217)](_0x5af301(0x1f9))['to'](this),this[_0x5af301(0x210)][_0x5af301(0x217)](_0x5af301(0x22e))['to'](this),this[_0x5af301(0x210)][_0x5af301(0x217)](_0x5af301(0x228))['to'](this),this[_0x5af301(0x1ec)][_0x5af301(0x217)](..._0xfc78b7)['to'](this),this[_0x5af301(0x225)](_0x5af301(0x1f0),!0x0),this[_0x5af301(0x225)](_0x5af301(0x212),!0x1);const _0x309eb6=this[_0x5af301(0x1fa)];this[_0x5af301(0x205)]({'tag':_0x5af301(0x1e3),'attributes':{'class':['ck',_0x5af301(0x1fd),_0x309eb6['if'](_0x5af301(0x212),_0x5af301(0x1f2))]},'children':[{'tag':_0x5af301(0x215),'attributes':{'class':[_0x309eb6['if'](_0x5af301(0x219),_0x5af301(0x208),_0x23a208=>_0x23a208||!this[_0x5af301(0x1f0)]),_0x309eb6['if'](_0x5af301(0x1f0),_0x5af301(0x208),_0x5ec0e9=>!_0x5ec0e9||this[_0x5af301(0x219)])]},'children':[this[_0x5af301(0x1ec)],this[_0x5af301(0x1f7)],this[_0x5af301(0x210)]]},{'tag':_0x5af301(0x215),'attributes':{'class':[_0x309eb6['if'](_0x5af301(0x219),_0x5af301(0x208),_0x28c4b2=>!_0x28c4b2)]},'children':[this[_0x5af301(0x209)]]},{'tag':_0x5af301(0x215),'attributes':{'class':[_0x309eb6['if'](_0x5af301(0x1f0),_0x5af301(0x208),_0x4f2546=>_0x4f2546)]},'children':[this[_0x5af301(0x22c)]]}]}),_0x42df32({'emitter':this[_0x5af301(0x1f7)],'activator':()=>this[_0x5af301(0x219)],'contextElements':()=>[this[_0x5af301(0x20a)]],'callback':()=>{const _0x5303eb=_0x5af301;this[_0x5303eb(0x202)]=!0x1;}}),this['on'](_0x5af301(0x1e4),this[_0x5af301(0x20e)],{'priority':_0x5af301(0x1e6)});}[_0x588e27(0x1e5)](_0x396105,_0x343927){return new _0x12a833(_0x396105,_0x343927);}[_0x588e27(0x203)](_0x4e7678){const _0x573d10=_0x588e27;return new _0x2bfc9d(_0x4e7678,this[_0x573d10(0x1ec)][_0x573d10(0x21b)]);}[_0x588e27(0x20c)](_0x313d38){return new _0x257268(_0x313d38);}[_0x588e27(0x22a)](_0x329efe){return new _0x506500(_0x329efe);}[_0x588e27(0x200)](_0x507eef){const _0x9c2d2a=_0x588e27,_0x342eb2=new ms(_0x507eef);return _0x342eb2[_0x9c2d2a(0x217)](_0x9c2d2a(0x1f1))['to'](this),_0x342eb2;}[_0x588e27(0x20e)](_0x5e32e5,_0x1f1fda,_0x167215){const _0x4c53fc=_0x588e27;_0x167215?this[_0x4c53fc(0x202)]=!0x0:this[_0x4c53fc(0x202)]&&this[_0x4c53fc(0x1f7)][_0x4c53fc(0x226)]();}[_0x588e27(0x1e7)](_0x3eb15e,_0x37c5ee){const _0x3bde69=_0x588e27;this[_0x3bde69(0x1ec)][_0x3bde69(0x1e7)](_0x3eb15e,_0x37c5ee);}[_0x588e27(0x227)](_0x434dde){const _0x4f063b=_0x588e27;this[_0x4f063b(0x1ec)][_0x4f063b(0x227)](_0x434dde);}[_0x588e27(0x1f5)](_0x48bcfb,_0x2e04d0){const _0x36c077=_0x588e27;this[_0x36c077(0x1ec)][_0x36c077(0x1f5)](_0x48bcfb,_0x2e04d0);}[_0x588e27(0x21c)](_0x1fb7dd){const _0x4ba44d=_0x588e27;this[_0x4ba44d(0x1f7)][_0x4ba44d(0x21c)](_0x1fb7dd);}[_0x588e27(0x1eb)](_0x49b384){const _0x244828=_0x588e27;this[_0x244828(0x1ec)][_0x244828(0x1eb)](_0x49b384);}[_0x588e27(0x1ed)](){const _0x575127=_0x588e27;this[_0x575127(0x1ec)][_0x575127(0x222)]();}[_0x588e27(0x218)](){const _0x21b440=_0x588e27;this[_0x21b440(0x1ec)][_0x21b440(0x1f4)]();}[_0x588e27(0x1fe)](_0x647a41,_0x2ef321,_0x1f97fa){const _0x45c60d=_0x588e27;this[_0x45c60d(0x1ec)][_0x45c60d(0x1fe)](_0x647a41,_0x2ef321,_0x1f97fa);}[_0x588e27(0x1fc)](_0x3a08d3){const _0x34ea38=_0x588e27;this[_0x34ea38(0x210)][_0x34ea38(0x1fc)](_0x3a08d3);}[_0x588e27(0x1f6)](_0x4a9cbf){const _0x5dd7c1=_0x588e27;this[_0x5dd7c1(0x210)][_0x5dd7c1(0x1f6)](_0x4a9cbf);}[_0x588e27(0x223)](){const _0x36673b=_0x588e27;this[_0x36673b(0x1f7)][_0x36673b(0x1e8)]();}[_0x588e27(0x21e)](_0x352b69){const _0x24ba45=_0x588e27;this[_0x24ba45(0x1ec)][_0x24ba45(0x21e)](_0x352b69);}[_0x588e27(0x1ff)](_0x41113a){const _0x55b414=_0x588e27;this[_0x55b414(0x1f7)][_0x55b414(0x229)](_0x41113a);}[_0x588e27(0x21d)](_0x5eea5c,_0x4e70bf){const _0xa31e63=_0x588e27;this[_0xa31e63(0x1f3)]=_0x5eea5c,this[_0xa31e63(0x210)][_0xa31e63(0x21d)](_0x5eea5c,_0x4e70bf);}[_0x588e27(0x1ea)](_0x8ce0fe){const _0x29a847=_0x588e27;(_0x8ce0fe?this[_0x29a847(0x1f3)][_0x29a847(0x22b)](_0x3e130d=>_0x3e130d['id']===_0x8ce0fe['id']):null)?(this[_0x29a847(0x1f0)]=!0x0,this[_0x29a847(0x210)][_0x29a847(0x1ea)](_0x8ce0fe)):_0x8ce0fe?.['id'][_0x29a847(0x224)](_0x29a847(0x20d))?(this[_0x29a847(0x1f0)]=!0x0,this[_0x29a847(0x210)][_0x29a847(0x1ea)](this[_0x29a847(0x1f3)][0x0])):this[_0x29a847(0x1f0)]=!0x1;}[_0x588e27(0x220)](){const _0x4f6bfa=_0x588e27;this[_0x4f6bfa(0x210)][_0x4f6bfa(0x220)]();}[_0x588e27(0x206)](_0xb23555){const _0x2f84ac=_0x588e27;this[_0x2f84ac(0x210)][_0x2f84ac(0x206)](_0xb23555);}[_0x588e27(0x214)](_0x103212,_0x349d2e,_0x47ba26,_0x227941){const _0x1f13d8=_0x588e27;this[_0x1f13d8(0x1ec)][_0x1f13d8(0x214)](_0x103212,_0x349d2e,_0x47ba26,_0x227941);}[_0x588e27(0x207)](_0x2dd85b){const _0x31f336=_0x588e27;this[_0x31f336(0x1ec)][_0x31f336(0x207)](_0x2dd85b);}[_0x588e27(0x201)](){const _0x55c1b1=_0x588e27;this[_0x55c1b1(0x1f7)][_0x55c1b1(0x226)]();}}class ms extends _0x3fcccd{constructor(_0x4e07d7){const _0x5f3ccd=_0x588e27;super(_0x4e07d7);const _0x1c224e=new _0x1e1e74(_0x4e07d7);_0x1c224e[_0x5f3ccd(0x225)]({'label':_0xd1223e(this[_0x5f3ccd(0x22d)],_0x5f3ccd(0x1fb)),'withText':!0x0,'class':[_0x5f3ccd(0x211)],'tooltip':''}),_0x1c224e[_0x5f3ccd(0x217)](_0x5f3ccd(0x21a))['to'](this,_0x5f3ccd(0x1f1)),this[_0x5f3ccd(0x205)]({'tag':_0x5f3ccd(0x215),'attributes':{'class':['ck',_0x5f3ccd(0x1f8)]},'children':[{'tag':'p','children':[{'text':_0xd1223e(this[_0x5f3ccd(0x22d)],_0x5f3ccd(0x221))+'\x20'},_0x1c224e]}]});}}
@@ -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 _0x5f0162=_0xbac0;(function(_0x4e9f56,_0x53fe2a){const _0x47e304=_0xbac0,_0x552346=_0x4e9f56();while(!![]){try{const _0x22fe39=parseInt(_0x47e304(0x16c))/0x1+-parseInt(_0x47e304(0x162))/0x2*(-parseInt(_0x47e304(0x169))/0x3)+parseInt(_0x47e304(0x18d))/0x4*(-parseInt(_0x47e304(0x157))/0x5)+-parseInt(_0x47e304(0x183))/0x6*(parseInt(_0x47e304(0x14d))/0x7)+-parseInt(_0x47e304(0x155))/0x8*(parseInt(_0x47e304(0x19c))/0x9)+-parseInt(_0x47e304(0x14f))/0xa*(parseInt(_0x47e304(0x17f))/0xb)+-parseInt(_0x47e304(0x192))/0xc*(-parseInt(_0x47e304(0x17d))/0xd);if(_0x22fe39===_0x53fe2a)break;else _0x552346['push'](_0x552346['shift']());}catch(_0x325083){_0x552346['push'](_0x552346['shift']());}}}(_0x24df,0xadc82));import{CKEditorError as _0x3f1cde,logWarning as _0x55f041,scrollViewportToShowTarget as _0x197b74}from'ckeditor5/src/utils.js';import{View as _0x52ca87}from'ckeditor5/src/ui.js';function _0xbac0(_0xd54c48,_0x4a85d4){const _0x24df73=_0x24df();return _0xbac0=function(_0xbac049,_0x49427e){_0xbac049=_0xbac049-0x14d;let _0x2e5e47=_0x24df73[_0xbac049];return _0x2e5e47;},_0xbac0(_0xd54c48,_0x4a85d4);}import{AI_CHAT_UI_EVENT_NAMES as _0x4cf819}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x752c52}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x5cf5bd}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x5b243b}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x15789b}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3e2a4e}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x2b5ed6}from'../utils/scrollmanager.js';import{AISkeletonView as _0x4c3570,SKELETON_DEFINITIONS as _0x2f678d}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x34de90}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x52ca87{[_0x5f0162(0x199)];[_0x5f0162(0x15e)];[_0x5f0162(0x19d)];constructor(_0x3affe9,_0x5a9d10){const _0x15ce7e=_0x5f0162;super(_0x3affe9),this[_0x15ce7e(0x19d)]=_0x5a9d10,this[_0x15ce7e(0x156)](_0x15ce7e(0x152),!0x1),this[_0x15ce7e(0x156)](_0x15ce7e(0x194),''),this[_0x15ce7e(0x156)](_0x15ce7e(0x191),!0x1),this[_0x15ce7e(0x156)](_0x15ce7e(0x19a),!0x1),this[_0x15ce7e(0x199)]=this[_0x15ce7e(0x185)](),this[_0x15ce7e(0x199)][_0x15ce7e(0x17c)](..._0x4cf819)['to'](this),this[_0x15ce7e(0x178)]();}[_0x5f0162(0x17b)](){const _0x556a46=_0x5f0162;super[_0x556a46(0x17b)](),this[_0x556a46(0x15e)]=new _0x2b5ed6(this[_0x556a46(0x16d)]);}[_0x5f0162(0x15c)](){const _0xf40b85=_0x5f0162;super[_0xf40b85(0x15c)](),this[_0xf40b85(0x15e)][_0xf40b85(0x15c)]();}[_0x5f0162(0x161)](){const _0x2ce323=_0x5f0162;this[_0x2ce323(0x199)][_0x2ce323(0x161)]();}[_0x5f0162(0x19e)](_0x1a53f2,_0x1be616){const _0x3bb24b=_0x5f0162;let _0x4cac18;_0x3bb24b(0x158)===_0x1a53f2?_0x4cac18=new _0x5cf5bd(this[_0x3bb24b(0x193)],_0x1be616):_0x3bb24b(0x16a)===_0x1a53f2?(_0x4cac18=new _0x752c52(this[_0x3bb24b(0x193)],_0x1be616),_0x4cac18[_0x3bb24b(0x171)](_0x3bb24b(0x19a))['to'](this,_0x3bb24b(0x19a))):_0x4cac18=_0x3bb24b(0x188)===_0x1a53f2?new _0x5b243b(this[_0x3bb24b(0x193)],_0x1be616,this[_0x3bb24b(0x19d)]):_0x3bb24b(0x18e)===_0x1a53f2?new _0x3e2a4e(this[_0x3bb24b(0x193)],_0x1be616):new _0x15789b(_0x1be616),this[_0x3bb24b(0x199)][_0x3bb24b(0x195)](_0x4cac18);}async[_0x5f0162(0x151)]({id:_0x17b135,parsedContent:_0x46f9e1,renderingStrategy:_0x58c38a,abortSignal:_0x443a78}){const _0x38c89f=_0x5f0162,_0x1350e9=this[_0x38c89f(0x153)](_0x17b135);if(!(_0x1350e9 instanceof _0x5cf5bd))throw new _0x3f1cde(_0x38c89f(0x17e),null,{'itemView':_0x1350e9,'id':_0x17b135,'parsedContent':_0x46f9e1});await _0x1350e9[_0x38c89f(0x165)]({'parsedContent':_0x46f9e1,'renderingStrategy':_0x58c38a,'abortSignal':_0x443a78});}async[_0x5f0162(0x154)](_0x56aaef,_0x1097e5){const _0x3cedc6=_0x5f0162,_0x2e294b=this[_0x3cedc6(0x153)](_0x56aaef);if(_0x2e294b instanceof _0x752c52)_0x2e294b[_0x3cedc6(0x18c)](_0x1097e5);else{if(!(_0x2e294b instanceof _0x5cf5bd))throw new _0x3f1cde(_0x3cedc6(0x173),null,{'itemView':_0x2e294b,'id':_0x56aaef,'sources':_0x1097e5});_0x2e294b[_0x3cedc6(0x18c)](_0x1097e5);}}async[_0x5f0162(0x184)]({id:_0x1ffc66,parts:_0x59b92,renderingStrategy:_0x3cc5bc,abortSignal:_0x110390}){const _0x4f309d=_0x5f0162,_0x4b208c=this[_0x4f309d(0x153)](_0x1ffc66);if(!(_0x4b208c instanceof _0x752c52))throw new _0x3f1cde(_0x4f309d(0x15f),null,{'itemView':_0x4b208c,'id':_0x1ffc66,'parts':_0x59b92});await _0x4b208c[_0x4f309d(0x165)]({'parts':_0x59b92,'renderingStrategy':_0x3cc5bc,'abortSignal':_0x110390});}[_0x5f0162(0x168)]({id:_0x505d87,index:_0x1504aa,state:_0x237147}){const _0x47c2ee=_0x5f0162,_0x50531a=this[_0x47c2ee(0x153)](_0x505d87);if(!(_0x50531a instanceof _0x752c52))throw new _0x3f1cde(_0x47c2ee(0x15f),this,{'id':_0x505d87});_0x50531a[_0x47c2ee(0x179)](_0x1504aa,_0x237147);}[_0x5f0162(0x15b)](_0x3477ba){const _0xb96a1c=_0x5f0162;this[_0xb96a1c(0x153)](_0x3477ba)[_0xb96a1c(0x18a)]();}[_0x5f0162(0x187)](){const _0x3f7664=_0x5f0162;return this[_0x3f7664(0x199)][_0x3f7664(0x163)](_0x42c014=>_0x42c014[_0x3f7664(0x196)]['id']);}[_0x5f0162(0x17a)](_0x1c5324){const _0x4f137b=_0x5f0162;this[_0x4f137b(0x199)][_0x4f137b(0x177)](this[_0x4f137b(0x153)](_0x1c5324));}[_0x5f0162(0x14e)](_0xfc54dd,_0x9ea10){const _0x4b2ae3=_0x5f0162,_0x59da7c=this[_0x4b2ae3(0x153)](_0xfc54dd);if(!(_0x59da7c instanceof _0x752c52))return void _0x55f041(_0x4b2ae3(0x15a),{'replyId':_0xfc54dd,'partIndex':_0x9ea10});const _0x5dea46=_0x59da7c[_0x4b2ae3(0x198)](_0x9ea10);_0x5dea46?_0x197b74({'target':_0x5dea46[_0x4b2ae3(0x16d)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x55f041(_0x4b2ae3(0x189),{'replyId':_0xfc54dd,'partIndex':_0x9ea10});}[_0x5f0162(0x178)](){const _0x29c934=_0x5f0162;this[_0x29c934(0x19f)]({'tag':_0x29c934(0x159),'attributes':{'class':['ck',_0x29c934(0x180)]},'children':this[_0x29c934(0x176)]()});}[_0x5f0162(0x176)](){const _0x1e7a26=_0x5f0162,_0x39a31e=this[_0x1e7a26(0x166)]();return[this[_0x1e7a26(0x197)](),_0x39a31e,this[_0x1e7a26(0x1a0)]()];}[_0x5f0162(0x166)](){const _0x970190=_0x5f0162,_0x4a29cc=new _0x4c3570(this[_0x970190(0x193)],_0x2f678d[_0x970190(0x18f)]);return _0x4a29cc[_0x970190(0x16f)]({'attributes':{'class':[this[_0x970190(0x15d)]['if'](_0x970190(0x191),_0x970190(0x19b),_0x21b259=>!_0x21b259)]}}),_0x4a29cc;}[_0x5f0162(0x197)](){const _0x2a25b3=_0x5f0162,_0x5b58d3=new _0x52ca87(this[_0x2a25b3(0x193)]);return _0x5b58d3[_0x2a25b3(0x19f)]({'tag':_0x2a25b3(0x159),'attributes':{'class':['ck',_0x2a25b3(0x150),this[_0x2a25b3(0x15d)]['if'](_0x2a25b3(0x191),_0x2a25b3(0x19b))]},'children':this[_0x2a25b3(0x199)]}),_0x5b58d3;}[_0x5f0162(0x1a0)](){const _0x417487=_0x5f0162,_0x3ab295=new _0x52ca87(this[_0x417487(0x193)]);return _0x3ab295[_0x417487(0x19f)]({'tag':_0x417487(0x159),'attributes':{'class':['ck',_0x417487(0x160),this[_0x417487(0x15d)]['if'](_0x417487(0x152),_0x417487(0x19b),_0x1312f2=>!_0x1312f2)]},'children':this[_0x417487(0x186)]()}),_0x3ab295;}[_0x5f0162(0x186)](){const _0x4d4cf5=_0x5f0162,_0x36f133=new _0x34de90();return _0x36f133[_0x4d4cf5(0x172)]=!0x0,[_0x36f133,{'tag':_0x4d4cf5(0x175),'attributes':{'class':['ck',_0x4d4cf5(0x181)]},'children':[{'text':this[_0x4d4cf5(0x15d)]['to'](_0x4d4cf5(0x194))}]}];}[_0x5f0162(0x153)](_0x5ad53d){const _0x5f45cc=_0x5f0162,_0x498ec0=this[_0x5f45cc(0x199)][_0x5f45cc(0x174)](_0x242561=>_0x242561[_0x5f45cc(0x196)]['id'][_0x5f45cc(0x16e)](_0x5ad53d));if(!_0x498ec0)throw new _0x3f1cde(_0x5f45cc(0x18b),this,{'id':_0x5ad53d});return _0x498ec0;}[_0x5f0162(0x182)](_0x2dedfe){const _0x1e22ae=_0x5f0162;this[_0x1e22ae(0x156)](_0x1e22ae(0x194),_0x2dedfe);}[_0x5f0162(0x16b)](_0xeaa6e0){const _0x3a69ae=_0x5f0162;this[_0x3a69ae(0x156)](_0x3a69ae(0x191),_0xeaa6e0);}[_0x5f0162(0x164)](){const _0x3f37a2=_0x5f0162;this[_0x3f37a2(0x15e)][_0x3f37a2(0x170)]();}[_0x5f0162(0x167)](){const _0x502f8a=_0x5f0162;this[_0x502f8a(0x15e)][_0x502f8a(0x190)]();}}function _0x24df(){const _0x3a40d8=['delegate','5031Ikqqwh','ai-chat-feed-view-item-not-a-reply-item','297bpJroD','ck-ai-chat__feed','ck-ai-chat__loader-text','setLoadingMessage','6gdtbFz','updateSuggestionItem','createCollection','_createLoaderChildren','getItemIds','user-message','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','markAsDone','ai-chat-feed-view-item-not-found','updateSources','4TZsHZT','interaction-header','aiFeed','stop','isLoadingSkeletonVisible','53892tEewmp','locale','loadingMessage','add','options','_createFeedItems','getPartView','children','isTrackChangesOn','ck-hidden','1089mUvkFv','_bodyCollection','addItem','setTemplate','_createFeedLoader','4536931lwFgKg','scrollToSuggestion','472320zrhpOE','ck-ai-chat__feed__items','updateReplyItem','isPending','getItemById','updateWebSources','30168efDyXg','set','3583645NElhyN','ai-reply','div','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','markItemAsDone','destroy','bindTemplate','scrollManager','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat__loader','clear','2cSseOp','map','startAutoScroll','updateContent','_createSkeletonLoader','stopAutoScroll','updateSuggestionPartState','4049706NYITyL','ai-suggestion-reply','toggleLoadingSkeleton','720308UgLmSO','element','includes','extendTemplate','start','bind','isVisible','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','find','span','_createTemplateChildren','remove','_setupTemplate','updatePartState','removeItem','render'];_0x24df=function(){return _0x3a40d8;};return _0x24df();}
@@ -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 _0x8062b5=_0x2fa3;(function(_0x21ed5e,_0x269861){const _0x35a7cf=_0x2fa3,_0xcc30b1=_0x21ed5e();while(!![]){try{const _0x5c1f32=parseInt(_0x35a7cf(0x120))/0x1+-parseInt(_0x35a7cf(0x115))/0x2*(-parseInt(_0x35a7cf(0x116))/0x3)+parseInt(_0x35a7cf(0x122))/0x4+parseInt(_0x35a7cf(0x124))/0x5+parseInt(_0x35a7cf(0x117))/0x6+parseInt(_0x35a7cf(0x11c))/0x7*(-parseInt(_0x35a7cf(0x113))/0x8)+parseInt(_0x35a7cf(0x112))/0x9*(-parseInt(_0x35a7cf(0x119))/0xa);if(_0x5c1f32===_0x269861)break;else _0xcc30b1['push'](_0xcc30b1['shift']());}catch(_0x52ed6b){_0xcc30b1['push'](_0xcc30b1['shift']());}}}(_0x3205,0x4f92b));import{ButtonView as _0x31c811,FormHeaderView as _0xe1a5e4}from'ckeditor5/src/ui.js';import{IconPlus as _0x4a7911,IconAIChat as _0x1eacca}from'ckeditor5/src/icons.js';function _0x2fa3(_0x2c1d1c,_0x4ad1f6){const _0x3205ea=_0x3205();return _0x2fa3=function(_0x2fa3e9,_0x3500e7){_0x2fa3e9=_0x2fa3e9-0x10d;let _0x48ba76=_0x3205ea[_0x2fa3e9];return _0x48ba76;},_0x2fa3(_0x2c1d1c,_0x4ad1f6);}function _0x3205(){const _0x490481=['add','496955UGqJjW','resizeButton','fire','children','ck-ai-header\x20ck-ai-header_chat','startConversation','locale','9442305WKmIlN','744tyBONi','AI_CHAT_HEADING','26552UDhAld','81RtoYwJ','3182262ULmSJZ','_createStartConversationButton','10qADxzD','execute','AI_CHAT_LABEL_NEW_CHAT','3178yWnRvf','conversationStartButton','set','isMaximized','219519BnYwnO','ck-ai-chat__start-conversation','838236KNurRR'];_0x3205=function(){return _0x490481;};return _0x3205();}import{getTranslation as _0x28d1d8}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x2745f6}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0xe1a5e4{[_0x8062b5(0x11d)];[_0x8062b5(0x125)];constructor(_0x52e800,_0xbae7d7){const _0x5a04fa=_0x8062b5;super(_0x52e800,{'label':_0x28d1d8(_0x52e800,_0x5a04fa(0x114)),'class':_0x5a04fa(0x10f),'icon':_0x1eacca}),this[_0x5a04fa(0x11e)](_0x5a04fa(0x11f),!0x1),this[_0x5a04fa(0x11d)]=this[_0x5a04fa(0x118)](_0x52e800),this[_0x5a04fa(0x10e)][_0x5a04fa(0x123)](this[_0x5a04fa(0x11d)]),_0xbae7d7&&(this[_0x5a04fa(0x125)]=_0x2745f6(_0x52e800,this),this[_0x5a04fa(0x10e)][_0x5a04fa(0x123)](this[_0x5a04fa(0x125)]));}[_0x8062b5(0x118)](_0xe5789){const _0x3c5e42=_0x8062b5,_0x21ad54=new _0x31c811(_0xe5789);return _0x21ad54[_0x3c5e42(0x11e)]({'label':_0x28d1d8(this[_0x3c5e42(0x111)],_0x3c5e42(0x11b)),'withText':!0x0,'icon':_0x4a7911,'class':_0x3c5e42(0x121)}),_0x21ad54['on'](_0x3c5e42(0x11a),()=>{const _0x298824=_0x3c5e42;this[_0x298824(0x10d)](_0x298824(0x110));}),_0x21ad54;}}
@@ -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 _0x3ac918=_0x5006;(function(_0x9211e0,_0x90759b){var _0x40fa11=_0x5006,_0x3c56f4=_0x9211e0();while(!![]){try{var _0x6b5e5a=parseInt(_0x40fa11(0x7c))/0x1+-parseInt(_0x40fa11(0x77))/0x2*(-parseInt(_0x40fa11(0x74))/0x3)+-parseInt(_0x40fa11(0x70))/0x4+parseInt(_0x40fa11(0x6a))/0x5*(parseInt(_0x40fa11(0x79))/0x6)+-parseInt(_0x40fa11(0x7e))/0x7+-parseInt(_0x40fa11(0x72))/0x8+parseInt(_0x40fa11(0x80))/0x9*(-parseInt(_0x40fa11(0x68))/0xa);if(_0x6b5e5a===_0x90759b)break;else _0x3c56f4['push'](_0x3c56f4['shift']());}catch(_0xbdc43a){_0x3c56f4['push'](_0x3c56f4['shift']());}}}(_0x3d1f,0x5131c));function _0x3d1f(){var _0x541983=['2359861OTSIQm','chatControls','204021XpsAso','chatFeed','closeSourceResourceBalloon','30gdXlfH','uiLanguageDirection','5ooxbgh','div','setTemplate','destroy','ck-ai-chat','ck-rounded-corners','592616bbvnsU','chatHeader','3736192VvlJzL','detachFromDom','21198kuyyQM','ck-reset_all','delegate','46cgzggk','_bodyCollection','3177684rFdNzK','populateSourceResourceBalloon','attachToDom','660748OUFzme','chatDisclaimer'];_0x3d1f=function(){return _0x541983;};return _0x3d1f();}import{View as _0x3c74cc,BodyCollection as _0x3e4798}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1e290e}from'../utils/eventnames.js';import{AIChatFeedView as _0x27e53d}from'./aichatfeedview.js';import{AIChatControlsView as _0x7a7e28}from'./aichatcontrolsview.js';function _0x5006(_0x100258,_0x2d4f6c){var _0x3d1f75=_0x3d1f();return _0x5006=function(_0x5006d9,_0xdd8e58){_0x5006d9=_0x5006d9-0x67;var _0x5f2a49=_0x3d1f75[_0x5006d9];return _0x5f2a49;},_0x5006(_0x100258,_0x2d4f6c);}import{AIChatHeaderView as _0x120676}from'./aichatheaderview.js';import{AIDisclaimerView as _0xedcebf}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x3c74cc{[_0x3ac918(0x71)];[_0x3ac918(0x81)];[_0x3ac918(0x7f)];[_0x3ac918(0x7d)];[_0x3ac918(0x78)];constructor(_0x2a35b2,_0x582428){var _0x529642=_0x3ac918;super(_0x2a35b2),this[_0x529642(0x78)]=new _0x3e4798(_0x2a35b2),this[_0x529642(0x78)][_0x529642(0x7b)](),this[_0x529642(0x71)]=new _0x120676(_0x2a35b2,_0x582428),this[_0x529642(0x71)][_0x529642(0x76)](..._0x1e290e)['to'](this),this[_0x529642(0x81)]=new _0x27e53d(_0x2a35b2,this[_0x529642(0x78)]),this[_0x529642(0x81)][_0x529642(0x76)](..._0x1e290e)['to'](this),this[_0x529642(0x7f)]=new _0x7a7e28(_0x2a35b2,this[_0x529642(0x78)]),this[_0x529642(0x7f)][_0x529642(0x76)](..._0x1e290e)['to'](this),this[_0x529642(0x7d)]=new _0xedcebf(_0x2a35b2),this[_0x529642(0x6c)]({'tag':_0x529642(0x6b),'attributes':{'class':['ck',_0x529642(0x75),_0x529642(0x6e),_0x529642(0x6f)],'dir':_0x2a35b2[_0x529642(0x69)]},'children':[this[_0x529642(0x71)],this[_0x529642(0x81)],this[_0x529642(0x7f)],this[_0x529642(0x7d)]]});}[_0x3ac918(0x7a)](_0x1e9de8,_0x3f36ff,_0x3a9328,_0x128de1){var _0x633f10=_0x3ac918;this[_0x633f10(0x7f)][_0x633f10(0x7a)](_0x1e9de8,_0x3f36ff,_0x3a9328,_0x128de1);}[_0x3ac918(0x67)](_0x838ba4){var _0x2d745a=_0x3ac918;this[_0x2d745a(0x7f)][_0x2d745a(0x67)](_0x838ba4);}[_0x3ac918(0x6d)](){var _0x3ec757=_0x3ac918;this[_0x3ec757(0x78)][_0x3ec757(0x73)](),super[_0x3ec757(0x6d)]();}}
@@ -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 _0x27157a=_0x5cbd;(function(_0x382aff,_0x496aad){const _0x263468=_0x5cbd,_0x5b73bb=_0x382aff();while(!![]){try{const _0x474ee0=parseInt(_0x263468(0x142))/0x1*(-parseInt(_0x263468(0x16a))/0x2)+parseInt(_0x263468(0x12e))/0x3*(-parseInt(_0x263468(0xf2))/0x4)+-parseInt(_0x263468(0x129))/0x5+-parseInt(_0x263468(0xf7))/0x6*(-parseInt(_0x263468(0xfa))/0x7)+-parseInt(_0x263468(0x15c))/0x8*(-parseInt(_0x263468(0x11a))/0x9)+parseInt(_0x263468(0x17d))/0xa+parseInt(_0x263468(0x149))/0xb*(parseInt(_0x263468(0x111))/0xc);if(_0x474ee0===_0x496aad)break;else _0x5b73bb['push'](_0x5b73bb['shift']());}catch(_0x3adb47){_0x5b73bb['push'](_0x5b73bb['shift']());}}}(_0x578a,0x819cf));function _0x5cbd(_0x294d28,_0x55ad0f){const _0x578a56=_0x578a();return _0x5cbd=function(_0x5cbd43,_0x5735af){_0x5cbd43=_0x5cbd43-0xef;let _0x3fa845=_0x578a56[_0x5cbd43];return _0x3fa845;},_0x5cbd(_0x294d28,_0x55ad0f);}import{View as _0x1f4113,BalloonPanelView as _0x10034c,ButtonView as _0x452677,clickOutsideHandler as _0x89e0f6}from'ckeditor5/src/ui.js';import{Collection as _0x56cc9b}from'ckeditor5/src/utils.js';function _0x578a(){const _0xacbadf=['50px','showBalloonPanel','getBoundingClientRect','children','_restoreAncestorVisibility','add','_distributeChips','_createShowMoreButtonView','bottom','_parentView','-9999px','innerWidth','_config','some','12XghMDS','cssClasses','toLowerCase','_createCalculationContainer','tagName','reorganizeChips','length','visible\x20!important','height','4708197WdJTWf','+\x201','left','block\x20!important','overflowContainer','push','_updateShowMoreButtonVisibility','_targetContainer','width','isVisible','_handleShowMoreButtonClick','abs','pin','className','pop','4971240cUSmcm','controlsButton','_createShowMoreBalloonPanelView','_containerElement','showMoreLabelPrefix','1362JPaPYr','content','_makeAncestorsVisible','createElement','pointerEvents','_createContainerElements','hide','_overflowChips','set','div','opacity','block','includes','innerHTML','_calculateContainerWidth','observe','show','clear','setContainerElement','.ck-ai-chat','2SlundG','calculationContainer','body','extendTemplate','getComputedStyle','hidden','_checkAndHandleOverflow','7267249gLMlIy','destroy','style','_repinBalloonPanel','setTemplate','slice','isOn','none','documentElement','_testButtonFit','showMoreButtonView','remove','label','_calculateOverflowInContainer','position','zIndex','offsetWidth','cloneNode','_intersectionObserver','8AYwPdf','_updateBalloonContent','querySelector','display','_isContainerVisible','0px','_showMoreBalloonPanelView','absolute','_visibleChips','right','from','visibility','ck-calculation-container','_applyCalculationStyles','665288KUBNHn','forEach','_findTargetContainer','_bodyCollection','button','hideBalloonPanel','isIntersecting','_ancestorsToRestore','_updateOverflowUI','appendChild','top','maxVisibleRows','render','_renderChipsAndCountRows','_showMoreButtonView','auto','clientHeight','disconnect','overflowChips','4765490OqBHDD','_pendingCalculation','showMoreButton','textContent','border-box','classList','disableAnimationOnEnter','innerHeight','clientWidth','300px','visible','8HOMxiS','parentElement','_setupVisibilityObserver','element','boxSizing','12YBrZsN','execute','_createShowMoreButton','1858493bhBbjx','_createMockButton','rowDetectionTolerance','isConnected','undefined','_applyOverflowResults','_locale','filter','showMoreBalloon'];_0x578a=function(){return _0xacbadf;};return _0x578a();}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x27157a(0xf0);export class AIChatChipsOverflowManager{[_0x27157a(0x100)];[_0x27157a(0x10f)];[_0x27157a(0x164)];[_0x27157a(0x135)];[_0x27157a(0x178)]=null;[_0x27157a(0x162)]=null;[_0x27157a(0x12c)]=null;[_0x27157a(0x16d)];[_0x27157a(0x10c)]=null;[_0x27157a(0x15b)]=null;[_0x27157a(0x17e)]=!0x1;constructor(_0x3dd647,_0x306ebc,_0x5b544d,_0x316ba2,_0x29a719){const _0x314af8=_0x27157a;this[_0x314af8(0x100)]=_0x3dd647,this[_0x314af8(0x164)]=_0x306ebc,this[_0x314af8(0x10f)]={...hn,..._0x5b544d,'cssClasses':{'controlsButton':'','calculationContainer':_0x314af8(0x168),..._0x5b544d[_0x314af8(0x112)]}},this[_0x314af8(0x135)]=new _0x56cc9b(),this[_0x314af8(0x16d)]=_0x316ba2,this[_0x314af8(0x10c)]=_0x29a719||null;}[_0x27157a(0x140)](_0x52ccbe){const _0x15a258=_0x27157a;this[_0x15a258(0x15b)]&&(this[_0x15a258(0x15b)][_0x15a258(0x17b)](),this[_0x15a258(0x15b)]=null),this[_0x15a258(0x12c)]=_0x52ccbe,this[_0x15a258(0xf4)]();}get[_0x27157a(0x153)](){const _0xad844f=_0x27157a;return this[_0xad844f(0x178)];}get[_0x27157a(0x17c)](){const _0xba3481=_0x27157a;return this[_0xba3481(0x135)];}[_0x27157a(0x116)](){requestAnimationFrame(()=>{const _0x513146=_0x5cbd;this[_0x513146(0x148)]();});}[_0x27157a(0x104)](){const _0x87364c=_0x27157a;this[_0x87364c(0x178)]&&this[_0x87364c(0x162)]&&(this[_0x87364c(0x15d)](),this[_0x87364c(0x178)][_0x87364c(0x14f)]=!0x0,this[_0x87364c(0x162)][_0x87364c(0x13e)](),this[_0x87364c(0x162)][_0x87364c(0x126)]({'target':this[_0x87364c(0x178)][_0x87364c(0xf5)],'limiter':document[_0x87364c(0x15e)](_0x87364c(0x141))}));}[_0x27157a(0x16f)](){const _0x1e1901=_0x27157a;this[_0x1e1901(0x178)]&&this[_0x1e1901(0x162)]&&(this[_0x1e1901(0x178)][_0x1e1901(0x14f)]=!0x1,this[_0x1e1901(0x162)][_0x1e1901(0x134)]());}[_0x27157a(0x13f)](){const _0x100b93=_0x27157a;this[_0x100b93(0x135)][_0x100b93(0x13f)](),this[_0x100b93(0x16f)](),this[_0x100b93(0x120)](),this[_0x100b93(0x178)]&&(this[_0x100b93(0x178)][_0x100b93(0x155)]=''),this[_0x100b93(0x162)]&&this[_0x100b93(0x162)][_0x100b93(0x12f)][_0x100b93(0x13f)]();}[_0x27157a(0x14a)](){const _0x52e569=_0x27157a;this[_0x52e569(0x15b)]&&(this[_0x52e569(0x15b)][_0x52e569(0x17b)](),this[_0x52e569(0x15b)]=null),this[_0x52e569(0x178)]&&(this[_0x52e569(0x178)][_0x52e569(0x14a)](),this[_0x52e569(0x178)]=null),this[_0x52e569(0x162)]&&(this[_0x52e569(0x162)][_0x52e569(0x14a)](),this[_0x52e569(0x162)]=null);}[_0x27157a(0x148)](){const _0xb9799e=_0x27157a;if(!this[_0xb9799e(0x12c)])return;if(!this[_0xb9799e(0x160)]())return void(this[_0xb9799e(0x17e)]=!0x0);this[_0xb9799e(0x17e)]=!0x1;const _0x227516=[...this[_0xb9799e(0x164)],...this[_0xb9799e(0x135)]],_0x68d84d=this[_0xb9799e(0x114)](),_0x2d896e=this[_0xb9799e(0x156)](_0x68d84d,_0x227516),_0x2e4491=_0x68d84d[_0xb9799e(0x171)];_0x2e4491&&this[_0xb9799e(0x107)](_0x2e4491),_0x68d84d[_0xb9799e(0x154)](),this[_0xb9799e(0xff)](_0x227516,_0x2d896e);}[_0x27157a(0xf9)](){const _0x8ca824=_0x27157a;this[_0x8ca824(0x178)]=this[_0x8ca824(0x10a)](),this[_0x8ca824(0x162)]=this[_0x8ca824(0x12b)](),this[_0x8ca824(0x178)][_0x8ca824(0x176)](),this[_0x8ca824(0x12c)][_0x8ca824(0x173)](this[_0x8ca824(0x178)][_0x8ca824(0xf5)]),this[_0x8ca824(0x178)]['on'](_0x8ca824(0xf8),()=>{const _0x3f0548=_0x8ca824;this[_0x3f0548(0x124)]();}),_0x89e0f6({'emitter':this[_0x8ca824(0x162)],'contextElements':[this[_0x8ca824(0x162)][_0x8ca824(0xf5)],this[_0x8ca824(0x178)][_0x8ca824(0xf5)]],'callback':()=>this[_0x8ca824(0x16f)](),'activator':()=>this[_0x8ca824(0x178)][_0x8ca824(0x14f)]});}[_0x27157a(0x10a)](){const _0x4bc996=_0x27157a,_0x39776a=new _0x452677(this[_0x4bc996(0x100)]);_0x39776a[_0x4bc996(0x136)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2d9d8f=[this[_0x4bc996(0x10f)][_0x4bc996(0x112)][_0x4bc996(0x17f)]];return this[_0x4bc996(0x10f)][_0x4bc996(0x112)][_0x4bc996(0x12a)]&&_0x2d9d8f[_0x4bc996(0x11f)](this[_0x4bc996(0x10f)][_0x4bc996(0x112)][_0x4bc996(0x12a)]),_0x39776a[_0x4bc996(0x145)]({'attributes':{'class':_0x2d9d8f}}),_0x39776a;}[_0x27157a(0x12b)](){const _0x1ef85e=_0x27157a,_0x5c5e6a=new _0x10034c(this[_0x1ef85e(0x100)]);return _0x5c5e6a[_0x1ef85e(0x145)]({'attributes':{'class':this[_0x1ef85e(0x10f)][_0x1ef85e(0x112)][_0x1ef85e(0x102)]}}),this[_0x1ef85e(0x16d)][_0x1ef85e(0x108)](_0x5c5e6a),_0x5c5e6a;}[_0x27157a(0x15d)](){const _0xa75352=_0x27157a;if(this[_0xa75352(0x162)]&&(this[_0xa75352(0x162)][_0xa75352(0x12f)][_0xa75352(0x13f)](),this[_0xa75352(0x135)][_0xa75352(0x117)]>0x0)){this[_0xa75352(0x135)][_0xa75352(0x16b)](_0xeac4bc=>{const _0x47969e=_0xa75352;_0xeac4bc[_0x47969e(0x183)]();});const _0x2f7a5f=new _0x1f4113(this[_0xa75352(0x100)]);_0x2f7a5f[_0xa75352(0x14d)]({'tag':_0xa75352(0x137),'attributes':{'class':this[_0xa75352(0x10f)][_0xa75352(0x112)][_0xa75352(0x11e)]},'children':this[_0xa75352(0x135)]}),this[_0xa75352(0x162)][_0xa75352(0x12f)][_0xa75352(0x108)](_0x2f7a5f);}}[_0x27157a(0x124)](){const _0x110a4f=_0x27157a;this[_0x110a4f(0x178)][_0x110a4f(0x14f)]?this[_0x110a4f(0x16f)]():this[_0x110a4f(0x104)]();}[_0x27157a(0x120)](){const _0x23dc46=_0x27157a,_0x64115d=this[_0x23dc46(0x135)][_0x23dc46(0x117)]>0x0;this[_0x23dc46(0x178)]?.[_0x23dc46(0xf5)]&&(this[_0x23dc46(0x178)][_0x23dc46(0xf5)][_0x23dc46(0x14b)][_0x23dc46(0x15f)]=_0x64115d?'':_0x23dc46(0x150));}[_0x27157a(0x14c)](){const _0x84707d=_0x27157a;this[_0x84707d(0x178)]?.[_0x84707d(0x14f)]&&this[_0x84707d(0x162)]?.[_0x84707d(0x123)]&&this[_0x84707d(0x178)][_0x84707d(0xf5)]&&this[_0x84707d(0x162)][_0x84707d(0x126)]({'target':this[_0x84707d(0x178)][_0x84707d(0xf5)],'limiter':document[_0x84707d(0x15e)](_0x84707d(0x141))});}[_0x27157a(0x16c)](_0x5dec61){const _0x3418c0=_0x27157a,_0xdabc44=this[_0x3418c0(0x12c)]?.[_0x3418c0(0x115)][_0x3418c0(0x113)]()||_0x3418c0(0x137),_0x305ec0=this[_0x3418c0(0x12c)]?.[_0x3418c0(0x182)];if(_0x305ec0){const _0x44a12e=_0x305ec0[0x0]||'',_0x5e0d3d=_0x5dec61[_0x3418c0(0x15e)]('.'+_0x44a12e),_0x24e61c=_0x5dec61[_0x3418c0(0x15e)](_0xdabc44);return _0x5e0d3d||_0x24e61c||_0x5dec61;}return _0x5dec61[_0x3418c0(0x15e)](_0xdabc44)||_0x5dec61;}[_0x27157a(0x13c)](){const _0x34fbb0=_0x27157a,_0x25f59d=this[_0x34fbb0(0x10c)]?.[_0x34fbb0(0xf5)]||this[_0x34fbb0(0x12c)];if(!_0x25f59d)return ln;const _0x5810a1=window[_0x34fbb0(0x146)](_0x25f59d)[_0x34fbb0(0x122)];if(_0x34fbb0(0x179)===_0x5810a1||_0x34fbb0(0x161)===_0x5810a1||!_0x5810a1){const _0x4c10d0=_0x25f59d[_0x34fbb0(0xf3)];if(_0x4c10d0){const _0xe31675=window[_0x34fbb0(0x146)](_0x4c10d0);return _0x34fbb0(0x179)!==_0xe31675[_0x34fbb0(0x122)]?_0xe31675[_0x34fbb0(0x122)]:ln;}return ln;}return _0x5810a1;}[_0x27157a(0x169)](_0x9cac7d,_0x133eb6){const _0xdeee33=_0x27157a;this[_0xdeee33(0x10f)][_0xdeee33(0x112)][_0xdeee33(0x143)]&&_0x9cac7d[_0xdeee33(0x182)][_0xdeee33(0x108)](this[_0xdeee33(0x10f)][_0xdeee33(0x112)][_0xdeee33(0x143)]),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x122)]=_0x133eb6,_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x157)]=_0xdeee33(0x163),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x174)]=_0xdeee33(0x10d),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x11c)]=_0xdeee33(0x10d),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x138)]='0',_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x132)]=_0xdeee33(0x150),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x158)]='-1',_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x167)]=_0xdeee33(0x118),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x15f)]=_0xdeee33(0x11d),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0xf6)]=_0xdeee33(0x181);}[_0x27157a(0x107)](_0x3960fd){const _0x52b5fd=_0x27157a;_0x3960fd[_0x52b5fd(0x16b)](({element:_0x2a78b1,originalDisplay:_0x707b56,originalVisibility:_0x4d2c86})=>{const _0x413157=_0x52b5fd;_0x2a78b1[_0x413157(0x14b)][_0x413157(0x15f)]=_0x707b56,_0x2a78b1[_0x413157(0x14b)][_0x413157(0x167)]=_0x4d2c86;});}[_0x27157a(0x130)](_0xef6998){const _0x3bdc06=_0x27157a,_0x5dd0ce=[];let _0xad2e7b=_0xef6998;for(;_0xad2e7b&&_0xad2e7b!==document[_0x3bdc06(0x144)];){const _0x1d5dfa=window[_0x3bdc06(0x146)](_0xad2e7b);_0x3bdc06(0x150)!==_0x1d5dfa[_0x3bdc06(0x15f)]&&_0x3bdc06(0x147)!==_0x1d5dfa[_0x3bdc06(0x167)]||(_0x5dd0ce[_0x3bdc06(0x11f)]({'element':_0xad2e7b,'originalDisplay':_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x15f)],'originalVisibility':_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x167)]}),_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x15f)]=_0x3bdc06(0x139),_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x167)]=_0x3bdc06(0xf1)),_0xad2e7b=_0xad2e7b[_0x3bdc06(0xf3)];}return _0x5dd0ce;}[_0x27157a(0x133)](){const _0x5f209e=_0x27157a;let _0x3402ca,_0x56dc67;return this[_0x5f209e(0x10c)]?.[_0x5f209e(0xf5)]?(_0x3402ca=this[_0x5f209e(0x10c)][_0x5f209e(0xf5)][_0x5f209e(0x15a)](!0x0),_0x56dc67=this[_0x5f209e(0x16c)](_0x3402ca)):(_0x3402ca=document[_0x5f209e(0x131)](_0x5f209e(0x137)),_0x56dc67=_0x3402ca),{'calculationContainer':_0x3402ca,'targetContainer':_0x56dc67};}[_0x27157a(0x114)](){const _0x478d24=_0x27157a,{calculationContainer:_0x5e2c71,targetContainer:_0x5c6427}=this[_0x478d24(0x133)](),_0x5f26dc=this[_0x478d24(0x13c)]();this[_0x478d24(0x169)](_0x5e2c71,_0x5f26dc);const _0x5a1d7d=this[_0x478d24(0x10c)]?.[_0x478d24(0xf5)]||this[_0x478d24(0x12c)],_0x5c41ca=_0x5a1d7d?.[_0x478d24(0xf3)];_0x5c41ca?_0x5c41ca[_0x478d24(0x173)](_0x5e2c71):document[_0x478d24(0x144)][_0x478d24(0x173)](_0x5e2c71),_0x5e2c71[_0x478d24(0x121)]=_0x5c6427;const _0x15ac90=this[_0x478d24(0x130)](_0x5c41ca||null);return _0x5e2c71[_0x478d24(0x159)],_0x5e2c71[_0x478d24(0x171)]=_0x15ac90,_0x5e2c71;}[_0x27157a(0x156)](_0x2ec5ac,_0x18a504){const _0x45c7de=_0x27157a,_0x4e0917=_0x2ec5ac[_0x45c7de(0x121)]||_0x2ec5ac,_0x551467=[],{rowCount:_0x5249bc}=this[_0x45c7de(0x177)](_0x4e0917,_0x18a504);if(_0x5249bc<=this[_0x45c7de(0x10f)][_0x45c7de(0x175)])return _0x551467;const _0xf664f4=_0x18a504[_0x45c7de(0x14e)]();for(;_0xf664f4[_0x45c7de(0x117)]>0x0;){if(this[_0x45c7de(0x152)](_0x2ec5ac,_0x4e0917,_0xf664f4)){const _0x3ac0ed=_0x18a504[_0x45c7de(0x101)](_0x466404=>!_0xf664f4[_0x45c7de(0x13a)](_0x466404));_0x551467[_0x45c7de(0x11f)](..._0x3ac0ed);break;}if(!_0xf664f4[_0x45c7de(0x128)]())break;}return _0x551467;}[_0x27157a(0x177)](_0x7afb3d,_0x38f056){const _0x3a202c=_0x27157a;_0x7afb3d[_0x3a202c(0x13b)]='',_0x38f056[_0x3a202c(0x16b)](_0x48006e=>{const _0x15ae74=_0x3a202c;if(_0x48006e[_0x15ae74(0xf5)]){const _0x5e933f=_0x48006e[_0x15ae74(0xf5)][_0x15ae74(0x15a)](!0x0);_0x7afb3d[_0x15ae74(0x173)](_0x5e933f);}}),_0x7afb3d[_0x3a202c(0x159)];const _0x5e334f=_0x7afb3d[_0x3a202c(0x106)],_0x49beee=[];return Array[_0x3a202c(0x166)](_0x5e334f)[_0x3a202c(0x16b)](_0x258f51=>{const _0xe3294e=_0x3a202c,_0x10625d=_0x258f51[_0xe3294e(0x105)]()[_0xe3294e(0x174)];_0x49beee[_0xe3294e(0x110)](_0x5580b4=>Math[_0xe3294e(0x125)](_0x5580b4-_0x10625d)<this[_0xe3294e(0x10f)][_0xe3294e(0xfc)])||_0x49beee[_0xe3294e(0x11f)](_0x10625d);}),{'rowCount':_0x49beee[_0x3a202c(0x117)]};}[_0x27157a(0xfb)](){const _0x5951de=_0x27157a,_0x4cb942=document[_0x5951de(0x131)](_0x5951de(0x16e));return _0x4cb942[_0x5951de(0x127)]=this[_0x5951de(0x10f)][_0x5951de(0x112)][_0x5951de(0x17f)],this[_0x5951de(0x10f)][_0x5951de(0x112)][_0x5951de(0x12a)]&&_0x4cb942[_0x5951de(0x182)][_0x5951de(0x108)](this[_0x5951de(0x10f)][_0x5951de(0x112)][_0x5951de(0x12a)]),_0x4cb942[_0x5951de(0x180)]=_0x5951de(0x11b),_0x4cb942;}[_0x27157a(0x152)](_0x268001,_0x48f4d7,_0x196d30){const _0x235a43=_0x27157a;this[_0x235a43(0x177)](_0x48f4d7,_0x196d30);const _0x4eec63=this[_0x235a43(0xfb)]();_0x268001[_0x235a43(0x173)](_0x4eec63),_0x268001[_0x235a43(0x159)];const _0x2344e0=[..._0x48f4d7[_0x235a43(0x106)],_0x4eec63],_0x8ada3f=[];_0x2344e0[_0x235a43(0x16b)](_0x2ceb90=>{const _0x472ac5=_0x235a43,_0x5e6044=_0x2ceb90[_0x472ac5(0x105)]()[_0x472ac5(0x174)];_0x8ada3f[_0x472ac5(0x110)](_0x4b751b=>Math[_0x472ac5(0x125)](_0x4b751b-_0x5e6044)<this[_0x472ac5(0x10f)][_0x472ac5(0xfc)])||_0x8ada3f[_0x472ac5(0x11f)](_0x5e6044);});const _0x592903=_0x8ada3f[_0x235a43(0x117)];return _0x4eec63[_0x235a43(0x154)](),_0x592903<=this[_0x235a43(0x10f)][_0x235a43(0x175)];}[_0x27157a(0x109)](_0x7ce33d,_0x1a493a){const _0x23ef6f=_0x27157a;this[_0x23ef6f(0x164)][_0x23ef6f(0x13f)](),this[_0x23ef6f(0x135)][_0x23ef6f(0x13f)](),_0x7ce33d[_0x23ef6f(0x16b)](_0x4d94af=>{const _0x35fcd8=_0x23ef6f;_0x1a493a[_0x35fcd8(0x13a)](_0x4d94af)?this[_0x35fcd8(0x135)][_0x35fcd8(0x108)](_0x4d94af):this[_0x35fcd8(0x164)][_0x35fcd8(0x108)](_0x4d94af);});}[_0x27157a(0x172)](_0x16b35b){const _0x1e94d1=_0x27157a;if(_0x16b35b>0x0&&!this[_0x1e94d1(0x178)]&&this[_0x1e94d1(0xf9)](),_0x16b35b>0x0&&this[_0x1e94d1(0x178)]){const _0x2de43c=''+this[_0x1e94d1(0x10f)][_0x1e94d1(0x12d)]+(_0x16b35b<0x63?_0x16b35b:'99');this[_0x1e94d1(0x178)][_0x1e94d1(0x155)]=_0x2de43c;}this[_0x1e94d1(0x15d)](),this[_0x1e94d1(0x120)](),this[_0x1e94d1(0x14c)]();}[_0x27157a(0xff)](_0x59d6b1,_0x25f192){const _0x1dfd71=_0x27157a;this[_0x1dfd71(0x109)](_0x59d6b1,_0x25f192),this[_0x1dfd71(0x172)](_0x25f192[_0x1dfd71(0x117)]);}[_0x27157a(0xf4)](){const _0x32eba9=_0x27157a;this[_0x32eba9(0x12c)]&&_0x32eba9(0xfe)!=typeof IntersectionObserver&&(this[_0x32eba9(0x15b)]=new IntersectionObserver(_0x353c83=>{const _0x1e1ba5=_0x32eba9;_0x353c83[0x0][_0x1e1ba5(0x170)]&&this[_0x1e1ba5(0x17e)]&&requestAnimationFrame(()=>{const _0x27c9b8=_0x1e1ba5;this[_0x27c9b8(0x148)]();});},{'threshold':0.01,'rootMargin':_0x32eba9(0x103)}),this[_0x32eba9(0x15b)][_0x32eba9(0x13d)](this[_0x32eba9(0x12c)]));}[_0x27157a(0x160)](){const _0x107b14=_0x27157a;if(!this[_0x107b14(0x12c)])return!0x1;if(!this[_0x107b14(0x12c)][_0x107b14(0xfd)])return!0x1;const _0x2e4908=this[_0x107b14(0x12c)][_0x107b14(0x105)]();if(0x0===_0x2e4908[_0x107b14(0x122)]||0x0===_0x2e4908[_0x107b14(0x119)])return!0x1;const _0x7eb8ca=window[_0x107b14(0x184)]||document[_0x107b14(0x151)][_0x107b14(0x17a)],_0x335ec8=window[_0x107b14(0x10e)]||document[_0x107b14(0x151)][_0x107b14(0xef)],_0xafda4a=0xc8;return _0x2e4908[_0x107b14(0x10b)]>=-0xc8&&_0x2e4908[_0x107b14(0x174)]<=_0x7eb8ca+_0xafda4a&&_0x2e4908[_0x107b14(0x165)]>=-0xc8&&_0x2e4908[_0x107b14(0x11c)]<=_0x335ec8+_0xafda4a;}}
@@ -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
+ const _0x44d48a=_0x2ce2;(function(_0x4e72b3,_0x2a3eec){const _0x10ad07=_0x2ce2,_0x35f9e7=_0x4e72b3();while(!![]){try{const _0x322450=parseInt(_0x10ad07(0xf1))/0x1+parseInt(_0x10ad07(0x12b))/0x2+parseInt(_0x10ad07(0x120))/0x3+parseInt(_0x10ad07(0x129))/0x4*(parseInt(_0x10ad07(0x107))/0x5)+parseInt(_0x10ad07(0x126))/0x6*(parseInt(_0x10ad07(0xf6))/0x7)+-parseInt(_0x10ad07(0x113))/0x8*(parseInt(_0x10ad07(0x102))/0x9)+-parseInt(_0x10ad07(0xfc))/0xa*(parseInt(_0x10ad07(0x118))/0xb);if(_0x322450===_0x2a3eec)break;else _0x35f9e7['push'](_0x35f9e7['shift']());}catch(_0x1e25a0){_0x35f9e7['push'](_0x35f9e7['shift']());}}}(_0x1758,0xe3654));import{ButtonView as _0x2ee146,IconView as _0x223bde}from'ckeditor5/src/ui.js';import{IconClose as _0x367b69,IconDocument as _0x4d7cbb,IconFileUpload as _0x25928e,IconLink as _0x119839,IconSelection as _0x1ae556}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1fbcb6}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5672e5}from'../../../aicore/ui/aispinner.js';function _0x2ce2(_0xa6cd6e,_0xb5a61e){const _0x1758d2=_0x1758();return _0x2ce2=function(_0x2ce2af,_0xb00806){_0x2ce2af=_0x2ce2af-0xe9;let _0x2e96a7=_0x1758d2[_0x2ce2af];return _0x2e96a7;},_0x2ce2(_0xa6cd6e,_0xb5a61e);}function _0x1758(){const _0xd1d0d5=['itemType','_isAnimationOnEnterEnabled','_createIconView','readonly','2612301LHBbeB','remove','ck-ai-chat-context-chip__label','_createLabelElement','ck-hidden','_setupRemoveButtonEvent','3210reqSUr','addEventListener','element','1354728ROcofV','isVisible','3466798dHAeAq','_setupTemplate','fire','_createTemplateChildren','tooltip','locale','_handleAnimationEndOnce','render','content','1790915SCkSGI','uiId','selection','ck-ai-chat-context-chip_document','bind','2345vYPXlk','label','ck-ai-chat-context-chip__type-icon','disableAnimationOnEnter','removeContextItemChip','classList','2836110BsRBHd','add','removeEventListener','execute','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','span','12291750lqHgHw','setTemplate','lastIndexOf','_createRemoveButton','webkitAnimationEnd','25XAGWoh','set','ck-ai-chat-context-chip','isLoading','bindTemplate','animationend','extendTemplate','small','_createLoaderIcon','_createTemplateAttributes','div','length','8HmotJx','ck-ai-chat-context-chip_new-chip','type','_initializeProperties','ck-ai-chat-context-chip_wide','154IjNarc','document','ck-ai-chat-context-controls__chip-tooltip','slice'];_0x1758=function(){return _0xd1d0d5;};return _0x1758();}const xn={'file':_0x25928e,'document':_0x4d7cbb,'web-resource':_0x119839,'text':_0x25928e,'selection':_0x1ae556},bn=_0x44d48a(0x109),wn=_0x44d48a(0x117),Tn=_0x44d48a(0xf4),En=_0x44d48a(0x122),An=_0x44d48a(0xf8),Cn=_0x44d48a(0x11a),In='n';export class AIChatContextItemButtonView extends _0x2ee146{constructor(_0xdcc781,_0x123f1a,_0x5ec396,_0x49f072,_0x40d7dc=!0x1){const _0x4e416f=_0x44d48a;super(_0xdcc781),this[_0x4e416f(0x11d)]=_0x49f072,this[_0x4e416f(0x116)](_0x123f1a,_0x5ec396,_0x40d7dc),this[_0x4e416f(0xe9)]();}[_0x44d48a(0xef)](){const _0x3ec2c0=_0x44d48a;super[_0x3ec2c0(0xef)](),this[_0x3ec2c0(0x11d)]&&this[_0x3ec2c0(0x128)]&&(this[_0x3ec2c0(0x128)][_0x3ec2c0(0xfb)][_0x3ec2c0(0xfd)](_0x3ec2c0(0x114)),this[_0x3ec2c0(0xee)](this[_0x3ec2c0(0x128)],()=>{const _0x5a64ff=_0x3ec2c0;this[_0x5a64ff(0x128)]&&this[_0x5a64ff(0x128)][_0x5a64ff(0xfb)][_0x5a64ff(0x121)](_0x5a64ff(0x114));}));}[_0x44d48a(0xf9)](){const _0x356925=_0x44d48a;this[_0x356925(0x11d)]=!0x1,this[_0x356925(0x128)]&&this[_0x356925(0x128)][_0x356925(0xfb)][_0x356925(0x121)](_0x356925(0x114));}[_0x44d48a(0x116)](_0xa49c8,_0x62d338,_0x1c775c){const _0x3194f9=_0x44d48a;this[_0x3194f9(0x108)](_0x3194f9(0xf7),_0xa49c8[_0x3194f9(0xf7)]),this[_0x3194f9(0x108)](_0x3194f9(0xec),!0x0),this[_0x3194f9(0x108)](_0x3194f9(0x11c),_0xa49c8[_0x3194f9(0x115)]),this[_0x3194f9(0x108)]('id',_0xa49c8[_0x3194f9(0xf2)]),this[_0x3194f9(0x108)](_0x3194f9(0x11f),_0x62d338),this[_0x3194f9(0x108)](_0x3194f9(0x10a),_0x1c775c);}[_0x44d48a(0xe9)](){const _0x27a573=_0x44d48a,_0x11950d=this[_0x27a573(0x11e)](),_0x59c38b=this[_0x27a573(0x105)](),_0x177c63=this[_0x27a573(0x10b)];this[_0x27a573(0x103)]({'tag':_0x27a573(0x111),'attributes':this[_0x27a573(0x110)](_0x177c63),'children':this[_0x27a573(0xeb)](_0x11950d,_0x59c38b,_0x177c63)});}[_0x44d48a(0x110)](_0x272c66){const _0x1f4b42=_0x44d48a;return{'class':[bn,_0x272c66['if'](_0x1f4b42(0x11c),Tn,_0x55d4dd=>_0x1f4b42(0x119)==_0x55d4dd),_0x272c66['if'](_0x1f4b42(0x11c),wn,_0x481585=>_0x1f4b42(0xf3)==_0x481585)],'data-cke-tooltip-text':_0x272c66['to'](_0x1f4b42(0xf7),On),'data-cke-tooltip-position':In,'data-cke-tooltip-class':Cn};}[_0x44d48a(0xeb)](_0x3dbd64,_0x426e92,_0x40f21d){const _0x112eec=_0x44d48a,_0x7158c3=this[_0x112eec(0x123)](_0x40f21d),_0x1ff097=this[_0x112eec(0x10f)]();return this[_0x112eec(0x11f)]?[_0x3dbd64,_0x7158c3]:[_0x3dbd64,_0x1ff097,_0x7158c3,_0x426e92];}[_0x44d48a(0x123)](_0x248d5f){const _0x4598a8=_0x44d48a;return{'tag':_0x4598a8(0x101),'attributes':{'class':En},'children':[{'text':_0x248d5f['to'](_0x4598a8(0xf7))}]};}[_0x44d48a(0x105)](){const _0x2d9815=_0x44d48a,_0xc48fd8=new _0x2ee146(this[_0x2d9815(0xed)]);return _0xc48fd8[_0x2d9815(0x108)]({'label':_0x1fbcb6(this[_0x2d9815(0xed)],_0x2d9815(0x100)),'icon':_0x367b69}),this[_0x2d9815(0x125)](_0xc48fd8),_0xc48fd8;}[_0x44d48a(0x125)](_0x18ae76){const _0xf7bf28=_0x44d48a;_0x18ae76['on'](_0xf7bf28(0xff),()=>{const _0x11f31a=_0xf7bf28;this[_0x11f31a(0xea)](_0x11f31a(0xfa),this['id']);});}[_0x44d48a(0x11e)](){const _0x394e54=_0x44d48a,_0x2ce4b2=this[_0x394e54(0x10b)],_0x4a61bf=new _0x223bde();return _0x4a61bf[_0x394e54(0xf0)]=xn[this[_0x394e54(0x11c)]],_0x4a61bf[_0x394e54(0x10d)]({'attributes':{'class':[An,_0x2ce4b2['if'](_0x394e54(0x10a),_0x394e54(0x124),_0x469a0e=>_0x469a0e)]}}),_0x4a61bf;}[_0x44d48a(0xee)](_0x1f90a5,_0x2d4479){const _0x25b477=_0x44d48a;if(!_0x1f90a5)return;const _0x2e7383=()=>{const _0x50104c=_0x2ce2;_0x2d4479(),_0x1f90a5[_0x50104c(0xfe)](_0x50104c(0x10c),_0x2e7383),_0x1f90a5[_0x50104c(0xfe)](_0x50104c(0x106),_0x2e7383);};_0x1f90a5[_0x25b477(0x127)](_0x25b477(0x10c),_0x2e7383),_0x1f90a5[_0x25b477(0x127)](_0x25b477(0x106),_0x2e7383);}[_0x44d48a(0x10f)](){const _0x1fb0ee=_0x44d48a,_0x2be12d=new _0x5672e5(_0x1fb0ee(0x10e));return _0x2be12d[_0x1fb0ee(0xf5)](_0x1fb0ee(0x12a))['to'](this,_0x1fb0ee(0x10a),_0x13d788=>_0x13d788),_0x2be12d;}}function On(_0x33570c){const _0x3b1dff=_0x44d48a;if(!_0x33570c)return _0x33570c;if(_0x33570c[_0x3b1dff(0x112)]<=0x78)return _0x33570c;const _0x16f532=_0x33570c[_0x3b1dff(0x11b)](0x0,0x78),_0x24fcdd=_0x16f532[_0x3b1dff(0x104)]('\x20');return(_0x24fcdd>0x0?_0x16f532[_0x3b1dff(0x11b)](0x0,_0x24fcdd):_0x16f532)+'…';}
@@ -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 _0x5b7310=_0x1d7b;(function(_0x972665,_0x56ef05){const _0x3f034c=_0x1d7b,_0x1341e3=_0x972665();while(!![]){try{const _0xbad744=parseInt(_0x3f034c(0x1a0))/0x1+parseInt(_0x3f034c(0x19d))/0x2+parseInt(_0x3f034c(0x19b))/0x3*(parseInt(_0x3f034c(0x197))/0x4)+parseInt(_0x3f034c(0x1d5))/0x5*(parseInt(_0x3f034c(0x1db))/0x6)+parseInt(_0x3f034c(0x1a9))/0x7+-parseInt(_0x3f034c(0x1af))/0x8*(parseInt(_0x3f034c(0x1c4))/0x9)+parseInt(_0x3f034c(0x1b2))/0xa*(-parseInt(_0x3f034c(0x1a7))/0xb);if(_0xbad744===_0x56ef05)break;else _0x1341e3['push'](_0x1341e3['shift']());}catch(_0x547d1b){_0x1341e3['push'](_0x1341e3['shift']());}}}(_0x5cf6,0x80ca7));import{FocusTracker as _0x425248,KeystrokeHandler as _0x1e2d80}from'ckeditor5/src/utils.js';import{ButtonView as _0x372f7c,FocusCycler as _0x44e758,LabeledFieldView as _0x55440b,View as _0x1a86e4,FormHeaderView as _0x7eb32c,createLabeledInputText as _0x3fa5b2,submitHandler as _0xa82849}from'ckeditor5/src/ui.js';function _0x1d7b(_0x1d9b50,_0x32a83f){const _0x5cf64d=_0x5cf6();return _0x1d7b=function(_0x1d7b20,_0x241283){_0x1d7b20=_0x1d7b20-0x192;let _0x3c6a81=_0x5cf64d[_0x1d7b20];return _0x3c6a81;},_0x1d7b(_0x1d9b50,_0x32a83f);}import{IconCheck as _0x597597,IconPreviousArrow as _0x305acf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2e62c2}from'../../../aicore/utils/common-translations.js';const eh=_0x5b7310(0x1d9),hh=_0x5b7310(0x1cd);function _0x5cf6(){const _0x5ba17d=['_createUrlInputField','13122uBSMTx','fire','value','focusTracker','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_setupKeystrokes','_setupTemplate','_createBackButton','_createConfirmButton','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_ADD_URL','focus','destroy','set','stop','execute','_focusables','460855lkYRMx','_setupEventHandlers','_handleSubmit','element','ck-ai-chat-context-controls__url-form','setError','18AizPpE','input','submit','clearError','keystrokes','isEnabled','140RFLHVp','listenTo','form','AI_CHAT_CONTEXT_URL_LABEL','33111vnmONa','add','600506rDwNkQ','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','571257enVJNU','_isValidUrl','ck-button-icon\x20ck-button-back','length','urlInputField','setTemplate','fieldView','547514gcxUsx','esc','5047063bjvJBW','confirmButton','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','clear','forEach','3472kJrMYK','trim','createCollection','220iTQmhc','shift+tab','AI_CHAT_CONTEXT_URL_INVALID_ERROR','refreshBalloon','div','backButton','getValue','ck-button-icon','ck-labeled-field-view_empty','render','focusCycler','locale','_updateConfirmButtonState','submitUrl','errorText','cancel','children'];_0x5cf6=function(){return _0x5ba17d;};return _0x5cf6();}export class AIChatContextPanelUrlInputView extends _0x1a86e4{[_0x5b7310(0x1c7)];[_0x5b7310(0x195)];[_0x5b7310(0x1d4)];[_0x5b7310(0x1bc)];[_0x5b7310(0x1a4)];[_0x5b7310(0x1b7)];[_0x5b7310(0x1aa)];constructor(_0x48a441){const _0x357ad1=_0x5b7310;super(_0x48a441),this[_0x357ad1(0x1c7)]=new _0x425248(),this[_0x357ad1(0x195)]=new _0x1e2d80(),this[_0x357ad1(0x1b7)]=this[_0x357ad1(0x1cb)](),this[_0x357ad1(0x1a4)]=this[_0x357ad1(0x1c3)](),this[_0x357ad1(0x1aa)]=this[_0x357ad1(0x1cc)](),this[_0x357ad1(0x1d4)]=this[_0x357ad1(0x1b1)]([this[_0x357ad1(0x1b7)],this[_0x357ad1(0x1a4)],this[_0x357ad1(0x1aa)]]),this[_0x357ad1(0x1bc)]=new _0x44e758({'focusables':this[_0x357ad1(0x1d4)],'focusTracker':this[_0x357ad1(0x1c7)],'keystrokeHandler':this[_0x357ad1(0x195)],'actions':{'focusPrevious':_0x357ad1(0x1b3),'focusNext':_0x357ad1(0x19f)}}),this[_0x357ad1(0x1ca)](),this[_0x357ad1(0x1d6)](),this[_0x357ad1(0x1c9)]();}[_0x5b7310(0x1bb)](){const _0x363e9d=_0x5b7310;super[_0x363e9d(0x1bb)](),this[_0x363e9d(0x1d4)][_0x363e9d(0x1ae)](_0x599ff7=>{const _0x565c48=_0x363e9d;this[_0x565c48(0x1c7)][_0x565c48(0x19c)](_0x599ff7[_0x565c48(0x1d8)]),this[_0x565c48(0x195)][_0x565c48(0x198)](_0x599ff7[_0x565c48(0x1d8)]);}),_0xa82849({'view':this}),this[_0x363e9d(0x1cf)]();}[_0x5b7310(0x1d0)](){const _0x50a9ac=_0x5b7310;super[_0x50a9ac(0x1d0)](),this[_0x50a9ac(0x1c7)][_0x50a9ac(0x1d0)](),this[_0x50a9ac(0x195)][_0x50a9ac(0x1d0)]();}[_0x5b7310(0x1cf)](){const _0x22c0b2=_0x5b7310;this[_0x22c0b2(0x1a4)][_0x22c0b2(0x1cf)]();}[_0x5b7310(0x1b8)](){const _0x4a2b52=_0x5b7310;return this[_0x4a2b52(0x1a4)][_0x4a2b52(0x1a6)][_0x4a2b52(0x1d8)]?.[_0x4a2b52(0x1c6)]?.[_0x4a2b52(0x1b0)]()||'';}[_0x5b7310(0x1ad)](){const _0x46e5c2=_0x5b7310;this[_0x46e5c2(0x1a4)][_0x46e5c2(0x1a6)][_0x46e5c2(0x1d8)][_0x46e5c2(0x1c6)]='',this[_0x46e5c2(0x1a4)][_0x46e5c2(0x1c0)]=null,this[_0x46e5c2(0x1aa)][_0x46e5c2(0x196)]=!0x1;}[_0x5b7310(0x1da)](_0x470dfa){const _0x1a1aa9=_0x5b7310;this[_0x1a1aa9(0x1a4)][_0x1a1aa9(0x1c0)]=_0x470dfa,this[_0x1a1aa9(0x1be)](),this[_0x1a1aa9(0x1c5)](_0x1a1aa9(0x1b5));}[_0x5b7310(0x194)](){const _0x45ea2e=_0x5b7310;this[_0x45ea2e(0x1a4)][_0x45ea2e(0x1c0)]=null,this[_0x45ea2e(0x1be)]();}[_0x5b7310(0x1cb)](){const _0x37f7eb=_0x5b7310,_0x25a3fe=new _0x372f7c(this[_0x37f7eb(0x1bd)]);return _0x25a3fe[_0x37f7eb(0x1d1)]({'icon':_0x305acf,'tooltip':_0x2e62c2(this[_0x37f7eb(0x1bd)],_0x37f7eb(0x1ab)),'tooltipPosition':'n','class':_0x37f7eb(0x1a2)}),_0x25a3fe;}[_0x5b7310(0x1c3)](){const _0xefc900=_0x5b7310,_0xc898c2=new _0x55440b(this[_0xefc900(0x1bd)],_0x3fa5b2);return _0xc898c2[_0xefc900(0x1d1)]({'label':_0x2e62c2(this[_0xefc900(0x1bd)],_0xefc900(0x19a)),'class':_0xefc900(0x1ba)}),_0xc898c2[_0xefc900(0x1a6)][_0xefc900(0x1d1)]({'placeholder':_0x2e62c2(this[_0xefc900(0x1bd)],_0xefc900(0x19e))}),_0xc898c2;}[_0x5b7310(0x1cc)](){const _0x3d23fb=_0x5b7310,_0x5448e3=new _0x372f7c(this[_0x3d23fb(0x1bd)]);return _0x5448e3[_0x3d23fb(0x1d1)]({'icon':_0x597597,'tooltip':_0x2e62c2(this[_0x3d23fb(0x1bd)],_0x3d23fb(0x1ce)),'tooltipPosition':'n','class':_0x3d23fb(0x1b9),'type':_0x3d23fb(0x193),'isEnabled':!0x1}),_0x5448e3;}[_0x5b7310(0x1ca)](){const _0x401dd9=_0x5b7310,_0x5bfc0b=new _0x7eb32c(this[_0x401dd9(0x1bd)],{'label':_0x2e62c2(this[_0x401dd9(0x1bd)],_0x401dd9(0x1ce)),'class':_0x401dd9(0x1c8)});_0x5bfc0b[_0x401dd9(0x1c2)][_0x401dd9(0x19c)](this[_0x401dd9(0x1b7)],0x0),this[_0x401dd9(0x1a5)]({'tag':_0x401dd9(0x199),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x5bfc0b,{'tag':_0x401dd9(0x1b6),'attributes':{'class':hh},'children':[this[_0x401dd9(0x1a4)],this[_0x401dd9(0x1aa)]]}]});}[_0x5b7310(0x1d6)](){const _0x20854e=_0x5b7310;this[_0x20854e(0x1b7)]['on'](_0x20854e(0x1d3),()=>{const _0x5214dc=_0x20854e;this[_0x5214dc(0x1ad)](),this[_0x5214dc(0x1c5)](_0x5214dc(0x1c1));}),this[_0x20854e(0x1a4)][_0x20854e(0x1a6)]['on'](_0x20854e(0x192),()=>{const _0x5e799d=_0x20854e;this[_0x5e799d(0x194)](),this[_0x5e799d(0x1be)](),this[_0x5e799d(0x1c5)](_0x5e799d(0x1b5));}),this['on'](_0x20854e(0x193),_0x2b66d9=>{const _0x59e284=_0x20854e;_0x2b66d9[_0x59e284(0x1d2)](),this[_0x59e284(0x1d7)]();});}[_0x5b7310(0x1c9)](){const _0x7089a=_0x5b7310;this[_0x7089a(0x195)][_0x7089a(0x1d1)](_0x7089a(0x1a8),(_0x3fd3fc,_0x2b6624)=>{const _0x157bfc=_0x7089a;this[_0x157bfc(0x1ad)](),this[_0x157bfc(0x1c5)](_0x157bfc(0x1c1)),_0x2b6624();});}[_0x5b7310(0x1d7)](){const _0x44823c=_0x5b7310,_0x58f9e9=this[_0x44823c(0x1b8)]()[_0x44823c(0x1b0)]();_0x58f9e9?this[_0x44823c(0x1a1)](_0x58f9e9)?(this[_0x44823c(0x194)](),this[_0x44823c(0x1c5)](_0x44823c(0x1bf),_0x58f9e9)):this[_0x44823c(0x1da)](_0x2e62c2(this[_0x44823c(0x1bd)],_0x44823c(0x1b4))):this[_0x44823c(0x1da)](_0x2e62c2(this[_0x44823c(0x1bd)],_0x44823c(0x1ac)));}[_0x5b7310(0x1be)](){const _0x7c4807=_0x5b7310,_0x1520f4=this[_0x7c4807(0x1b8)]()[_0x7c4807(0x1b0)](),_0x11d650=!!this[_0x7c4807(0x1a4)][_0x7c4807(0x1c0)];this[_0x7c4807(0x1aa)][_0x7c4807(0x196)]=_0x1520f4[_0x7c4807(0x1a3)]>0x0&&!_0x11d650;}[_0x5b7310(0x1a1)](_0x2105db){try{return!!new URL(_0x2105db);}catch{return!0x1;}}}