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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/build/ai.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index.js +5 -5
  41. package/dist/translations/af.js +1 -1
  42. package/dist/translations/af.umd.js +1 -1
  43. package/dist/translations/ar.js +1 -1
  44. package/dist/translations/ar.umd.js +1 -1
  45. package/dist/translations/ast.js +1 -1
  46. package/dist/translations/ast.umd.js +1 -1
  47. package/dist/translations/az.js +1 -1
  48. package/dist/translations/az.umd.js +1 -1
  49. package/dist/translations/be.js +1 -1
  50. package/dist/translations/be.umd.js +1 -1
  51. package/dist/translations/bg.js +1 -1
  52. package/dist/translations/bg.umd.js +1 -1
  53. package/dist/translations/bn.js +1 -1
  54. package/dist/translations/bn.umd.js +1 -1
  55. package/dist/translations/bs.js +1 -1
  56. package/dist/translations/bs.umd.js +1 -1
  57. package/dist/translations/ca.js +1 -1
  58. package/dist/translations/ca.umd.js +1 -1
  59. package/dist/translations/cs.js +1 -1
  60. package/dist/translations/cs.umd.js +1 -1
  61. package/dist/translations/da.js +1 -1
  62. package/dist/translations/da.umd.js +1 -1
  63. package/dist/translations/de-ch.js +1 -1
  64. package/dist/translations/de-ch.umd.js +1 -1
  65. package/dist/translations/de.js +1 -1
  66. package/dist/translations/de.umd.js +1 -1
  67. package/dist/translations/el.js +1 -1
  68. package/dist/translations/el.umd.js +1 -1
  69. package/dist/translations/en-au.js +1 -1
  70. package/dist/translations/en-au.umd.js +1 -1
  71. package/dist/translations/en-gb.js +1 -1
  72. package/dist/translations/en-gb.umd.js +1 -1
  73. package/dist/translations/en.js +1 -1
  74. package/dist/translations/en.umd.js +1 -1
  75. package/dist/translations/eo.js +1 -1
  76. package/dist/translations/eo.umd.js +1 -1
  77. package/dist/translations/es-co.js +1 -1
  78. package/dist/translations/es-co.umd.js +1 -1
  79. package/dist/translations/es.js +1 -1
  80. package/dist/translations/es.umd.js +1 -1
  81. package/dist/translations/et.js +1 -1
  82. package/dist/translations/et.umd.js +1 -1
  83. package/dist/translations/eu.js +1 -1
  84. package/dist/translations/eu.umd.js +1 -1
  85. package/dist/translations/fa.js +1 -1
  86. package/dist/translations/fa.umd.js +1 -1
  87. package/dist/translations/fi.js +1 -1
  88. package/dist/translations/fi.umd.js +1 -1
  89. package/dist/translations/fr.js +1 -1
  90. package/dist/translations/fr.umd.js +1 -1
  91. package/dist/translations/gl.js +1 -1
  92. package/dist/translations/gl.umd.js +1 -1
  93. package/dist/translations/gu.js +1 -1
  94. package/dist/translations/gu.umd.js +1 -1
  95. package/dist/translations/he.js +1 -1
  96. package/dist/translations/he.umd.js +1 -1
  97. package/dist/translations/hi.js +1 -1
  98. package/dist/translations/hi.umd.js +1 -1
  99. package/dist/translations/hr.js +1 -1
  100. package/dist/translations/hr.umd.js +1 -1
  101. package/dist/translations/hu.js +1 -1
  102. package/dist/translations/hu.umd.js +1 -1
  103. package/dist/translations/hy.js +1 -1
  104. package/dist/translations/hy.umd.js +1 -1
  105. package/dist/translations/id.js +1 -1
  106. package/dist/translations/id.umd.js +1 -1
  107. package/dist/translations/it.js +1 -1
  108. package/dist/translations/it.umd.js +1 -1
  109. package/dist/translations/ja.js +1 -1
  110. package/dist/translations/ja.umd.js +1 -1
  111. package/dist/translations/jv.js +1 -1
  112. package/dist/translations/jv.umd.js +1 -1
  113. package/dist/translations/kk.js +1 -1
  114. package/dist/translations/kk.umd.js +1 -1
  115. package/dist/translations/km.js +1 -1
  116. package/dist/translations/km.umd.js +1 -1
  117. package/dist/translations/kn.js +1 -1
  118. package/dist/translations/kn.umd.js +1 -1
  119. package/dist/translations/ko.js +1 -1
  120. package/dist/translations/ko.umd.js +1 -1
  121. package/dist/translations/ku.js +1 -1
  122. package/dist/translations/ku.umd.js +1 -1
  123. package/dist/translations/lt.js +1 -1
  124. package/dist/translations/lt.umd.js +1 -1
  125. package/dist/translations/lv.js +1 -1
  126. package/dist/translations/lv.umd.js +1 -1
  127. package/dist/translations/ms.js +1 -1
  128. package/dist/translations/ms.umd.js +1 -1
  129. package/dist/translations/nb.js +1 -1
  130. package/dist/translations/nb.umd.js +1 -1
  131. package/dist/translations/ne.js +1 -1
  132. package/dist/translations/ne.umd.js +1 -1
  133. package/dist/translations/nl.js +1 -1
  134. package/dist/translations/nl.umd.js +1 -1
  135. package/dist/translations/no.js +1 -1
  136. package/dist/translations/no.umd.js +1 -1
  137. package/dist/translations/oc.js +1 -1
  138. package/dist/translations/oc.umd.js +1 -1
  139. package/dist/translations/pl.js +1 -1
  140. package/dist/translations/pl.umd.js +1 -1
  141. package/dist/translations/pt-br.js +1 -1
  142. package/dist/translations/pt-br.umd.js +1 -1
  143. package/dist/translations/pt.js +1 -1
  144. package/dist/translations/pt.umd.js +1 -1
  145. package/dist/translations/ro.js +1 -1
  146. package/dist/translations/ro.umd.js +1 -1
  147. package/dist/translations/ru.js +1 -1
  148. package/dist/translations/ru.umd.js +1 -1
  149. package/dist/translations/si.js +1 -1
  150. package/dist/translations/si.umd.js +1 -1
  151. package/dist/translations/sk.js +1 -1
  152. package/dist/translations/sk.umd.js +1 -1
  153. package/dist/translations/sl.js +1 -1
  154. package/dist/translations/sl.umd.js +1 -1
  155. package/dist/translations/sq.js +1 -1
  156. package/dist/translations/sq.umd.js +1 -1
  157. package/dist/translations/sr-latn.js +1 -1
  158. package/dist/translations/sr-latn.umd.js +1 -1
  159. package/dist/translations/sr.js +1 -1
  160. package/dist/translations/sr.umd.js +1 -1
  161. package/dist/translations/sv.js +1 -1
  162. package/dist/translations/sv.umd.js +1 -1
  163. package/dist/translations/th.js +1 -1
  164. package/dist/translations/th.umd.js +1 -1
  165. package/dist/translations/ti.js +1 -1
  166. package/dist/translations/ti.umd.js +1 -1
  167. package/dist/translations/tk.js +1 -1
  168. package/dist/translations/tk.umd.js +1 -1
  169. package/dist/translations/tr.js +1 -1
  170. package/dist/translations/tr.umd.js +1 -1
  171. package/dist/translations/tt.js +1 -1
  172. package/dist/translations/tt.umd.js +1 -1
  173. package/dist/translations/ug.js +1 -1
  174. package/dist/translations/ug.umd.js +1 -1
  175. package/dist/translations/uk.js +1 -1
  176. package/dist/translations/uk.umd.js +1 -1
  177. package/dist/translations/ur.js +1 -1
  178. package/dist/translations/ur.umd.js +1 -1
  179. package/dist/translations/uz.js +1 -1
  180. package/dist/translations/uz.umd.js +1 -1
  181. package/dist/translations/vi.js +1 -1
  182. package/dist/translations/vi.umd.js +1 -1
  183. package/dist/translations/zh-cn.js +1 -1
  184. package/dist/translations/zh-cn.umd.js +1 -1
  185. package/dist/translations/zh.js +1 -1
  186. package/dist/translations/zh.umd.js +1 -1
  187. package/lang/translations/ar.po +34 -34
  188. package/lang/translations/bg.po +26 -26
  189. package/lang/translations/bn.po +26 -26
  190. package/lang/translations/ca.po +26 -26
  191. package/lang/translations/cs.po +28 -28
  192. package/lang/translations/da.po +26 -26
  193. package/lang/translations/de.po +26 -26
  194. package/lang/translations/el.po +26 -26
  195. package/lang/translations/es.po +26 -26
  196. package/lang/translations/et.po +26 -26
  197. package/lang/translations/fi.po +26 -26
  198. package/lang/translations/fr.po +26 -26
  199. package/lang/translations/he.po +26 -26
  200. package/lang/translations/hi.po +26 -26
  201. package/lang/translations/hu.po +26 -26
  202. package/lang/translations/id.po +24 -24
  203. package/lang/translations/it.po +26 -26
  204. package/lang/translations/ja.po +24 -24
  205. package/lang/translations/ko.po +24 -24
  206. package/lang/translations/lt.po +28 -28
  207. package/lang/translations/lv.po +28 -28
  208. package/lang/translations/ms.po +24 -24
  209. package/lang/translations/nl.po +26 -26
  210. package/lang/translations/no.po +26 -26
  211. package/lang/translations/pl.po +28 -28
  212. package/lang/translations/pt-br.po +26 -26
  213. package/lang/translations/pt.po +26 -26
  214. package/lang/translations/ro.po +28 -28
  215. package/lang/translations/ru.po +28 -28
  216. package/lang/translations/sk.po +28 -28
  217. package/lang/translations/sr.po +28 -28
  218. package/lang/translations/sv.po +26 -26
  219. package/lang/translations/th.po +24 -24
  220. package/lang/translations/tr.po +26 -26
  221. package/lang/translations/uk.po +28 -28
  222. package/lang/translations/vi.po +24 -24
  223. package/lang/translations/zh-cn.po +24 -24
  224. package/lang/translations/zh.po +24 -24
  225. package/package.json +15 -15
  226. package/src/aiactions/aiactions.js +1 -1
  227. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  228. package/src/aiactions/model/aiactionsreply.js +1 -1
  229. package/src/aiassistant/adapters/aiadapter.js +1 -1
  230. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  231. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  232. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  233. package/src/aiassistant/aiassistant.js +1 -1
  234. package/src/aiassistant/aiassistantediting.js +1 -1
  235. package/src/aiassistant/aiassistantui.js +1 -1
  236. package/src/aiassistant/legacyerrors.js +1 -1
  237. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  238. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  239. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  240. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  241. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  242. package/src/aiassistant/ui/form/aiformview.js +1 -1
  243. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  244. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  245. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  246. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  247. package/src/aiassistant/utils/common-translations.js +1 -1
  248. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  249. package/src/aiballoon/aiballoon.js +1 -1
  250. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  251. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  252. package/src/aiballoon/ui/aiballoonview.js +1 -1
  253. package/src/aichat/aichat.js +1 -1
  254. package/src/aichat/aichatcontroller.js +1 -1
  255. package/src/aichat/aichatui.js +1 -1
  256. package/src/aichat/model/aichatcontext.js +1 -1
  257. package/src/aichat/model/aichatconversation.js +1 -1
  258. package/src/aichat/model/aichatinteraction.js +1 -1
  259. package/src/aichat/model/aichatmodels.js +1 -1
  260. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  261. package/src/aichat/ui/aichatfeedview.js +1 -1
  262. package/src/aichat/ui/aichatheaderview.js +1 -1
  263. package/src/aichat/ui/aichatview.js +1 -1
  264. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  265. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  266. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  267. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  268. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  269. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  270. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  271. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  272. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  273. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  274. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  275. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  276. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  277. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  278. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  279. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  280. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  281. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  282. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  283. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  284. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  285. package/src/aichat/utils/eventnames.js +1 -1
  286. package/src/aichat/utils/promisequeue.js +1 -1
  287. package/src/aichat/utils/scrollmanager.js +1 -1
  288. package/src/aichathistory/aichathistory.js +1 -1
  289. package/src/aichathistory/aichathistorycontroller.js +1 -1
  290. package/src/aichathistory/aichathistoryui.js +1 -1
  291. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  292. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  293. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  294. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  295. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  296. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  297. package/src/aicore/aiconnector.js +1 -1
  298. package/src/aicore/aiediting.js +1 -1
  299. package/src/aicore/model/aicapabilities.js +1 -1
  300. package/src/aicore/model/aicontext.js +1 -1
  301. package/src/aicore/model/aiinteraction.js +1 -1
  302. package/src/aicore/model/aimodels.js +1 -1
  303. package/src/aicore/model/aireply.js +1 -1
  304. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  305. package/src/aicore/pipeline/airesponseparser.js +2 -2
  306. package/src/aicore/ui/aidisclaimerview.js +1 -1
  307. package/src/aicore/ui/aiskeleton.js +1 -1
  308. package/src/aicore/ui/aispinner.js +1 -1
  309. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  310. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  311. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  312. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  313. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  314. package/src/aicore/utils/common-translations.js +1 -1
  315. package/src/aicore/utils/createresizebutton.js +1 -1
  316. package/src/aicore/utils/documentposition.js +1 -1
  317. package/src/aicore/utils/documentrange.js +1 -1
  318. package/src/aicore/utils/eventnames.js +1 -1
  319. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  320. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  321. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  322. package/src/aicore/utils/htmlparser.js +1 -1
  323. package/src/aicore/utils/htmlstreamer.js +1 -1
  324. package/src/aieditorintegration/aieditorintegration.js +1 -1
  325. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  326. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  327. package/src/aiquickactions/aiquickactions.js +1 -1
  328. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  329. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  330. package/src/aiquickactions/aiquickactionsui.js +1 -1
  331. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  332. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  333. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  334. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  335. package/src/aireviewmode/aireviewmode.js +1 -1
  336. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  337. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  338. package/src/aireviewmode/aireviewmodeui.js +1 -1
  339. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  340. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  341. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  342. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  343. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  344. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  345. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  346. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  347. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  348. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  349. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  350. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  351. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  352. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  353. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  354. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  355. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  356. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  357. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  358. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  359. package/src/aitabs/aitabs.js +1 -1
  360. package/src/aitabs/aitabsmainview.js +1 -1
  361. package/src/aitabs/tabs/aitabsview.js +1 -1
  362. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  363. package/src/aitabs/tabs/tabpanelview.js +1 -1
  364. package/src/errors.js +1 -1
  365. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b35ef=_0x83df;(function(_0x47c0f4,_0x15cede){const _0x30c095=_0x83df,_0xb3f14c=_0x47c0f4();while(!![]){try{const _0x34dc78=-parseInt(_0x30c095(0xab))/0x1+parseInt(_0x30c095(0xb4))/0x2*(-parseInt(_0x30c095(0xc4))/0x3)+parseInt(_0x30c095(0x91))/0x4*(-parseInt(_0x30c095(0xb1))/0x5)+parseInt(_0x30c095(0x85))/0x6+parseInt(_0x30c095(0xc6))/0x7*(parseInt(_0x30c095(0xa9))/0x8)+parseInt(_0x30c095(0xb2))/0x9*(-parseInt(_0x30c095(0x90))/0xa)+parseInt(_0x30c095(0x8f))/0xb*(parseInt(_0x30c095(0x83))/0xc);if(_0x34dc78===_0x15cede)break;else _0xb3f14c['push'](_0xb3f14c['shift']());}catch(_0x35169e){_0xb3f14c['push'](_0xb3f14c['shift']());}}}(_0x48a8,0x79369));import{ButtonView as _0x4c9898,clickOutsideHandler as _0x198f5a,View as _0x49c51a}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x380a81}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x3f42c0}from'./controls/aichatpromptcapabilitiesview.js';function _0x83df(_0x13c773,_0x505958){const _0x48a8cb=_0x48a8();return _0x83df=function(_0x83df88,_0x495572){_0x83df88=_0x83df88-0x7d;let _0x4f07cc=_0x48a8cb[_0x83df88];return _0x4f07cc;},_0x83df(_0x13c773,_0x505958);}function _0x48a8(){const _0x211d03=['toggleReasoning','resetMessageInput','abortPromptStream','isModelAvailable','_handlePromptInputFocus','_contextPanelView','3608XyVRtD','10PvcueW','4huquVR','sendUserMessage','reset','_modelUnavailableMessageView','updateResourceState','clearPendingContextUI','setWebSearch','focus','startConversation','isDisabled','startsWith','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','clearCurrentContextItems','_displayedModels','setIsUploadInProgress','clearConversationContextItems','setAddContextOptions','_createModelUnavailableMessageView','setTemplate','change:isLoading','addContextButtonView','ck-ai-chat-controls','setModelList','bindTemplate','72BkRzIL','execute','788860JBaevl','toggleWebSearch','delegate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','contextResourcesSearchInputVisibleFrom','selectModel','4277095kfNNam','795411ymPjDu','setInputPlaceholder','2hRYaRF','disableModelSelector','_promptInputView','ck-hidden','form','_createPromptCapabilitiesView','ck-ai-chat-controls-disabled','ck-ai-chat-controls__start-new-chat-button','div','populateSourceResourceBalloon','setModel','agent','bodyCollection','ck-ai-chat-controls-model-unavailable-message','locale','_createContextPanelView','1464690GUQkXI','_loaderView','716359YCIVjH','setPlaceholderText','removeContextItem','closeSourceResourceBalloon','_shouldRestorePromptInputFocus','addContextItem','isLoading','enableModelSelector','_createPromptInputView','setContextItemLoading','_createLoaderView','find','low','element','setReasoning','set','65580DaIVvA','clearConversationContextUI','22944trwMLG','setConversationContext','_promptCapabilitiesView','focusPromptInput'];_0x48a8=function(){return _0x211d03;};return _0x48a8();}import{AIChatContextPanelView as _0x2a0dd3,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x8d52b6}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x214cc2}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x5d9eb2}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x49c51a{[_0x2b35ef(0x9e)]=[];[_0x2b35ef(0x8e)];[_0x2b35ef(0xb6)];[_0x2b35ef(0x87)];[_0x2b35ef(0xc5)];[_0x2b35ef(0x94)];[_0x2b35ef(0xca)];constructor(_0x58b1a1,_0x5a0eaa){const _0x22da0f=_0x2b35ef;super(_0x58b1a1),this[_0x22da0f(0x8e)]=this[_0x22da0f(0xc3)](_0x58b1a1,{'bodyCollection':_0x5a0eaa[_0x22da0f(0xc0)],'searchInputVisibleFrom':_0x5a0eaa[_0x22da0f(0xaf)]}),this[_0x22da0f(0xb6)]=this[_0x22da0f(0xce)](_0x58b1a1),this[_0x22da0f(0x87)]=this[_0x22da0f(0xb9)](_0x58b1a1),this[_0x22da0f(0xc5)]=this[_0x22da0f(0x7d)](_0x58b1a1),this[_0x22da0f(0x94)]=this[_0x22da0f(0xa2)](_0x58b1a1),this[_0x22da0f(0xca)]=!0x1,this[_0x22da0f(0xb6)][_0x22da0f(0xad)](_0x22da0f(0x92))['to'](this),this[_0x22da0f(0xc5)][_0x22da0f(0xad)](_0x22da0f(0x8b))['to'](this),this[_0x22da0f(0x87)][_0x22da0f(0xad)](_0x22da0f(0xac))['to'](this),this[_0x22da0f(0x87)][_0x22da0f(0xad)](_0x22da0f(0x89))['to'](this),this[_0x22da0f(0x87)][_0x22da0f(0xad)](_0x22da0f(0xb0))['to'](this),this[_0x22da0f(0x8e)][_0x22da0f(0xad)](..._0x8d52b6)['to'](this),this[_0x22da0f(0x82)](_0x22da0f(0x8c),!0x0),this[_0x22da0f(0x82)](_0x22da0f(0x9a),!0x1);const _0x473043=this[_0x22da0f(0xa8)];this[_0x22da0f(0xa3)]({'tag':_0x22da0f(0xb8),'attributes':{'class':['ck',_0x22da0f(0xa6),_0x473043['if'](_0x22da0f(0x9a),_0x22da0f(0xba))]},'children':[{'tag':_0x22da0f(0xbc),'attributes':{'class':[_0x473043['if'](_0x22da0f(0xcc),_0x22da0f(0xb7),_0x50843f=>_0x50843f||!this[_0x22da0f(0x8c)]),_0x473043['if'](_0x22da0f(0x8c),_0x22da0f(0xb7),_0x4a6eba=>!_0x4a6eba||this[_0x22da0f(0xcc)])]},'children':[this[_0x22da0f(0x8e)],this[_0x22da0f(0xb6)],this[_0x22da0f(0x87)]]},{'tag':_0x22da0f(0xbc),'attributes':{'class':[_0x473043['if'](_0x22da0f(0xcc),_0x22da0f(0xb7),_0x26c454=>!_0x26c454)]},'children':[this[_0x22da0f(0xc5)]]},{'tag':_0x22da0f(0xbc),'attributes':{'class':[_0x473043['if'](_0x22da0f(0x8c),_0x22da0f(0xb7),_0x586fcc=>_0x586fcc)]},'children':[this[_0x22da0f(0x94)]]}]}),_0x198f5a({'emitter':this[_0x22da0f(0xb6)],'activator':()=>this[_0x22da0f(0xcc)],'contextElements':()=>[this[_0x22da0f(0x80)]],'callback':()=>{const _0x32d0be=_0x22da0f;this[_0x32d0be(0xca)]=!0x1;}}),this['on'](_0x22da0f(0xa4),this[_0x22da0f(0x8d)],{'priority':_0x22da0f(0x7f)});}[_0x2b35ef(0xc3)](_0x280bb3,_0x3e1385){return new _0x2a0dd3(_0x280bb3,_0x3e1385);}[_0x2b35ef(0xce)](_0x3fcf5a){const _0x3ba968=_0x2b35ef;return new _0x380a81(_0x3fcf5a,this[_0x3ba968(0x8e)][_0x3ba968(0xa5)]);}[_0x2b35ef(0xb9)](_0x4461cf){return new _0x3f42c0(_0x4461cf);}[_0x2b35ef(0x7d)](_0x4a693b){return new _0x214cc2(_0x4a693b);}[_0x2b35ef(0xa2)](_0x223f49){const _0x500cb7=_0x2b35ef,_0x5029a0=new _s(_0x223f49);return _0x5029a0[_0x500cb7(0xad)](_0x500cb7(0x99))['to'](this),_0x5029a0;}[_0x2b35ef(0x8d)](_0x30c488,_0x25f820,_0x4bbbbe){const _0xf9f79d=_0x2b35ef;_0x4bbbbe?this[_0xf9f79d(0xca)]=!0x0:this[_0xf9f79d(0xca)]&&this[_0xf9f79d(0xb6)][_0xf9f79d(0x98)]();}[_0x2b35ef(0xcb)](_0x1e86c1,_0x3211b5){const _0x2b9ee3=_0x2b35ef;this[_0x2b9ee3(0x8e)][_0x2b9ee3(0xcb)](_0x1e86c1,_0x3211b5);}[_0x2b35ef(0xc8)](_0xb8116a){const _0x42351b=_0x2b35ef;this[_0x42351b(0x8e)][_0x42351b(0xc8)](_0xb8116a);}[_0x2b35ef(0xcf)](_0x75f160,_0x49805e){const _0x51bc7f=_0x2b35ef;this[_0x51bc7f(0x8e)][_0x51bc7f(0xcf)](_0x75f160,_0x49805e);}[_0x2b35ef(0x9f)](_0x53d6e7){const _0x4f4e93=_0x2b35ef;this[_0x4f4e93(0xb6)][_0x4f4e93(0x9f)](_0x53d6e7);}[_0x2b35ef(0x86)](_0x26baed){const _0x573f0a=_0x2b35ef;this[_0x573f0a(0x8e)][_0x573f0a(0x86)](_0x26baed);}[_0x2b35ef(0x96)](){const _0x3ccfa6=_0x2b35ef;this[_0x3ccfa6(0x8e)][_0x3ccfa6(0x9d)]();}[_0x2b35ef(0x84)](){const _0x273143=_0x2b35ef;this[_0x273143(0x8e)][_0x273143(0xa0)]();}[_0x2b35ef(0x95)](_0x12bf98,_0x21751d,_0x4261ed){const _0x57805d=_0x2b35ef;this[_0x57805d(0x8e)][_0x57805d(0x95)](_0x12bf98,_0x21751d,_0x4261ed);}[_0x2b35ef(0x97)](_0x4f4b3c){const _0xd003d2=_0x2b35ef;this[_0xd003d2(0x87)][_0xd003d2(0x97)](_0x4f4b3c);}[_0x2b35ef(0x81)](_0x35fcc9){const _0x3eec5a=_0x2b35ef;this[_0x3eec5a(0x87)][_0x3eec5a(0x81)](_0x35fcc9);}[_0x2b35ef(0x8a)](){const _0x1d4d49=_0x2b35ef;this[_0x1d4d49(0xb6)][_0x1d4d49(0x93)]();}[_0x2b35ef(0xa1)](_0x4b5797){const _0x1bda0d=_0x2b35ef;this[_0x1bda0d(0x8e)][_0x1bda0d(0xa1)](_0x4b5797);}[_0x2b35ef(0xb3)](_0x3aedd4){const _0x1ccbb9=_0x2b35ef;this[_0x1ccbb9(0xb6)][_0x1ccbb9(0xc7)](_0x3aedd4);}[_0x2b35ef(0xa7)](_0x2387ca,_0x43778f){const _0x1ac328=_0x2b35ef;this[_0x1ac328(0x9e)]=_0x2387ca,this[_0x1ac328(0x87)][_0x1ac328(0xa7)](_0x2387ca,_0x43778f);}[_0x2b35ef(0xbe)](_0x9b745b){const _0x4dbdc9=_0x2b35ef;(_0x9b745b?this[_0x4dbdc9(0x9e)][_0x4dbdc9(0x7e)](_0x4e26e3=>_0x4e26e3['id']===_0x9b745b['id']):null)?(this[_0x4dbdc9(0x8c)]=!0x0,this[_0x4dbdc9(0x87)][_0x4dbdc9(0xbe)](_0x9b745b)):_0x9b745b?.['id'][_0x4dbdc9(0x9b)](_0x4dbdc9(0xbf))?(this[_0x4dbdc9(0x8c)]=!0x0,this[_0x4dbdc9(0x87)][_0x4dbdc9(0xbe)](this[_0x4dbdc9(0x9e)][0x0])):this[_0x4dbdc9(0x8c)]=!0x1;}[_0x2b35ef(0xcd)](){const _0x40bf28=_0x2b35ef;this[_0x40bf28(0x87)][_0x40bf28(0xcd)]();}[_0x2b35ef(0xb5)](_0x3c39a4){const _0xc1aa07=_0x2b35ef;this[_0xc1aa07(0x87)][_0xc1aa07(0xb5)](_0x3c39a4);}[_0x2b35ef(0xbd)](_0x2ce3b8,_0x1d9730,_0xd2733,_0x59e30f){const _0x5a0d18=_0x2b35ef;this[_0x5a0d18(0x8e)][_0x5a0d18(0xbd)](_0x2ce3b8,_0x1d9730,_0xd2733,_0x59e30f);}[_0x2b35ef(0xc9)](_0x34955a){const _0x9c1230=_0x2b35ef;this[_0x9c1230(0x8e)][_0x9c1230(0xc9)](_0x34955a);}[_0x2b35ef(0x88)](){const _0x49c55d=_0x2b35ef;this[_0x49c55d(0xb6)][_0x49c55d(0x98)]();}}class _s extends _0x49c51a{constructor(_0x55425f){const _0x3b35fb=_0x2b35ef;super(_0x55425f);const _0xcc8a2=new _0x4c9898(_0x55425f);_0xcc8a2[_0x3b35fb(0x82)]({'label':_0x5d9eb2(this[_0x3b35fb(0xc2)],_0x3b35fb(0xae)),'withText':!0x0,'class':[_0x3b35fb(0xbb)],'tooltip':''}),_0xcc8a2[_0x3b35fb(0xad)](_0x3b35fb(0xaa))['to'](this,_0x3b35fb(0x99)),this[_0x3b35fb(0xa3)]({'tag':_0x3b35fb(0xbc),'attributes':{'class':['ck',_0x3b35fb(0xc1)]},'children':[{'tag':'p','children':[{'text':_0x5d9eb2(this[_0x3b35fb(0xc2)],_0x3b35fb(0x9c))+'\x20'},_0xcc8a2]}]});}}
23
+ const _0x2191e9=_0x3668;(function(_0x2770df,_0x45d836){const _0x3b2e1c=_0x3668,_0x3f3323=_0x2770df();while(!![]){try{const _0x57b653=parseInt(_0x3b2e1c(0x1fe))/0x1+parseInt(_0x3b2e1c(0x1f4))/0x2+-parseInt(_0x3b2e1c(0x1e7))/0x3*(parseInt(_0x3b2e1c(0x1d7))/0x4)+parseInt(_0x3b2e1c(0x1c9))/0x5*(-parseInt(_0x3b2e1c(0x20a))/0x6)+-parseInt(_0x3b2e1c(0x1cf))/0x7*(-parseInt(_0x3b2e1c(0x1f6))/0x8)+-parseInt(_0x3b2e1c(0x1c3))/0x9*(parseInt(_0x3b2e1c(0x20c))/0xa)+parseInt(_0x3b2e1c(0x1d0))/0xb;if(_0x57b653===_0x45d836)break;else _0x3f3323['push'](_0x3f3323['shift']());}catch(_0x5bef06){_0x3f3323['push'](_0x3f3323['shift']());}}}(_0xfbdf,0xe4a02));function _0x3668(_0x4448ad,_0x8a57ba){const _0xfbdf53=_0xfbdf();return _0x3668=function(_0x366891,_0x3ee34f){_0x366891=_0x366891-0x1bd;let _0x261682=_0xfbdf53[_0x366891];return _0x261682;},_0x3668(_0x4448ad,_0x8a57ba);}import{ButtonView as _0x225c57,clickOutsideHandler as _0x238204,View as _0x346b5e}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x310838}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x597998}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x330832,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5ce09a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x41c445}from'./controls/aichatcontrolsloaderview.js';function _0xfbdf(){const _0x13ef8e=['_displayedModels','_createPromptCapabilitiesView','startConversation','_shouldRestorePromptInputFocus','focus','399HplCfW','5221447zVHjmT','setModelList','_promptInputView','_handlePromptInputFocus','element','setTemplate','delegate','856DcqQlP','isDisabled','setConversationContext','disableModelSelector','bindTemplate','execute','_createModelUnavailableMessageView','_createPromptInputView','_modelUnavailableMessageView','enableModelSelector','toggleWebSearch','startsWith','isLoading','reset','div','locale','6609LdpVvJ','toggleReasoning','updateResourceState','setWebSearch','ck-ai-chat-controls-disabled','ck-ai-chat-controls','_contextPanelView','clearConversationContextUI','populateSourceResourceBalloon','setPlaceholderText','_promptCapabilitiesView','set','clearPendingContextUI','3052918vrDIUs','form','23608dUWTaF','closeSourceResourceBalloon','_createContextPanelView','_loaderView','selectModel','addContextButtonView','clearCurrentContextItems','clearConversationContextItems','603758dVnQXN','low','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setIsUploadInProgress','ck-ai-chat-controls__start-new-chat-button','abortPromptStream','ck-hidden','ck-ai-chat-controls-model-unavailable-message','setModel','isModelAvailable','setReasoning','find','185346gxrNwk','change:isLoading','220BbGfGY','agent','setContextItemLoading','bodyCollection','focusPromptInput','setInputPlaceholder','_createLoaderView','contextResourcesSearchInputVisibleFrom','sendUserMessage','470034JJLfaF','resetMessageInput','removeContextItem','setAddContextOptions','addContextItem','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','35gpjgUv'];_0xfbdf=function(){return _0x13ef8e;};return _0xfbdf();}import{getTranslation as _0x38b99d}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x346b5e{[_0x2191e9(0x1ca)]=[];[_0x2191e9(0x1ed)];[_0x2191e9(0x1d2)];[_0x2191e9(0x1f1)];[_0x2191e9(0x1f9)];[_0x2191e9(0x1df)];[_0x2191e9(0x1cd)];constructor(_0x43a4c6,_0x5d2925){const _0x42728d=_0x2191e9;super(_0x43a4c6),this[_0x42728d(0x1ed)]=this[_0x42728d(0x1f8)](_0x43a4c6,{'bodyCollection':_0x5d2925[_0x42728d(0x1bd)],'searchInputVisibleFrom':_0x5d2925[_0x42728d(0x1c1)]}),this[_0x42728d(0x1d2)]=this[_0x42728d(0x1de)](_0x43a4c6),this[_0x42728d(0x1f1)]=this[_0x42728d(0x1cb)](_0x43a4c6),this[_0x42728d(0x1f9)]=this[_0x42728d(0x1c0)](_0x43a4c6),this[_0x42728d(0x1df)]=this[_0x42728d(0x1dd)](_0x43a4c6),this[_0x42728d(0x1cd)]=!0x1,this[_0x42728d(0x1d2)][_0x42728d(0x1d6)](_0x42728d(0x1c2))['to'](this),this[_0x42728d(0x1f9)][_0x42728d(0x1d6)](_0x42728d(0x203))['to'](this),this[_0x42728d(0x1f1)][_0x42728d(0x1d6)](_0x42728d(0x1e1))['to'](this),this[_0x42728d(0x1f1)][_0x42728d(0x1d6)](_0x42728d(0x1e8))['to'](this),this[_0x42728d(0x1f1)][_0x42728d(0x1d6)](_0x42728d(0x1fa))['to'](this),this[_0x42728d(0x1ed)][_0x42728d(0x1d6)](..._0x5ce09a)['to'](this),this[_0x42728d(0x1f2)](_0x42728d(0x207),!0x0),this[_0x42728d(0x1f2)](_0x42728d(0x1d8),!0x1);const _0x4c1517=this[_0x42728d(0x1db)];this[_0x42728d(0x1d5)]({'tag':_0x42728d(0x1f5),'attributes':{'class':['ck',_0x42728d(0x1ec),_0x4c1517['if'](_0x42728d(0x1d8),_0x42728d(0x1eb))]},'children':[{'tag':_0x42728d(0x1e5),'attributes':{'class':[_0x4c1517['if'](_0x42728d(0x1e3),_0x42728d(0x204),_0x166fa0=>_0x166fa0||!this[_0x42728d(0x207)]),_0x4c1517['if'](_0x42728d(0x207),_0x42728d(0x204),_0x4b304e=>!_0x4b304e||this[_0x42728d(0x1e3)])]},'children':[this[_0x42728d(0x1ed)],this[_0x42728d(0x1d2)],this[_0x42728d(0x1f1)]]},{'tag':_0x42728d(0x1e5),'attributes':{'class':[_0x4c1517['if'](_0x42728d(0x1e3),_0x42728d(0x204),_0x46fe0a=>!_0x46fe0a)]},'children':[this[_0x42728d(0x1f9)]]},{'tag':_0x42728d(0x1e5),'attributes':{'class':[_0x4c1517['if'](_0x42728d(0x207),_0x42728d(0x204),_0x10a3fa=>_0x10a3fa)]},'children':[this[_0x42728d(0x1df)]]}]}),_0x238204({'emitter':this[_0x42728d(0x1d2)],'activator':()=>this[_0x42728d(0x1e3)],'contextElements':()=>[this[_0x42728d(0x1d4)]],'callback':()=>{const _0x29547e=_0x42728d;this[_0x29547e(0x1cd)]=!0x1;}}),this['on'](_0x42728d(0x20b),this[_0x42728d(0x1d3)],{'priority':_0x42728d(0x1ff)});}[_0x2191e9(0x1f8)](_0x5edd92,_0x5ebb35){return new _0x330832(_0x5edd92,_0x5ebb35);}[_0x2191e9(0x1de)](_0x554dce){const _0x1f5641=_0x2191e9;return new _0x310838(_0x554dce,this[_0x1f5641(0x1ed)][_0x1f5641(0x1fb)]);}[_0x2191e9(0x1cb)](_0x4b69ab){return new _0x597998(_0x4b69ab);}[_0x2191e9(0x1c0)](_0xd68f38){return new _0x41c445(_0xd68f38);}[_0x2191e9(0x1dd)](_0x5e206c){const _0x2ce635=_0x2191e9,_0x4d711a=new hs(_0x5e206c);return _0x4d711a[_0x2ce635(0x1d6)](_0x2ce635(0x1cc))['to'](this),_0x4d711a;}[_0x2191e9(0x1d3)](_0x251ab2,_0x3f3f60,_0x157516){const _0x206eb5=_0x2191e9;_0x157516?this[_0x206eb5(0x1cd)]=!0x0:this[_0x206eb5(0x1cd)]&&this[_0x206eb5(0x1d2)][_0x206eb5(0x1ce)]();}[_0x2191e9(0x1c7)](_0x19d369,_0x2d5141){const _0x24175a=_0x2191e9;this[_0x24175a(0x1ed)][_0x24175a(0x1c7)](_0x19d369,_0x2d5141);}[_0x2191e9(0x1c5)](_0x263f9d){const _0x4a6646=_0x2191e9;this[_0x4a6646(0x1ed)][_0x4a6646(0x1c5)](_0x263f9d);}[_0x2191e9(0x20e)](_0x599c2e,_0x1985ac){const _0x147338=_0x2191e9;this[_0x147338(0x1ed)][_0x147338(0x20e)](_0x599c2e,_0x1985ac);}[_0x2191e9(0x201)](_0x2d4434){const _0x403af9=_0x2191e9;this[_0x403af9(0x1d2)][_0x403af9(0x201)](_0x2d4434);}[_0x2191e9(0x1d9)](_0x28ada7){const _0x5e7c17=_0x2191e9;this[_0x5e7c17(0x1ed)][_0x5e7c17(0x1d9)](_0x28ada7);}[_0x2191e9(0x1f3)](){const _0x88a80d=_0x2191e9;this[_0x88a80d(0x1ed)][_0x88a80d(0x1fc)]();}[_0x2191e9(0x1ee)](){const _0x3113cc=_0x2191e9;this[_0x3113cc(0x1ed)][_0x3113cc(0x1fd)]();}[_0x2191e9(0x1e9)](_0x277665,_0xe2e284,_0x5b80d8){const _0x428238=_0x2191e9;this[_0x428238(0x1ed)][_0x428238(0x1e9)](_0x277665,_0xe2e284,_0x5b80d8);}[_0x2191e9(0x1ea)](_0x4debd0){const _0x491ea5=_0x2191e9;this[_0x491ea5(0x1f1)][_0x491ea5(0x1ea)](_0x4debd0);}[_0x2191e9(0x208)](_0x56ac61){const _0x546d9e=_0x2191e9;this[_0x546d9e(0x1f1)][_0x546d9e(0x208)](_0x56ac61);}[_0x2191e9(0x1c4)](){const _0x118e3d=_0x2191e9;this[_0x118e3d(0x1d2)][_0x118e3d(0x1e4)]();}[_0x2191e9(0x1c6)](_0x5dcb88){const _0x5b3ea0=_0x2191e9;this[_0x5b3ea0(0x1ed)][_0x5b3ea0(0x1c6)](_0x5dcb88);}[_0x2191e9(0x1bf)](_0x252c36){const _0x3d4adf=_0x2191e9;this[_0x3d4adf(0x1d2)][_0x3d4adf(0x1f0)](_0x252c36);}[_0x2191e9(0x1d1)](_0xd0b991,_0xad7348){const _0x4ca2f7=_0x2191e9;this[_0x4ca2f7(0x1ca)]=_0xd0b991,this[_0x4ca2f7(0x1f1)][_0x4ca2f7(0x1d1)](_0xd0b991,_0xad7348);}[_0x2191e9(0x206)](_0x4eed17){const _0x43cb57=_0x2191e9;(_0x4eed17?this[_0x43cb57(0x1ca)][_0x43cb57(0x209)](_0x1d4d91=>_0x1d4d91['id']===_0x4eed17['id']):null)?(this[_0x43cb57(0x207)]=!0x0,this[_0x43cb57(0x1f1)][_0x43cb57(0x206)](_0x4eed17)):_0x4eed17?.['id'][_0x43cb57(0x1e2)](_0x43cb57(0x20d))?(this[_0x43cb57(0x207)]=!0x0,this[_0x43cb57(0x1f1)][_0x43cb57(0x206)](this[_0x43cb57(0x1ca)][0x0])):this[_0x43cb57(0x207)]=!0x1;}[_0x2191e9(0x1e0)](){const _0x448a83=_0x2191e9;this[_0x448a83(0x1f1)][_0x448a83(0x1e0)]();}[_0x2191e9(0x1da)](_0x3a24ee){const _0x4ec9fa=_0x2191e9;this[_0x4ec9fa(0x1f1)][_0x4ec9fa(0x1da)](_0x3a24ee);}[_0x2191e9(0x1ef)](_0x3c4693,_0x146fa8,_0x16e9f3,_0x50b77b){const _0x159aa0=_0x2191e9;this[_0x159aa0(0x1ed)][_0x159aa0(0x1ef)](_0x3c4693,_0x146fa8,_0x16e9f3,_0x50b77b);}[_0x2191e9(0x1f7)](_0x2c2a35){const _0x37e4ac=_0x2191e9;this[_0x37e4ac(0x1ed)][_0x37e4ac(0x1f7)](_0x2c2a35);}[_0x2191e9(0x1be)](){const _0x4c18cf=_0x2191e9;this[_0x4c18cf(0x1d2)][_0x4c18cf(0x1ce)]();}}class hs extends _0x346b5e{constructor(_0x270860){const _0x330873=_0x2191e9;super(_0x270860);const _0x326f28=new _0x225c57(_0x270860);_0x326f28[_0x330873(0x1f2)]({'label':_0x38b99d(this[_0x330873(0x1e6)],_0x330873(0x1c8)),'withText':!0x0,'class':[_0x330873(0x202)],'tooltip':''}),_0x326f28[_0x330873(0x1d6)](_0x330873(0x1dc))['to'](this,_0x330873(0x1cc)),this[_0x330873(0x1d5)]({'tag':_0x330873(0x1e5),'attributes':{'class':['ck',_0x330873(0x205)]},'children':[{'tag':'p','children':[{'text':_0x38b99d(this[_0x330873(0x1e6)],_0x330873(0x200))+'\x20'},_0x326f28]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3780d1=_0x2a75;function _0x2a75(_0x2cf60f,_0x4d32bf){const _0x417f0b=_0x417f();return _0x2a75=function(_0x2a75d3,_0x32fde6){_0x2a75d3=_0x2a75d3-0x80;let _0xfac794=_0x417f0b[_0x2a75d3];return _0xfac794;},_0x2a75(_0x2cf60f,_0x4d32bf);}(function(_0x1f8e8e,_0x7a4baf){const _0x13c10c=_0x2a75,_0x7dc4f0=_0x1f8e8e();while(!![]){try{const _0x5af721=-parseInt(_0x13c10c(0x8e))/0x1+parseInt(_0x13c10c(0xb5))/0x2*(-parseInt(_0x13c10c(0x96))/0x3)+parseInt(_0x13c10c(0xb7))/0x4*(-parseInt(_0x13c10c(0x93))/0x5)+-parseInt(_0x13c10c(0xc2))/0x6+-parseInt(_0x13c10c(0x8d))/0x7*(parseInt(_0x13c10c(0xae))/0x8)+-parseInt(_0x13c10c(0xaf))/0x9*(-parseInt(_0x13c10c(0x84))/0xa)+parseInt(_0x13c10c(0x91))/0xb;if(_0x5af721===_0x7a4baf)break;else _0x7dc4f0['push'](_0x7dc4f0['shift']());}catch(_0x59de9a){_0x7dc4f0['push'](_0x7dc4f0['shift']());}}}(_0x417f,0xc08f7));import{CKEditorError as _0x44f375,logWarning as _0x3da7e9,scrollViewportToShowTarget as _0x30947f}from'ckeditor5/src/utils.js';import{View as _0x5e63d9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x43c254}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x2bce79}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x4a5b8f}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x798289}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x41d9b6}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3f5dfa}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3286ed}from'../utils/scrollmanager.js';import{AISkeletonView as _0x2365e2,SKELETON_DEFINITIONS as _0x4f7589}from'../../aicore/ui/aiskeleton.js';function _0x417f(){const _0x303085=['_bodyCollection','user-message','div','isVisible','aiFeed','33080aaghOU','1524564ZVKDrk','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__loader','start','children','updateReplyItem','4408pSIEVz','updateContent','4ZCjUmh','markItemAsDone','_createFeedItems','updateWebSources','locale','render','span','addItem','clear','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','destroy','3047172zqJcPJ','bind','options','stopAutoScroll','find','setLoadingMessage','isLoadingSkeletonVisible','getPartView','ai-chat-feed-view-item-not-a-reply-item','startAutoScroll','add','ck-ai-chat__feed__items','remove','element','extendTemplate','markAsDone','bindTemplate','includes','ai-suggestion-reply','updateSuggestionPartState','90VJEzsI','_createLoaderChildren','updateSources','toggleLoadingSkeleton','setTemplate','_setupTemplate','ai-chat-feed-view-item-not-found','getItemById','ai-chat-feed-view-item-not-a-suggestion-item','1897vhkSdj','212532DCoNmf','_createTemplateChildren','ck-hidden','37728625fMxycB','createCollection','6488345auABlG','_createSkeletonLoader','scrollToSuggestion','1398cbnPqT','updatePartState','loadingMessage','isPending','ck-ai-chat__loader-text','getItemIds','map','interaction-header','_createFeedLoader','removeItem','set','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ai-reply','updateSuggestionItem','stop','delegate','ck-ai-chat__feed','isTrackChangesOn','scrollManager'];_0x417f=function(){return _0x303085;};return _0x417f();}import{AISpinnerView as _0x5aa0b}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x5e63d9{[_0x3780d1(0xb3)];[_0x3780d1(0xa8)];[_0x3780d1(0xa9)];constructor(_0x582d25,_0x40d7dd){const _0x13bfab=_0x3780d1;super(_0x582d25),this[_0x13bfab(0xa9)]=_0x40d7dd,this[_0x13bfab(0xa0)](_0x13bfab(0x99),!0x1),this[_0x13bfab(0xa0)](_0x13bfab(0x98),''),this[_0x13bfab(0xa0)](_0x13bfab(0xc8),!0x1),this[_0x13bfab(0xa0)](_0x13bfab(0xa7),!0x1),this[_0x13bfab(0xb3)]=this[_0x13bfab(0x92)](),this[_0x13bfab(0xb3)][_0x13bfab(0xa5)](..._0x43c254)['to'](this),this[_0x13bfab(0x89)]();}[_0x3780d1(0xbc)](){const _0xfba27c=_0x3780d1;super[_0xfba27c(0xbc)](),this[_0xfba27c(0xa8)]=new _0x3286ed(this[_0xfba27c(0xcf)]);}[_0x3780d1(0xc1)](){const _0x443760=_0x3780d1;super[_0x443760(0xc1)](),this[_0x443760(0xa8)][_0x443760(0xc1)]();}[_0x3780d1(0xbf)](){const _0x433f2b=_0x3780d1;this[_0x433f2b(0xb3)][_0x433f2b(0xbf)]();}[_0x3780d1(0xbe)](_0x1ef035,_0x1359a6){const _0x26a38f=_0x3780d1;let _0xb38056;_0x26a38f(0xa2)===_0x1ef035?_0xb38056=new _0x4a5b8f(this[_0x26a38f(0xbb)],_0x1359a6):_0x26a38f(0x82)===_0x1ef035?(_0xb38056=new _0x2bce79(this[_0x26a38f(0xbb)],_0x1359a6),_0xb38056[_0x26a38f(0xc3)](_0x26a38f(0xa7))['to'](this,_0x26a38f(0xa7))):_0xb38056=_0x26a38f(0xaa)===_0x1ef035?new _0x798289(this[_0x26a38f(0xbb)],_0x1359a6,this[_0x26a38f(0xa9)]):_0x26a38f(0x9d)===_0x1ef035?new _0x3f5dfa(this[_0x26a38f(0xbb)],_0x1359a6):new _0x41d9b6(_0x1359a6),this[_0x26a38f(0xb3)][_0x26a38f(0xcc)](_0xb38056);}async[_0x3780d1(0xb4)]({id:_0x49b979,parsedContent:_0x220c38,renderingStrategy:_0xdaf8ca,abortSignal:_0x313c51}){const _0x1831c5=_0x3780d1,_0x26fb97=this[_0x1831c5(0x8b)](_0x49b979);if(!(_0x26fb97 instanceof _0x4a5b8f))throw new _0x44f375(_0x1831c5(0xca),null,{'itemView':_0x26fb97,'id':_0x49b979,'parsedContent':_0x220c38});await _0x26fb97[_0x1831c5(0xb6)]({'parsedContent':_0x220c38,'renderingStrategy':_0xdaf8ca,'abortSignal':_0x313c51});}async[_0x3780d1(0xba)](_0x93e01d,_0x53e062){const _0x229b57=_0x3780d1,_0x1128eb=this[_0x229b57(0x8b)](_0x93e01d);if(_0x1128eb instanceof _0x2bce79)_0x1128eb[_0x229b57(0x86)](_0x53e062);else{if(!(_0x1128eb instanceof _0x4a5b8f))throw new _0x44f375(_0x229b57(0xa1),null,{'itemView':_0x1128eb,'id':_0x93e01d,'sources':_0x53e062});_0x1128eb[_0x229b57(0x86)](_0x53e062);}}async[_0x3780d1(0xa3)]({id:_0x3dfc7b,parts:_0x3695b1,renderingStrategy:_0xee29ca,abortSignal:_0x47707d}){const _0x22f70e=_0x3780d1,_0x56c82b=this[_0x22f70e(0x8b)](_0x3dfc7b);if(!(_0x56c82b instanceof _0x2bce79))throw new _0x44f375(_0x22f70e(0x8c),null,{'itemView':_0x56c82b,'id':_0x3dfc7b,'parts':_0x3695b1});await _0x56c82b[_0x22f70e(0xb6)]({'parts':_0x3695b1,'renderingStrategy':_0xee29ca,'abortSignal':_0x47707d});}[_0x3780d1(0x83)]({id:_0x1a801b,index:_0x37c9fc,state:_0x4ae965}){const _0x560ce2=_0x3780d1,_0x25b3b3=this[_0x560ce2(0x8b)](_0x1a801b);if(!(_0x25b3b3 instanceof _0x2bce79))throw new _0x44f375(_0x560ce2(0x8c),this,{'id':_0x1a801b});_0x25b3b3[_0x560ce2(0x97)](_0x37c9fc,_0x4ae965);}[_0x3780d1(0xb8)](_0x3d3181){const _0x49e963=_0x3780d1;this[_0x49e963(0x8b)](_0x3d3181)[_0x49e963(0xd1)]();}[_0x3780d1(0x9b)](){const _0xa9ecd0=_0x3780d1;return this[_0xa9ecd0(0xb3)][_0xa9ecd0(0x9c)](_0x6b4111=>_0x6b4111[_0xa9ecd0(0xc4)]['id']);}[_0x3780d1(0x9f)](_0x10c205){const _0x250757=_0x3780d1;this[_0x250757(0xb3)][_0x250757(0xce)](this[_0x250757(0x8b)](_0x10c205));}[_0x3780d1(0x95)](_0x46840d,_0x5045a3){const _0x197d58=_0x3780d1,_0xebecbd=this[_0x197d58(0x8b)](_0x46840d);if(!(_0xebecbd instanceof _0x2bce79))return void _0x3da7e9(_0x197d58(0xc0),{'replyId':_0x46840d,'partIndex':_0x5045a3});const _0x1de69a=_0xebecbd[_0x197d58(0xc9)](_0x5045a3);_0x1de69a?_0x30947f({'target':_0x1de69a[_0x197d58(0xcf)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x3da7e9(_0x197d58(0xb0),{'replyId':_0x46840d,'partIndex':_0x5045a3});}[_0x3780d1(0x89)](){const _0x2cd0d0=_0x3780d1;this[_0x2cd0d0(0x88)]({'tag':_0x2cd0d0(0xab),'attributes':{'class':['ck',_0x2cd0d0(0xa6)]},'children':this[_0x2cd0d0(0x8f)]()});}[_0x3780d1(0x8f)](){const _0x8528b5=_0x3780d1,_0x1362f2=this[_0x8528b5(0x94)]();return[this[_0x8528b5(0xb9)](),_0x1362f2,this[_0x8528b5(0x9e)]()];}[_0x3780d1(0x94)](){const _0x46add3=_0x3780d1,_0x3aa175=new _0x2365e2(this[_0x46add3(0xbb)],_0x4f7589[_0x46add3(0xad)]);return _0x3aa175[_0x46add3(0xd0)]({'attributes':{'class':[this[_0x46add3(0x80)]['if'](_0x46add3(0xc8),_0x46add3(0x90),_0x5eee44=>!_0x5eee44)]}}),_0x3aa175;}[_0x3780d1(0xb9)](){const _0x5d0b0f=_0x3780d1,_0x4ea9b4=new _0x5e63d9(this[_0x5d0b0f(0xbb)]);return _0x4ea9b4[_0x5d0b0f(0x88)]({'tag':_0x5d0b0f(0xab),'attributes':{'class':['ck',_0x5d0b0f(0xcd),this[_0x5d0b0f(0x80)]['if'](_0x5d0b0f(0xc8),_0x5d0b0f(0x90))]},'children':this[_0x5d0b0f(0xb3)]}),_0x4ea9b4;}[_0x3780d1(0x9e)](){const _0x523fe2=_0x3780d1,_0x4834c6=new _0x5e63d9(this[_0x523fe2(0xbb)]);return _0x4834c6[_0x523fe2(0x88)]({'tag':_0x523fe2(0xab),'attributes':{'class':['ck',_0x523fe2(0xb1),this[_0x523fe2(0x80)]['if'](_0x523fe2(0x99),_0x523fe2(0x90),_0x785c5f=>!_0x785c5f)]},'children':this[_0x523fe2(0x85)]()}),_0x4834c6;}[_0x3780d1(0x85)](){const _0x472a70=_0x3780d1,_0x2bc5f4=new _0x5aa0b();return _0x2bc5f4[_0x472a70(0xac)]=!0x0,[_0x2bc5f4,{'tag':_0x472a70(0xbd),'attributes':{'class':['ck',_0x472a70(0x9a)]},'children':[{'text':this[_0x472a70(0x80)]['to'](_0x472a70(0x98))}]}];}[_0x3780d1(0x8b)](_0x13dd22){const _0x16e6ac=_0x3780d1,_0x3016fa=this[_0x16e6ac(0xb3)][_0x16e6ac(0xc6)](_0x38aec0=>_0x38aec0[_0x16e6ac(0xc4)]['id'][_0x16e6ac(0x81)](_0x13dd22));if(!_0x3016fa)throw new _0x44f375(_0x16e6ac(0x8a),this,{'id':_0x13dd22});return _0x3016fa;}[_0x3780d1(0xc7)](_0x503d40){const _0x2d91cd=_0x3780d1;this[_0x2d91cd(0xa0)](_0x2d91cd(0x98),_0x503d40);}[_0x3780d1(0x87)](_0x99595b){const _0x43cde1=_0x3780d1;this[_0x43cde1(0xa0)](_0x43cde1(0xc8),_0x99595b);}[_0x3780d1(0xcb)](){const _0x4ec31e=_0x3780d1;this[_0x4ec31e(0xa8)][_0x4ec31e(0xb2)]();}[_0x3780d1(0xc5)](){const _0x519178=_0x3780d1;this[_0x519178(0xa8)][_0x519178(0xa4)]();}}
23
+ const _0x48efcc=_0x43d7;(function(_0x395bde,_0x484f92){const _0x43d0ee=_0x43d7,_0x1c23c5=_0x395bde();while(!![]){try{const _0x100edf=parseInt(_0x43d0ee(0x1c8))/0x1*(parseInt(_0x43d0ee(0x188))/0x2)+-parseInt(_0x43d0ee(0x1a4))/0x3*(parseInt(_0x43d0ee(0x1bc))/0x4)+parseInt(_0x43d0ee(0x1be))/0x5*(-parseInt(_0x43d0ee(0x1d5))/0x6)+parseInt(_0x43d0ee(0x185))/0x7*(parseInt(_0x43d0ee(0x1cb))/0x8)+parseInt(_0x43d0ee(0x1b6))/0x9+parseInt(_0x43d0ee(0x1a6))/0xa*(parseInt(_0x43d0ee(0x1c7))/0xb)+-parseInt(_0x43d0ee(0x1aa))/0xc;if(_0x100edf===_0x484f92)break;else _0x1c23c5['push'](_0x1c23c5['shift']());}catch(_0xa4b7f2){_0x1c23c5['push'](_0x1c23c5['shift']());}}}(_0x8b54,0x7c39f));import{CKEditorError as _0x199efa,logWarning as _0x2dcd6e,scrollViewportToShowTarget as _0x3dd167}from'ckeditor5/src/utils.js';import{View as _0xbd012f}from'ckeditor5/src/ui.js';function _0x8b54(){const _0x16c1f2=['updateSuggestionItem','loadingMessage','bind','element','removeItem','destroy','3638022foQUpw','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ck-ai-chat__loader-text','5500719TTaQBo','addItem','ai-chat-feed-view-item-not-found','916862sQovWI','isVisible','ck-hidden','markAsDone','span','add','markItemAsDone','aiFeed','_bodyCollection','isTrackChangesOn','bindTemplate','ai-suggestion-reply','isPending','updatePartState','includes','stopAutoScroll','user-message','start','ck-ai-chat__loader','set','render','getItemIds','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__feed__items','_createFeedItems','clear','_createLoaderChildren','createCollection','314277fXlBGh','ck-ai-chat__feed','10uTQgeH','map','_setupTemplate','isLoadingSkeletonVisible','14051340nJVVGa','toggleLoadingSkeleton','getItemById','scrollToSuggestion','options','ai-reply','find','updateReplyItem','updateWebSources','ai-chat-feed-view-item-not-a-reply-item','remove','delegate','4935312mSXXfl','startAutoScroll','setTemplate','_createTemplateChildren','getPartView','locale','28nzjQZI','updateContent','5OFPKoz','interaction-header','div','stop','ai-chat-feed-view-item-not-a-suggestion-item','updateSuggestionPartState','_createFeedLoader','_createSkeletonLoader','scrollManager','8452169rIbMpm','2CqEsVS','setLoadingMessage','extendTemplate','8pylGMO','children','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item'];_0x8b54=function(){return _0x16c1f2;};return _0x8b54();}import{AI_CHAT_UI_EVENT_NAMES as _0x4ea93b}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x429358}from'./feed/aichatfeedsuggestionitemview.js';function _0x43d7(_0x1fe658,_0x1d1561){const _0x8b544a=_0x8b54();return _0x43d7=function(_0x43d7a2,_0x4dae05){_0x43d7a2=_0x43d7a2-0x183;let _0x383504=_0x8b544a[_0x43d7a2];return _0x383504;},_0x43d7(_0x1fe658,_0x1d1561);}import{AIChatFeedReplyItemView as _0x5a2e6d}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x255f72}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0xd2c814}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4e4e21}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x54087a}from'../utils/scrollmanager.js';import{AISkeletonView as _0x5213d4,SKELETON_DEFINITIONS as _0x57b683}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2ec7a9}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0xbd012f{[_0x48efcc(0x1cc)];[_0x48efcc(0x1c6)];[_0x48efcc(0x190)];constructor(_0x1ebf85,_0x4be37c){const _0x4fb7a1=_0x48efcc;super(_0x1ebf85),this[_0x4fb7a1(0x190)]=_0x4be37c,this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x194),!0x1),this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x1d0),''),this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x1a9),!0x1),this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x191),!0x1),this[_0x4fb7a1(0x1cc)]=this[_0x4fb7a1(0x1a3)](),this[_0x4fb7a1(0x1cc)][_0x4fb7a1(0x1b5)](..._0x4ea93b)['to'](this),this[_0x4fb7a1(0x1a8)]();}[_0x48efcc(0x19c)](){const _0x595e18=_0x48efcc;super[_0x595e18(0x19c)](),this[_0x595e18(0x1c6)]=new _0x54087a(this[_0x595e18(0x1d2)]);}[_0x48efcc(0x1d4)](){const _0x124ae0=_0x48efcc;super[_0x124ae0(0x1d4)](),this[_0x124ae0(0x1c6)][_0x124ae0(0x1d4)]();}[_0x48efcc(0x1a1)](){const _0x40fe07=_0x48efcc;this[_0x40fe07(0x1cc)][_0x40fe07(0x1a1)]();}[_0x48efcc(0x186)](_0x296616,_0x4d987d){const _0x24b63e=_0x48efcc;let _0x30bec0;_0x24b63e(0x1af)===_0x296616?_0x30bec0=new _0x5a2e6d(this[_0x24b63e(0x1bb)],_0x4d987d):_0x24b63e(0x193)===_0x296616?(_0x30bec0=new _0x429358(this[_0x24b63e(0x1bb)],_0x4d987d),_0x30bec0[_0x24b63e(0x1d1)](_0x24b63e(0x191))['to'](this,_0x24b63e(0x191))):_0x30bec0=_0x24b63e(0x198)===_0x296616?new _0x255f72(this[_0x24b63e(0x1bb)],_0x4d987d,this[_0x24b63e(0x190)]):_0x24b63e(0x1bf)===_0x296616?new _0x4e4e21(this[_0x24b63e(0x1bb)],_0x4d987d):new _0xd2c814(_0x4d987d),this[_0x24b63e(0x1cc)][_0x24b63e(0x18d)](_0x30bec0);}async[_0x48efcc(0x1b1)]({id:_0x15668c,parsedContent:_0x14f5fe,renderingStrategy:_0x398def,abortSignal:_0x2d1e40}){const _0xc16dd8=_0x48efcc,_0x40fd2a=this[_0xc16dd8(0x1ac)](_0x15668c);if(!(_0x40fd2a instanceof _0x5a2e6d))throw new _0x199efa(_0xc16dd8(0x1b3),null,{'itemView':_0x40fd2a,'id':_0x15668c,'parsedContent':_0x14f5fe});await _0x40fd2a[_0xc16dd8(0x1bd)]({'parsedContent':_0x14f5fe,'renderingStrategy':_0x398def,'abortSignal':_0x2d1e40});}async[_0x48efcc(0x1b2)](_0x2ad25c,_0x48ffa9){const _0x1a70d2=_0x48efcc,_0x59bd30=this[_0x1a70d2(0x1ac)](_0x2ad25c);if(_0x59bd30 instanceof _0x429358)_0x59bd30[_0x1a70d2(0x1cd)](_0x48ffa9);else{if(!(_0x59bd30 instanceof _0x5a2e6d))throw new _0x199efa(_0x1a70d2(0x183),null,{'itemView':_0x59bd30,'id':_0x2ad25c,'sources':_0x48ffa9});_0x59bd30[_0x1a70d2(0x1cd)](_0x48ffa9);}}async[_0x48efcc(0x1cf)]({id:_0x29558d,parts:_0x37dd29,renderingStrategy:_0x364148,abortSignal:_0x5aa74c}){const _0x2051b1=_0x48efcc,_0x286a7a=this[_0x2051b1(0x1ac)](_0x29558d);if(!(_0x286a7a instanceof _0x429358))throw new _0x199efa(_0x2051b1(0x1c2),null,{'itemView':_0x286a7a,'id':_0x29558d,'parts':_0x37dd29});await _0x286a7a[_0x2051b1(0x1bd)]({'parts':_0x37dd29,'renderingStrategy':_0x364148,'abortSignal':_0x5aa74c});}[_0x48efcc(0x1c3)]({id:_0x59645e,index:_0x2ad5e7,state:_0x243f4c}){const _0x1c0bce=_0x48efcc,_0x24e551=this[_0x1c0bce(0x1ac)](_0x59645e);if(!(_0x24e551 instanceof _0x429358))throw new _0x199efa(_0x1c0bce(0x1c2),this,{'id':_0x59645e});_0x24e551[_0x1c0bce(0x195)](_0x2ad5e7,_0x243f4c);}[_0x48efcc(0x18e)](_0x30adc5){const _0x3e6437=_0x48efcc;this[_0x3e6437(0x1ac)](_0x30adc5)[_0x3e6437(0x18b)]();}[_0x48efcc(0x19d)](){const _0x3117b9=_0x48efcc;return this[_0x3117b9(0x1cc)][_0x3117b9(0x1a7)](_0x528816=>_0x528816[_0x3117b9(0x1ae)]['id']);}[_0x48efcc(0x1d3)](_0x3bbb96){const _0x3daf6e=_0x48efcc;this[_0x3daf6e(0x1cc)][_0x3daf6e(0x1b4)](this[_0x3daf6e(0x1ac)](_0x3bbb96));}[_0x48efcc(0x1ad)](_0x50f6a6,_0x3add48){const _0x5c266b=_0x48efcc,_0x2614a6=this[_0x5c266b(0x1ac)](_0x50f6a6);if(!(_0x2614a6 instanceof _0x429358))return void _0x2dcd6e(_0x5c266b(0x1ce),{'replyId':_0x50f6a6,'partIndex':_0x3add48});const _0x8688ec=_0x2614a6[_0x5c266b(0x1ba)](_0x3add48);_0x8688ec?_0x3dd167({'target':_0x8688ec[_0x5c266b(0x1d2)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2dcd6e(_0x5c266b(0x19e),{'replyId':_0x50f6a6,'partIndex':_0x3add48});}[_0x48efcc(0x1a8)](){const _0x4704bf=_0x48efcc;this[_0x4704bf(0x1b8)]({'tag':_0x4704bf(0x1c0),'attributes':{'class':['ck',_0x4704bf(0x1a5)]},'children':this[_0x4704bf(0x1b9)]()});}[_0x48efcc(0x1b9)](){const _0xdd12b4=_0x48efcc,_0x1d0311=this[_0xdd12b4(0x1c5)]();return[this[_0xdd12b4(0x1a0)](),_0x1d0311,this[_0xdd12b4(0x1c4)]()];}[_0x48efcc(0x1c5)](){const _0x4dcc57=_0x48efcc,_0x38c976=new _0x5213d4(this[_0x4dcc57(0x1bb)],_0x57b683[_0x4dcc57(0x18f)]);return _0x38c976[_0x4dcc57(0x1ca)]({'attributes':{'class':[this[_0x4dcc57(0x192)]['if'](_0x4dcc57(0x1a9),_0x4dcc57(0x18a),_0x18c7d5=>!_0x18c7d5)]}}),_0x38c976;}[_0x48efcc(0x1a0)](){const _0x2da9c2=_0x48efcc,_0x2b01d3=new _0xbd012f(this[_0x2da9c2(0x1bb)]);return _0x2b01d3[_0x2da9c2(0x1b8)]({'tag':_0x2da9c2(0x1c0),'attributes':{'class':['ck',_0x2da9c2(0x19f),this[_0x2da9c2(0x192)]['if'](_0x2da9c2(0x1a9),_0x2da9c2(0x18a))]},'children':this[_0x2da9c2(0x1cc)]}),_0x2b01d3;}[_0x48efcc(0x1c4)](){const _0x435bf8=_0x48efcc,_0x3d118c=new _0xbd012f(this[_0x435bf8(0x1bb)]);return _0x3d118c[_0x435bf8(0x1b8)]({'tag':_0x435bf8(0x1c0),'attributes':{'class':['ck',_0x435bf8(0x19a),this[_0x435bf8(0x192)]['if'](_0x435bf8(0x194),_0x435bf8(0x18a),_0x288e9e=>!_0x288e9e)]},'children':this[_0x435bf8(0x1a2)]()}),_0x3d118c;}[_0x48efcc(0x1a2)](){const _0x33c328=_0x48efcc,_0x28aea3=new _0x2ec7a9();return _0x28aea3[_0x33c328(0x189)]=!0x0,[_0x28aea3,{'tag':_0x33c328(0x18c),'attributes':{'class':['ck',_0x33c328(0x184)]},'children':[{'text':this[_0x33c328(0x192)]['to'](_0x33c328(0x1d0))}]}];}[_0x48efcc(0x1ac)](_0x5b953f){const _0xf3817c=_0x48efcc,_0x4a8664=this[_0xf3817c(0x1cc)][_0xf3817c(0x1b0)](_0x39fe00=>_0x39fe00[_0xf3817c(0x1ae)]['id'][_0xf3817c(0x196)](_0x5b953f));if(!_0x4a8664)throw new _0x199efa(_0xf3817c(0x187),this,{'id':_0x5b953f});return _0x4a8664;}[_0x48efcc(0x1c9)](_0x954166){const _0x359df4=_0x48efcc;this[_0x359df4(0x19b)](_0x359df4(0x1d0),_0x954166);}[_0x48efcc(0x1ab)](_0x15736f){const _0x211918=_0x48efcc;this[_0x211918(0x19b)](_0x211918(0x1a9),_0x15736f);}[_0x48efcc(0x1b7)](){const _0x1eaca3=_0x48efcc;this[_0x1eaca3(0x1c6)][_0x1eaca3(0x199)]();}[_0x48efcc(0x197)](){const _0x5b6293=_0x48efcc;this[_0x5b6293(0x1c6)][_0x5b6293(0x1c1)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5d81(){const _0x285353=['set','execute','ck-ai-header\x20ck-ai-header_chat','336068QZaEwp','9724131zBfrxT','7wBHKtK','5187606HaLUbL','conversationStartButton','startConversation','resizeButton','_createStartConversationButton','isMaximized','fire','ck-ai-chat__start-conversation','868122cMyWqD','4JQhXKy','7733430YjktVn','602dsGVpc','AI_CHAT_HEADING','27488880qQJfRx','AI_CHAT_LABEL_NEW_CHAT','add','58288adLFeM','locale','children'];_0x5d81=function(){return _0x285353;};return _0x5d81();}const _0x2b0505=_0x2d9b;(function(_0x5a7790,_0x55c703){const _0x257106=_0x2d9b,_0x5b752a=_0x5a7790();while(!![]){try{const _0x36bc55=parseInt(_0x257106(0xd2))/0x1*(-parseInt(_0x257106(0xd0))/0x2)+-parseInt(_0x257106(0xdb))/0x3*(-parseInt(_0x257106(0xdc))/0x4)+parseInt(_0x257106(0xdd))/0x5+-parseInt(_0x257106(0xd3))/0x6+parseInt(_0x257106(0xde))/0x7*(-parseInt(_0x257106(0xe3))/0x8)+-parseInt(_0x257106(0xd1))/0x9+parseInt(_0x257106(0xe0))/0xa;if(_0x36bc55===_0x55c703)break;else _0x5b752a['push'](_0x5b752a['shift']());}catch(_0x27ab93){_0x5b752a['push'](_0x5b752a['shift']());}}}(_0x5d81,0xcc5be));import{ButtonView as _0x3ad259,FormHeaderView as _0x4b92f4}from'ckeditor5/src/ui.js';import{IconPlus as _0x362bf3,IconAIChat as _0x2d2d74}from'ckeditor5/src/icons.js';function _0x2d9b(_0x3b01bb,_0xf2a2ed){const _0x5d81bd=_0x5d81();return _0x2d9b=function(_0x2d9b6b,_0x260966){_0x2d9b6b=_0x2d9b6b-0xcb;let _0x10b8bb=_0x5d81bd[_0x2d9b6b];return _0x10b8bb;},_0x2d9b(_0x3b01bb,_0xf2a2ed);}import{getTranslation as _0x5b8d08}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x22bce9}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x4b92f4{[_0x2b0505(0xd4)];[_0x2b0505(0xd6)];constructor(_0xef6a45,_0x596a55){const _0x125eda=_0x2b0505;super(_0xef6a45,{'label':_0x5b8d08(_0xef6a45,_0x125eda(0xdf)),'class':_0x125eda(0xcf),'icon':_0x2d2d74}),this[_0x125eda(0xcd)](_0x125eda(0xd8),!0x1),this[_0x125eda(0xd4)]=this[_0x125eda(0xd7)](_0xef6a45),this[_0x125eda(0xcc)][_0x125eda(0xe2)](this[_0x125eda(0xd4)]),_0x596a55&&(this[_0x125eda(0xd6)]=_0x22bce9(_0xef6a45,this),this[_0x125eda(0xcc)][_0x125eda(0xe2)](this[_0x125eda(0xd6)]));}[_0x2b0505(0xd7)](_0x320993){const _0xc4d795=_0x2b0505,_0x1d6913=new _0x3ad259(_0x320993);return _0x1d6913[_0xc4d795(0xcd)]({'label':_0x5b8d08(this[_0xc4d795(0xcb)],_0xc4d795(0xe1)),'withText':!0x0,'icon':_0x362bf3,'class':_0xc4d795(0xda)}),_0x1d6913['on'](_0xc4d795(0xce),()=>{const _0x41feda=_0xc4d795;this[_0x41feda(0xd9)](_0x41feda(0xd5));}),_0x1d6913;}}
23
+ const _0x4b6339=_0x543b;(function(_0x4c9b6e,_0x5b3e7c){const _0x4094b9=_0x543b,_0x336feb=_0x4c9b6e();while(!![]){try{const _0x136df1=parseInt(_0x4094b9(0x103))/0x1+parseInt(_0x4094b9(0x10a))/0x2+parseInt(_0x4094b9(0x109))/0x3+parseInt(_0x4094b9(0x107))/0x4+-parseInt(_0x4094b9(0xfd))/0x5*(parseInt(_0x4094b9(0x10c))/0x6)+parseInt(_0x4094b9(0xfa))/0x7+-parseInt(_0x4094b9(0x100))/0x8*(parseInt(_0x4094b9(0x10e))/0x9);if(_0x136df1===_0x5b3e7c)break;else _0x336feb['push'](_0x336feb['shift']());}catch(_0x1244c3){_0x336feb['push'](_0x336feb['shift']());}}}(_0x354a,0x5963c));function _0x354a(){const _0x5bee33=['20eDCAvx','AI_CHAT_LABEL_NEW_CHAT','resizeButton','31256zNPptY','conversationStartButton','set','539191cjrzBE','_createStartConversationButton','children','isMaximized','186600aMiYZu','add','902319BkMJNd','47508aoJOXR','startConversation','232794rxNRcZ','ck-ai-chat__start-conversation','1611hYpOng','execute','locale','AI_CHAT_HEADING','2172247IDMXuL','fire','ck-ai-header\x20ck-ai-header_chat'];_0x354a=function(){return _0x5bee33;};return _0x354a();}import{ButtonView as _0x54b6fd,FormHeaderView as _0x179c8c}from'ckeditor5/src/ui.js';import{IconPlus as _0x41cbf5,IconAIChat as _0x59a93a}from'ckeditor5/src/icons.js';function _0x543b(_0x6fd5b1,_0x77f58d){const _0x354ab2=_0x354a();return _0x543b=function(_0x543b8a,_0x5a2289){_0x543b8a=_0x543b8a-0xf8;let _0x45fec5=_0x354ab2[_0x543b8a];return _0x45fec5;},_0x543b(_0x6fd5b1,_0x77f58d);}import{getTranslation as _0x5d5a2a}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x24caf4}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x179c8c{[_0x4b6339(0x101)];[_0x4b6339(0xff)];constructor(_0x4619ec,_0x398070){const _0x1162fc=_0x4b6339;super(_0x4619ec,{'label':_0x5d5a2a(_0x4619ec,_0x1162fc(0xf9)),'class':_0x1162fc(0xfc),'icon':_0x59a93a}),this[_0x1162fc(0x102)](_0x1162fc(0x106),!0x1),this[_0x1162fc(0x101)]=this[_0x1162fc(0x104)](_0x4619ec),this[_0x1162fc(0x105)][_0x1162fc(0x108)](this[_0x1162fc(0x101)]),_0x398070&&(this[_0x1162fc(0xff)]=_0x24caf4(_0x4619ec,this),this[_0x1162fc(0x105)][_0x1162fc(0x108)](this[_0x1162fc(0xff)]));}[_0x4b6339(0x104)](_0x3e9121){const _0x4f2a36=_0x4b6339,_0x580709=new _0x54b6fd(_0x3e9121);return _0x580709[_0x4f2a36(0x102)]({'label':_0x5d5a2a(this[_0x4f2a36(0xf8)],_0x4f2a36(0xfe)),'withText':!0x0,'icon':_0x41cbf5,'class':_0x4f2a36(0x10d)}),_0x580709['on'](_0x4f2a36(0x10f),()=>{const _0x3d575f=_0x4f2a36;this[_0x3d575f(0xfb)](_0x3d575f(0x10b));}),_0x580709;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x10fe92=_0x5ad2;function _0x1ad8(){var _0x241eef=['ck-reset_all','chatDisclaimer','showResizeButton','closeSourceResourceBalloon','ck-rounded-corners','564vHnNvO','chatFeed','uiLanguageDirection','chatHeader','_bodyCollection','3977918PXWpnY','ck-ai-chat','1390744bRCbhv','delegate','contextResourcesSearchInputVisibleFrom','chatControls','detachFromDom','destroy','setTemplate','1854822HZFwUD','attachToDom','2169234htsxSp','4632516PUonJb','populateSourceResourceBalloon','div','36910ILowro','69725bmDEUI'];_0x1ad8=function(){return _0x241eef;};return _0x1ad8();}function _0x5ad2(_0x3d4439,_0x328b56){var _0x1ad899=_0x1ad8();return _0x5ad2=function(_0x5ad2f4,_0x3caf14){_0x5ad2f4=_0x5ad2f4-0x149;var _0x51c701=_0x1ad899[_0x5ad2f4];return _0x51c701;},_0x5ad2(_0x3d4439,_0x328b56);}(function(_0x2ab372,_0x4332cf){var _0x31bee7=_0x5ad2,_0x33a1e1=_0x2ab372();while(!![]){try{var _0x461103=-parseInt(_0x31bee7(0x153))/0x1+parseInt(_0x31bee7(0x14d))/0x2+-parseInt(_0x31bee7(0x14f))/0x3+-parseInt(_0x31bee7(0x150))/0x4+-parseInt(_0x31bee7(0x154))/0x5*(-parseInt(_0x31bee7(0x15a))/0x6)+parseInt(_0x31bee7(0x15f))/0x7+-parseInt(_0x31bee7(0x161))/0x8;if(_0x461103===_0x4332cf)break;else _0x33a1e1['push'](_0x33a1e1['shift']());}catch(_0x1ff960){_0x33a1e1['push'](_0x33a1e1['shift']());}}}(_0x1ad8,0xae73b));import{View as _0x149280,BodyCollection as _0x5dc5f0}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x308009}from'../utils/eventnames.js';import{AIChatFeedView as _0x2d9aa9}from'./aichatfeedview.js';import{AIChatControlsView as _0x16dc43}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x156803}from'./aichatheaderview.js';import{AIDisclaimerView as _0x1ffcf2}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x149280{[_0x10fe92(0x15d)];[_0x10fe92(0x15b)];[_0x10fe92(0x149)];[_0x10fe92(0x156)];[_0x10fe92(0x15e)];constructor(_0x2b0864,_0x3e700b){var _0x8f05b6=_0x10fe92;super(_0x2b0864),this[_0x8f05b6(0x15e)]=new _0x5dc5f0(_0x2b0864),this[_0x8f05b6(0x15e)][_0x8f05b6(0x14e)](),this[_0x8f05b6(0x15d)]=new _0x156803(_0x2b0864,_0x3e700b[_0x8f05b6(0x157)]),this[_0x8f05b6(0x15d)][_0x8f05b6(0x162)](..._0x308009)['to'](this),this[_0x8f05b6(0x15b)]=new _0x2d9aa9(_0x2b0864,this[_0x8f05b6(0x15e)]),this[_0x8f05b6(0x15b)][_0x8f05b6(0x162)](..._0x308009)['to'](this),this[_0x8f05b6(0x149)]=new _0x16dc43(_0x2b0864,{'bodyCollection':this[_0x8f05b6(0x15e)],'contextResourcesSearchInputVisibleFrom':_0x3e700b[_0x8f05b6(0x163)]}),this[_0x8f05b6(0x149)][_0x8f05b6(0x162)](..._0x308009)['to'](this),this[_0x8f05b6(0x156)]=new _0x1ffcf2(_0x2b0864),this[_0x8f05b6(0x14c)]({'tag':_0x8f05b6(0x152),'attributes':{'class':['ck',_0x8f05b6(0x155),_0x8f05b6(0x160),_0x8f05b6(0x159)],'dir':_0x2b0864[_0x8f05b6(0x15c)]},'children':[this[_0x8f05b6(0x15d)],this[_0x8f05b6(0x15b)],this[_0x8f05b6(0x149)],this[_0x8f05b6(0x156)]]});}[_0x10fe92(0x151)](_0x16a38f,_0x473732,_0x421215,_0x28641a){var _0x65ae13=_0x10fe92;this[_0x65ae13(0x149)][_0x65ae13(0x151)](_0x16a38f,_0x473732,_0x421215,_0x28641a);}[_0x10fe92(0x158)](_0x16771a){var _0x12afd7=_0x10fe92;this[_0x12afd7(0x149)][_0x12afd7(0x158)](_0x16771a);}[_0x10fe92(0x14b)](){var _0x2bd4ad=_0x10fe92;this[_0x2bd4ad(0x15e)][_0x2bd4ad(0x14a)](),super[_0x2bd4ad(0x14b)]();}}
23
+ var _0x2ab5d4=_0x2047;(function(_0x45d78e,_0x15743e){var _0xb20ee7=_0x2047,_0x46eb9a=_0x45d78e();while(!![]){try{var _0x57ad1e=parseInt(_0xb20ee7(0x171))/0x1+-parseInt(_0xb20ee7(0x166))/0x2*(parseInt(_0xb20ee7(0x16b))/0x3)+parseInt(_0xb20ee7(0x174))/0x4+parseInt(_0xb20ee7(0x17c))/0x5+parseInt(_0xb20ee7(0x16f))/0x6+-parseInt(_0xb20ee7(0x17a))/0x7*(-parseInt(_0xb20ee7(0x180))/0x8)+-parseInt(_0xb20ee7(0x16c))/0x9*(parseInt(_0xb20ee7(0x17b))/0xa);if(_0x57ad1e===_0x15743e)break;else _0x46eb9a['push'](_0x46eb9a['shift']());}catch(_0x3d588f){_0x46eb9a['push'](_0x46eb9a['shift']());}}}(_0x2ec9,0x7a0ff));import{View as _0x35dcb1,BodyCollection as _0x254a50}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1ada4b}from'../utils/eventnames.js';function _0x2ec9(){var _0x32bb9c=['355973wHDCqg','destroy','contextResourcesSearchInputVisibleFrom','2412492EVupAk','uiLanguageDirection','div','showResizeButton','attachToDom','chatHeader','65177TplYNc','9829280kBSisq','3543770MrXkah','populateSourceResourceBalloon','detachFromDom','ck-rounded-corners','408uNZUhF','ck-ai-chat','chatDisclaimer','514084tCMYMn','_bodyCollection','chatControls','setTemplate','ck-reset_all','9iAeilH','9AGdybV','chatFeed','delegate','667860MwYawf','closeSourceResourceBalloon'];_0x2ec9=function(){return _0x32bb9c;};return _0x2ec9();}import{AIChatFeedView as _0x25d76c}from'./aichatfeedview.js';import{AIChatControlsView as _0x2a08de}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x5b7bf1}from'./aichatheaderview.js';function _0x2047(_0x524118,_0x15ea06){var _0x2ec988=_0x2ec9();return _0x2047=function(_0x2047e3,_0x5231d3){_0x2047e3=_0x2047e3-0x165;var _0x4e2049=_0x2ec988[_0x2047e3];return _0x4e2049;},_0x2047(_0x524118,_0x15ea06);}import{AIDisclaimerView as _0x32499b}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x35dcb1{[_0x2ab5d4(0x179)];[_0x2ab5d4(0x16d)];[_0x2ab5d4(0x168)];[_0x2ab5d4(0x165)];[_0x2ab5d4(0x167)];constructor(_0x5edb8b,_0x43a9bf){var _0x3cb740=_0x2ab5d4;super(_0x5edb8b),this[_0x3cb740(0x167)]=new _0x254a50(_0x5edb8b),this[_0x3cb740(0x167)][_0x3cb740(0x178)](),this[_0x3cb740(0x179)]=new _0x5b7bf1(_0x5edb8b,_0x43a9bf[_0x3cb740(0x177)]),this[_0x3cb740(0x179)][_0x3cb740(0x16e)](..._0x1ada4b)['to'](this),this[_0x3cb740(0x16d)]=new _0x25d76c(_0x5edb8b,this[_0x3cb740(0x167)]),this[_0x3cb740(0x16d)][_0x3cb740(0x16e)](..._0x1ada4b)['to'](this),this[_0x3cb740(0x168)]=new _0x2a08de(_0x5edb8b,{'bodyCollection':this[_0x3cb740(0x167)],'contextResourcesSearchInputVisibleFrom':_0x43a9bf[_0x3cb740(0x173)]}),this[_0x3cb740(0x168)][_0x3cb740(0x16e)](..._0x1ada4b)['to'](this),this[_0x3cb740(0x165)]=new _0x32499b(_0x5edb8b),this[_0x3cb740(0x169)]({'tag':_0x3cb740(0x176),'attributes':{'class':['ck',_0x3cb740(0x16a),_0x3cb740(0x181),_0x3cb740(0x17f)],'dir':_0x5edb8b[_0x3cb740(0x175)]},'children':[this[_0x3cb740(0x179)],this[_0x3cb740(0x16d)],this[_0x3cb740(0x168)],this[_0x3cb740(0x165)]]});}[_0x2ab5d4(0x17d)](_0x2f2cd7,_0x12854e,_0xbd1347,_0x17af76){var _0x55b854=_0x2ab5d4;this[_0x55b854(0x168)][_0x55b854(0x17d)](_0x2f2cd7,_0x12854e,_0xbd1347,_0x17af76);}[_0x2ab5d4(0x170)](_0x168d26){var _0x77e799=_0x2ab5d4;this[_0x77e799(0x168)][_0x77e799(0x170)](_0x168d26);}[_0x2ab5d4(0x172)](){var _0x11205f=_0x2ab5d4;this[_0x11205f(0x167)][_0x11205f(0x17e)](),super[_0x11205f(0x172)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fe309=_0x2b88;function _0xc2be(){const _0x3c771d=['style','position','innerWidth','top','visible\x20!important','abs','disableAnimationOnEnter','controlsButton','length','_distributeChips','className','getBoundingClientRect','setTemplate','clear','301702qhktTo','isOn','_makeAncestorsVisible','render','undefined','absolute','_findTargetContainer','_targetContainer','pop','pointerEvents','auto','_checkAndHandleOverflow','offsetWidth','boxSizing','_pendingCalculation','clientHeight','_updateOverflowUI','right','0px','display','calculationContainer','-9999px','button','body','overflowChips','_ancestorsToRestore','showBalloonPanel','_calculateContainerWidth','observe','documentElement','show','50px','_parentView','zIndex','_visibleChips','some','children','_applyCalculationStyles','height','_overflowChips','_updateShowMoreButtonVisibility','createElement','innerHeight','classList','.ck-ai-chat','_config','forEach','6452160Bojgly','388928evNFGt','textContent','toLowerCase','slice','none','bottom','_createContainerElements','showMoreButton','left','showMoreButtonView','cloneNode','execute','querySelector','disconnect','_intersectionObserver','content','includes','_repinBalloonPanel','innerHTML','pin','_updateBalloonContent','element','opacity','block','tagName','maxVisibleRows','width','1456779DLIjAV','getComputedStyle','appendChild','_locale','300px','30CSDWBC','_createMockButton','_createShowMoreBalloonPanelView','isConnected','_createShowMoreButtonView','hide','_isContainerVisible','_restoreAncestorVisibility','isVisible','1314258COUjpy','_showMoreBalloonPanelView','div','visibility','add','+\x201','276395lyRfto','push','_bodyCollection','destroy','hideBalloonPanel','ck-calculation-container','isIntersecting','_calculateOverflowInContainer','cssClasses','label','reorganizeChips','_renderChipsAndCountRows','showMoreLabelPrefix','clientWidth','_createShowMoreButton','_handleShowMoreButtonClick','rowDetectionTolerance','filter','block\x20!important','_showMoreButtonView','_createCalculationContainer','_setupVisibilityObserver','_applyOverflowResults','border-box','_testButtonFit','extendTemplate','overflowContainer','parentElement','from','_containerElement','hidden','showMoreBalloon','remove','setContainerElement','3537395mTuelm','visible','set'];_0xc2be=function(){return _0x3c771d;};return _0xc2be();}(function(_0x3cc2a5,_0x46d908){const _0x5063b1=_0x2b88,_0x3a0932=_0x3cc2a5();while(!![]){try{const _0x3b8fc9=-parseInt(_0x5063b1(0x1d1))/0x1+-parseInt(_0x5063b1(0x198))/0x2+-parseInt(_0x5063b1(0x18a))/0x3+parseInt(_0x5063b1(0x16f))/0x4+parseInt(_0x5063b1(0x1c0))/0x5+parseInt(_0x5063b1(0x18f))/0x6*(parseInt(_0x5063b1(0x19e))/0x7)+parseInt(_0x5063b1(0x16e))/0x8;if(_0x3b8fc9===_0x46d908)break;else _0x3a0932['push'](_0x3a0932['shift']());}catch(_0x3bf848){_0x3a0932['push'](_0x3a0932['shift']());}}}(_0xc2be,0x58ec8));function _0x2b88(_0x3fa29c,_0x40084b){const _0xc2be60=_0xc2be();return _0x2b88=function(_0x2b88bc,_0x1669ef){_0x2b88bc=_0x2b88bc-0x147;let _0x530e89=_0xc2be60[_0x2b88bc];return _0x530e89;},_0x2b88(_0x3fa29c,_0x40084b);}import{View as _0x133112,BalloonPanelView as _0x28f4ac,ButtonView as _0x203831,clickOutsideHandler as _0xd7381d}from'ckeditor5/src/ui.js';import{Collection as _0x356855}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x1fe309(0x18e);export class AIChatChipsOverflowManager{[_0x1fe309(0x18d)];[_0x1fe309(0x16c)];[_0x1fe309(0x161)];[_0x1fe309(0x166)];[_0x1fe309(0x1b1)]=null;[_0x1fe309(0x199)]=null;[_0x1fe309(0x1bb)]=null;[_0x1fe309(0x1a0)];[_0x1fe309(0x15f)]=null;[_0x1fe309(0x17d)]=null;[_0x1fe309(0x14d)]=!0x1;constructor(_0x3cfd76,_0x11d0c7,_0x25afed,_0x5d1241,_0x5b400c){const _0x17dd76=_0x1fe309;this[_0x17dd76(0x18d)]=_0x3cfd76,this[_0x17dd76(0x161)]=_0x11d0c7,this[_0x17dd76(0x16c)]={...hn,..._0x25afed,'cssClasses':{'controlsButton':'','calculationContainer':_0x17dd76(0x1a3),..._0x25afed[_0x17dd76(0x1a6)]}},this[_0x17dd76(0x166)]=new _0x356855(),this[_0x17dd76(0x1a0)]=_0x5d1241,this[_0x17dd76(0x15f)]=_0x5b400c||null;}[_0x1fe309(0x1bf)](_0x1667b1){const _0x76e2e0=_0x1fe309;this[_0x76e2e0(0x17d)]&&(this[_0x76e2e0(0x17d)][_0x76e2e0(0x17c)](),this[_0x76e2e0(0x17d)]=null),this[_0x76e2e0(0x1bb)]=_0x1667b1,this[_0x76e2e0(0x1b3)]();}get[_0x1fe309(0x178)](){const _0x258ec8=_0x1fe309;return this[_0x258ec8(0x1b1)];}get[_0x1fe309(0x157)](){const _0x2c4f85=_0x1fe309;return this[_0x2c4f85(0x166)];}[_0x1fe309(0x1a8)](){requestAnimationFrame(()=>{const _0x4a303d=_0x2b88;this[_0x4a303d(0x14a)]();});}[_0x1fe309(0x159)](){const _0x18b8bc=_0x1fe309;this[_0x18b8bc(0x1b1)]&&this[_0x18b8bc(0x199)]&&(this[_0x18b8bc(0x183)](),this[_0x18b8bc(0x1b1)][_0x18b8bc(0x1d2)]=!0x0,this[_0x18b8bc(0x199)][_0x18b8bc(0x15d)](),this[_0x18b8bc(0x199)][_0x18b8bc(0x182)]({'target':this[_0x18b8bc(0x1b1)][_0x18b8bc(0x184)],'limiter':document[_0x18b8bc(0x17b)](_0x18b8bc(0x16b))}));}[_0x1fe309(0x1a2)](){const _0x53447c=_0x1fe309;this[_0x53447c(0x1b1)]&&this[_0x53447c(0x199)]&&(this[_0x53447c(0x1b1)][_0x53447c(0x1d2)]=!0x1,this[_0x53447c(0x199)][_0x53447c(0x194)]());}[_0x1fe309(0x1d0)](){const _0x2d7608=_0x1fe309;this[_0x2d7608(0x166)][_0x2d7608(0x1d0)](),this[_0x2d7608(0x1a2)](),this[_0x2d7608(0x167)](),this[_0x2d7608(0x1b1)]&&(this[_0x2d7608(0x1b1)][_0x2d7608(0x1a7)]=''),this[_0x2d7608(0x199)]&&this[_0x2d7608(0x199)][_0x2d7608(0x17e)][_0x2d7608(0x1d0)]();}[_0x1fe309(0x1a1)](){const _0xc13d25=_0x1fe309;this[_0xc13d25(0x17d)]&&(this[_0xc13d25(0x17d)][_0xc13d25(0x17c)](),this[_0xc13d25(0x17d)]=null),this[_0xc13d25(0x1b1)]&&(this[_0xc13d25(0x1b1)][_0xc13d25(0x1a1)](),this[_0xc13d25(0x1b1)]=null),this[_0xc13d25(0x199)]&&(this[_0xc13d25(0x199)][_0xc13d25(0x1a1)](),this[_0xc13d25(0x199)]=null);}[_0x1fe309(0x14a)](){const _0x319a7e=_0x1fe309;if(!this[_0x319a7e(0x1bb)])return;if(!this[_0x319a7e(0x195)]())return void(this[_0x319a7e(0x14d)]=!0x0);this[_0x319a7e(0x14d)]=!0x1;const _0x38d2a0=[...this[_0x319a7e(0x161)],...this[_0x319a7e(0x166)]],_0x285f54=this[_0x319a7e(0x1b2)](),_0x2f2a09=this[_0x319a7e(0x1a5)](_0x285f54,_0x38d2a0),_0x1fe51f=_0x285f54[_0x319a7e(0x158)];_0x1fe51f&&this[_0x319a7e(0x196)](_0x1fe51f),_0x285f54[_0x319a7e(0x1be)](),this[_0x319a7e(0x1b4)](_0x38d2a0,_0x2f2a09);}[_0x1fe309(0x1ac)](){const _0x2976ed=_0x1fe309;this[_0x2976ed(0x1b1)]=this[_0x2976ed(0x193)](),this[_0x2976ed(0x199)]=this[_0x2976ed(0x191)](),this[_0x2976ed(0x1b1)][_0x2976ed(0x1d4)](),this[_0x2976ed(0x1bb)][_0x2976ed(0x18c)](this[_0x2976ed(0x1b1)][_0x2976ed(0x184)]),this[_0x2976ed(0x1b1)]['on'](_0x2976ed(0x17a),()=>{const _0xa64267=_0x2976ed;this[_0xa64267(0x1ad)]();}),_0xd7381d({'emitter':this[_0x2976ed(0x199)],'contextElements':[this[_0x2976ed(0x199)][_0x2976ed(0x184)],this[_0x2976ed(0x1b1)][_0x2976ed(0x184)]],'callback':()=>this[_0x2976ed(0x1a2)](),'activator':()=>this[_0x2976ed(0x1b1)][_0x2976ed(0x1d2)]});}[_0x1fe309(0x193)](){const _0x3a54d6=_0x1fe309,_0x199c23=new _0x203831(this[_0x3a54d6(0x18d)]);_0x199c23[_0x3a54d6(0x1c2)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4a2cf5=[this[_0x3a54d6(0x16c)][_0x3a54d6(0x1a6)][_0x3a54d6(0x176)]];return this[_0x3a54d6(0x16c)][_0x3a54d6(0x1a6)][_0x3a54d6(0x1ca)]&&_0x4a2cf5[_0x3a54d6(0x19f)](this[_0x3a54d6(0x16c)][_0x3a54d6(0x1a6)][_0x3a54d6(0x1ca)]),_0x199c23[_0x3a54d6(0x1b7)]({'attributes':{'class':_0x4a2cf5}}),_0x199c23;}[_0x1fe309(0x191)](){const _0x56c6d9=_0x1fe309,_0x4d1926=new _0x28f4ac(this[_0x56c6d9(0x18d)]);return _0x4d1926[_0x56c6d9(0x1b7)]({'attributes':{'class':this[_0x56c6d9(0x16c)][_0x56c6d9(0x1a6)][_0x56c6d9(0x1bd)]}}),this[_0x56c6d9(0x1a0)][_0x56c6d9(0x19c)](_0x4d1926),_0x4d1926;}[_0x1fe309(0x183)](){const _0x59c0e1=_0x1fe309;if(this[_0x59c0e1(0x199)]&&(this[_0x59c0e1(0x199)][_0x59c0e1(0x17e)][_0x59c0e1(0x1d0)](),this[_0x59c0e1(0x166)][_0x59c0e1(0x1cb)]>0x0)){this[_0x59c0e1(0x166)][_0x59c0e1(0x16d)](_0x3a4be0=>{const _0x4ac067=_0x59c0e1;_0x3a4be0[_0x4ac067(0x1c9)]();});const _0x529018=new _0x133112(this[_0x59c0e1(0x18d)]);_0x529018[_0x59c0e1(0x1cf)]({'tag':_0x59c0e1(0x19a),'attributes':{'class':this[_0x59c0e1(0x16c)][_0x59c0e1(0x1a6)][_0x59c0e1(0x1b8)]},'children':this[_0x59c0e1(0x166)]}),this[_0x59c0e1(0x199)][_0x59c0e1(0x17e)][_0x59c0e1(0x19c)](_0x529018);}}[_0x1fe309(0x1ad)](){const _0x124b7e=_0x1fe309;this[_0x124b7e(0x1b1)][_0x124b7e(0x1d2)]?this[_0x124b7e(0x1a2)]():this[_0x124b7e(0x159)]();}[_0x1fe309(0x167)](){const _0x5a1443=_0x1fe309,_0x4cea8c=this[_0x5a1443(0x166)][_0x5a1443(0x1cb)]>0x0;this[_0x5a1443(0x1b1)]?.[_0x5a1443(0x184)]&&(this[_0x5a1443(0x1b1)][_0x5a1443(0x184)][_0x5a1443(0x1c3)][_0x5a1443(0x152)]=_0x4cea8c?'':_0x5a1443(0x173));}[_0x1fe309(0x180)](){const _0x49b433=_0x1fe309;this[_0x49b433(0x1b1)]?.[_0x49b433(0x1d2)]&&this[_0x49b433(0x199)]?.[_0x49b433(0x197)]&&this[_0x49b433(0x1b1)][_0x49b433(0x184)]&&this[_0x49b433(0x199)][_0x49b433(0x182)]({'target':this[_0x49b433(0x1b1)][_0x49b433(0x184)],'limiter':document[_0x49b433(0x17b)](_0x49b433(0x16b))});}[_0x1fe309(0x1d7)](_0x181cb8){const _0x3fc868=_0x1fe309,_0x3be748=this[_0x3fc868(0x1bb)]?.[_0x3fc868(0x187)][_0x3fc868(0x171)]()||_0x3fc868(0x19a),_0x5e19e9=this[_0x3fc868(0x1bb)]?.[_0x3fc868(0x16a)];if(_0x5e19e9){const _0x4c809b=_0x5e19e9[0x0]||'',_0x3a4adc=_0x181cb8[_0x3fc868(0x17b)]('.'+_0x4c809b),_0x1f3861=_0x181cb8[_0x3fc868(0x17b)](_0x3be748);return _0x3a4adc||_0x1f3861||_0x181cb8;}return _0x181cb8[_0x3fc868(0x17b)](_0x3be748)||_0x181cb8;}[_0x1fe309(0x15a)](){const _0x12965c=_0x1fe309,_0x2e7b13=this[_0x12965c(0x15f)]?.[_0x12965c(0x184)]||this[_0x12965c(0x1bb)];if(!_0x2e7b13)return an;const _0x408e2f=window[_0x12965c(0x18b)](_0x2e7b13)[_0x12965c(0x189)];if(_0x12965c(0x149)===_0x408e2f||_0x12965c(0x151)===_0x408e2f||!_0x408e2f){const _0x1d9ebb=_0x2e7b13[_0x12965c(0x1b9)];if(_0x1d9ebb){const _0x5195e4=window[_0x12965c(0x18b)](_0x1d9ebb);return _0x12965c(0x149)!==_0x5195e4[_0x12965c(0x189)]?_0x5195e4[_0x12965c(0x189)]:an;}return an;}return _0x408e2f;}[_0x1fe309(0x164)](_0x459546,_0x1595cb){const _0x190ee9=_0x1fe309;this[_0x190ee9(0x16c)][_0x190ee9(0x1a6)][_0x190ee9(0x153)]&&_0x459546[_0x190ee9(0x16a)][_0x190ee9(0x19c)](this[_0x190ee9(0x16c)][_0x190ee9(0x1a6)][_0x190ee9(0x153)]),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x189)]=_0x1595cb,_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x1c4)]=_0x190ee9(0x1d6),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x1c6)]=_0x190ee9(0x154),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x177)]=_0x190ee9(0x154),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x185)]='0',_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x148)]=_0x190ee9(0x173),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x160)]='-1',_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x19b)]=_0x190ee9(0x1c7),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x152)]=_0x190ee9(0x1b0),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x14c)]=_0x190ee9(0x1b5);}[_0x1fe309(0x196)](_0x24e582){const _0x30f81d=_0x1fe309;_0x24e582[_0x30f81d(0x16d)](({element:_0xdad840,originalDisplay:_0x16f555,originalVisibility:_0x3f712a})=>{const _0x23a93b=_0x30f81d;_0xdad840[_0x23a93b(0x1c3)][_0x23a93b(0x152)]=_0x16f555,_0xdad840[_0x23a93b(0x1c3)][_0x23a93b(0x19b)]=_0x3f712a;});}[_0x1fe309(0x1d3)](_0x1a45ca){const _0x2fac31=_0x1fe309,_0x5b0814=[];let _0x36dfb0=_0x1a45ca;for(;_0x36dfb0&&_0x36dfb0!==document[_0x2fac31(0x156)];){const _0x2f5d3c=window[_0x2fac31(0x18b)](_0x36dfb0);_0x2fac31(0x173)!==_0x2f5d3c[_0x2fac31(0x152)]&&_0x2fac31(0x1bc)!==_0x2f5d3c[_0x2fac31(0x19b)]||(_0x5b0814[_0x2fac31(0x19f)]({'element':_0x36dfb0,'originalDisplay':_0x36dfb0[_0x2fac31(0x1c3)][_0x2fac31(0x152)],'originalVisibility':_0x36dfb0[_0x2fac31(0x1c3)][_0x2fac31(0x19b)]}),_0x36dfb0[_0x2fac31(0x1c3)][_0x2fac31(0x152)]=_0x2fac31(0x186),_0x36dfb0[_0x2fac31(0x1c3)][_0x2fac31(0x19b)]=_0x2fac31(0x1c1)),_0x36dfb0=_0x36dfb0[_0x2fac31(0x1b9)];}return _0x5b0814;}[_0x1fe309(0x175)](){const _0x398071=_0x1fe309;let _0x49e9e0,_0x44da10;return this[_0x398071(0x15f)]?.[_0x398071(0x184)]?(_0x49e9e0=this[_0x398071(0x15f)][_0x398071(0x184)][_0x398071(0x179)](!0x0),_0x44da10=this[_0x398071(0x1d7)](_0x49e9e0)):(_0x49e9e0=document[_0x398071(0x168)](_0x398071(0x19a)),_0x44da10=_0x49e9e0),{'calculationContainer':_0x49e9e0,'targetContainer':_0x44da10};}[_0x1fe309(0x1b2)](){const _0x24b033=_0x1fe309,{calculationContainer:_0x1075cb,targetContainer:_0x1bbff0}=this[_0x24b033(0x175)](),_0x27f5e6=this[_0x24b033(0x15a)]();this[_0x24b033(0x164)](_0x1075cb,_0x27f5e6);const _0x4071a=this[_0x24b033(0x15f)]?.[_0x24b033(0x184)]||this[_0x24b033(0x1bb)],_0x4c513c=_0x4071a?.[_0x24b033(0x1b9)];_0x4c513c?_0x4c513c[_0x24b033(0x18c)](_0x1075cb):document[_0x24b033(0x156)][_0x24b033(0x18c)](_0x1075cb),_0x1075cb[_0x24b033(0x1d8)]=_0x1bbff0;const _0x4c4b08=this[_0x24b033(0x1d3)](_0x4c513c||null);return _0x1075cb[_0x24b033(0x14b)],_0x1075cb[_0x24b033(0x158)]=_0x4c4b08,_0x1075cb;}[_0x1fe309(0x1a5)](_0x25bee5,_0x12e6d5){const _0x35ef20=_0x1fe309,_0xa421b1=_0x25bee5[_0x35ef20(0x1d8)]||_0x25bee5,_0x241992=[],{rowCount:_0x35b500}=this[_0x35ef20(0x1a9)](_0xa421b1,_0x12e6d5);if(_0x35b500<=this[_0x35ef20(0x16c)][_0x35ef20(0x188)])return _0x241992;const _0xb0439b=_0x12e6d5[_0x35ef20(0x172)]();for(;_0xb0439b[_0x35ef20(0x1cb)]>0x0;){if(this[_0x35ef20(0x1b6)](_0x25bee5,_0xa421b1,_0xb0439b)){const _0x3eb7f5=_0x12e6d5[_0x35ef20(0x1af)](_0x3d8d2d=>!_0xb0439b[_0x35ef20(0x17f)](_0x3d8d2d));_0x241992[_0x35ef20(0x19f)](..._0x3eb7f5);break;}if(!_0xb0439b[_0x35ef20(0x147)]())break;}return _0x241992;}[_0x1fe309(0x1a9)](_0x38a10e,_0x19332c){const _0x4e551a=_0x1fe309;_0x38a10e[_0x4e551a(0x181)]='',_0x19332c[_0x4e551a(0x16d)](_0x2ff802=>{const _0x3eac40=_0x4e551a;if(_0x2ff802[_0x3eac40(0x184)]){const _0x502e6a=_0x2ff802[_0x3eac40(0x184)][_0x3eac40(0x179)](!0x0);_0x38a10e[_0x3eac40(0x18c)](_0x502e6a);}}),_0x38a10e[_0x4e551a(0x14b)];const _0x26e780=_0x38a10e[_0x4e551a(0x163)],_0x1ea17a=[];return Array[_0x4e551a(0x1ba)](_0x26e780)[_0x4e551a(0x16d)](_0x68b032=>{const _0x3d0711=_0x4e551a,_0x5e3797=_0x68b032[_0x3d0711(0x1ce)]()[_0x3d0711(0x1c6)];_0x1ea17a[_0x3d0711(0x162)](_0xa2f88f=>Math[_0x3d0711(0x1c8)](_0xa2f88f-_0x5e3797)<this[_0x3d0711(0x16c)][_0x3d0711(0x1ae)])||_0x1ea17a[_0x3d0711(0x19f)](_0x5e3797);}),{'rowCount':_0x1ea17a[_0x4e551a(0x1cb)]};}[_0x1fe309(0x190)](){const _0x2b4197=_0x1fe309,_0x4a6ed0=document[_0x2b4197(0x168)](_0x2b4197(0x155));return _0x4a6ed0[_0x2b4197(0x1cd)]=this[_0x2b4197(0x16c)][_0x2b4197(0x1a6)][_0x2b4197(0x176)],this[_0x2b4197(0x16c)][_0x2b4197(0x1a6)][_0x2b4197(0x1ca)]&&_0x4a6ed0[_0x2b4197(0x16a)][_0x2b4197(0x19c)](this[_0x2b4197(0x16c)][_0x2b4197(0x1a6)][_0x2b4197(0x1ca)]),_0x4a6ed0[_0x2b4197(0x170)]=_0x2b4197(0x19d),_0x4a6ed0;}[_0x1fe309(0x1b6)](_0x291219,_0x4b253c,_0xe4de6d){const _0x1e8553=_0x1fe309;this[_0x1e8553(0x1a9)](_0x4b253c,_0xe4de6d);const _0x723e26=this[_0x1e8553(0x190)]();_0x291219[_0x1e8553(0x18c)](_0x723e26),_0x291219[_0x1e8553(0x14b)];const _0x136b9e=[..._0x4b253c[_0x1e8553(0x163)],_0x723e26],_0x10f406=[];_0x136b9e[_0x1e8553(0x16d)](_0x4f781c=>{const _0x464b23=_0x1e8553,_0x48ddb4=_0x4f781c[_0x464b23(0x1ce)]()[_0x464b23(0x1c6)];_0x10f406[_0x464b23(0x162)](_0x10a602=>Math[_0x464b23(0x1c8)](_0x10a602-_0x48ddb4)<this[_0x464b23(0x16c)][_0x464b23(0x1ae)])||_0x10f406[_0x464b23(0x19f)](_0x48ddb4);});const _0x2bfa85=_0x10f406[_0x1e8553(0x1cb)];return _0x723e26[_0x1e8553(0x1be)](),_0x2bfa85<=this[_0x1e8553(0x16c)][_0x1e8553(0x188)];}[_0x1fe309(0x1cc)](_0x55b607,_0x1914e6){const _0x414af3=_0x1fe309;this[_0x414af3(0x161)][_0x414af3(0x1d0)](),this[_0x414af3(0x166)][_0x414af3(0x1d0)](),_0x55b607[_0x414af3(0x16d)](_0x11cb62=>{const _0x385d6d=_0x414af3;_0x1914e6[_0x385d6d(0x17f)](_0x11cb62)?this[_0x385d6d(0x166)][_0x385d6d(0x19c)](_0x11cb62):this[_0x385d6d(0x161)][_0x385d6d(0x19c)](_0x11cb62);});}[_0x1fe309(0x14f)](_0x382546){const _0x3499cc=_0x1fe309;if(_0x382546>0x0&&!this[_0x3499cc(0x1b1)]&&this[_0x3499cc(0x1ac)](),_0x382546>0x0&&this[_0x3499cc(0x1b1)]){const _0x5e76db=''+this[_0x3499cc(0x16c)][_0x3499cc(0x1aa)]+(_0x382546<0x63?_0x382546:'99');this[_0x3499cc(0x1b1)][_0x3499cc(0x1a7)]=_0x5e76db;}this[_0x3499cc(0x183)](),this[_0x3499cc(0x167)](),this[_0x3499cc(0x180)]();}[_0x1fe309(0x1b4)](_0xd359d0,_0x4f5aeb){const _0x3b84d7=_0x1fe309;this[_0x3b84d7(0x1cc)](_0xd359d0,_0x4f5aeb),this[_0x3b84d7(0x14f)](_0x4f5aeb[_0x3b84d7(0x1cb)]);}[_0x1fe309(0x1b3)](){const _0x58b508=_0x1fe309;this[_0x58b508(0x1bb)]&&_0x58b508(0x1d5)!=typeof IntersectionObserver&&(this[_0x58b508(0x17d)]=new IntersectionObserver(_0x557562=>{const _0x2e0d3a=_0x58b508;_0x557562[0x0][_0x2e0d3a(0x1a4)]&&this[_0x2e0d3a(0x14d)]&&requestAnimationFrame(()=>{const _0x44f814=_0x2e0d3a;this[_0x44f814(0x14a)]();});},{'threshold':0.01,'rootMargin':_0x58b508(0x15e)}),this[_0x58b508(0x17d)][_0x58b508(0x15b)](this[_0x58b508(0x1bb)]));}[_0x1fe309(0x195)](){const _0x2b3aba=_0x1fe309;if(!this[_0x2b3aba(0x1bb)])return!0x1;if(!this[_0x2b3aba(0x1bb)][_0x2b3aba(0x192)])return!0x1;const _0x4c65c5=this[_0x2b3aba(0x1bb)][_0x2b3aba(0x1ce)]();if(0x0===_0x4c65c5[_0x2b3aba(0x189)]||0x0===_0x4c65c5[_0x2b3aba(0x165)])return!0x1;const _0x439cca=window[_0x2b3aba(0x169)]||document[_0x2b3aba(0x15c)][_0x2b3aba(0x14e)],_0x566b38=window[_0x2b3aba(0x1c5)]||document[_0x2b3aba(0x15c)][_0x2b3aba(0x1ab)],_0x16e8fa=0xc8;return _0x4c65c5[_0x2b3aba(0x174)]>=-0xc8&&_0x4c65c5[_0x2b3aba(0x1c6)]<=_0x439cca+_0x16e8fa&&_0x4c65c5[_0x2b3aba(0x150)]>=-0xc8&&_0x4c65c5[_0x2b3aba(0x177)]<=_0x566b38+_0x16e8fa;}}
23
+ const _0x18d4d3=_0x1803;(function(_0x1ad999,_0x2d01fb){const _0x2a5cad=_0x1803,_0x1e58ba=_0x1ad999();while(!![]){try{const _0x143990=parseInt(_0x2a5cad(0x14e))/0x1+-parseInt(_0x2a5cad(0x10e))/0x2+-parseInt(_0x2a5cad(0x14f))/0x3+parseInt(_0x2a5cad(0xf0))/0x4+parseInt(_0x2a5cad(0xfb))/0x5+-parseInt(_0x2a5cad(0x12f))/0x6+-parseInt(_0x2a5cad(0xdd))/0x7*(parseInt(_0x2a5cad(0xf8))/0x8);if(_0x143990===_0x2d01fb)break;else _0x1e58ba['push'](_0x1e58ba['shift']());}catch(_0x30cb9e){_0x1e58ba['push'](_0x1e58ba['shift']());}}}(_0x268a,0xdafea));function _0x1803(_0x303be1,_0x3e8944){const _0x268a78=_0x268a();return _0x1803=function(_0x180346,_0x32d9d1){_0x180346=_0x180346-0xc7;let _0x283512=_0x268a78[_0x180346];return _0x283512;},_0x1803(_0x303be1,_0x3e8944);}import{View as _0x1fe215,BalloonPanelView as _0x6c617b,ButtonView as _0xa2b03e,clickOutsideHandler as _0x54ce94}from'ckeditor5/src/ui.js';import{Collection as _0x2a609c}from'ckeditor5/src/utils.js';const ln={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x18d4d3(0x133);export class AIChatChipsOverflowManager{[_0x18d4d3(0xf7)];[_0x18d4d3(0x154)];[_0x18d4d3(0xfd)];[_0x18d4d3(0x125)];[_0x18d4d3(0xf5)]=null;[_0x18d4d3(0xfa)]=null;[_0x18d4d3(0x129)]=null;[_0x18d4d3(0xf1)];[_0x18d4d3(0x144)]=null;[_0x18d4d3(0x118)]=null;[_0x18d4d3(0xe0)]=!0x1;constructor(_0x33b01e,_0x3d0b79,_0x4abfaf,_0x12b8c4,_0x48d367){const _0x2d6546=_0x18d4d3;this[_0x2d6546(0xf7)]=_0x33b01e,this[_0x2d6546(0xfd)]=_0x3d0b79,this[_0x2d6546(0x154)]={...ln,..._0x4abfaf,'cssClasses':{'controlsButton':'','calculationContainer':_0x2d6546(0x13c),..._0x4abfaf[_0x2d6546(0x111)]}},this[_0x2d6546(0x125)]=new _0x2a609c(),this[_0x2d6546(0xf1)]=_0x12b8c4,this[_0x2d6546(0x144)]=_0x48d367||null;}[_0x18d4d3(0xf2)](_0x4f0b7c){const _0x30e26c=_0x18d4d3;this[_0x30e26c(0x118)]&&(this[_0x30e26c(0x118)][_0x30e26c(0x142)](),this[_0x30e26c(0x118)]=null),this[_0x30e26c(0x129)]=_0x4f0b7c,this[_0x30e26c(0x115)]();}get[_0x18d4d3(0xcc)](){const _0x1f745c=_0x18d4d3;return this[_0x1f745c(0xf5)];}get[_0x18d4d3(0x114)](){const _0x1eefc3=_0x18d4d3;return this[_0x1eefc3(0x125)];}[_0x18d4d3(0xcd)](){requestAnimationFrame(()=>{const _0x53493e=_0x1803;this[_0x53493e(0xcb)]();});}[_0x18d4d3(0x137)](){const _0x501522=_0x18d4d3;this[_0x501522(0xf5)]&&this[_0x501522(0xfa)]&&(this[_0x501522(0x105)](),this[_0x501522(0xf5)][_0x501522(0xce)]=!0x0,this[_0x501522(0xfa)][_0x501522(0x123)](),this[_0x501522(0xfa)][_0x501522(0x158)]({'target':this[_0x501522(0xf5)][_0x501522(0xc9)],'limiter':document[_0x501522(0x102)](_0x501522(0xf3))}));}[_0x18d4d3(0x10c)](){const _0x1e7cef=_0x18d4d3;this[_0x1e7cef(0xf5)]&&this[_0x1e7cef(0xfa)]&&(this[_0x1e7cef(0xf5)][_0x1e7cef(0xce)]=!0x1,this[_0x1e7cef(0xfa)][_0x1e7cef(0x122)]());}[_0x18d4d3(0x136)](){const _0x336f18=_0x18d4d3;this[_0x336f18(0x125)][_0x336f18(0x136)](),this[_0x336f18(0x10c)](),this[_0x336f18(0x121)](),this[_0x336f18(0xf5)]&&(this[_0x336f18(0xf5)][_0x336f18(0x146)]=''),this[_0x336f18(0xfa)]&&this[_0x336f18(0xfa)][_0x336f18(0xed)][_0x336f18(0x136)]();}[_0x18d4d3(0x120)](){const _0x3a5a79=_0x18d4d3;this[_0x3a5a79(0x118)]&&(this[_0x3a5a79(0x118)][_0x3a5a79(0x142)](),this[_0x3a5a79(0x118)]=null),this[_0x3a5a79(0xf5)]&&(this[_0x3a5a79(0xf5)][_0x3a5a79(0x120)](),this[_0x3a5a79(0xf5)]=null),this[_0x3a5a79(0xfa)]&&(this[_0x3a5a79(0xfa)][_0x3a5a79(0x120)](),this[_0x3a5a79(0xfa)]=null);}[_0x18d4d3(0xcb)](){const _0x4dc455=_0x18d4d3;if(!this[_0x4dc455(0x129)])return;if(!this[_0x4dc455(0x119)]())return void(this[_0x4dc455(0xe0)]=!0x0);this[_0x4dc455(0xe0)]=!0x1;const _0x12de43=[...this[_0x4dc455(0xfd)],...this[_0x4dc455(0x125)]],_0x12d187=this[_0x4dc455(0x14b)](),_0x2fbcf1=this[_0x4dc455(0x139)](_0x12d187,_0x12de43),_0x4f7e28=_0x12d187[_0x4dc455(0x13b)];_0x4f7e28&&this[_0x4dc455(0x12e)](_0x4f7e28),_0x12d187[_0x4dc455(0xd4)](),this[_0x4dc455(0x14d)](_0x12de43,_0x2fbcf1);}[_0x18d4d3(0x107)](){const _0x3b78c7=_0x18d4d3;this[_0x3b78c7(0xf5)]=this[_0x3b78c7(0x14c)](),this[_0x3b78c7(0xfa)]=this[_0x3b78c7(0xf6)](),this[_0x3b78c7(0xf5)][_0x3b78c7(0x13f)](),this[_0x3b78c7(0x129)][_0x3b78c7(0x11f)](this[_0x3b78c7(0xf5)][_0x3b78c7(0xc9)]),this[_0x3b78c7(0xf5)]['on'](_0x3b78c7(0xd1),()=>{const _0x4cbd13=_0x3b78c7;this[_0x4cbd13(0x109)]();}),_0x54ce94({'emitter':this[_0x3b78c7(0xfa)],'contextElements':[this[_0x3b78c7(0xfa)][_0x3b78c7(0xc9)],this[_0x3b78c7(0xf5)][_0x3b78c7(0xc9)]],'callback':()=>this[_0x3b78c7(0x10c)](),'activator':()=>this[_0x3b78c7(0xf5)][_0x3b78c7(0xce)]});}[_0x18d4d3(0x14c)](){const _0x1e635a=_0x18d4d3,_0x42eac9=new _0xa2b03e(this[_0x1e635a(0xf7)]);_0x42eac9[_0x1e635a(0xe7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x108e18=[this[_0x1e635a(0x154)][_0x1e635a(0x111)][_0x1e635a(0x13a)]];return this[_0x1e635a(0x154)][_0x1e635a(0x111)][_0x1e635a(0xd2)]&&_0x108e18[_0x1e635a(0xd8)](this[_0x1e635a(0x154)][_0x1e635a(0x111)][_0x1e635a(0xd2)]),_0x42eac9[_0x1e635a(0xc8)]({'attributes':{'class':_0x108e18}}),_0x42eac9;}[_0x18d4d3(0xf6)](){const _0x4f28da=_0x18d4d3,_0x30cc38=new _0x6c617b(this[_0x4f28da(0xf7)]);return _0x30cc38[_0x4f28da(0xc8)]({'attributes':{'class':this[_0x4f28da(0x154)][_0x4f28da(0x111)][_0x4f28da(0x150)]}}),this[_0x4f28da(0xf1)][_0x4f28da(0x126)](_0x30cc38),_0x30cc38;}[_0x18d4d3(0x105)](){const _0x32f19b=_0x18d4d3;if(this[_0x32f19b(0xfa)]&&(this[_0x32f19b(0xfa)][_0x32f19b(0xed)][_0x32f19b(0x136)](),this[_0x32f19b(0x125)][_0x32f19b(0xe3)]>0x0)){this[_0x32f19b(0x125)][_0x32f19b(0xf9)](_0x22d941=>{const _0x2899d8=_0x32f19b;_0x22d941[_0x2899d8(0xe1)]();});const _0xfa192e=new _0x1fe215(this[_0x32f19b(0xf7)]);_0xfa192e[_0x32f19b(0x149)]({'tag':_0x32f19b(0xdc),'attributes':{'class':this[_0x32f19b(0x154)][_0x32f19b(0x111)][_0x32f19b(0xff)]},'children':this[_0x32f19b(0x125)]}),this[_0x32f19b(0xfa)][_0x32f19b(0xed)][_0x32f19b(0x126)](_0xfa192e);}}[_0x18d4d3(0x109)](){const _0x384bb0=_0x18d4d3;this[_0x384bb0(0xf5)][_0x384bb0(0xce)]?this[_0x384bb0(0x10c)]():this[_0x384bb0(0x137)]();}[_0x18d4d3(0x121)](){const _0xe09c15=_0x18d4d3,_0x3b06f2=this[_0xe09c15(0x125)][_0xe09c15(0xe3)]>0x0;this[_0xe09c15(0xf5)]?.[_0xe09c15(0xc9)]&&(this[_0xe09c15(0xf5)][_0xe09c15(0xc9)][_0xe09c15(0x11e)][_0xe09c15(0x157)]=_0x3b06f2?'':_0xe09c15(0xf4));}[_0x18d4d3(0xd3)](){const _0x3c17f2=_0x18d4d3;this[_0x3c17f2(0xf5)]?.[_0x3c17f2(0xce)]&&this[_0x3c17f2(0xfa)]?.[_0x3c17f2(0x143)]&&this[_0x3c17f2(0xf5)][_0x3c17f2(0xc9)]&&this[_0x3c17f2(0xfa)][_0x3c17f2(0x158)]({'target':this[_0x3c17f2(0xf5)][_0x3c17f2(0xc9)],'limiter':document[_0x3c17f2(0x102)](_0x3c17f2(0xf3))});}[_0x18d4d3(0x10b)](_0x462f6a){const _0x3a315d=_0x18d4d3,_0x5c2ad4=this[_0x3a315d(0x129)]?.[_0x3a315d(0x13d)][_0x3a315d(0x131)]()||_0x3a315d(0xdc),_0x40694a=this[_0x3a315d(0x129)]?.[_0x3a315d(0x14a)];if(_0x40694a){const _0x238b06=_0x40694a[0x0]||'',_0x306c11=_0x462f6a[_0x3a315d(0x102)]('.'+_0x238b06),_0x131bee=_0x462f6a[_0x3a315d(0x102)](_0x5c2ad4);return _0x306c11||_0x131bee||_0x462f6a;}return _0x462f6a[_0x3a315d(0x102)](_0x5c2ad4)||_0x462f6a;}[_0x18d4d3(0xee)](){const _0x8e22ee=_0x18d4d3,_0x560b70=this[_0x8e22ee(0x144)]?.[_0x8e22ee(0xc9)]||this[_0x8e22ee(0x129)];if(!_0x560b70)return an;const _0x1a6914=window[_0x8e22ee(0x106)](_0x560b70)[_0x8e22ee(0xe6)];if(_0x8e22ee(0x10d)===_0x1a6914||_0x8e22ee(0x101)===_0x1a6914||!_0x1a6914){const _0x4cbe8a=_0x560b70[_0x8e22ee(0x138)];if(_0x4cbe8a){const _0x372e39=window[_0x8e22ee(0x106)](_0x4cbe8a);return _0x8e22ee(0x10d)!==_0x372e39[_0x8e22ee(0xe6)]?_0x372e39[_0x8e22ee(0xe6)]:an;}return an;}return _0x1a6914;}[_0x18d4d3(0xd5)](_0x311e17,_0x1ce3c6){const _0x474260=_0x18d4d3;this[_0x474260(0x154)][_0x474260(0x111)][_0x474260(0xe9)]&&_0x311e17[_0x474260(0x14a)][_0x474260(0x126)](this[_0x474260(0x154)][_0x474260(0x111)][_0x474260(0xe9)]),_0x311e17[_0x474260(0x11e)][_0x474260(0xe6)]=_0x1ce3c6,_0x311e17[_0x474260(0x11e)][_0x474260(0x132)]=_0x474260(0x153),_0x311e17[_0x474260(0x11e)][_0x474260(0x156)]=_0x474260(0xef),_0x311e17[_0x474260(0x11e)][_0x474260(0xe4)]=_0x474260(0xef),_0x311e17[_0x474260(0x11e)][_0x474260(0x148)]='0',_0x311e17[_0x474260(0x11e)][_0x474260(0x11d)]=_0x474260(0xf4),_0x311e17[_0x474260(0x11e)][_0x474260(0xd7)]='-1',_0x311e17[_0x474260(0x11e)][_0x474260(0xde)]=_0x474260(0x10f),_0x311e17[_0x474260(0x11e)][_0x474260(0x157)]=_0x474260(0xea),_0x311e17[_0x474260(0x11e)][_0x474260(0x147)]=_0x474260(0xec);}[_0x18d4d3(0x12e)](_0x3a43f7){const _0x2172bc=_0x18d4d3;_0x3a43f7[_0x2172bc(0xf9)](({element:_0x33b16f,originalDisplay:_0x452472,originalVisibility:_0x29f507})=>{const _0x2f4213=_0x2172bc;_0x33b16f[_0x2f4213(0x11e)][_0x2f4213(0x157)]=_0x452472,_0x33b16f[_0x2f4213(0x11e)][_0x2f4213(0xde)]=_0x29f507;});}[_0x18d4d3(0xd9)](_0x51a303){const _0x38e0a4=_0x18d4d3,_0x39a773=[];let _0x5f8b45=_0x51a303;for(;_0x5f8b45&&_0x5f8b45!==document[_0x38e0a4(0xd0)];){const _0x4b272c=window[_0x38e0a4(0x106)](_0x5f8b45);_0x38e0a4(0xf4)!==_0x4b272c[_0x38e0a4(0x157)]&&_0x38e0a4(0xe2)!==_0x4b272c[_0x38e0a4(0xde)]||(_0x39a773[_0x38e0a4(0xd8)]({'element':_0x5f8b45,'originalDisplay':_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0x157)],'originalVisibility':_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0xde)]}),_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0x157)]=_0x38e0a4(0x12c),_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0xde)]=_0x38e0a4(0x100)),_0x5f8b45=_0x5f8b45[_0x38e0a4(0x138)];}return _0x39a773;}[_0x18d4d3(0x108)](){const _0x3c0c28=_0x18d4d3;let _0x57e2a2,_0xa9adfb;return this[_0x3c0c28(0x144)]?.[_0x3c0c28(0xc9)]?(_0x57e2a2=this[_0x3c0c28(0x144)][_0x3c0c28(0xc9)][_0x3c0c28(0xe8)](!0x0),_0xa9adfb=this[_0x3c0c28(0x10b)](_0x57e2a2)):(_0x57e2a2=document[_0x3c0c28(0x151)](_0x3c0c28(0xdc)),_0xa9adfb=_0x57e2a2),{'calculationContainer':_0x57e2a2,'targetContainer':_0xa9adfb};}[_0x18d4d3(0x14b)](){const _0x172055=_0x18d4d3,{calculationContainer:_0x31c197,targetContainer:_0x40acff}=this[_0x172055(0x108)](),_0x40334f=this[_0x172055(0xee)]();this[_0x172055(0xd5)](_0x31c197,_0x40334f);const _0x178745=this[_0x172055(0x144)]?.[_0x172055(0xc9)]||this[_0x172055(0x129)],_0x2a257c=_0x178745?.[_0x172055(0x138)];_0x2a257c?_0x2a257c[_0x172055(0x11f)](_0x31c197):document[_0x172055(0xd0)][_0x172055(0x11f)](_0x31c197),_0x31c197[_0x172055(0x11b)]=_0x40acff;const _0xfbc5f8=this[_0x172055(0xd9)](_0x2a257c||null);return _0x31c197[_0x172055(0xe5)],_0x31c197[_0x172055(0x13b)]=_0xfbc5f8,_0x31c197;}[_0x18d4d3(0x139)](_0x1cb982,_0x297519){const _0x33a090=_0x18d4d3,_0x4827c2=_0x1cb982[_0x33a090(0x11b)]||_0x1cb982,_0x3b9e1d=[],{rowCount:_0x53d626}=this[_0x33a090(0x112)](_0x4827c2,_0x297519);if(_0x53d626<=this[_0x33a090(0x154)][_0x33a090(0xfe)])return _0x3b9e1d;const _0x35a344=_0x297519[_0x33a090(0x10a)]();for(;_0x35a344[_0x33a090(0xe3)]>0x0;){if(this[_0x33a090(0xdf)](_0x1cb982,_0x4827c2,_0x35a344)){const _0x11d17f=_0x297519[_0x33a090(0xeb)](_0x594d89=>!_0x35a344[_0x33a090(0x12a)](_0x594d89));_0x3b9e1d[_0x33a090(0xd8)](..._0x11d17f);break;}if(!_0x35a344[_0x33a090(0x104)]())break;}return _0x3b9e1d;}[_0x18d4d3(0x112)](_0x5f1cb3,_0x1cb74d){const _0x4620f5=_0x18d4d3;_0x5f1cb3[_0x4620f5(0xc7)]='',_0x1cb74d[_0x4620f5(0xf9)](_0x19895e=>{const _0x4d5dbe=_0x4620f5;if(_0x19895e[_0x4d5dbe(0xc9)]){const _0x424158=_0x19895e[_0x4d5dbe(0xc9)][_0x4d5dbe(0xe8)](!0x0);_0x5f1cb3[_0x4d5dbe(0x11f)](_0x424158);}}),_0x5f1cb3[_0x4620f5(0xe5)];const _0x4bb687=_0x5f1cb3[_0x4620f5(0xd6)],_0x25bd2f=[];return Array[_0x4620f5(0x128)](_0x4bb687)[_0x4620f5(0xf9)](_0x2e908f=>{const _0x4f32bd=_0x4620f5,_0x39987c=_0x2e908f[_0x4f32bd(0x11a)]()[_0x4f32bd(0x156)];_0x25bd2f[_0x4f32bd(0x113)](_0x5e85b8=>Math[_0x4f32bd(0x124)](_0x5e85b8-_0x39987c)<this[_0x4f32bd(0x154)][_0x4f32bd(0xda)])||_0x25bd2f[_0x4f32bd(0xd8)](_0x39987c);}),{'rowCount':_0x25bd2f[_0x4620f5(0xe3)]};}[_0x18d4d3(0x141)](){const _0x30381c=_0x18d4d3,_0x3154f1=document[_0x30381c(0x151)](_0x30381c(0x12d));return _0x3154f1[_0x30381c(0x103)]=this[_0x30381c(0x154)][_0x30381c(0x111)][_0x30381c(0x13a)],this[_0x30381c(0x154)][_0x30381c(0x111)][_0x30381c(0xd2)]&&_0x3154f1[_0x30381c(0x14a)][_0x30381c(0x126)](this[_0x30381c(0x154)][_0x30381c(0x111)][_0x30381c(0xd2)]),_0x3154f1[_0x30381c(0x11c)]=_0x30381c(0x116),_0x3154f1;}[_0x18d4d3(0xdf)](_0x14d513,_0x5529ec,_0xa85ea){const _0x234df7=_0x18d4d3;this[_0x234df7(0x112)](_0x5529ec,_0xa85ea);const _0x5de48e=this[_0x234df7(0x141)]();_0x14d513[_0x234df7(0x11f)](_0x5de48e),_0x14d513[_0x234df7(0xe5)];const _0x1ca824=[..._0x5529ec[_0x234df7(0xd6)],_0x5de48e],_0x2cf134=[];_0x1ca824[_0x234df7(0xf9)](_0xb8d4af=>{const _0x218c68=_0x234df7,_0x6333bd=_0xb8d4af[_0x218c68(0x11a)]()[_0x218c68(0x156)];_0x2cf134[_0x218c68(0x113)](_0x44c925=>Math[_0x218c68(0x124)](_0x44c925-_0x6333bd)<this[_0x218c68(0x154)][_0x218c68(0xda)])||_0x2cf134[_0x218c68(0xd8)](_0x6333bd);});const _0x2e620e=_0x2cf134[_0x234df7(0xe3)];return _0x5de48e[_0x234df7(0xd4)](),_0x2e620e<=this[_0x234df7(0x154)][_0x234df7(0xfe)];}[_0x18d4d3(0xcf)](_0x1dc469,_0x42e501){const _0x4716f2=_0x18d4d3;this[_0x4716f2(0xfd)][_0x4716f2(0x136)](),this[_0x4716f2(0x125)][_0x4716f2(0x136)](),_0x1dc469[_0x4716f2(0xf9)](_0x1133f5=>{const _0x14c861=_0x4716f2;_0x42e501[_0x14c861(0x12a)](_0x1133f5)?this[_0x14c861(0x125)][_0x14c861(0x126)](_0x1133f5):this[_0x14c861(0xfd)][_0x14c861(0x126)](_0x1133f5);});}[_0x18d4d3(0x134)](_0x1d2d45){const _0x1fa218=_0x18d4d3;if(_0x1d2d45>0x0&&!this[_0x1fa218(0xf5)]&&this[_0x1fa218(0x107)](),_0x1d2d45>0x0&&this[_0x1fa218(0xf5)]){const _0x265157=''+this[_0x1fa218(0x154)][_0x1fa218(0x155)]+(_0x1d2d45<0x63?_0x1d2d45:'99');this[_0x1fa218(0xf5)][_0x1fa218(0x146)]=_0x265157;}this[_0x1fa218(0x105)](),this[_0x1fa218(0x121)](),this[_0x1fa218(0xd3)]();}[_0x18d4d3(0x14d)](_0x20f6d5,_0x42b7c4){const _0x479186=_0x18d4d3;this[_0x479186(0xcf)](_0x20f6d5,_0x42b7c4),this[_0x479186(0x134)](_0x42b7c4[_0x479186(0xe3)]);}[_0x18d4d3(0x115)](){const _0x2336fe=_0x18d4d3;this[_0x2336fe(0x129)]&&_0x2336fe(0x117)!=typeof IntersectionObserver&&(this[_0x2336fe(0x118)]=new IntersectionObserver(_0x32c222=>{const _0x33f960=_0x2336fe;_0x32c222[0x0][_0x33f960(0x110)]&&this[_0x33f960(0xe0)]&&requestAnimationFrame(()=>{const _0x29d744=_0x33f960;this[_0x29d744(0xcb)]();});},{'threshold':0.01,'rootMargin':_0x2336fe(0xfc)}),this[_0x2336fe(0x118)][_0x2336fe(0x135)](this[_0x2336fe(0x129)]));}[_0x18d4d3(0x119)](){const _0x3a47c0=_0x18d4d3;if(!this[_0x3a47c0(0x129)])return!0x1;if(!this[_0x3a47c0(0x129)][_0x3a47c0(0x152)])return!0x1;const _0x938e4=this[_0x3a47c0(0x129)][_0x3a47c0(0x11a)]();if(0x0===_0x938e4[_0x3a47c0(0xe6)]||0x0===_0x938e4[_0x3a47c0(0x12b)])return!0x1;const _0x2ae012=window[_0x3a47c0(0x127)]||document[_0x3a47c0(0x13e)][_0x3a47c0(0x130)],_0x1be7a1=window[_0x3a47c0(0xca)]||document[_0x3a47c0(0x13e)][_0x3a47c0(0x140)],_0x833768=0xc8;return _0x938e4[_0x3a47c0(0xdb)]>=-0xc8&&_0x938e4[_0x3a47c0(0x156)]<=_0x2ae012+_0x833768&&_0x938e4[_0x3a47c0(0x145)]>=-0xc8&&_0x938e4[_0x3a47c0(0xe4)]<=_0x1be7a1+_0x833768;}}function _0x268a(){const _0x4220d3=['_targetContainer','textContent','pointerEvents','style','appendChild','destroy','_updateShowMoreButtonVisibility','hide','show','abs','_overflowChips','add','innerHeight','from','_containerElement','includes','height','block','button','_restoreAncestorVisibility','397614TPluBw','clientHeight','toLowerCase','position','300px','_updateOverflowUI','observe','clear','showBalloonPanel','parentElement','_calculateOverflowInContainer','showMoreButton','_ancestorsToRestore','ck-calculation-container','tagName','documentElement','render','clientWidth','_createMockButton','disconnect','isVisible','_parentView','right','label','boxSizing','opacity','setTemplate','classList','_createCalculationContainer','_createShowMoreButtonView','_applyOverflowResults','1762840LkeMIG','1316982XHLFSy','showMoreBalloon','createElement','isConnected','absolute','_config','showMoreLabelPrefix','top','display','pin','innerHTML','extendTemplate','element','innerWidth','_checkAndHandleOverflow','showMoreButtonView','reorganizeChips','isOn','_distributeChips','body','execute','controlsButton','_repinBalloonPanel','remove','_applyCalculationStyles','children','zIndex','push','_makeAncestorsVisible','rowDetectionTolerance','bottom','div','54453oRGljz','visibility','_testButtonFit','_pendingCalculation','disableAnimationOnEnter','hidden','length','left','offsetWidth','width','set','cloneNode','calculationContainer','block\x20!important','filter','border-box','content','_calculateContainerWidth','-9999px','6631884xubhJc','_bodyCollection','setContainerElement','.ck-ai-chat','none','_showMoreButtonView','_createShowMoreBalloonPanelView','_locale','1864mwIjDO','forEach','_showMoreBalloonPanelView','5603710HoUbrJ','50px','_visibleChips','maxVisibleRows','overflowContainer','visible','0px','querySelector','className','pop','_updateBalloonContent','getComputedStyle','_createShowMoreButton','_createContainerElements','_handleShowMoreButtonClick','slice','_findTargetContainer','hideBalloonPanel','auto','2653562AtUzgO','visible\x20!important','isIntersecting','cssClasses','_renderChipsAndCountRows','some','overflowChips','_setupVisibilityObserver','+\x201','undefined','_intersectionObserver','_isContainerVisible','getBoundingClientRect'];_0x268a=function(){return _0x4220d3;};return _0x268a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4acdf3=_0x15e4;(function(_0x498ff6,_0x3c1821){const _0x55ae14=_0x15e4,_0xfaab63=_0x498ff6();while(!![]){try{const _0x48a549=parseInt(_0x55ae14(0x149))/0x1+-parseInt(_0x55ae14(0x138))/0x2+-parseInt(_0x55ae14(0x12e))/0x3*(-parseInt(_0x55ae14(0x150))/0x4)+parseInt(_0x55ae14(0x164))/0x5*(-parseInt(_0x55ae14(0x165))/0x6)+-parseInt(_0x55ae14(0x131))/0x7*(-parseInt(_0x55ae14(0x12f))/0x8)+parseInt(_0x55ae14(0x163))/0x9*(parseInt(_0x55ae14(0x15c))/0xa)+-parseInt(_0x55ae14(0x161))/0xb*(parseInt(_0x55ae14(0x14f))/0xc);if(_0x48a549===_0x3c1821)break;else _0xfaab63['push'](_0xfaab63['shift']());}catch(_0xdd8d73){_0xfaab63['push'](_0xfaab63['shift']());}}}(_0x56a9,0x3d284));import{ButtonView as _0x342958,IconView as _0xa44ae0}from'ckeditor5/src/ui.js';function _0x15e4(_0x120010,_0x434ba0){const _0x56a9cd=_0x56a9();return _0x15e4=function(_0x15e451,_0x9301f8){_0x15e451=_0x15e451-0x123;let _0x4e89e0=_0x56a9cd[_0x15e451];return _0x4e89e0;},_0x15e4(_0x120010,_0x434ba0);}import{IconClose as _0xce9524,IconDocument as _0x33cbce,IconFileUpload as _0x2dc7ef,IconLink as _0x26b3a3,IconSelection as _0x217688}from'@ckeditor/ckeditor5-icons';function _0x56a9(){const _0x4a8a53=['itemType','_setupRemoveButtonEvent','ck-ai-chat-context-chip__label','804yKrXVt','9524jhzvMU','disableAnimationOnEnter','ck-ai-chat-context-controls__chip-tooltip','_createLabelElement','_initializeProperties','_createIconView','isLoading','content','classList','_createTemplateChildren','_createTemplateAttributes','_handleAnimationEndOnce','7040YYaWCc','selection','slice','removeEventListener','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','81631eWAFgm','bind','4113egsnAD','29915mDqriA','12KqZEtZ','add','render','document','remove','extendTemplate','label','removeContextItemChip','readonly','webkitAnimationEnd','animationend','addEventListener','ck-hidden','453LWLcWe','1523440NZnOfh','isVisible','7kXxekr','small','lastIndexOf','span','_setupTemplate','_createRemoveButton','bindTemplate','788158wKKrkJ','ck-ai-chat-context-chip_wide','ck-ai-chat-context-chip_new-chip','element','set','div','length','locale','tooltip','execute','uiId','ck-ai-chat-context-chip','fire','ck-ai-chat-context-chip_document','_isAnimationOnEnterEnabled','setTemplate','type','282063mBEMWj','ck-ai-chat-context-chip__type-icon','_createLoaderIcon'];_0x56a9=function(){return _0x4a8a53;};return _0x56a9();}import{getTranslation as _0x3e2b38}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x196bfa}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x2dc7ef,'document':_0x33cbce,'web-resource':_0x26b3a3,'text':_0x2dc7ef,'selection':_0x217688},bn=_0x4acdf3(0x143),wn=_0x4acdf3(0x139),Tn=_0x4acdf3(0x145),En=_0x4acdf3(0x14e),fn=_0x4acdf3(0x14a),An=_0x4acdf3(0x152),Cn='n';export class AIChatContextItemButtonView extends _0x342958{constructor(_0x4f49a5,_0x25e909,_0x198c03,_0x40aa11,_0x1a847b=!0x1){const _0x56d624=_0x4acdf3;super(_0x4f49a5),this[_0x56d624(0x146)]=_0x40aa11,this[_0x56d624(0x154)](_0x25e909,_0x198c03,_0x1a847b),this[_0x56d624(0x135)]();}[_0x4acdf3(0x123)](){const _0x5accbc=_0x4acdf3;super[_0x5accbc(0x123)](),this[_0x5accbc(0x146)]&&this[_0x5accbc(0x13b)]&&(this[_0x5accbc(0x13b)][_0x5accbc(0x158)][_0x5accbc(0x166)](_0x5accbc(0x13a)),this[_0x5accbc(0x15b)](this[_0x5accbc(0x13b)],()=>{const _0x2aacd4=_0x5accbc;this[_0x2aacd4(0x13b)]&&this[_0x2aacd4(0x13b)][_0x2aacd4(0x158)][_0x2aacd4(0x125)](_0x2aacd4(0x13a));}));}[_0x4acdf3(0x151)](){const _0x378e8e=_0x4acdf3;this[_0x378e8e(0x146)]=!0x1,this[_0x378e8e(0x13b)]&&this[_0x378e8e(0x13b)][_0x378e8e(0x158)][_0x378e8e(0x125)](_0x378e8e(0x13a));}[_0x4acdf3(0x154)](_0x1253c9,_0xb4287d,_0x448178){const _0x1ba68d=_0x4acdf3;this[_0x1ba68d(0x13c)](_0x1ba68d(0x127),_0x1253c9[_0x1ba68d(0x127)]),this[_0x1ba68d(0x13c)](_0x1ba68d(0x140),!0x0),this[_0x1ba68d(0x13c)](_0x1ba68d(0x14c),_0x1253c9[_0x1ba68d(0x148)]),this[_0x1ba68d(0x13c)]('id',_0x1253c9[_0x1ba68d(0x142)]),this[_0x1ba68d(0x13c)](_0x1ba68d(0x129),_0xb4287d),this[_0x1ba68d(0x13c)](_0x1ba68d(0x156),_0x448178);}[_0x4acdf3(0x135)](){const _0xc968e3=_0x4acdf3,_0x54b792=this[_0xc968e3(0x155)](),_0x2a11ff=this[_0xc968e3(0x136)](),_0x174f90=this[_0xc968e3(0x137)];this[_0xc968e3(0x147)]({'tag':_0xc968e3(0x13d),'attributes':this[_0xc968e3(0x15a)](_0x174f90),'children':this[_0xc968e3(0x159)](_0x54b792,_0x2a11ff,_0x174f90)});}[_0x4acdf3(0x15a)](_0x47eb44){const _0x161024=_0x4acdf3;return{'class':[bn,_0x47eb44['if'](_0x161024(0x14c),Tn,_0x263e6c=>_0x161024(0x124)==_0x263e6c),_0x47eb44['if'](_0x161024(0x14c),wn,_0x1ac284=>_0x161024(0x15d)==_0x1ac284)],'data-cke-tooltip-text':_0x47eb44['to'](_0x161024(0x127),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x4acdf3(0x159)](_0x4b8744,_0xdd95f5,_0x4c4d62){const _0x86178e=_0x4acdf3,_0x36037c=this[_0x86178e(0x153)](_0x4c4d62),_0x51b015=this[_0x86178e(0x14b)]();return this[_0x86178e(0x129)]?[_0x4b8744,_0x36037c]:[_0x4b8744,_0x51b015,_0x36037c,_0xdd95f5];}[_0x4acdf3(0x153)](_0x4fa78e){const _0x44ccef=_0x4acdf3;return{'tag':_0x44ccef(0x134),'attributes':{'class':En},'children':[{'text':_0x4fa78e['to'](_0x44ccef(0x127))}]};}[_0x4acdf3(0x136)](){const _0xb352ed=_0x4acdf3,_0x13d068=new _0x342958(this[_0xb352ed(0x13f)]);return _0x13d068[_0xb352ed(0x13c)]({'label':_0x3e2b38(this[_0xb352ed(0x13f)],_0xb352ed(0x160)),'icon':_0xce9524}),this[_0xb352ed(0x14d)](_0x13d068),_0x13d068;}[_0x4acdf3(0x14d)](_0x4f19a3){const _0x127ea5=_0x4acdf3;_0x4f19a3['on'](_0x127ea5(0x141),()=>{const _0x56eed7=_0x127ea5;this[_0x56eed7(0x144)](_0x56eed7(0x128),this['id']);});}[_0x4acdf3(0x155)](){const _0x297840=_0x4acdf3,_0x44259e=this[_0x297840(0x137)],_0xcb098f=new _0xa44ae0();return _0xcb098f[_0x297840(0x157)]=xn[this[_0x297840(0x14c)]],_0xcb098f[_0x297840(0x126)]({'attributes':{'class':[fn,_0x44259e['if'](_0x297840(0x156),_0x297840(0x12d),_0x507337=>_0x507337)]}}),_0xcb098f;}[_0x4acdf3(0x15b)](_0x453e08,_0x4424f8){const _0x58e6a7=_0x4acdf3;if(!_0x453e08)return;const _0x317c94=()=>{const _0x1e55ec=_0x15e4;_0x4424f8(),_0x453e08[_0x1e55ec(0x15f)](_0x1e55ec(0x12b),_0x317c94),_0x453e08[_0x1e55ec(0x15f)](_0x1e55ec(0x12a),_0x317c94);};_0x453e08[_0x58e6a7(0x12c)](_0x58e6a7(0x12b),_0x317c94),_0x453e08[_0x58e6a7(0x12c)](_0x58e6a7(0x12a),_0x317c94);}[_0x4acdf3(0x14b)](){const _0x4fa185=_0x4acdf3,_0x4c95f9=new _0x196bfa(_0x4fa185(0x132));return _0x4c95f9[_0x4fa185(0x162)](_0x4fa185(0x130))['to'](this,_0x4fa185(0x156),_0x208323=>_0x208323),_0x4c95f9;}}function In(_0x57fe9c){const _0x485284=_0x4acdf3;if(!_0x57fe9c)return _0x57fe9c;if(_0x57fe9c[_0x485284(0x13e)]<=0x78)return _0x57fe9c;const _0x30031b=_0x57fe9c[_0x485284(0x15e)](0x0,0x78),_0x232449=_0x30031b[_0x485284(0x133)]('\x20');return(_0x232449>0x0?_0x30031b[_0x485284(0x15e)](0x0,_0x232449):_0x30031b)+'…';}
23
+ const _0x223742=_0x308c;(function(_0x4ccbce,_0x28c07a){const _0x4c713b=_0x308c,_0x11183e=_0x4ccbce();while(!![]){try{const _0x10cae0=parseInt(_0x4c713b(0x1da))/0x1*(-parseInt(_0x4c713b(0x1e8))/0x2)+parseInt(_0x4c713b(0x1cb))/0x3*(-parseInt(_0x4c713b(0x1df))/0x4)+parseInt(_0x4c713b(0x1e2))/0x5+parseInt(_0x4c713b(0x1c8))/0x6+parseInt(_0x4c713b(0x1f9))/0x7+parseInt(_0x4c713b(0x1d0))/0x8+-parseInt(_0x4c713b(0x1c9))/0x9;if(_0x10cae0===_0x28c07a)break;else _0x11183e['push'](_0x11183e['shift']());}catch(_0x2760df){_0x11183e['push'](_0x11183e['shift']());}}}(_0x5cd4,0x65711));import{ButtonView as _0x378092,IconView as _0x560e55}from'ckeditor5/src/ui.js';import{IconClose as _0xa614ab,IconDocument as _0x26638a,IconFileUpload as _0x4098fb,IconLink as _0x4358e2,IconSelection as _0x44c344}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x33f30e}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0xd2f0f4}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x4098fb,'document':_0x26638a,'web-resource':_0x4358e2,'text':_0x4098fb,'selection':_0x44c344},bn=_0x223742(0x1f8),wn=_0x223742(0x1d5),Tn=_0x223742(0x1d7),En=_0x223742(0x1f7),fn=_0x223742(0x1d4),An=_0x223742(0x1db),Cn='n';export class AIChatContextItemButtonView extends _0x378092{constructor(_0x5d7929,_0x1a2fa6,_0xf334e5,_0x4f4183,_0x1be7af=!0x1){const _0x1c8adb=_0x223742;super(_0x5d7929),this[_0x1c8adb(0x1d1)]=_0x4f4183,this[_0x1c8adb(0x1eb)](_0x1a2fa6,_0xf334e5,_0x1be7af),this[_0x1c8adb(0x1ea)]();}[_0x223742(0x1cf)](){const _0xff4b5b=_0x223742;super[_0xff4b5b(0x1cf)](),this[_0xff4b5b(0x1d1)]&&this[_0xff4b5b(0x1de)]&&(this[_0xff4b5b(0x1de)][_0xff4b5b(0x1ca)][_0xff4b5b(0x1f6)](_0xff4b5b(0x1ed)),this[_0xff4b5b(0x1f4)](this[_0xff4b5b(0x1de)],()=>{const _0xe353a4=_0xff4b5b;this[_0xe353a4(0x1de)]&&this[_0xe353a4(0x1de)][_0xe353a4(0x1ca)][_0xe353a4(0x1e9)](_0xe353a4(0x1ed));}));}[_0x223742(0x1fd)](){const _0x3634ad=_0x223742;this[_0x3634ad(0x1d1)]=!0x1,this[_0x3634ad(0x1de)]&&this[_0x3634ad(0x1de)][_0x3634ad(0x1ca)][_0x3634ad(0x1e9)](_0x3634ad(0x1ed));}[_0x223742(0x1eb)](_0x301846,_0x3b8d58,_0x152018){const _0x4f5c29=_0x223742;this[_0x4f5c29(0x1ef)](_0x4f5c29(0x1d8),_0x301846[_0x4f5c29(0x1d8)]),this[_0x4f5c29(0x1ef)](_0x4f5c29(0x1fa),!0x0),this[_0x4f5c29(0x1ef)](_0x4f5c29(0x1e3),_0x301846[_0x4f5c29(0x1dd)]),this[_0x4f5c29(0x1ef)]('id',_0x301846[_0x4f5c29(0x1e1)]),this[_0x4f5c29(0x1ef)](_0x4f5c29(0x1dc),_0x3b8d58),this[_0x4f5c29(0x1ef)](_0x4f5c29(0x1ec),_0x152018);}[_0x223742(0x1ea)](){const _0x51812b=_0x223742,_0xd35e50=this[_0x51812b(0x1cc)](),_0x1a7a5e=this[_0x51812b(0x1c5)](),_0x27f303=this[_0x51812b(0x1e0)];this[_0x51812b(0x1ff)]({'tag':_0x51812b(0x200),'attributes':this[_0x51812b(0x1f0)](_0x27f303),'children':this[_0x51812b(0x202)](_0xd35e50,_0x1a7a5e,_0x27f303)});}[_0x223742(0x1f0)](_0x4a58fc){const _0xf30d9c=_0x223742;return{'class':[bn,_0x4a58fc['if'](_0xf30d9c(0x1e3),Tn,_0x27784e=>_0xf30d9c(0x205)==_0x27784e),_0x4a58fc['if'](_0xf30d9c(0x1e3),wn,_0x51c216=>_0xf30d9c(0x1f1)==_0x51c216)],'data-cke-tooltip-text':_0x4a58fc['to'](_0xf30d9c(0x1d8),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x223742(0x202)](_0x5244bb,_0x2236cd,_0x3b347e){const _0x59e4b8=_0x223742,_0x320efd=this[_0x59e4b8(0x1e7)](_0x3b347e),_0x14484e=this[_0x59e4b8(0x1d2)]();return this[_0x59e4b8(0x1dc)]?[_0x5244bb,_0x320efd]:[_0x5244bb,_0x14484e,_0x320efd,_0x2236cd];}[_0x223742(0x1e7)](_0x3db0bb){const _0x188d6a=_0x223742;return{'tag':_0x188d6a(0x204),'attributes':{'class':En},'children':[{'text':_0x3db0bb['to'](_0x188d6a(0x1d8))}]};}[_0x223742(0x1c5)](){const _0x261a7f=_0x223742,_0x5edfdc=new _0x378092(this[_0x261a7f(0x1d6)]);return _0x5edfdc[_0x261a7f(0x1ef)]({'label':_0x33f30e(this[_0x261a7f(0x1d6)],_0x261a7f(0x1d3)),'icon':_0xa614ab}),this[_0x261a7f(0x1e6)](_0x5edfdc),_0x5edfdc;}[_0x223742(0x1e6)](_0x4f5043){const _0x4efde3=_0x223742;_0x4f5043['on'](_0x4efde3(0x1e4),()=>{const _0x60b93a=_0x4efde3;this[_0x60b93a(0x1d9)](_0x60b93a(0x1f3),this['id']);});}[_0x223742(0x1cc)](){const _0x5f2f1f=_0x223742,_0x2224ac=this[_0x5f2f1f(0x1e0)],_0x224ece=new _0x560e55();return _0x224ece[_0x5f2f1f(0x1ee)]=xn[this[_0x5f2f1f(0x1e3)]],_0x224ece[_0x5f2f1f(0x201)]({'attributes':{'class':[fn,_0x2224ac['if'](_0x5f2f1f(0x1ec),_0x5f2f1f(0x1e5),_0x13ae0d=>_0x13ae0d)]}}),_0x224ece;}[_0x223742(0x1f4)](_0x558372,_0x2433aa){const _0xbedfeb=_0x223742;if(!_0x558372)return;const _0x5c0e70=()=>{const _0x227c1d=_0x308c;_0x2433aa(),_0x558372[_0x227c1d(0x1ce)](_0x227c1d(0x1f2),_0x5c0e70),_0x558372[_0x227c1d(0x1ce)](_0x227c1d(0x1c7),_0x5c0e70);};_0x558372[_0xbedfeb(0x1c6)](_0xbedfeb(0x1f2),_0x5c0e70),_0x558372[_0xbedfeb(0x1c6)](_0xbedfeb(0x1c7),_0x5c0e70);}[_0x223742(0x1d2)](){const _0x318d96=_0x223742,_0x2ac3c3=new _0xd2f0f4(_0x318d96(0x1fc));return _0x2ac3c3[_0x318d96(0x1f5)](_0x318d96(0x1fb))['to'](this,_0x318d96(0x1ec),_0x47eb6a=>_0x47eb6a),_0x2ac3c3;}}function _0x308c(_0xed488a,_0x26513c){const _0x5cd4ce=_0x5cd4();return _0x308c=function(_0x308c5f,_0x441b2a){_0x308c5f=_0x308c5f-0x1c5;let _0x20a532=_0x5cd4ce[_0x308c5f];return _0x20a532;},_0x308c(_0xed488a,_0x26513c);}function _0x5cd4(){const _0x70db28=['addEventListener','webkitAnimationEnd','3721554KFxuDv','8231715AKIBPv','classList','340629OFsNgI','_createIconView','length','removeEventListener','render','5071472MRMrSn','_isAnimationOnEnterEnabled','_createLoaderIcon','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip_wide','locale','ck-ai-chat-context-chip_document','label','fire','4pSRnVk','ck-ai-chat-context-controls__chip-tooltip','readonly','type','element','8JATTAL','bindTemplate','uiId','2317890KeQtgz','itemType','execute','ck-hidden','_setupRemoveButtonEvent','_createLabelElement','385198XUFccP','remove','_setupTemplate','_initializeProperties','isLoading','ck-ai-chat-context-chip_new-chip','content','set','_createTemplateAttributes','selection','animationend','removeContextItemChip','_handleAnimationEndOnce','bind','add','ck-ai-chat-context-chip__label','ck-ai-chat-context-chip','4268957xzfyfI','tooltip','isVisible','small','disableAnimationOnEnter','slice','setTemplate','div','extendTemplate','_createTemplateChildren','lastIndexOf','span','document','_createRemoveButton'];_0x5cd4=function(){return _0x70db28;};return _0x5cd4();}function In(_0x160753){const _0x4b91c8=_0x223742;if(!_0x160753)return _0x160753;if(_0x160753[_0x4b91c8(0x1cd)]<=0x78)return _0x160753;const _0x345676=_0x160753[_0x4b91c8(0x1fe)](0x0,0x78),_0x38c5b5=_0x345676[_0x4b91c8(0x203)]('\x20');return(_0x38c5b5>0x0?_0x345676[_0x4b91c8(0x1fe)](0x0,_0x38c5b5):_0x345676)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e2dfa=_0x14ec;(function(_0x19020c,_0x14fcf7){const _0x7c8de3=_0x14ec,_0x12c9f5=_0x19020c();while(!![]){try{const _0x5508d=parseInt(_0x7c8de3(0x1e9))/0x1*(parseInt(_0x7c8de3(0x1f6))/0x2)+parseInt(_0x7c8de3(0x21c))/0x3*(-parseInt(_0x7c8de3(0x203))/0x4)+-parseInt(_0x7c8de3(0x1fb))/0x5*(parseInt(_0x7c8de3(0x1da))/0x6)+parseInt(_0x7c8de3(0x212))/0x7+-parseInt(_0x7c8de3(0x1f7))/0x8+-parseInt(_0x7c8de3(0x1fd))/0x9+-parseInt(_0x7c8de3(0x1f2))/0xa*(-parseInt(_0x7c8de3(0x214))/0xb);if(_0x5508d===_0x14fcf7)break;else _0x12c9f5['push'](_0x12c9f5['shift']());}catch(_0x487d8a){_0x12c9f5['push'](_0x12c9f5['shift']());}}}(_0xba30,0xeff84));import{FocusTracker as _0x5236e1,KeystrokeHandler as _0x2fe512}from'ckeditor5/src/utils.js';import{ButtonView as _0x45c409,FocusCycler as _0x507aaf,LabeledFieldView as _0x25fcdc,View as _0x50d5c9,FormHeaderView as _0x29044d,createLabeledInputText as _0x41bea7,submitHandler as _0x129f60}from'ckeditor5/src/ui.js';import{IconCheck as _0x33f711,IconPreviousArrow as _0x2bfd23}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x56f440}from'../../../aicore/utils/common-translations.js';const rh=_0x5e2dfa(0x201),oh=_0x5e2dfa(0x21d);function _0xba30(){const _0x1aaf7b=['ck-ai-chat-context-controls__url-input-section','fieldView','trim','_updateConfirmButtonState','_createBackButton','focusCycler','locale','6068778mMiNNz','shift+tab','form','input','_focusables','_setupTemplate','AI_CHAT_CONTEXT_URL_INVALID_ERROR','confirmButton','children','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','listenTo','length','AI_CHAT_CONTEXT_URL_PLACEHOLDER','getValue','ck-button-icon','23cNCxpd','_createConfirmButton','refreshBalloon','errorText','urlInputField','cancel','destroy','_isValidUrl','submit','13110800bAlnkN','createCollection','focusTracker','ck-button-icon\x20ck-button-back','36494yncICu','12319464ROmUby','tab','keystrokes','setError','5wvwHeg','render','15560046KdMzwV','stop','add','focus','ck-ai-chat-context-controls__url-form','_setupKeystrokes','20964AYeVOf','_setupEventHandlers','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-labeled-field-view_empty','backButton','set','div','element','clearError','submitUrl','esc','_handleSubmit','_createUrlInputField','execute','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','9154397UzjuHV','forEach','44KBdZPo','isEnabled','fire','setTemplate','AI_CHAT_CONTEXT_URL_LABEL','clear','AI_CHAT_CONTEXT_URL_ADD_URL','value','978oLVRyx'];_0xba30=function(){return _0x1aaf7b;};return _0xba30();}function _0x14ec(_0x76f12c,_0x4a7b8f){const _0xba3025=_0xba30();return _0x14ec=function(_0x14ec0b,_0x2b63a5){_0x14ec0b=_0x14ec0b-0x1d5;let _0x4dea48=_0xba3025[_0x14ec0b];return _0x4dea48;},_0x14ec(_0x76f12c,_0x4a7b8f);}export class AIChatContextPanelUrlInputView extends _0x50d5c9{[_0x5e2dfa(0x1f4)];[_0x5e2dfa(0x1f9)];[_0x5e2dfa(0x1de)];[_0x5e2dfa(0x1d8)];[_0x5e2dfa(0x1ed)];[_0x5e2dfa(0x207)];[_0x5e2dfa(0x1e1)];constructor(_0x66708e){const _0x5f3393=_0x5e2dfa;super(_0x66708e),this[_0x5f3393(0x1f4)]=new _0x5236e1(),this[_0x5f3393(0x1f9)]=new _0x2fe512(),this[_0x5f3393(0x207)]=this[_0x5f3393(0x1d7)](),this[_0x5f3393(0x1ed)]=this[_0x5f3393(0x20f)](),this[_0x5f3393(0x1e1)]=this[_0x5f3393(0x1ea)](),this[_0x5f3393(0x1de)]=this[_0x5f3393(0x1f3)]([this[_0x5f3393(0x207)],this[_0x5f3393(0x1ed)],this[_0x5f3393(0x1e1)]]),this[_0x5f3393(0x1d8)]=new _0x507aaf({'focusables':this[_0x5f3393(0x1de)],'focusTracker':this[_0x5f3393(0x1f4)],'keystrokeHandler':this[_0x5f3393(0x1f9)],'actions':{'focusPrevious':_0x5f3393(0x1db),'focusNext':_0x5f3393(0x1f8)}}),this[_0x5f3393(0x1df)](),this[_0x5f3393(0x204)](),this[_0x5f3393(0x202)]();}[_0x5e2dfa(0x1fc)](){const _0x132ba0=_0x5e2dfa;super[_0x132ba0(0x1fc)](),this[_0x132ba0(0x1de)][_0x132ba0(0x213)](_0x827a97=>{const _0x145545=_0x132ba0;this[_0x145545(0x1f4)][_0x145545(0x1ff)](_0x827a97[_0x145545(0x20a)]),this[_0x145545(0x1f9)][_0x145545(0x1e4)](_0x827a97[_0x145545(0x20a)]);}),_0x129f60({'view':this}),this[_0x132ba0(0x200)]();}[_0x5e2dfa(0x1ef)](){const _0x14cf4e=_0x5e2dfa;super[_0x14cf4e(0x1ef)](),this[_0x14cf4e(0x1f4)][_0x14cf4e(0x1ef)](),this[_0x14cf4e(0x1f9)][_0x14cf4e(0x1ef)]();}[_0x5e2dfa(0x200)](){const _0x54f5b6=_0x5e2dfa;this[_0x54f5b6(0x1ed)][_0x54f5b6(0x200)]();}[_0x5e2dfa(0x1e7)](){const _0x319be4=_0x5e2dfa;return this[_0x319be4(0x1ed)][_0x319be4(0x21e)][_0x319be4(0x20a)]?.[_0x319be4(0x21b)]?.[_0x319be4(0x1d5)]()||'';}[_0x5e2dfa(0x219)](){const _0xf1df2a=_0x5e2dfa;this[_0xf1df2a(0x1ed)][_0xf1df2a(0x21e)][_0xf1df2a(0x20a)][_0xf1df2a(0x21b)]='',this[_0xf1df2a(0x1ed)][_0xf1df2a(0x1ec)]=null,this[_0xf1df2a(0x1e1)][_0xf1df2a(0x215)]=!0x1;}[_0x5e2dfa(0x1fa)](_0x4f6b87){const _0x33935f=_0x5e2dfa;this[_0x33935f(0x1ed)][_0x33935f(0x1ec)]=_0x4f6b87,this[_0x33935f(0x1d6)](),this[_0x33935f(0x216)](_0x33935f(0x1eb));}[_0x5e2dfa(0x20b)](){const _0x2224a7=_0x5e2dfa;this[_0x2224a7(0x1ed)][_0x2224a7(0x1ec)]=null,this[_0x2224a7(0x1d6)]();}[_0x5e2dfa(0x1d7)](){const _0x26994d=_0x5e2dfa,_0x4ec876=new _0x45c409(this[_0x26994d(0x1d9)]);return _0x4ec876[_0x26994d(0x208)]({'icon':_0x2bfd23,'tooltip':_0x56f440(this[_0x26994d(0x1d9)],_0x26994d(0x1e3)),'tooltipPosition':'n','class':_0x26994d(0x1f5)}),_0x4ec876;}[_0x5e2dfa(0x20f)](){const _0x3b7405=_0x5e2dfa,_0x59d38d=new _0x25fcdc(this[_0x3b7405(0x1d9)],_0x41bea7);return _0x59d38d[_0x3b7405(0x208)]({'label':_0x56f440(this[_0x3b7405(0x1d9)],_0x3b7405(0x218)),'class':_0x3b7405(0x206)}),_0x59d38d[_0x3b7405(0x21e)][_0x3b7405(0x208)]({'placeholder':_0x56f440(this[_0x3b7405(0x1d9)],_0x3b7405(0x1e6))}),_0x59d38d;}[_0x5e2dfa(0x1ea)](){const _0x11d5e3=_0x5e2dfa,_0x3ae46e=new _0x45c409(this[_0x11d5e3(0x1d9)]);return _0x3ae46e[_0x11d5e3(0x208)]({'icon':_0x33f711,'tooltip':_0x56f440(this[_0x11d5e3(0x1d9)],_0x11d5e3(0x21a)),'tooltipPosition':'n','class':_0x11d5e3(0x1e8),'type':_0x11d5e3(0x1f1),'isEnabled':!0x1}),_0x3ae46e;}[_0x5e2dfa(0x1df)](){const _0x567f7e=_0x5e2dfa,_0xd0a985=new _0x29044d(this[_0x567f7e(0x1d9)],{'label':_0x56f440(this[_0x567f7e(0x1d9)],_0x567f7e(0x21a)),'class':_0x567f7e(0x205)});_0xd0a985[_0x567f7e(0x1e2)][_0x567f7e(0x1ff)](this[_0x567f7e(0x207)],0x0),this[_0x567f7e(0x217)]({'tag':_0x567f7e(0x1dc),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0xd0a985,{'tag':_0x567f7e(0x209),'attributes':{'class':oh},'children':[this[_0x567f7e(0x1ed)],this[_0x567f7e(0x1e1)]]}]});}[_0x5e2dfa(0x204)](){const _0x3f0fbd=_0x5e2dfa;this[_0x3f0fbd(0x207)]['on'](_0x3f0fbd(0x210),()=>{const _0xb9cb74=_0x3f0fbd;this[_0xb9cb74(0x219)](),this[_0xb9cb74(0x216)](_0xb9cb74(0x1ee));}),this[_0x3f0fbd(0x1ed)][_0x3f0fbd(0x21e)]['on'](_0x3f0fbd(0x1dd),()=>{const _0x55c035=_0x3f0fbd;this[_0x55c035(0x20b)](),this[_0x55c035(0x1d6)](),this[_0x55c035(0x216)](_0x55c035(0x1eb));}),this['on'](_0x3f0fbd(0x1f1),_0x371ad6=>{const _0x4b12bc=_0x3f0fbd;_0x371ad6[_0x4b12bc(0x1fe)](),this[_0x4b12bc(0x20e)]();});}[_0x5e2dfa(0x202)](){const _0x5070a4=_0x5e2dfa;this[_0x5070a4(0x1f9)][_0x5070a4(0x208)](_0x5070a4(0x20d),(_0x59ca13,_0x51b30a)=>{const _0x1fab0a=_0x5070a4;this[_0x1fab0a(0x219)](),this[_0x1fab0a(0x216)](_0x1fab0a(0x1ee)),_0x51b30a();});}[_0x5e2dfa(0x20e)](){const _0x4da4e1=_0x5e2dfa,_0x4d35aa=this[_0x4da4e1(0x1e7)]()[_0x4da4e1(0x1d5)]();_0x4d35aa?this[_0x4da4e1(0x1f0)](_0x4d35aa)?(this[_0x4da4e1(0x20b)](),this[_0x4da4e1(0x216)](_0x4da4e1(0x20c),_0x4d35aa)):this[_0x4da4e1(0x1fa)](_0x56f440(this[_0x4da4e1(0x1d9)],_0x4da4e1(0x1e0))):this[_0x4da4e1(0x1fa)](_0x56f440(this[_0x4da4e1(0x1d9)],_0x4da4e1(0x211)));}[_0x5e2dfa(0x1d6)](){const _0x1e9602=_0x5e2dfa,_0x437225=this[_0x1e9602(0x1e7)]()[_0x1e9602(0x1d5)](),_0x36e5e0=!!this[_0x1e9602(0x1ed)][_0x1e9602(0x1ec)];this[_0x1e9602(0x1e1)][_0x1e9602(0x215)]=_0x437225[_0x1e9602(0x1e5)]>0x0&&!_0x36e5e0;}[_0x5e2dfa(0x1f0)](_0x42a0cc){try{return!!new URL(_0x42a0cc);}catch{return!0x1;}}}
23
+ const _0x3d4a3a=_0x2423;(function(_0x3f9201,_0x246bad){const _0x4b90b3=_0x2423,_0x9ff56a=_0x3f9201();while(!![]){try{const _0x2b6f76=parseInt(_0x4b90b3(0x1a5))/0x1*(-parseInt(_0x4b90b3(0x185))/0x2)+parseInt(_0x4b90b3(0x17f))/0x3+-parseInt(_0x4b90b3(0x1b5))/0x4*(parseInt(_0x4b90b3(0x191))/0x5)+-parseInt(_0x4b90b3(0x17b))/0x6+parseInt(_0x4b90b3(0x179))/0x7*(parseInt(_0x4b90b3(0x18a))/0x8)+parseInt(_0x4b90b3(0x1ac))/0x9+parseInt(_0x4b90b3(0x1b9))/0xa;if(_0x2b6f76===_0x246bad)break;else _0x9ff56a['push'](_0x9ff56a['shift']());}catch(_0x11117f){_0x9ff56a['push'](_0x9ff56a['shift']());}}}(_0x1552,0xec80e));import{FocusTracker as _0x3bf9ae,KeystrokeHandler as _0x3f3ab5}from'ckeditor5/src/utils.js';function _0x1552(){const _0x3eb779=['focus','destroy','_setupKeystrokes','urlInputField','11nKwCyF','submitUrl','_createBackButton','div','keystrokes','getValue','setError','1580400xEZmaF','tab','children','ck-labeled-field-view_empty','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','focusCycler','set','_handleSubmit','_setupEventHandlers','1132LoXTuh','setTemplate','listenTo','ck-ai-chat-context-controls__url-input-section','42770130GtuLhS','_createUrlInputField','ck-button-icon\x20ck-button-back','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','fieldView','element','focusTracker','input','refreshBalloon','91lUQLhb','clear','11145606wlpmWr','form','clearError','_createConfirmButton','1582239TWseqb','value','AI_CHAT_CONTEXT_URL_LABEL','shift+tab','_setupTemplate','stop','239276exjLvi','_focusables','confirmButton','fire','ck-ai-chat-context-controls__url-form','395672sCRwog','ck-button-icon','forEach','add','esc','backButton','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','26160scwBtL','createCollection','errorText','trim','cancel','AI_CHAT_CONTEXT_URL_ADD_URL','isEnabled','render','_isValidUrl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','length','locale','execute','AI_CHAT_CONTEXT_URL_INVALID_ERROR','submit','_updateConfirmButtonState'];_0x1552=function(){return _0x3eb779;};return _0x1552();}import{ButtonView as _0x46c865,FocusCycler as _0x1c2392,LabeledFieldView as _0x185773,View as _0x2f6c52,FormHeaderView as _0x15e2da,createLabeledInputText as _0x332e54,submitHandler as _0x810587}from'ckeditor5/src/ui.js';import{IconCheck as _0x57f26a,IconPreviousArrow as _0x41175c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x97df54}from'../../../aicore/utils/common-translations.js';function _0x2423(_0x452dc1,_0x1c3185){const _0x1552e8=_0x1552();return _0x2423=function(_0x242372,_0x7dbea8){_0x242372=_0x242372-0x178;let _0xfa286d=_0x1552e8[_0x242372];return _0xfa286d;},_0x2423(_0x452dc1,_0x1c3185);}const eh=_0x3d4a3a(0x189),hh=_0x3d4a3a(0x1b8);export class AIChatContextPanelUrlInputView extends _0x2f6c52{[_0x3d4a3a(0x1bf)];[_0x3d4a3a(0x1a9)];[_0x3d4a3a(0x186)];[_0x3d4a3a(0x1b1)];[_0x3d4a3a(0x1a4)];[_0x3d4a3a(0x18f)];[_0x3d4a3a(0x187)];constructor(_0x18c53e){const _0x270851=_0x3d4a3a;super(_0x18c53e),this[_0x270851(0x1bf)]=new _0x3bf9ae(),this[_0x270851(0x1a9)]=new _0x3f3ab5(),this[_0x270851(0x18f)]=this[_0x270851(0x1a7)](),this[_0x270851(0x1a4)]=this[_0x270851(0x1ba)](),this[_0x270851(0x187)]=this[_0x270851(0x17e)](),this[_0x270851(0x186)]=this[_0x270851(0x192)]([this[_0x270851(0x18f)],this[_0x270851(0x1a4)],this[_0x270851(0x187)]]),this[_0x270851(0x1b1)]=new _0x1c2392({'focusables':this[_0x270851(0x186)],'focusTracker':this[_0x270851(0x1bf)],'keystrokeHandler':this[_0x270851(0x1a9)],'actions':{'focusPrevious':_0x270851(0x182),'focusNext':_0x270851(0x1ad)}}),this[_0x270851(0x183)](),this[_0x270851(0x1b4)](),this[_0x270851(0x1a3)]();}[_0x3d4a3a(0x198)](){const _0x421b4a=_0x3d4a3a;super[_0x421b4a(0x198)](),this[_0x421b4a(0x186)][_0x421b4a(0x18c)](_0x39522f=>{const _0x421ae9=_0x421b4a;this[_0x421ae9(0x1bf)][_0x421ae9(0x18d)](_0x39522f[_0x421ae9(0x1be)]),this[_0x421ae9(0x1a9)][_0x421ae9(0x1b7)](_0x39522f[_0x421ae9(0x1be)]);}),_0x810587({'view':this}),this[_0x421b4a(0x1a1)]();}[_0x3d4a3a(0x1a2)](){const _0x53098f=_0x3d4a3a;super[_0x53098f(0x1a2)](),this[_0x53098f(0x1bf)][_0x53098f(0x1a2)](),this[_0x53098f(0x1a9)][_0x53098f(0x1a2)]();}[_0x3d4a3a(0x1a1)](){const _0x1fa94a=_0x3d4a3a;this[_0x1fa94a(0x1a4)][_0x1fa94a(0x1a1)]();}[_0x3d4a3a(0x1aa)](){const _0x1cc5df=_0x3d4a3a;return this[_0x1cc5df(0x1a4)][_0x1cc5df(0x1bd)][_0x1cc5df(0x1be)]?.[_0x1cc5df(0x180)]?.[_0x1cc5df(0x194)]()||'';}[_0x3d4a3a(0x17a)](){const _0x4351f4=_0x3d4a3a;this[_0x4351f4(0x1a4)][_0x4351f4(0x1bd)][_0x4351f4(0x1be)][_0x4351f4(0x180)]='',this[_0x4351f4(0x1a4)][_0x4351f4(0x193)]=null,this[_0x4351f4(0x187)][_0x4351f4(0x197)]=!0x1;}[_0x3d4a3a(0x1ab)](_0x54dd03){const _0x10c493=_0x3d4a3a;this[_0x10c493(0x1a4)][_0x10c493(0x193)]=_0x54dd03,this[_0x10c493(0x1a0)](),this[_0x10c493(0x188)](_0x10c493(0x178));}[_0x3d4a3a(0x17d)](){const _0x582a2a=_0x3d4a3a;this[_0x582a2a(0x1a4)][_0x582a2a(0x193)]=null,this[_0x582a2a(0x1a0)]();}[_0x3d4a3a(0x1a7)](){const _0x2db7d1=_0x3d4a3a,_0x476c23=new _0x46c865(this[_0x2db7d1(0x19c)]);return _0x476c23[_0x2db7d1(0x1b2)]({'icon':_0x41175c,'tooltip':_0x97df54(this[_0x2db7d1(0x19c)],_0x2db7d1(0x190)),'tooltipPosition':'n','class':_0x2db7d1(0x1bb)}),_0x476c23;}[_0x3d4a3a(0x1ba)](){const _0x35b9bd=_0x3d4a3a,_0x324cda=new _0x185773(this[_0x35b9bd(0x19c)],_0x332e54);return _0x324cda[_0x35b9bd(0x1b2)]({'label':_0x97df54(this[_0x35b9bd(0x19c)],_0x35b9bd(0x181)),'class':_0x35b9bd(0x1af)}),_0x324cda[_0x35b9bd(0x1bd)][_0x35b9bd(0x1b2)]({'placeholder':_0x97df54(this[_0x35b9bd(0x19c)],_0x35b9bd(0x19a))}),_0x324cda;}[_0x3d4a3a(0x17e)](){const _0x1a4f14=_0x3d4a3a,_0x4fcf4c=new _0x46c865(this[_0x1a4f14(0x19c)]);return _0x4fcf4c[_0x1a4f14(0x1b2)]({'icon':_0x57f26a,'tooltip':_0x97df54(this[_0x1a4f14(0x19c)],_0x1a4f14(0x196)),'tooltipPosition':'n','class':_0x1a4f14(0x18b),'type':_0x1a4f14(0x19f),'isEnabled':!0x1}),_0x4fcf4c;}[_0x3d4a3a(0x183)](){const _0x991a50=_0x3d4a3a,_0x351074=new _0x15e2da(this[_0x991a50(0x19c)],{'label':_0x97df54(this[_0x991a50(0x19c)],_0x991a50(0x196)),'class':_0x991a50(0x1bc)});_0x351074[_0x991a50(0x1ae)][_0x991a50(0x18d)](this[_0x991a50(0x18f)],0x0),this[_0x991a50(0x1b6)]({'tag':_0x991a50(0x17c),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x351074,{'tag':_0x991a50(0x1a8),'attributes':{'class':hh},'children':[this[_0x991a50(0x1a4)],this[_0x991a50(0x187)]]}]});}[_0x3d4a3a(0x1b4)](){const _0x40a68c=_0x3d4a3a;this[_0x40a68c(0x18f)]['on'](_0x40a68c(0x19d),()=>{const _0xc50938=_0x40a68c;this[_0xc50938(0x17a)](),this[_0xc50938(0x188)](_0xc50938(0x195));}),this[_0x40a68c(0x1a4)][_0x40a68c(0x1bd)]['on'](_0x40a68c(0x1c0),()=>{const _0x272618=_0x40a68c;this[_0x272618(0x17d)](),this[_0x272618(0x1a0)](),this[_0x272618(0x188)](_0x272618(0x178));}),this['on'](_0x40a68c(0x19f),_0x726709=>{const _0x1efb2d=_0x40a68c;_0x726709[_0x1efb2d(0x184)](),this[_0x1efb2d(0x1b3)]();});}[_0x3d4a3a(0x1a3)](){const _0x30e360=_0x3d4a3a;this[_0x30e360(0x1a9)][_0x30e360(0x1b2)](_0x30e360(0x18e),(_0x40bac4,_0x567a6d)=>{const _0x51afc2=_0x30e360;this[_0x51afc2(0x17a)](),this[_0x51afc2(0x188)](_0x51afc2(0x195)),_0x567a6d();});}[_0x3d4a3a(0x1b3)](){const _0x57f5ca=_0x3d4a3a,_0x20ca10=this[_0x57f5ca(0x1aa)]()[_0x57f5ca(0x194)]();_0x20ca10?this[_0x57f5ca(0x199)](_0x20ca10)?(this[_0x57f5ca(0x17d)](),this[_0x57f5ca(0x188)](_0x57f5ca(0x1a6),_0x20ca10)):this[_0x57f5ca(0x1ab)](_0x97df54(this[_0x57f5ca(0x19c)],_0x57f5ca(0x19e))):this[_0x57f5ca(0x1ab)](_0x97df54(this[_0x57f5ca(0x19c)],_0x57f5ca(0x1b0)));}[_0x3d4a3a(0x1a0)](){const _0x2dfbec=_0x3d4a3a,_0x1464db=this[_0x2dfbec(0x1aa)]()[_0x2dfbec(0x194)](),_0x957491=!!this[_0x2dfbec(0x1a4)][_0x2dfbec(0x193)];this[_0x2dfbec(0x187)][_0x2dfbec(0x197)]=_0x1464db[_0x2dfbec(0x19b)]>0x0&&!_0x957491;}[_0x3d4a3a(0x199)](_0x32a256){try{return!!new URL(_0x32a256);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18e543=_0x4e29;(function(_0x447322,_0x2acc08){const _0x2eaefe=_0x4e29,_0x58a341=_0x447322();while(!![]){try{const _0x299c8a=-parseInt(_0x2eaefe(0x98))/0x1+-parseInt(_0x2eaefe(0xde))/0x2*(-parseInt(_0x2eaefe(0xb9))/0x3)+parseInt(_0x2eaefe(0x9d))/0x4*(-parseInt(_0x2eaefe(0xc6))/0x5)+-parseInt(_0x2eaefe(0x77))/0x6*(parseInt(_0x2eaefe(0xef))/0x7)+parseInt(_0x2eaefe(0x6e))/0x8+parseInt(_0x2eaefe(0xa0))/0x9*(-parseInt(_0x2eaefe(0x82))/0xa)+parseInt(_0x2eaefe(0xac))/0xb;if(_0x299c8a===_0x2acc08)break;else _0x58a341['push'](_0x58a341['shift']());}catch(_0x4b3676){_0x58a341['push'](_0x58a341['shift']());}}}(_0x4950,0xb3645));function _0x4e29(_0x53452b,_0x3db647){const _0x495086=_0x4950();return _0x4e29=function(_0x4e29c4,_0x522f28){_0x4e29c4=_0x4e29c4-0x65;let _0x2dca7a=_0x495086[_0x4e29c4];return _0x2dca7a;},_0x4e29(_0x53452b,_0x3db647);}import{BalloonPanelView as _0x33f2c7,ButtonView as _0x1cb146,clickOutsideHandler as _0x3a88fc,FileDialogButtonView as _0x143f99,IconView as _0x28a6ad,View as _0x3ed62b}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x11ec26,IconDocument as _0x1ce4bc,IconDocumentOutline as _0x30ee8d,IconDropdownArrow as _0x55a1dd,IconLink as _0x40e864,IconPaperClip as _0xd794e7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xd6e288}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x115e3e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x54e20c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x44b1f2}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x38255c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x18e543(0xd0),_0x18e543(0xa4),_0x18e543(0x7e),_0x18e543(0x65),_0x18e543(0xe6),_0x18e543(0x81)];const Eo=_0x18e543(0x6a),vo=_0x18e543(0x6c),Vo=_0x18e543(0xdd),Io=_0x18e543(0xce),Po=_0x18e543(0x9b),Ro=_0x18e543(0xa7),Uo=_0x18e543(0xab),Lo=_0x18e543(0x90),No=_0x18e543(0x83),Oo=_0x18e543(0x73),Mo=_0x18e543(0xf5),Ho=_0x18e543(0x86),jo=[_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xd9)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xc0)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xd6)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0x71)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xec)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xa5)]];export class AIChatContextPanelView extends _0x3ed62b{[_0x18e543(0xa8)];[_0x18e543(0xda)]=this[_0x18e543(0x9e)]();[_0x18e543(0x67)]=this[_0x18e543(0x9e)]();[_0x18e543(0xd2)];[_0x18e543(0xe3)];[_0x18e543(0xb3)];[_0x18e543(0x80)];[_0x18e543(0x79)];[_0x18e543(0xbf)];[_0x18e543(0xba)];constructor(_0x1513fb,_0x2fba24){const _0x3489d5=_0x18e543;super(_0x1513fb),this[_0x3489d5(0xba)]=_0x2fba24[_0x3489d5(0xba)],this[_0x3489d5(0xda)]=this[_0x3489d5(0x9e)](),this[_0x3489d5(0x67)]=this[_0x3489d5(0x9e)](),this[_0x3489d5(0xa8)]=this[_0x3489d5(0xea)](_0x1513fb),this[_0x3489d5(0xe3)]=this[_0x3489d5(0x6d)](_0x1513fb),this[_0x3489d5(0xb3)]=this[_0x3489d5(0x9c)](_0x1513fb),this[_0x3489d5(0x79)]=this[_0x3489d5(0xdb)](_0x1513fb,_0x2fba24);const _0x2b2734={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x3489d5(0xd2)]=new _0x54e20c(_0x1513fb,this[_0x3489d5(0xda)],_0x2b2734,this[_0x3489d5(0xba)],this),this[_0x3489d5(0xbf)]={'buttonView':this[_0x3489d5(0xa8)],'balloonView':this[_0x3489d5(0xe3)],'hideMethod':this[_0x3489d5(0xb2)][_0x3489d5(0x7b)](this),'showMethod':this[_0x3489d5(0xf2)][_0x3489d5(0x7b)](this)},this[_0x3489d5(0x6f)](),this[_0x3489d5(0x72)]();}[_0x18e543(0xb6)](){const _0x4db324=_0x18e543;super[_0x4db324(0xb6)](),this[_0x4db324(0xe0)](),this[_0x4db324(0xd2)][_0x4db324(0xe2)](this[_0x4db324(0xc5)]),this[_0x4db324(0xd2)][_0x4db324(0xbe)]();}[_0x18e543(0xe5)](){const _0x1a6c0e=_0x18e543;super[_0x1a6c0e(0xe5)](),this[_0x1a6c0e(0xd2)][_0x1a6c0e(0xe5)](),this[_0x1a6c0e(0x79)][_0x1a6c0e(0xe5)]();}[_0x18e543(0x93)](_0x18c078,_0x1869dd){const _0x464a69=_0x18e543,_0x2252b7=this[_0x464a69(0xa9)](_0x18c078,_0x464a69(0x92),!0x0,_0x1869dd);this[_0x464a69(0xb8)](_0x2252b7,this[_0x464a69(0xda)]),this[_0x464a69(0xd2)][_0x464a69(0xbe)]();}[_0x18e543(0xe6)](_0x23eccc){const _0x3a993f=_0x18e543;this[_0x3a993f(0x6b)](_0x23eccc,this[_0x3a993f(0xda)]),this[_0x3a993f(0x6b)](_0x23eccc,this[_0x3a993f(0xd2)][_0x3a993f(0xc8)]),this[_0x3a993f(0xd2)][_0x3a993f(0xbe)]();}[_0x18e543(0xe4)](_0x51774f,_0x55fb55){const _0x564f14=_0x18e543;let _0x22f06c=this[_0x564f14(0xda)][_0x564f14(0x75)](_0x3a1456=>_0x3a1456['id']===_0x51774f);_0x22f06c||(_0x22f06c=this[_0x564f14(0xd2)][_0x564f14(0xc8)][_0x564f14(0x75)](_0x406164=>_0x406164['id']===_0x51774f)),_0x22f06c&&(_0x22f06c[_0x564f14(0x8a)]=_0x55fb55);}[_0x18e543(0x8d)](_0x7b62bb){const _0x2519f2=_0x18e543;this[_0x2519f2(0x67)][_0x2519f2(0xe8)]();for(const _0x3b815e of _0x7b62bb){const _0x1a3efb=this[_0x2519f2(0xa9)](_0x3b815e,_0x2519f2(0x95),!0x1,!0x1);this[_0x2519f2(0xb8)](_0x1a3efb,this[_0x2519f2(0x67)]);}}[_0x18e543(0xed)](){const _0x330fa9=_0x18e543;this[_0x330fa9(0xda)][_0x330fa9(0xe8)](),this[_0x330fa9(0xd2)][_0x330fa9(0xe8)]();}[_0x18e543(0xb4)](){const _0x2fdbd1=_0x18e543;this[_0x2fdbd1(0x67)][_0x2fdbd1(0xe8)]();}[_0x18e543(0x9a)](_0xc9437e,_0x3c9e77,_0x51d843){const _0x26092d=_0x18e543;this[_0x26092d(0x79)][_0x26092d(0x9a)](_0xc9437e,_0x3c9e77,_0x51d843);}[_0x18e543(0xb2)](){const _0x155d78=_0x18e543;this[_0x155d78(0x7f)](!0x1);}[_0x18e543(0xf2)](){const _0x3befa5=_0x18e543;this[_0x3befa5(0x7f)](!0x0);}[_0x18e543(0xb1)](){const _0x1bfa1e=_0x18e543;this[_0x1bfa1e(0xb3)][_0x1bfa1e(0x97)](),this[_0x1bfa1e(0xa8)][_0x1bfa1e(0xeb)]=!0x1,this[_0x1bfa1e(0x80)]&&this[_0x1bfa1e(0x80)][_0x1bfa1e(0xe8)]();}[_0x18e543(0x89)](){const _0x441e5d=_0x18e543;this[_0x441e5d(0xb3)][_0x441e5d(0x7a)](),this[_0x441e5d(0xa8)][_0x441e5d(0xeb)]=!0x0;}[_0x18e543(0x7d)](_0x3c50d3){const _0x1023de=_0x18e543;this[_0x1023de(0x79)][_0x1023de(0x87)](_0x3c50d3),this[_0x1023de(0xa8)][_0x1023de(0xeb)]=!0x0;}[_0x18e543(0x88)](_0x4ae0a5,_0x232037,_0x30d991,_0x6036d5){const _0x1e8d7b=_0x18e543;this[_0x1e8d7b(0x79)][_0x1e8d7b(0x88)](_0x4ae0a5,_0x30d991,_0x6036d5);}[_0x18e543(0xaf)](_0x1f8eb7){const _0x3d6159=_0x18e543;this[_0x3d6159(0x79)][_0x3d6159(0xaf)](_0x1f8eb7),this[_0x3d6159(0xa8)][_0x3d6159(0xeb)]=!0x1;}[_0x18e543(0x76)](_0x560eae){const _0x344c8d=_0x18e543;this[_0x344c8d(0xb7)](this[_0x344c8d(0xe3)],this[_0x344c8d(0xca)],_0x560eae),this[_0x344c8d(0xa3)](_0x560eae);}[_0x18e543(0xa3)](_0xf8510d){const _0x4a566f=_0x18e543,_0x41fffc=!_0xf8510d[_0x4a566f(0x78)][_0x4a566f(0x70)]&&_0xf8510d[_0x4a566f(0x78)][_0x4a566f(0xd5)],_0x6feae4=_0xf8510d[_0x4a566f(0xf1)][_0x4a566f(0xd5)],_0x932646=_0xf8510d[_0x4a566f(0xf0)][_0x4a566f(0xd5)];this[_0x4a566f(0xa8)][_0x4a566f(0xe7)]=_0x41fffc||_0x6feae4||_0x932646;}[_0x18e543(0x6f)](){const _0x45c6e0=_0x18e543;this[_0x45c6e0(0xcd)]({'tag':_0x45c6e0(0x94),'attributes':{'class':[Eo,_0x45c6e0(0x8c)]},'children':[{'tag':_0x45c6e0(0x94),'attributes':{'class':vo},'children':this[_0x45c6e0(0xda)]}]});}[_0x18e543(0x72)](){const _0x53d376=_0x18e543;this[_0x53d376(0xa8)]['on'](_0x53d376(0xdc),()=>{const _0x5b4a79=_0x53d376;this[_0x5b4a79(0xbb)]();});}[_0x18e543(0xea)](_0x3ccad2){const _0xf9e0fd=_0x18e543,_0x17d6a8=new _0x1cb146(_0x3ccad2);return _0x17d6a8[_0xf9e0fd(0xb5)]({'label':_0x44b1f2(_0x3ccad2,_0xf9e0fd(0xc9)),'class':Lo+'\x20'+Io,'icon':_0xd794e7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x17d6a8;}[_0x18e543(0x6d)](_0x4d152f){const _0x5235cd=_0x18e543;return this[_0x5235cd(0xad)](_0x4d152f,Vo);}[_0x18e543(0x9c)](_0x5137c9){const _0x221270=_0x18e543,_0x104d08=this[_0x221270(0xad)](_0x5137c9,Po);return this[_0x221270(0xc3)](_0x104d08,_0x5137c9),_0x104d08;}[_0x18e543(0xdb)](_0x59f607,_0x20c6d3){const _0x4ab49d=_0x18e543,_0x243487={'searchInputVisibleFrom':_0x20c6d3[_0x4ab49d(0xdf)],'onBackToContext':()=>{const _0x4958d2=_0x4ab49d;this[_0x4958d2(0xf2)](),this[_0x4958d2(0xe3)][_0x4958d2(0xa1)]({'target':this[_0x4958d2(0xa8)][_0x4958d2(0xc5)],'limiter':this[_0x4958d2(0xe9)](),'positions':jo});},'onResourceSelected':(_0x31754d,_0x2ac612)=>{const _0x5f0870=_0x4ab49d;this[_0x5f0870(0xbc)](_0x5f0870(0x65),{'source':_0x31754d,'resource':_0x2ac612});},'onLoadSourceResources':_0x1c789a=>{const _0x7c0147=_0x4ab49d;this[_0x7c0147(0xbc)](_0x7c0147(0x81),_0x1c789a);},'onBalloonClosed':()=>{const _0x316efa=_0x4ab49d;this[_0x316efa(0xa8)][_0x316efa(0xeb)]=!0x1;},'getLimiterElement':()=>this[_0x4ab49d(0xe9)](),'getTargetElement':()=>this[_0x4ab49d(0xa8)][_0x4ab49d(0xc5)]};return new _0x38255c(_0x59f607,_0x20c6d3[_0x4ab49d(0xba)],_0x243487);}[_0x18e543(0xe9)](){const _0x8fb6ee=_0x18e543;return this[_0x8fb6ee(0xc5)]?.[_0x8fb6ee(0x8b)]('.'+Ho)||document[_0x8fb6ee(0x9f)];}[_0x18e543(0xad)](_0x5de2e8,_0x2d1171){const _0x5daef3=_0x18e543,_0x559167=new _0x33f2c7(_0x5de2e8);return _0x559167[_0x5daef3(0xae)]({'attributes':{'class':_0x2d1171}}),this[_0x5daef3(0xba)][_0x5daef3(0xcf)](_0x559167),_0x559167;}[_0x18e543(0xb7)](_0x540822,_0x22ccc0,_0x39801e){const _0x47f4a4=_0x18e543;if(_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xe8)](),!_0x39801e[_0x47f4a4(0x78)][_0x47f4a4(0x70)]&&_0x39801e[_0x47f4a4(0x78)][_0x47f4a4(0xd5)]){const _0x5aff17=this[_0x47f4a4(0x85)](_0x22ccc0,{'label':_0x44b1f2(_0x22ccc0,_0x47f4a4(0x74)),'icon':_0x1ce4bc});_0x5aff17['on'](_0x47f4a4(0xdc),()=>{const _0x17bed2=_0x47f4a4;this[_0x17bed2(0xbc)](_0x17bed2(0xd0)),this[_0x17bed2(0xb2)]();}),_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x5aff17);}if(_0x39801e[_0x47f4a4(0xf1)][_0x47f4a4(0xd5)]){const _0x360f6f=this[_0x47f4a4(0x85)](_0x22ccc0,{'label':_0x44b1f2(_0x22ccc0,_0x47f4a4(0x84)),'icon':_0x40e864});_0x360f6f['on'](_0x47f4a4(0xdc),()=>{const _0x57ca46=_0x47f4a4;this[_0x57ca46(0xb2)](),this[_0x57ca46(0x89)](),this[_0x57ca46(0xb3)][_0x57ca46(0xa1)]({'target':this[_0x57ca46(0xa8)][_0x57ca46(0xc5)],'limiter':this[_0x57ca46(0xe9)](),'positions':jo}),this[_0x57ca46(0x80)][_0x57ca46(0xc1)]();}),_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x360f6f);}if(_0x39801e[_0x47f4a4(0xf0)][_0x47f4a4(0xd5)]){const _0x3100a2=new _0x143f99(_0x22ccc0);_0x3100a2[_0x47f4a4(0xb5)]({'label':_0x44b1f2(_0x22ccc0,_0x47f4a4(0xc2)),'icon':_0x11ec26,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x3100a2['on'](_0x47f4a4(0xb0),(_0xcd4ff1,_0x334213)=>{const _0x209c80=_0x47f4a4;this[_0x209c80(0xbc)](_0x209c80(0xa4),_0x334213),this[_0x209c80(0xb2)]();}),_0x3100a2[_0x47f4a4(0xc7)]=!0x0,_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x3100a2);}for(const _0x19687d of _0x39801e[_0x47f4a4(0xe1)]){const _0x26f565=this[_0x47f4a4(0x85)](_0x22ccc0,{'label':_0x19687d[_0x47f4a4(0x91)],'icon':_0x19687d[_0x47f4a4(0x8e)]||_0x30ee8d,'type':_0x47f4a4(0xd4)});_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x26f565),_0x26f565['on'](_0x47f4a4(0xdc),()=>{const _0x336363=_0x47f4a4;this[_0x336363(0xb2)](),this[_0x336363(0x7d)](_0x19687d);});}}[_0x18e543(0xc3)](_0x243e43,_0x39027c){const _0x5215b0=_0x18e543;this[_0x5215b0(0x80)]=new _0x115e3e(_0x39027c),this[_0x5215b0(0x80)]['on'](_0x5215b0(0xa6),(_0x2ea831,_0xa3c004)=>{const _0x4c3e0a=_0x5215b0;this[_0x4c3e0a(0xd3)](_0xa3c004);}),this[_0x5215b0(0x80)]['on'](_0x5215b0(0xd1),()=>{const _0x4e27fa=_0x5215b0;this[_0x4e27fa(0xb1)](),this[_0x4e27fa(0xf2)](),this[_0x4e27fa(0xe3)][_0x4e27fa(0xa1)]({'target':this[_0x4e27fa(0xa8)][_0x4e27fa(0xc5)],'limiter':this[_0x4e27fa(0xe9)](),'positions':jo});}),this[_0x5215b0(0x80)]['on'](_0x5215b0(0xf3),()=>{const _0x20e818=_0x5215b0;this[_0x20e818(0xb3)][_0x20e818(0x69)]&&this[_0x20e818(0xb3)][_0x20e818(0xa1)]({'target':this[_0x20e818(0xa8)][_0x20e818(0xc5)],'limiter':this[_0x20e818(0xe9)](),'positions':jo});}),_0x243e43[_0x5215b0(0xc4)][_0x5215b0(0xcf)](this[_0x5215b0(0x80)]);}[_0x18e543(0x85)](_0x22d035,_0x55bb73){const _0x15eae9=_0x18e543,_0x3bc934=_0x15eae9(0xd4)===_0x55bb73[_0x15eae9(0x99)]?new SourcesBalloonButtonView(_0x22d035):new _0x1cb146(_0x22d035);return _0x3bc934[_0x15eae9(0xb5)]({'label':_0x55bb73[_0x15eae9(0x91)],'icon':_0x55bb73[_0x15eae9(0x8e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x3bc934;}[_0x18e543(0xe0)](){const _0xd62364=_0x18e543;this[_0xd62364(0xf4)](),this[_0xd62364(0x68)]();}[_0x18e543(0x68)](){const _0x14bda5=_0x18e543;_0x3a88fc({'emitter':this[_0x14bda5(0xb3)],'contextElements':[this[_0x14bda5(0xb3)][_0x14bda5(0xc5)]],'callback':()=>{const _0xb0d9fd=_0x14bda5;this[_0xb0d9fd(0xb1)]();},'activator':()=>this[_0x14bda5(0xb3)][_0x14bda5(0x69)]});}[_0x18e543(0x7f)](_0x4d0147){const _0x58ffeb=_0x18e543,_0x13ff1f=this[_0x58ffeb(0xbf)];_0x13ff1f[_0x58ffeb(0xd7)][_0x58ffeb(0xeb)]=_0x4d0147,_0x4d0147?_0x13ff1f[_0x58ffeb(0xd8)][_0x58ffeb(0x7a)]():_0x13ff1f[_0x58ffeb(0xd8)][_0x58ffeb(0x97)]();}[_0x18e543(0xf4)](){const _0x128402=_0x18e543,{balloonView:_0x50e50d,buttonView:_0x5c07bc,hideMethod:_0x490a23}=this[_0x128402(0xbf)];_0x3a88fc({'emitter':_0x50e50d,'contextElements':[_0x50e50d[_0x128402(0xc5)],_0x5c07bc[_0x128402(0xc5)]],'callback':()=>{_0x490a23();},'activator':()=>_0x5c07bc[_0x128402(0xeb)]&&!this[_0x128402(0xb3)][_0x128402(0x69)]&&!this[_0x128402(0x79)][_0x128402(0x8f)]()});}[_0x18e543(0xa9)](_0x1d02ce,_0x2811d1,_0x2f484a=!0x1,_0x496ad0=!0x1){const _0x28fb88=_0x18e543,_0x347032=_0x28fb88(0x95)===_0x2811d1||!0x0===_0x1d02ce[_0x28fb88(0xa2)],_0x380be6=new _0xd6e288(this[_0x28fb88(0xca)],_0x1d02ce,_0x347032,_0x2f484a,_0x496ad0);return _0x347032||_0x380be6['on'](_0x28fb88(0xcc),()=>{const _0x170486=_0x28fb88;this[_0x170486(0xbc)](_0x170486(0xe6),_0x380be6['id']);}),_0x380be6;}[_0x18e543(0xb8)](_0x289636,_0x470f8e){const _0x4a7fcc=_0x18e543;_0x470f8e[_0x4a7fcc(0xcf)](_0x289636,0x0);}[_0x18e543(0x6b)](_0x16abed,_0x4192ab){const _0x3e7f02=_0x18e543,_0x184136=_0x4192ab[_0x3e7f02(0x75)](_0x369317=>_0x369317['id']===_0x16abed);_0x184136&&_0x4192ab[_0x3e7f02(0x7c)](_0x184136);}[_0x18e543(0xbb)](){const _0x342381=_0x18e543;this[_0x342381(0xa8)][_0x342381(0xeb)]?this[_0x342381(0xb2)]():(this[_0x342381(0xf2)](),this[_0x342381(0xe3)][_0x342381(0xa1)]({'target':this[_0x342381(0xa8)][_0x342381(0xc5)],'limiter':this[_0x342381(0xe9)](),'positions':jo}));}[_0x18e543(0xd3)](_0x3e2d90){const _0x2dd79c=_0x18e543;this[_0x2dd79c(0x80)][_0x2dd79c(0xe8)](),this[_0x2dd79c(0xb1)](),this[_0x2dd79c(0xbc)](_0x2dd79c(0x7e),_0x3e2d90);}}function _0x4950(){const _0x10e884=['_createContextButton','defaultPositions','ck-ai-chat-context-controls__balloon-button-source','29728523rUYMgJ','_createBaseBalloonPanel','extendTemplate','closeSourceResourceBalloon','done','hideUrlBalloonPanel','hideAddContextBalloonPanel','_urlBalloonPanelView','clearConversationContextItems','set','render','_setBalloonPanelContent','_addContextToCollection','504843oTSOpt','bodyCollection','_handleAddContextButtonClick','fire','menuitem','reorganizeChips','_addContextBalloonConfig','northArrowSouth','focus','AI_CHAT_CONTEXT_FILE_LABEL','_addUrlContent','content','element','5uYTWwA','tooltip','overflowChips','AI_CHAT_CONTEXT_ADD_CONTEXT','locale','children','removeContextItemChip','setTemplate','ck-ai-chat-context-controls__add-context-button','add','addDocumentToContext','cancel','_overflowManager','_handleUrlSubmit','source','enabled','northArrowSouthEast','buttonView','balloonView','northArrowSouthWest','_currentContextsChips','_createResourcesBalloonView','execute','ck-ai-chat-context-controls__add-context-balloon-panel','2VHADBr','searchInputVisibleFrom','_setupAllBalloonClickOutsideHandlers','sources','setContainerElement','_addContextBalloonPanelView','setContextItemLoading','destroy','removeContextItem','isEnabled','clear','_getLimiterElement','_createAddContextButtonView','isOn','southArrowNorth','clearCurrentContextItems','_createArrowView','84238LQFKqN','files','urls','showAddContextBalloonPanel','refreshBalloon','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__show-more-balloon-panel','addResourceToContext','__arrow','_conversationContextsChips','_setupUrlBalloonClickOutsideHandler','isVisible','ck-ai-chat-context-controls','_removeContextFromCollection','ck-ai-chat-context-controls__pending-contexts','_createAddContextBalloonPanelView','3732336MBwhEd','_setupTemplate','isHidden','southArrowNorthWest','_bindEventHandlers','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','setAddContextOptions','54ywtZpZ','document','_resourcesBalloonView','show','bind','remove','_showSourceResourcesBalloon','addUrlToContext','_toggleAddContextBalloon','_urlInputView','loadSourceResources','12700DRFwoQ','ck-ai-chat-context-chips-wrapper-balloon','AI_CHAT_CONTEXT_URL_LABEL','_createBalloonButton','ck-ai-chat','showSourceResourcesBalloon','populateSourceResourceBalloon','showUrlBalloonPanel','isLoading','closest','ck-reset_all-excluded','setConversationContext','icon','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','label','current','addContextItem','div','conversation','arrowView','hide','496325PKKrOc','type','updateResourceState','ck-ai-chat-context-controls__url-balloon-panel','_createUrlBalloonPanelView','2876424cVkeXa','createCollection','body','9063CYzOur','pin','isReadOnly','_setAddContextButtonEnabled','addFileToContext','southArrowNorthEast','submitUrl','ck-ai-chat-context-controls__balloon-button','addContextButtonView'];_0x4950=function(){return _0x10e884;};return _0x4950();}export class SourcesBalloonButtonView extends _0x1cb146{[_0x18e543(0x96)];constructor(_0x2d8ff6){const _0x273514=_0x18e543;super(_0x2d8ff6),this[_0x273514(0xb5)]({'withText':!0x0,'role':_0x273514(0xbd)}),this[_0x273514(0x96)]=this[_0x273514(0xee)](),this[_0x273514(0xae)]({'attributes':{'class':[Uo]}});}[_0x18e543(0xb6)](){const _0x44b708=_0x18e543;super[_0x44b708(0xb6)](),this[_0x44b708(0xcb)][_0x44b708(0xcf)](this[_0x44b708(0x96)]);}[_0x18e543(0xee)](){const _0x212107=_0x18e543,_0x5e0f5c=new _0x28a6ad();return _0x5e0f5c[_0x212107(0xc4)]=_0x55a1dd,_0x5e0f5c[_0x212107(0xae)]({'attributes':{'class':Uo+_0x212107(0x66)}}),_0x5e0f5c;}}
23
+ const _0x58162c=_0x4da1;(function(_0x2e9e76,_0x677afa){const _0x35a0a6=_0x4da1,_0x2f3656=_0x2e9e76();while(!![]){try{const _0x2178a8=-parseInt(_0x35a0a6(0x175))/0x1+-parseInt(_0x35a0a6(0x157))/0x2+-parseInt(_0x35a0a6(0x12c))/0x3+parseInt(_0x35a0a6(0x1b7))/0x4*(parseInt(_0x35a0a6(0x13a))/0x5)+-parseInt(_0x35a0a6(0x196))/0x6+-parseInt(_0x35a0a6(0x135))/0x7+parseInt(_0x35a0a6(0x134))/0x8;if(_0x2178a8===_0x677afa)break;else _0x2f3656['push'](_0x2f3656['shift']());}catch(_0x166e24){_0x2f3656['push'](_0x2f3656['shift']());}}}(_0x3203,0xa4c9c));function _0x4da1(_0x51cff3,_0x5e73f6){const _0x3203ff=_0x3203();return _0x4da1=function(_0x4da143,_0x1d5844){_0x4da143=_0x4da143-0x12b;let _0x3e7fba=_0x3203ff[_0x4da143];return _0x3e7fba;},_0x4da1(_0x51cff3,_0x5e73f6);}import{BalloonPanelView as _0x33c96a,ButtonView as _0x125a31,clickOutsideHandler as _0x39c8bc,FileDialogButtonView as _0x143177,IconView as _0x2e1fdb,View as _0x10622f}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x27c3c2,IconDocument as _0x23ccac,IconDocumentOutline as _0x4f0b7e,IconDropdownArrow as _0xe1ff79,IconLink as _0x98897e,IconPaperClip as _0x4231ee}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x52da64}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x592aa8}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x563cd9}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x55c36f}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2251fb}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x58162c(0x165),_0x58162c(0x189),_0x58162c(0x19b),_0x58162c(0x1a4),_0x58162c(0x19d),_0x58162c(0x183)];const po=_0x58162c(0x1a8),Bo=_0x58162c(0x176),bo=_0x58162c(0x190),To=_0x58162c(0x17a),Ao=_0x58162c(0x184),ko=_0x58162c(0x1a7),Eo=_0x58162c(0x18a),vo=_0x58162c(0x172),Vo=_0x58162c(0x1a1),go=_0x58162c(0x1af),fo=_0x58162c(0x151),Io=_0x58162c(0x130),Po=[_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x1ac)],_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x1b4)],_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x1a3)],_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x19f)],_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x168)],_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x14d)]];export class AIChatContextPanelView extends _0x10622f{[_0x58162c(0x1b3)];[_0x58162c(0x1b1)]=this[_0x58162c(0x15d)]();[_0x58162c(0x14a)]=this[_0x58162c(0x15d)]();[_0x58162c(0x142)];[_0x58162c(0x13e)];[_0x58162c(0x1a9)];[_0x58162c(0x194)];[_0x58162c(0x1b5)];[_0x58162c(0x140)];[_0x58162c(0x18d)];constructor(_0x3785bf,_0x505a02){const _0x5f678e=_0x58162c;super(_0x3785bf),this[_0x5f678e(0x18d)]=_0x505a02[_0x5f678e(0x18d)],this[_0x5f678e(0x1b1)]=this[_0x5f678e(0x15d)](),this[_0x5f678e(0x14a)]=this[_0x5f678e(0x15d)](),this[_0x5f678e(0x1b3)]=this[_0x5f678e(0x15e)](_0x3785bf),this[_0x5f678e(0x13e)]=this[_0x5f678e(0x17b)](_0x3785bf),this[_0x5f678e(0x1a9)]=this[_0x5f678e(0x19e)](_0x3785bf),this[_0x5f678e(0x1b5)]=this[_0x5f678e(0x19a)](_0x3785bf,_0x505a02);const _0x2af87d={'cssClasses':{'showMoreButton':go,'showMoreBalloon':fo,'overflowContainer':Vo,'controlsButton':vo}};this[_0x5f678e(0x142)]=new _0x563cd9(_0x3785bf,this[_0x5f678e(0x1b1)],_0x2af87d,this[_0x5f678e(0x18d)],this),this[_0x5f678e(0x140)]={'buttonView':this[_0x5f678e(0x1b3)],'balloonView':this[_0x5f678e(0x13e)],'hideMethod':this[_0x5f678e(0x1b8)][_0x5f678e(0x180)](this),'showMethod':this[_0x5f678e(0x161)][_0x5f678e(0x180)](this)},this[_0x5f678e(0x191)](),this[_0x5f678e(0x13c)]();}[_0x58162c(0x15b)](){const _0x88c916=_0x58162c;super[_0x88c916(0x15b)](),this[_0x88c916(0x13d)](),this[_0x88c916(0x142)][_0x88c916(0x174)](this[_0x88c916(0x136)]),this[_0x88c916(0x142)][_0x88c916(0x199)]();}[_0x58162c(0x143)](){const _0x5c97d8=_0x58162c;super[_0x5c97d8(0x143)](),this[_0x5c97d8(0x142)][_0x5c97d8(0x143)](),this[_0x5c97d8(0x1b5)][_0x5c97d8(0x143)]();}[_0x58162c(0x163)](_0x52564e,_0x494ffc){const _0xb11581=_0x58162c,_0x12a436=this[_0xb11581(0x156)](_0x52564e,_0xb11581(0x159),!0x0,_0x494ffc);this[_0xb11581(0x12b)](_0x12a436,this[_0xb11581(0x1b1)]),this[_0xb11581(0x142)][_0xb11581(0x199)]();}[_0x58162c(0x19d)](_0xf7f5eb){const _0x1ad08d=_0x58162c;this[_0x1ad08d(0x144)](_0xf7f5eb,this[_0x1ad08d(0x1b1)]),this[_0x1ad08d(0x144)](_0xf7f5eb,this[_0x1ad08d(0x142)][_0x1ad08d(0x166)]),this[_0x1ad08d(0x142)][_0x1ad08d(0x199)]();}[_0x58162c(0x192)](_0x539c6e,_0x1a2a8d){const _0x14f591=_0x58162c;let _0x2b3db1=this[_0x14f591(0x1b1)][_0x14f591(0x16f)](_0x518c33=>_0x518c33['id']===_0x539c6e);_0x2b3db1||(_0x2b3db1=this[_0x14f591(0x142)][_0x14f591(0x166)][_0x14f591(0x16f)](_0x2f36b3=>_0x2f36b3['id']===_0x539c6e)),_0x2b3db1&&(_0x2b3db1[_0x14f591(0x14f)]=_0x1a2a8d);}[_0x58162c(0x1a6)](_0x5dbf3a){const _0x169d62=_0x58162c;this[_0x169d62(0x14a)][_0x169d62(0x170)]();for(const _0x146cac of _0x5dbf3a){const _0x55b5a8=this[_0x169d62(0x156)](_0x146cac,_0x169d62(0x1a5),!0x1,!0x1);this[_0x169d62(0x12b)](_0x55b5a8,this[_0x169d62(0x14a)]);}}[_0x58162c(0x141)](){const _0x406ba3=_0x58162c;this[_0x406ba3(0x1b1)][_0x406ba3(0x170)](),this[_0x406ba3(0x142)][_0x406ba3(0x170)]();}[_0x58162c(0x19c)](){const _0x230a75=_0x58162c;this[_0x230a75(0x14a)][_0x230a75(0x170)]();}[_0x58162c(0x132)](_0x344084,_0x16b3dd,_0x6807de){const _0xc03fde=_0x58162c;this[_0xc03fde(0x1b5)][_0xc03fde(0x132)](_0x344084,_0x16b3dd,_0x6807de);}[_0x58162c(0x1b8)](){const _0x4d077b=_0x58162c;this[_0x4d077b(0x139)](!0x1);}[_0x58162c(0x161)](){const _0x1778dd=_0x58162c;this[_0x1778dd(0x139)](!0x0);}[_0x58162c(0x177)](){const _0x48a5e5=_0x58162c;this[_0x48a5e5(0x1a9)][_0x48a5e5(0x197)](),this[_0x48a5e5(0x1b3)][_0x48a5e5(0x138)]=!0x1,this[_0x48a5e5(0x194)]&&this[_0x48a5e5(0x194)][_0x48a5e5(0x170)]();}[_0x58162c(0x182)](){const _0x523758=_0x58162c;this[_0x523758(0x1a9)][_0x523758(0x195)](),this[_0x523758(0x1b3)][_0x523758(0x138)]=!0x0;}[_0x58162c(0x18b)](_0x2aaf4c){const _0x2469cd=_0x58162c;this[_0x2469cd(0x1b5)][_0x2469cd(0x149)](_0x2aaf4c),this[_0x2469cd(0x1b3)][_0x2469cd(0x138)]=!0x0;}[_0x58162c(0x1a2)](_0x80d4e2,_0x2d6402,_0x3e0b35,_0x2ce137){const _0x369622=_0x58162c;this[_0x369622(0x1b5)][_0x369622(0x1a2)](_0x80d4e2,_0x3e0b35,_0x2ce137);}[_0x58162c(0x1b0)](_0x23a3da){const _0x2e3046=_0x58162c;this[_0x2e3046(0x1b5)][_0x2e3046(0x1b0)](_0x23a3da),this[_0x2e3046(0x1b3)][_0x2e3046(0x138)]=!0x1;}[_0x58162c(0x14b)](_0x3f03bb){const _0x4092ef=_0x58162c;this[_0x4092ef(0x147)](this[_0x4092ef(0x13e)],this[_0x4092ef(0x1ad)],_0x3f03bb),this[_0x4092ef(0x16a)](_0x3f03bb);}[_0x58162c(0x16a)](_0x34c677){const _0x43c2ec=_0x58162c,_0x321109=!_0x34c677[_0x43c2ec(0x1b2)][_0x43c2ec(0x154)]&&_0x34c677[_0x43c2ec(0x1b2)][_0x43c2ec(0x16e)],_0x525113=_0x34c677[_0x43c2ec(0x17c)][_0x43c2ec(0x16e)],_0x11a256=_0x34c677[_0x43c2ec(0x14e)][_0x43c2ec(0x16e)];this[_0x43c2ec(0x1b3)][_0x43c2ec(0x146)]=_0x321109||_0x525113||_0x11a256;}[_0x58162c(0x191)](){const _0x580259=_0x58162c;this[_0x580259(0x153)]({'tag':_0x580259(0x187),'attributes':{'class':[po,_0x580259(0x12d)]},'children':[{'tag':_0x580259(0x187),'attributes':{'class':Bo},'children':this[_0x580259(0x1b1)]}]});}[_0x58162c(0x13c)](){const _0x1cd93d=_0x58162c;this[_0x1cd93d(0x1b3)]['on'](_0x1cd93d(0x15a),()=>{const _0x40a7ce=_0x1cd93d;this[_0x40a7ce(0x13f)]();});}[_0x58162c(0x15e)](_0x3df12a){const _0x18d0fe=_0x58162c,_0x56e256=new _0x125a31(_0x3df12a);return _0x56e256[_0x18d0fe(0x193)]({'label':_0x55c36f(_0x3df12a,_0x18d0fe(0x169)),'class':vo+'\x20'+To,'icon':_0x4231ee,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x56e256;}[_0x58162c(0x17b)](_0x485558){const _0x5bc1a6=_0x58162c;return this[_0x5bc1a6(0x14c)](_0x485558,bo);}[_0x58162c(0x19e)](_0x3d3707){const _0x4c3ad7=_0x58162c,_0x58edb1=this[_0x4c3ad7(0x14c)](_0x3d3707,Ao);return this[_0x4c3ad7(0x198)](_0x58edb1,_0x3d3707),_0x58edb1;}[_0x58162c(0x19a)](_0x1f59a6,_0x4309db){const _0x26cda7=_0x58162c,_0x5c4bd7={'searchInputVisibleFrom':_0x4309db[_0x26cda7(0x181)],'onBackToContext':()=>{const _0xc64dda=_0x26cda7;this[_0xc64dda(0x161)](),this[_0xc64dda(0x13e)][_0xc64dda(0x188)]({'target':this[_0xc64dda(0x1b3)][_0xc64dda(0x136)],'limiter':this[_0xc64dda(0x15f)](),'positions':Po});},'onResourceSelected':(_0x2cb0f6,_0x2d8f55)=>{const _0x3a4c84=_0x26cda7;this[_0x3a4c84(0x178)](_0x3a4c84(0x1a4),{'source':_0x2cb0f6,'resource':_0x2d8f55});},'onLoadSourceResources':_0x94a8d5=>{const _0x2c08d6=_0x26cda7;this[_0x2c08d6(0x178)](_0x2c08d6(0x183),_0x94a8d5);},'onBalloonClosed':()=>{const _0x380e0c=_0x26cda7;this[_0x380e0c(0x1b3)][_0x380e0c(0x138)]=!0x1;},'getLimiterElement':()=>this[_0x26cda7(0x15f)](),'getTargetElement':()=>this[_0x26cda7(0x1b3)][_0x26cda7(0x136)]};return new _0x2251fb(_0x1f59a6,_0x4309db[_0x26cda7(0x18d)],_0x5c4bd7);}[_0x58162c(0x15f)](){const _0x121739=_0x58162c;return this[_0x121739(0x136)]?.[_0x121739(0x1a0)]('.'+Io)||document[_0x121739(0x137)];}[_0x58162c(0x14c)](_0x5f3c47,_0x32233e){const _0x2879f4=_0x58162c,_0x1ef75c=new _0x33c96a(_0x5f3c47);return _0x1ef75c[_0x2879f4(0x155)]({'attributes':{'class':_0x32233e}}),this[_0x2879f4(0x18d)][_0x2879f4(0x173)](_0x1ef75c),_0x1ef75c;}[_0x58162c(0x147)](_0x44518d,_0x365353,_0x26ca8b){const _0x315ce6=_0x58162c;if(_0x44518d[_0x315ce6(0x186)][_0x315ce6(0x170)](),!_0x26ca8b[_0x315ce6(0x1b2)][_0x315ce6(0x154)]&&_0x26ca8b[_0x315ce6(0x1b2)][_0x315ce6(0x16e)]){const _0x4167c0=this[_0x315ce6(0x162)](_0x365353,{'label':_0x55c36f(_0x365353,_0x315ce6(0x12e)),'icon':_0x23ccac});_0x4167c0['on'](_0x315ce6(0x15a),()=>{const _0x43d010=_0x315ce6;this[_0x43d010(0x178)](_0x43d010(0x165)),this[_0x43d010(0x1b8)]();}),_0x44518d[_0x315ce6(0x186)][_0x315ce6(0x173)](_0x4167c0);}if(_0x26ca8b[_0x315ce6(0x17c)][_0x315ce6(0x16e)]){const _0x20a484=this[_0x315ce6(0x162)](_0x365353,{'label':_0x55c36f(_0x365353,_0x315ce6(0x1aa)),'icon':_0x98897e});_0x20a484['on'](_0x315ce6(0x15a),()=>{const _0x38248c=_0x315ce6;this[_0x38248c(0x1b8)](),this[_0x38248c(0x182)](),this[_0x38248c(0x1a9)][_0x38248c(0x188)]({'target':this[_0x38248c(0x1b3)][_0x38248c(0x136)],'limiter':this[_0x38248c(0x15f)](),'positions':Po}),this[_0x38248c(0x194)][_0x38248c(0x16c)]();}),_0x44518d[_0x315ce6(0x186)][_0x315ce6(0x173)](_0x20a484);}if(_0x26ca8b[_0x315ce6(0x14e)][_0x315ce6(0x16e)]){const _0x2cb4f8=new _0x143177(_0x365353);_0x2cb4f8[_0x315ce6(0x193)]({'label':_0x55c36f(_0x365353,_0x315ce6(0x158)),'icon':_0x27c3c2,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x2cb4f8['on'](_0x315ce6(0x179),(_0x78ecd2,_0x51547e)=>{const _0x118498=_0x315ce6;this[_0x118498(0x178)](_0x118498(0x189),_0x51547e),this[_0x118498(0x1b8)]();}),_0x2cb4f8[_0x315ce6(0x18f)]=!0x0,_0x44518d[_0x315ce6(0x186)][_0x315ce6(0x173)](_0x2cb4f8);}for(const _0x39aadc of _0x26ca8b[_0x315ce6(0x17f)]){const _0x5cfe83=this[_0x315ce6(0x162)](_0x365353,{'label':_0x39aadc[_0x315ce6(0x1b6)],'icon':_0x39aadc[_0x315ce6(0x16b)]||_0x4f0b7e,'type':_0x315ce6(0x18c)});_0x44518d[_0x315ce6(0x186)][_0x315ce6(0x173)](_0x5cfe83),_0x5cfe83['on'](_0x315ce6(0x15a),()=>{const _0xa7b4b3=_0x315ce6;this[_0xa7b4b3(0x1b8)](),this[_0xa7b4b3(0x18b)](_0x39aadc);});}}[_0x58162c(0x198)](_0x2aedc9,_0x3df4e6){const _0x5cbb33=_0x58162c;this[_0x5cbb33(0x194)]=new _0x592aa8(_0x3df4e6),this[_0x5cbb33(0x194)]['on'](_0x5cbb33(0x15c),(_0xc7fd5f,_0x14c6a8)=>{const _0x402ea3=_0x5cbb33;this[_0x402ea3(0x171)](_0x14c6a8);}),this[_0x5cbb33(0x194)]['on'](_0x5cbb33(0x148),()=>{const _0x4c7a23=_0x5cbb33;this[_0x4c7a23(0x177)](),this[_0x4c7a23(0x161)](),this[_0x4c7a23(0x13e)][_0x4c7a23(0x188)]({'target':this[_0x4c7a23(0x1b3)][_0x4c7a23(0x136)],'limiter':this[_0x4c7a23(0x15f)](),'positions':Po});}),this[_0x5cbb33(0x194)]['on'](_0x5cbb33(0x185),()=>{const _0x190609=_0x5cbb33;this[_0x190609(0x1a9)][_0x190609(0x145)]&&this[_0x190609(0x1a9)][_0x190609(0x188)]({'target':this[_0x190609(0x1b3)][_0x190609(0x136)],'limiter':this[_0x190609(0x15f)](),'positions':Po});}),_0x2aedc9[_0x5cbb33(0x186)][_0x5cbb33(0x173)](this[_0x5cbb33(0x194)]);}[_0x58162c(0x162)](_0x589fd6,_0x2446e5){const _0x27983a=_0x58162c,_0x43e48d=_0x27983a(0x18c)===_0x2446e5[_0x27983a(0x17e)]?new SourcesBalloonButtonView(_0x589fd6):new _0x125a31(_0x589fd6);return _0x43e48d[_0x27983a(0x193)]({'label':_0x2446e5[_0x27983a(0x1b6)],'icon':_0x2446e5[_0x27983a(0x16b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x43e48d;}[_0x58162c(0x13d)](){const _0x29fda9=_0x58162c;this[_0x29fda9(0x160)](),this[_0x29fda9(0x133)]();}[_0x58162c(0x133)](){const _0x1db3ce=_0x58162c;_0x39c8bc({'emitter':this[_0x1db3ce(0x1a9)],'contextElements':[this[_0x1db3ce(0x1a9)][_0x1db3ce(0x136)]],'callback':()=>{const _0x1a984f=_0x1db3ce;this[_0x1a984f(0x177)]();},'activator':()=>this[_0x1db3ce(0x1a9)][_0x1db3ce(0x145)]});}[_0x58162c(0x139)](_0x55098f){const _0xf6578=_0x58162c,_0x5422ba=this[_0xf6578(0x140)];_0x5422ba[_0xf6578(0x131)][_0xf6578(0x138)]=_0x55098f,_0x55098f?_0x5422ba[_0xf6578(0x1ab)][_0xf6578(0x195)]():_0x5422ba[_0xf6578(0x1ab)][_0xf6578(0x197)]();}[_0x58162c(0x160)](){const _0xd277e8=_0x58162c,{balloonView:_0x262392,buttonView:_0x480038,hideMethod:_0x42f57b}=this[_0xd277e8(0x140)];_0x39c8bc({'emitter':_0x262392,'contextElements':[_0x262392[_0xd277e8(0x136)],_0x480038[_0xd277e8(0x136)]],'callback':()=>{_0x42f57b();},'activator':()=>_0x480038[_0xd277e8(0x138)]&&!this[_0xd277e8(0x1a9)][_0xd277e8(0x145)]&&!this[_0xd277e8(0x1b5)][_0xd277e8(0x17d)]()});}[_0x58162c(0x156)](_0x4bb1d9,_0x216b6d,_0x170c14=!0x1,_0x42bc9d=!0x1){const _0x1c5d98=_0x58162c,_0x48829d=_0x1c5d98(0x1a5)===_0x216b6d||!0x0===_0x4bb1d9[_0x1c5d98(0x12f)],_0x4abff5=new _0x52da64(this[_0x1c5d98(0x1ad)],_0x4bb1d9,_0x48829d,_0x170c14,_0x42bc9d);return _0x48829d||_0x4abff5['on'](_0x1c5d98(0x13b),()=>{const _0x217b7a=_0x1c5d98;this[_0x217b7a(0x178)](_0x217b7a(0x19d),_0x4abff5['id']);}),_0x4abff5;}[_0x58162c(0x12b)](_0x272a2d,_0x11a1c7){const _0x148af2=_0x58162c;_0x11a1c7[_0x148af2(0x173)](_0x272a2d,0x0);}[_0x58162c(0x144)](_0x5600ec,_0x19541e){const _0x11fd4b=_0x58162c,_0x59bcd0=_0x19541e[_0x11fd4b(0x16f)](_0x5b3d6a=>_0x5b3d6a['id']===_0x5600ec);_0x59bcd0&&_0x19541e[_0x11fd4b(0x167)](_0x59bcd0);}[_0x58162c(0x13f)](){const _0x2154fd=_0x58162c;this[_0x2154fd(0x1b3)][_0x2154fd(0x138)]?this[_0x2154fd(0x1b8)]():(this[_0x2154fd(0x161)](),this[_0x2154fd(0x13e)][_0x2154fd(0x188)]({'target':this[_0x2154fd(0x1b3)][_0x2154fd(0x136)],'limiter':this[_0x2154fd(0x15f)](),'positions':Po}));}[_0x58162c(0x171)](_0x2b0c86){const _0x48071f=_0x58162c;this[_0x48071f(0x194)][_0x48071f(0x170)](),this[_0x48071f(0x177)](),this[_0x48071f(0x178)](_0x48071f(0x19b),_0x2b0c86);}}export class SourcesBalloonButtonView extends _0x125a31{[_0x58162c(0x152)];constructor(_0x11b958){const _0x118178=_0x58162c;super(_0x11b958),this[_0x118178(0x193)]({'withText':!0x0,'role':_0x118178(0x18e)}),this[_0x118178(0x152)]=this[_0x118178(0x16d)](),this[_0x118178(0x155)]({'attributes':{'class':[Eo]}});}[_0x58162c(0x15b)](){const _0x360b59=_0x58162c;super[_0x360b59(0x15b)](),this[_0x360b59(0x164)][_0x360b59(0x173)](this[_0x360b59(0x152)]);}[_0x58162c(0x16d)](){const _0x5f5665=_0x58162c,_0x423ab3=new _0x2e1fdb();return _0x423ab3[_0x5f5665(0x186)]=_0xe1ff79,_0x423ab3[_0x5f5665(0x155)]({'attributes':{'class':Eo+_0x5f5665(0x150)}}),_0x423ab3;}}function _0x3203(){const _0x55d149=['_toggleAddContextBalloon','5VfbgTP','removeContextItemChip','_bindEventHandlers','_setupAllBalloonClickOutsideHandlers','_addContextBalloonPanelView','_handleAddContextButtonClick','_addContextBalloonConfig','clearCurrentContextItems','_overflowManager','destroy','_removeContextFromCollection','isVisible','isEnabled','_setBalloonPanelContent','cancel','showSourceResourcesBalloon','_conversationContextsChips','setAddContextOptions','_createBaseBalloonPanel','southArrowNorthEast','files','isLoading','__arrow','ck-ai-chat-context-controls__show-more-balloon-panel','arrowView','setTemplate','isHidden','extendTemplate','_createContextButton','848790QCTwBS','AI_CHAT_CONTEXT_FILE_LABEL','current','execute','render','submitUrl','createCollection','_createAddContextButtonView','_getLimiterElement','_setupAddContextBalloonClickOutsideHandler','showAddContextBalloonPanel','_createBalloonButton','addContextItem','children','addDocumentToContext','overflowChips','remove','southArrowNorth','AI_CHAT_CONTEXT_ADD_CONTEXT','_setAddContextButtonEnabled','icon','focus','_createArrowView','enabled','find','clear','_handleUrlSubmit','ck-ai-chat-controls-button','add','setContainerElement','174582pjNQvV','ck-ai-chat-context-controls__pending-contexts','hideUrlBalloonPanel','fire','done','ck-ai-chat-context-controls__add-context-button','_createAddContextBalloonPanelView','urls','isAnyResourceBalloonVisible','type','sources','bind','searchInputVisibleFrom','showUrlBalloonPanel','loadSourceResources','ck-ai-chat-context-controls__url-balloon-panel','refreshBalloon','content','div','pin','addFileToContext','ck-ai-chat-context-controls__balloon-button-source','_showSourceResourcesBalloon','source','bodyCollection','menuitem','tooltip','ck-ai-chat-context-controls__add-context-balloon-panel','_setupTemplate','setContextItemLoading','set','_urlInputView','show','7388874UVesUJ','hide','_addUrlContent','reorganizeChips','_createResourcesBalloonView','addUrlToContext','clearConversationContextItems','removeContextItem','_createUrlBalloonPanelView','southArrowNorthWest','closest','ck-ai-chat-context-chips-wrapper-balloon','populateSourceResourceBalloon','northArrowSouthEast','addResourceToContext','conversation','setConversationContext','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls','_urlBalloonPanelView','AI_CHAT_CONTEXT_URL_LABEL','balloonView','northArrowSouthWest','locale','defaultPositions','ck-ai-chat-controls_context_show-more-button','closeSourceResourceBalloon','_currentContextsChips','document','addContextButtonView','northArrowSouth','_resourcesBalloonView','label','4116468sZXzWQ','hideAddContextBalloonPanel','_addContextToCollection','2436540lJjsEN','ck-reset_all-excluded','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isReadOnly','ck-ai-chat','buttonView','updateResourceState','_setupUrlBalloonClickOutsideHandler','27651320szeBxj','8175468GgdfDb','element','body','isOn'];_0x3203=function(){return _0x55d149;};return _0x3203();}