@ckeditor/ckeditor5-ai 47.2.0-alpha.1 → 47.2.0-alpha.3

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 _0x3d34bb=_0x3e05;(function(_0x1bb190,_0x5d5baa){const _0x3cc76f=_0x3e05,_0x2ea43c=_0x1bb190();while(!![]){try{const _0x1d257f=parseInt(_0x3cc76f(0xd5))/0x1+-parseInt(_0x3cc76f(0xbf))/0x2*(-parseInt(_0x3cc76f(0xdb))/0x3)+-parseInt(_0x3cc76f(0xc5))/0x4+-parseInt(_0x3cc76f(0xb5))/0x5+parseInt(_0x3cc76f(0x9d))/0x6+-parseInt(_0x3cc76f(0xd2))/0x7+parseInt(_0x3cc76f(0xba))/0x8;if(_0x1d257f===_0x5d5baa)break;else _0x2ea43c['push'](_0x2ea43c['shift']());}catch(_0x69ad87){_0x2ea43c['push'](_0x2ea43c['shift']());}}}(_0x1095,0xc69bf));import{ButtonView as _0x53e688,clickOutsideHandler as _0x209954,View as _0x422ca4}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x52e9b7}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x5d1b62}from'./controls/aichatpromptcapabilitiesview.js';function _0x1095(){const _0x5ee26b=['set','1766306CkPtVu','_loaderView','clearCurrentContextItems','locale','removeContextItem','_promptInputView','5739872kYquUd','setContextItemLoading','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_promptCapabilitiesView','ck-hidden','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_createModelUnavailableMessageView','_createPromptInputView','change:isLoading','abortPromptStream','agent','_modelUnavailableMessageView','setAddContextOptions','2332057LcSYIv','enableModelSelector','clearConversationContextUI','1542367QuHOkF','sendUserMessage','focus','setConversationContext','bodyCollection','isLoading','3yPUZxi','_contextPanelView','isDisabled','addContextItem','div','clearPendingContextUI','isModelAvailable','toggleReasoning','setInputPlaceholder','setModel','low','_createPromptCapabilitiesView','bindTemplate','startConversation','clearConversationContextItems','ck-ai-chat-controls__start-new-chat-button','form','6062052oThSVT','selectModel','contextResourcesSearchInputVisibleFrom','ck-ai-chat-controls-disabled','populateSourceResourceBalloon','setWebSearch','_handlePromptInputFocus','setPlaceholderText','updateResourceState','disableModelSelector','_displayedModels','resetMessageInput','setIsUploadInProgress','focusPromptInput','ck-ai-chat-controls','_createContextPanelView','setTemplate','execute','reset','toggleWebSearch','delegate','closeSourceResourceBalloon','startsWith','element','5313840lnFTrw','_shouldRestorePromptInputFocus','addContextButtonView','find','setModelList','1668224blvGDs','ck-ai-chat-controls-model-unavailable-message','setReasoning','_createLoaderView'];_0x1095=function(){return _0x5ee26b;};return _0x1095();}function _0x3e05(_0xc2a4e,_0x53a9e0){const _0x109593=_0x1095();return _0x3e05=function(_0x3e052d,_0x51e881){_0x3e052d=_0x3e052d-0x9c;let _0x42aaf0=_0x109593[_0x3e052d];return _0x42aaf0;},_0x3e05(_0xc2a4e,_0x53a9e0);}import{AIChatContextPanelView as _0x11a483,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x960657}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x1c50c3}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x6fc249}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x422ca4{[_0x3d34bb(0xa7)]=[];[_0x3d34bb(0xdc)];[_0x3d34bb(0xc4)];[_0x3d34bb(0xc8)];[_0x3d34bb(0xc0)];[_0x3d34bb(0xd0)];[_0x3d34bb(0xb6)];constructor(_0x5177e5,_0x17f9bf){const _0x30b8c5=_0x3d34bb;super(_0x5177e5),this[_0x30b8c5(0xdc)]=this[_0x30b8c5(0xac)](_0x5177e5,{'bodyCollection':_0x17f9bf[_0x30b8c5(0xd9)],'searchInputVisibleFrom':_0x17f9bf[_0x30b8c5(0x9f)]}),this[_0x30b8c5(0xc4)]=this[_0x30b8c5(0xcc)](_0x5177e5),this[_0x30b8c5(0xc8)]=this[_0x30b8c5(0xe6)](_0x5177e5),this[_0x30b8c5(0xc0)]=this[_0x30b8c5(0xbd)](_0x5177e5),this[_0x30b8c5(0xd0)]=this[_0x30b8c5(0xcb)](_0x5177e5),this[_0x30b8c5(0xb6)]=!0x1,this[_0x30b8c5(0xc4)][_0x30b8c5(0xb1)](_0x30b8c5(0xd6))['to'](this),this[_0x30b8c5(0xc0)][_0x30b8c5(0xb1)](_0x30b8c5(0xce))['to'](this),this[_0x30b8c5(0xc8)][_0x30b8c5(0xb1)](_0x30b8c5(0xb0))['to'](this),this[_0x30b8c5(0xc8)][_0x30b8c5(0xb1)](_0x30b8c5(0xe2))['to'](this),this[_0x30b8c5(0xc8)][_0x30b8c5(0xb1)](_0x30b8c5(0x9e))['to'](this),this[_0x30b8c5(0xdc)][_0x30b8c5(0xb1)](..._0x960657)['to'](this),this[_0x30b8c5(0xbe)](_0x30b8c5(0xe1),!0x0),this[_0x30b8c5(0xbe)](_0x30b8c5(0xdd),!0x1);const _0x35ab53=this[_0x30b8c5(0xe7)];this[_0x30b8c5(0xad)]({'tag':_0x30b8c5(0x9c),'attributes':{'class':['ck',_0x30b8c5(0xab),_0x35ab53['if'](_0x30b8c5(0xdd),_0x30b8c5(0xa0))]},'children':[{'tag':_0x30b8c5(0xdf),'attributes':{'class':[_0x35ab53['if'](_0x30b8c5(0xda),_0x30b8c5(0xc9),_0x4da1e8=>_0x4da1e8||!this[_0x30b8c5(0xe1)]),_0x35ab53['if'](_0x30b8c5(0xe1),_0x30b8c5(0xc9),_0x1f7f5f=>!_0x1f7f5f||this[_0x30b8c5(0xda)])]},'children':[this[_0x30b8c5(0xdc)],this[_0x30b8c5(0xc4)],this[_0x30b8c5(0xc8)]]},{'tag':_0x30b8c5(0xdf),'attributes':{'class':[_0x35ab53['if'](_0x30b8c5(0xda),_0x30b8c5(0xc9),_0x42f3bf=>!_0x42f3bf)]},'children':[this[_0x30b8c5(0xc0)]]},{'tag':_0x30b8c5(0xdf),'attributes':{'class':[_0x35ab53['if'](_0x30b8c5(0xe1),_0x30b8c5(0xc9),_0x484d91=>_0x484d91)]},'children':[this[_0x30b8c5(0xd0)]]}]}),_0x209954({'emitter':this[_0x30b8c5(0xc4)],'activator':()=>this[_0x30b8c5(0xda)],'contextElements':()=>[this[_0x30b8c5(0xb4)]],'callback':()=>{const _0x1d1b45=_0x30b8c5;this[_0x1d1b45(0xb6)]=!0x1;}}),this['on'](_0x30b8c5(0xcd),this[_0x30b8c5(0xa3)],{'priority':_0x30b8c5(0xe5)});}[_0x3d34bb(0xac)](_0x2b5606,_0x6327ff){return new _0x11a483(_0x2b5606,_0x6327ff);}[_0x3d34bb(0xcc)](_0x50d0cd){const _0x107229=_0x3d34bb;return new _0x52e9b7(_0x50d0cd,this[_0x107229(0xdc)][_0x107229(0xb7)]);}[_0x3d34bb(0xe6)](_0xf0b1f8){return new _0x5d1b62(_0xf0b1f8);}[_0x3d34bb(0xbd)](_0x2673bb){return new _0x1c50c3(_0x2673bb);}[_0x3d34bb(0xcb)](_0x5aa2ba){const _0x45b249=_0x3d34bb,_0x113d5b=new gs(_0x5aa2ba);return _0x113d5b[_0x45b249(0xb1)](_0x45b249(0xe8))['to'](this),_0x113d5b;}[_0x3d34bb(0xa3)](_0x3540d6,_0x11d1d3,_0x51c37c){const _0x379eb0=_0x3d34bb;_0x51c37c?this[_0x379eb0(0xb6)]=!0x0:this[_0x379eb0(0xb6)]&&this[_0x379eb0(0xc4)][_0x379eb0(0xd7)]();}[_0x3d34bb(0xde)](_0x1cbe6f,_0x59f6c6){const _0x2ecf2e=_0x3d34bb;this[_0x2ecf2e(0xdc)][_0x2ecf2e(0xde)](_0x1cbe6f,_0x59f6c6);}[_0x3d34bb(0xc3)](_0x5371ac){const _0x577344=_0x3d34bb;this[_0x577344(0xdc)][_0x577344(0xc3)](_0x5371ac);}[_0x3d34bb(0xc6)](_0x323c6b,_0x1c55ce){const _0x2e6856=_0x3d34bb;this[_0x2e6856(0xdc)][_0x2e6856(0xc6)](_0x323c6b,_0x1c55ce);}[_0x3d34bb(0xa9)](_0x227fc8){const _0x4dc957=_0x3d34bb;this[_0x4dc957(0xc4)][_0x4dc957(0xa9)](_0x227fc8);}[_0x3d34bb(0xd8)](_0x1747aa){const _0xd2514e=_0x3d34bb;this[_0xd2514e(0xdc)][_0xd2514e(0xd8)](_0x1747aa);}[_0x3d34bb(0xe0)](){const _0x237258=_0x3d34bb;this[_0x237258(0xdc)][_0x237258(0xc1)]();}[_0x3d34bb(0xd4)](){const _0x32162e=_0x3d34bb;this[_0x32162e(0xdc)][_0x32162e(0xe9)]();}[_0x3d34bb(0xa5)](_0x4398d,_0x1bf5b1,_0x5eed83){const _0x5b041b=_0x3d34bb;this[_0x5b041b(0xdc)][_0x5b041b(0xa5)](_0x4398d,_0x1bf5b1,_0x5eed83);}[_0x3d34bb(0xa2)](_0x137359){const _0x33b456=_0x3d34bb;this[_0x33b456(0xc8)][_0x33b456(0xa2)](_0x137359);}[_0x3d34bb(0xbc)](_0x30d82a){const _0x585c4d=_0x3d34bb;this[_0x585c4d(0xc8)][_0x585c4d(0xbc)](_0x30d82a);}[_0x3d34bb(0xa8)](){const _0x3bc91f=_0x3d34bb;this[_0x3bc91f(0xc4)][_0x3bc91f(0xaf)]();}[_0x3d34bb(0xd1)](_0x2951b1){const _0x17c951=_0x3d34bb;this[_0x17c951(0xdc)][_0x17c951(0xd1)](_0x2951b1);}[_0x3d34bb(0xe3)](_0x55f581){const _0x4d2d34=_0x3d34bb;this[_0x4d2d34(0xc4)][_0x4d2d34(0xa4)](_0x55f581);}[_0x3d34bb(0xb9)](_0x519775,_0x4aaa5f){const _0x4bd43e=_0x3d34bb;this[_0x4bd43e(0xa7)]=_0x519775,this[_0x4bd43e(0xc8)][_0x4bd43e(0xb9)](_0x519775,_0x4aaa5f);}[_0x3d34bb(0xe4)](_0x5bd48c){const _0x20af58=_0x3d34bb;(_0x5bd48c?this[_0x20af58(0xa7)][_0x20af58(0xb8)](_0x5189a5=>_0x5189a5['id']===_0x5bd48c['id']):null)?(this[_0x20af58(0xe1)]=!0x0,this[_0x20af58(0xc8)][_0x20af58(0xe4)](_0x5bd48c)):_0x5bd48c?.['id'][_0x20af58(0xb3)](_0x20af58(0xcf))?(this[_0x20af58(0xe1)]=!0x0,this[_0x20af58(0xc8)][_0x20af58(0xe4)](this[_0x20af58(0xa7)][0x0])):this[_0x20af58(0xe1)]=!0x1;}[_0x3d34bb(0xd3)](){const _0x43f9db=_0x3d34bb;this[_0x43f9db(0xc8)][_0x43f9db(0xd3)]();}[_0x3d34bb(0xa6)](_0x47fd88){const _0x5d3de7=_0x3d34bb;this[_0x5d3de7(0xc8)][_0x5d3de7(0xa6)](_0x47fd88);}[_0x3d34bb(0xa1)](_0x1db018,_0x2036d4,_0x19d631,_0x3c9ce5){const _0x249773=_0x3d34bb;this[_0x249773(0xdc)][_0x249773(0xa1)](_0x1db018,_0x2036d4,_0x19d631,_0x3c9ce5);}[_0x3d34bb(0xb2)](_0x1e41c1){const _0x5b3786=_0x3d34bb;this[_0x5b3786(0xdc)][_0x5b3786(0xb2)](_0x1e41c1);}[_0x3d34bb(0xaa)](){const _0x481246=_0x3d34bb;this[_0x481246(0xc4)][_0x481246(0xd7)]();}}class gs extends _0x422ca4{constructor(_0x5ccfdc){const _0x1f219a=_0x3d34bb;super(_0x5ccfdc);const _0x98e1f2=new _0x53e688(_0x5ccfdc);_0x98e1f2[_0x1f219a(0xbe)]({'label':_0x6fc249(this[_0x1f219a(0xc2)],_0x1f219a(0xca)),'withText':!0x0,'class':[_0x1f219a(0xea)],'tooltip':''}),_0x98e1f2[_0x1f219a(0xb1)](_0x1f219a(0xae))['to'](this,_0x1f219a(0xe8)),this[_0x1f219a(0xad)]({'tag':_0x1f219a(0xdf),'attributes':{'class':['ck',_0x1f219a(0xbb)]},'children':[{'tag':'p','children':[{'text':_0x6fc249(this[_0x1f219a(0xc2)],_0x1f219a(0xc7))+'\x20'},_0x98e1f2]}]});}}
23
+ function _0x5391(){const _0x5bd7d0=['toggleReasoning','isLoading','focusPromptInput','change:isLoading','3219342vjDBjX','setConversationContext','_loaderView','removeContextItem','startsWith','_createLoaderView','setWebSearch','populateSourceResourceBalloon','setReasoning','setIsUploadInProgress','bodyCollection','addContextItem','sendUserMessage','setModelList','div','1770688jythVe','ck-hidden','agent','15149034wTEKCU','closeSourceResourceBalloon','reset','isDisabled','263469qfLcyR','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','ck-ai-chat-controls-disabled','startConversation','5mTDSbz','addContextButtonView','clearPendingContextUI','ck-ai-chat-controls-model-unavailable-message','setPlaceholderText','isModelAvailable','setTemplate','_shouldRestorePromptInputFocus','setAddContextOptions','toggleWebSearch','ck-ai-chat-controls__start-new-chat-button','enableModelSelector','delegate','disableModelSelector','_handlePromptInputFocus','set','44wJIRcI','form','1163944tqyNVr','_createContextPanelView','resetMessageInput','updateResourceState','ck-ai-chat-controls','setContextItemLoading','abortPromptStream','_createPromptCapabilitiesView','_promptCapabilitiesView','setModel','execute','clearCurrentContextItems','find','setInputPlaceholder','_contextPanelView','_modelUnavailableMessageView','_promptInputView','_displayedModels','_createModelUnavailableMessageView','locale','7220962CajUvZ','572242RPGbME','focus','_createPromptInputView','contextResourcesSearchInputVisibleFrom','low','clearConversationContextItems','selectModel','clearConversationContextUI','element','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON'];_0x5391=function(){return _0x5bd7d0;};return _0x5391();}const _0x5bb4e2=_0x56b0;(function(_0x499199,_0x1b6562){const _0x4f9b63=_0x56b0,_0x5d7809=_0x499199();while(!![]){try{const _0x3d3e74=-parseInt(_0x4f9b63(0x12f))/0x1+parseInt(_0x4f9b63(0x16a))/0x2+parseInt(_0x4f9b63(0x153))/0x3*(parseInt(_0x4f9b63(0x168))/0x4)+-parseInt(_0x4f9b63(0x158))/0x5*(-parseInt(_0x4f9b63(0x13d))/0x6)+parseInt(_0x4f9b63(0x12e))/0x7+-parseInt(_0x4f9b63(0x14c))/0x8+-parseInt(_0x4f9b63(0x14f))/0x9;if(_0x3d3e74===_0x1b6562)break;else _0x5d7809['push'](_0x5d7809['shift']());}catch(_0x5ad054){_0x5d7809['push'](_0x5d7809['shift']());}}}(_0x5391,0x9c170));function _0x56b0(_0x28aae9,_0x382d78){const _0x53914d=_0x5391();return _0x56b0=function(_0x56b04a,_0x25c5ef){_0x56b04a=_0x56b04a-0x126;let _0x52b17e=_0x53914d[_0x56b04a];return _0x52b17e;},_0x56b0(_0x28aae9,_0x382d78);}import{ButtonView as _0x1190cf,clickOutsideHandler as _0x45b606,View as _0x512720}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4a3120}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x5ee37e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4a1895,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x19ba2e}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x4548a1}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x1efd25}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x512720{[_0x5bb4e2(0x12b)]=[];[_0x5bb4e2(0x128)];[_0x5bb4e2(0x12a)];[_0x5bb4e2(0x172)];[_0x5bb4e2(0x13f)];[_0x5bb4e2(0x129)];[_0x5bb4e2(0x15f)];constructor(_0x2c2875,_0x37663f){const _0x408f53=_0x5bb4e2;super(_0x2c2875),this[_0x408f53(0x128)]=this[_0x408f53(0x16b)](_0x2c2875,{'bodyCollection':_0x37663f[_0x408f53(0x147)],'searchInputVisibleFrom':_0x37663f[_0x408f53(0x132)]}),this[_0x408f53(0x12a)]=this[_0x408f53(0x131)](_0x2c2875),this[_0x408f53(0x172)]=this[_0x408f53(0x171)](_0x2c2875),this[_0x408f53(0x13f)]=this[_0x408f53(0x142)](_0x2c2875),this[_0x408f53(0x129)]=this[_0x408f53(0x12c)](_0x2c2875),this[_0x408f53(0x15f)]=!0x1,this[_0x408f53(0x12a)][_0x408f53(0x164)](_0x408f53(0x149))['to'](this),this[_0x408f53(0x13f)][_0x408f53(0x164)](_0x408f53(0x170))['to'](this),this[_0x408f53(0x172)][_0x408f53(0x164)](_0x408f53(0x161))['to'](this),this[_0x408f53(0x172)][_0x408f53(0x164)](_0x408f53(0x139))['to'](this),this[_0x408f53(0x172)][_0x408f53(0x164)](_0x408f53(0x135))['to'](this),this[_0x408f53(0x128)][_0x408f53(0x164)](..._0x19ba2e)['to'](this),this[_0x408f53(0x167)](_0x408f53(0x15d),!0x0),this[_0x408f53(0x167)](_0x408f53(0x152),!0x1);const _0x5db284=this[_0x408f53(0x154)];this[_0x408f53(0x15e)]({'tag':_0x408f53(0x169),'attributes':{'class':['ck',_0x408f53(0x16e),_0x5db284['if'](_0x408f53(0x152),_0x408f53(0x156))]},'children':[{'tag':_0x408f53(0x14b),'attributes':{'class':[_0x5db284['if'](_0x408f53(0x13a),_0x408f53(0x14d),_0x11aa6c=>_0x11aa6c||!this[_0x408f53(0x15d)]),_0x5db284['if'](_0x408f53(0x15d),_0x408f53(0x14d),_0x2f0c34=>!_0x2f0c34||this[_0x408f53(0x13a)])]},'children':[this[_0x408f53(0x128)],this[_0x408f53(0x12a)],this[_0x408f53(0x172)]]},{'tag':_0x408f53(0x14b),'attributes':{'class':[_0x5db284['if'](_0x408f53(0x13a),_0x408f53(0x14d),_0x15e553=>!_0x15e553)]},'children':[this[_0x408f53(0x13f)]]},{'tag':_0x408f53(0x14b),'attributes':{'class':[_0x5db284['if'](_0x408f53(0x15d),_0x408f53(0x14d),_0x436d76=>_0x436d76)]},'children':[this[_0x408f53(0x129)]]}]}),_0x45b606({'emitter':this[_0x408f53(0x12a)],'activator':()=>this[_0x408f53(0x13a)],'contextElements':()=>[this[_0x408f53(0x137)]],'callback':()=>{const _0x51d6df=_0x408f53;this[_0x51d6df(0x15f)]=!0x1;}}),this['on'](_0x408f53(0x13c),this[_0x408f53(0x166)],{'priority':_0x408f53(0x133)});}[_0x5bb4e2(0x16b)](_0x450036,_0x5c2668){return new _0x4a1895(_0x450036,_0x5c2668);}[_0x5bb4e2(0x131)](_0x46021d){const _0x5646a6=_0x5bb4e2;return new _0x4a3120(_0x46021d,this[_0x5646a6(0x128)][_0x5646a6(0x159)]);}[_0x5bb4e2(0x171)](_0x293180){return new _0x5ee37e(_0x293180);}[_0x5bb4e2(0x142)](_0x19a561){return new _0x4548a1(_0x19a561);}[_0x5bb4e2(0x12c)](_0x13bcfb){const _0x72dadd=_0x5bb4e2,_0x15de7f=new gs(_0x13bcfb);return _0x15de7f[_0x72dadd(0x164)](_0x72dadd(0x157))['to'](this),_0x15de7f;}[_0x5bb4e2(0x166)](_0x41787a,_0xcdbe88,_0x4eccf9){const _0x5aa976=_0x5bb4e2;_0x4eccf9?this[_0x5aa976(0x15f)]=!0x0:this[_0x5aa976(0x15f)]&&this[_0x5aa976(0x12a)][_0x5aa976(0x130)]();}[_0x5bb4e2(0x148)](_0x55950e,_0x3fbde4){const _0x21c2aa=_0x5bb4e2;this[_0x21c2aa(0x128)][_0x21c2aa(0x148)](_0x55950e,_0x3fbde4);}[_0x5bb4e2(0x140)](_0x210104){const _0x59c203=_0x5bb4e2;this[_0x59c203(0x128)][_0x59c203(0x140)](_0x210104);}[_0x5bb4e2(0x16f)](_0x213046,_0x106585){const _0x53579e=_0x5bb4e2;this[_0x53579e(0x128)][_0x53579e(0x16f)](_0x213046,_0x106585);}[_0x5bb4e2(0x146)](_0x113218){const _0x2aa550=_0x5bb4e2;this[_0x2aa550(0x12a)][_0x2aa550(0x146)](_0x113218);}[_0x5bb4e2(0x13e)](_0x2f1fdd){const _0x11719c=_0x5bb4e2;this[_0x11719c(0x128)][_0x11719c(0x13e)](_0x2f1fdd);}[_0x5bb4e2(0x15a)](){const _0x53900a=_0x5bb4e2;this[_0x53900a(0x128)][_0x53900a(0x175)]();}[_0x5bb4e2(0x136)](){const _0x4fd104=_0x5bb4e2;this[_0x4fd104(0x128)][_0x4fd104(0x134)]();}[_0x5bb4e2(0x16d)](_0x180119,_0x23142b,_0x52666a){const _0x30a24e=_0x5bb4e2;this[_0x30a24e(0x128)][_0x30a24e(0x16d)](_0x180119,_0x23142b,_0x52666a);}[_0x5bb4e2(0x143)](_0x3a3cf0){const _0x369392=_0x5bb4e2;this[_0x369392(0x172)][_0x369392(0x143)](_0x3a3cf0);}[_0x5bb4e2(0x145)](_0x3cd451){const _0x22e1ab=_0x5bb4e2;this[_0x22e1ab(0x172)][_0x22e1ab(0x145)](_0x3cd451);}[_0x5bb4e2(0x16c)](){const _0x2128e2=_0x5bb4e2;this[_0x2128e2(0x12a)][_0x2128e2(0x151)]();}[_0x5bb4e2(0x160)](_0x134ebe){const _0x4fad88=_0x5bb4e2;this[_0x4fad88(0x128)][_0x4fad88(0x160)](_0x134ebe);}[_0x5bb4e2(0x127)](_0x2645aa){const _0x10e971=_0x5bb4e2;this[_0x10e971(0x12a)][_0x10e971(0x15c)](_0x2645aa);}[_0x5bb4e2(0x14a)](_0x116264,_0x40d48d){const _0x3fc326=_0x5bb4e2;this[_0x3fc326(0x12b)]=_0x116264,this[_0x3fc326(0x172)][_0x3fc326(0x14a)](_0x116264,_0x40d48d);}[_0x5bb4e2(0x173)](_0x1d01a8){const _0x16d629=_0x5bb4e2;(_0x1d01a8?this[_0x16d629(0x12b)][_0x16d629(0x126)](_0x59636d=>_0x59636d['id']===_0x1d01a8['id']):null)?(this[_0x16d629(0x15d)]=!0x0,this[_0x16d629(0x172)][_0x16d629(0x173)](_0x1d01a8)):_0x1d01a8?.['id'][_0x16d629(0x141)](_0x16d629(0x14e))?(this[_0x16d629(0x15d)]=!0x0,this[_0x16d629(0x172)][_0x16d629(0x173)](this[_0x16d629(0x12b)][0x0])):this[_0x16d629(0x15d)]=!0x1;}[_0x5bb4e2(0x163)](){const _0x4babf9=_0x5bb4e2;this[_0x4babf9(0x172)][_0x4babf9(0x163)]();}[_0x5bb4e2(0x165)](_0x20f3be){const _0x315c02=_0x5bb4e2;this[_0x315c02(0x172)][_0x315c02(0x165)](_0x20f3be);}[_0x5bb4e2(0x144)](_0x4dff09,_0x618a0f,_0x1190e9,_0x139d6c){const _0x27ac9e=_0x5bb4e2;this[_0x27ac9e(0x128)][_0x27ac9e(0x144)](_0x4dff09,_0x618a0f,_0x1190e9,_0x139d6c);}[_0x5bb4e2(0x150)](_0x4fac90){const _0x562768=_0x5bb4e2;this[_0x562768(0x128)][_0x562768(0x150)](_0x4fac90);}[_0x5bb4e2(0x13b)](){const _0x449020=_0x5bb4e2;this[_0x449020(0x12a)][_0x449020(0x130)]();}}class gs extends _0x512720{constructor(_0xd51fef){const _0x1dc37f=_0x5bb4e2;super(_0xd51fef);const _0x11f910=new _0x1190cf(_0xd51fef);_0x11f910[_0x1dc37f(0x167)]({'label':_0x1efd25(this[_0x1dc37f(0x12d)],_0x1dc37f(0x138)),'withText':!0x0,'class':[_0x1dc37f(0x162)],'tooltip':''}),_0x11f910[_0x1dc37f(0x164)](_0x1dc37f(0x174))['to'](this,_0x1dc37f(0x157)),this[_0x1dc37f(0x15e)]({'tag':_0x1dc37f(0x14b),'attributes':{'class':['ck',_0x1dc37f(0x15b)]},'children':[{'tag':'p','children':[{'text':_0x1efd25(this[_0x1dc37f(0x12d)],_0x1dc37f(0x155))+'\x20'},_0x11f910]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3364(){const _0x4c7e9d=['createCollection','set','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','markItemAsDone','_createSkeletonLoader','getItemById','locale','3556112KJWPhj','updateSuggestionItem','stop','includes','ck-ai-chat__loader','scrollManager','ai-chat-feed-view-item-not-a-reply-item','updateWebSources','updateReplyItem','isVisible','ai-suggestion-reply','ck-ai-chat__feed__items','start','removeItem','delegate','span','map','aiFeed','3219tsTBMa','_setupTemplate','toggleLoadingSkeleton','user-message','loadingMessage','addItem','extendTemplate','scrollToSuggestion','_createFeedLoader','ck-ai-chat__loader-text','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-hidden','options','find','setTemplate','add','render','ai-chat-feed-view-item-not-found','getItemIds','_createFeedItems','div','bind','remove','24900282NnhhZZ','isLoadingSkeletonVisible','1140881FCkTce','185muNItO','584whZNAP','_createTemplateChildren','ai-chat-feed-view-item-not-a-suggestion-item','markAsDone','bindTemplate','ai-reply','updateSuggestionPartState','isPending','stopAutoScroll','_bodyCollection','116780rlIrwm','updateSources','interaction-header','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','529020VqJGre','element','isTrackChangesOn','updatePartState','children','_createLoaderChildren','ck-ai-chat__feed','setLoadingMessage','updateContent','18RyowVU','getPartView','clear','143940zDycrC','destroy','171HTrpZQ','startAutoScroll'];_0x3364=function(){return _0x4c7e9d;};return _0x3364();}const _0xfed7f4=_0x490e;(function(_0x555dfe,_0x2fb4dc){const _0x117ec0=_0x490e,_0x1e9f2a=_0x555dfe();while(!![]){try{const _0x5e44b8=-parseInt(_0x117ec0(0x152))/0x1+parseInt(_0x117ec0(0x144))/0x2*(-parseInt(_0x117ec0(0x129))/0x3)+-parseInt(_0x117ec0(0x14e))/0x4*(parseInt(_0x117ec0(0x143))/0x5)+parseInt(_0x117ec0(0x15b))/0x6*(-parseInt(_0x117ec0(0x142))/0x7)+parseInt(_0x117ec0(0x117))/0x8+-parseInt(_0x117ec0(0x10e))/0x9*(-parseInt(_0x117ec0(0x10c))/0xa)+parseInt(_0x117ec0(0x140))/0xb;if(_0x5e44b8===_0x2fb4dc)break;else _0x1e9f2a['push'](_0x1e9f2a['shift']());}catch(_0x19a310){_0x1e9f2a['push'](_0x1e9f2a['shift']());}}}(_0x3364,0x8b332));import{CKEditorError as _0x4b704c,logWarning as _0x534978,scrollViewportToShowTarget as _0x557f03}from'ckeditor5/src/utils.js';import{View as _0x229f65}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5e7de4}from'../utils/eventnames.js';function _0x490e(_0x1d6db5,_0x20f5b2){const _0x336443=_0x3364();return _0x490e=function(_0x490e58,_0x221a7a){_0x490e58=_0x490e58-0x10a;let _0x52bb5e=_0x336443[_0x490e58];return _0x52bb5e;},_0x490e(_0x1d6db5,_0x20f5b2);}import{AIChatFeedSuggestionItemView as _0x4904c6}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0xd47fa4}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x31ee68}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x3cf693}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x1fb344}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x402792}from'../utils/scrollmanager.js';import{AISkeletonView as _0x1a5282,SKELETON_DEFINITIONS as _0xbc816b}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x19aae9}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x229f65{[_0xfed7f4(0x156)];[_0xfed7f4(0x11c)];[_0xfed7f4(0x14d)];constructor(_0x7918f5,_0x46bcad){const _0x487029=_0xfed7f4;super(_0x7918f5),this[_0x487029(0x14d)]=_0x46bcad,this[_0x487029(0x111)](_0x487029(0x14b),!0x1),this[_0x487029(0x111)](_0x487029(0x12d),''),this[_0x487029(0x111)](_0x487029(0x141),!0x1),this[_0x487029(0x111)](_0x487029(0x154),!0x1),this[_0x487029(0x156)]=this[_0x487029(0x110)](),this[_0x487029(0x156)][_0x487029(0x125)](..._0x5e7de4)['to'](this),this[_0x487029(0x12a)]();}[_0xfed7f4(0x139)](){const _0x145614=_0xfed7f4;super[_0x145614(0x139)](),this[_0x145614(0x11c)]=new _0x402792(this[_0x145614(0x153)]);}[_0xfed7f4(0x10d)](){const _0x147ab0=_0xfed7f4;super[_0x147ab0(0x10d)](),this[_0x147ab0(0x11c)][_0x147ab0(0x10d)]();}[_0xfed7f4(0x10b)](){const _0x17f988=_0xfed7f4;this[_0x17f988(0x156)][_0x17f988(0x10b)]();}[_0xfed7f4(0x12e)](_0x3437aa,_0x14f93f){const _0x5acd01=_0xfed7f4;let _0x2ac794;_0x5acd01(0x149)===_0x3437aa?_0x2ac794=new _0xd47fa4(this[_0x5acd01(0x116)],_0x14f93f):_0x5acd01(0x121)===_0x3437aa?(_0x2ac794=new _0x4904c6(this[_0x5acd01(0x116)],_0x14f93f),_0x2ac794[_0x5acd01(0x13e)](_0x5acd01(0x154))['to'](this,_0x5acd01(0x154))):_0x2ac794=_0x5acd01(0x12c)===_0x3437aa?new _0x31ee68(this[_0x5acd01(0x116)],_0x14f93f,this[_0x5acd01(0x14d)]):_0x5acd01(0x150)===_0x3437aa?new _0x1fb344(this[_0x5acd01(0x116)],_0x14f93f):new _0x3cf693(_0x14f93f),this[_0x5acd01(0x156)][_0x5acd01(0x138)](_0x2ac794);}async[_0xfed7f4(0x11f)]({id:_0x5cc4fe,parsedContent:_0x3efb8b,renderingStrategy:_0x51d4ee,abortSignal:_0x1fddd7}){const _0x595000=_0xfed7f4,_0x461222=this[_0x595000(0x115)](_0x5cc4fe);if(!(_0x461222 instanceof _0xd47fa4))throw new _0x4b704c(_0x595000(0x11d),null,{'itemView':_0x461222,'id':_0x5cc4fe,'parsedContent':_0x3efb8b});await _0x461222[_0x595000(0x15a)]({'parsedContent':_0x3efb8b,'renderingStrategy':_0x51d4ee,'abortSignal':_0x1fddd7});}async[_0xfed7f4(0x11e)](_0x2c51a4,_0x540365){const _0xe93b26=_0xfed7f4,_0xaf262d=this[_0xe93b26(0x115)](_0x2c51a4);if(_0xaf262d instanceof _0x4904c6)_0xaf262d[_0xe93b26(0x14f)](_0x540365);else{if(!(_0xaf262d instanceof _0xd47fa4))throw new _0x4b704c(_0xe93b26(0x112),null,{'itemView':_0xaf262d,'id':_0x2c51a4,'sources':_0x540365});_0xaf262d[_0xe93b26(0x14f)](_0x540365);}}async[_0xfed7f4(0x118)]({id:_0x4012d9,parts:_0x11437b,renderingStrategy:_0x102f92,abortSignal:_0x527219}){const _0x2dc2b7=_0xfed7f4,_0x184012=this[_0x2dc2b7(0x115)](_0x4012d9);if(!(_0x184012 instanceof _0x4904c6))throw new _0x4b704c(_0x2dc2b7(0x146),null,{'itemView':_0x184012,'id':_0x4012d9,'parts':_0x11437b});await _0x184012[_0x2dc2b7(0x15a)]({'parts':_0x11437b,'renderingStrategy':_0x102f92,'abortSignal':_0x527219});}[_0xfed7f4(0x14a)]({id:_0x18c115,index:_0x3416cf,state:_0x2e6e02}){const _0x3c6a24=_0xfed7f4,_0x4c7828=this[_0x3c6a24(0x115)](_0x18c115);if(!(_0x4c7828 instanceof _0x4904c6))throw new _0x4b704c(_0x3c6a24(0x146),this,{'id':_0x18c115});_0x4c7828[_0x3c6a24(0x155)](_0x3416cf,_0x2e6e02);}[_0xfed7f4(0x113)](_0x11a044){const _0x2cf011=_0xfed7f4;this[_0x2cf011(0x115)](_0x11a044)[_0x2cf011(0x147)]();}[_0xfed7f4(0x13b)](){const _0x1d039a=_0xfed7f4;return this[_0x1d039a(0x156)][_0x1d039a(0x127)](_0x1f33d0=>_0x1f33d0[_0x1d039a(0x135)]['id']);}[_0xfed7f4(0x124)](_0x14c8aa){const _0x467fe4=_0xfed7f4;this[_0x467fe4(0x156)][_0x467fe4(0x13f)](this[_0x467fe4(0x115)](_0x14c8aa));}[_0xfed7f4(0x130)](_0x37b895,_0x2bb8b7){const _0x5e59c9=_0xfed7f4,_0x18980c=this[_0x5e59c9(0x115)](_0x37b895);if(!(_0x18980c instanceof _0x4904c6))return void _0x534978(_0x5e59c9(0x151),{'replyId':_0x37b895,'partIndex':_0x2bb8b7});const _0x5edfec=_0x18980c[_0x5e59c9(0x10a)](_0x2bb8b7);_0x5edfec?_0x557f03({'target':_0x5edfec[_0x5e59c9(0x153)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x534978(_0x5e59c9(0x133),{'replyId':_0x37b895,'partIndex':_0x2bb8b7});}[_0xfed7f4(0x12a)](){const _0x3e951d=_0xfed7f4;this[_0x3e951d(0x137)]({'tag':_0x3e951d(0x13d),'attributes':{'class':['ck',_0x3e951d(0x158)]},'children':this[_0x3e951d(0x145)]()});}[_0xfed7f4(0x145)](){const _0x5db69a=_0xfed7f4,_0x58ffd0=this[_0x5db69a(0x114)]();return[this[_0x5db69a(0x13c)](),_0x58ffd0,this[_0x5db69a(0x131)]()];}[_0xfed7f4(0x114)](){const _0x50174e=_0xfed7f4,_0x107cba=new _0x1a5282(this[_0x50174e(0x116)],_0xbc816b[_0x50174e(0x128)]);return _0x107cba[_0x50174e(0x12f)]({'attributes':{'class':[this[_0x50174e(0x148)]['if'](_0x50174e(0x141),_0x50174e(0x134),_0x1647ec=>!_0x1647ec)]}}),_0x107cba;}[_0xfed7f4(0x13c)](){const _0x10c797=_0xfed7f4,_0x26878b=new _0x229f65(this[_0x10c797(0x116)]);return _0x26878b[_0x10c797(0x137)]({'tag':_0x10c797(0x13d),'attributes':{'class':['ck',_0x10c797(0x122),this[_0x10c797(0x148)]['if'](_0x10c797(0x141),_0x10c797(0x134))]},'children':this[_0x10c797(0x156)]}),_0x26878b;}[_0xfed7f4(0x131)](){const _0x2a73bd=_0xfed7f4,_0x39c65e=new _0x229f65(this[_0x2a73bd(0x116)]);return _0x39c65e[_0x2a73bd(0x137)]({'tag':_0x2a73bd(0x13d),'attributes':{'class':['ck',_0x2a73bd(0x11b),this[_0x2a73bd(0x148)]['if'](_0x2a73bd(0x14b),_0x2a73bd(0x134),_0x135048=>!_0x135048)]},'children':this[_0x2a73bd(0x157)]()}),_0x39c65e;}[_0xfed7f4(0x157)](){const _0x3c788c=_0xfed7f4,_0x41c8b0=new _0x19aae9();return _0x41c8b0[_0x3c788c(0x120)]=!0x0,[_0x41c8b0,{'tag':_0x3c788c(0x126),'attributes':{'class':['ck',_0x3c788c(0x132)]},'children':[{'text':this[_0x3c788c(0x148)]['to'](_0x3c788c(0x12d))}]}];}[_0xfed7f4(0x115)](_0x385e7e){const _0x31aff0=_0xfed7f4,_0x5ebfd0=this[_0x31aff0(0x156)][_0x31aff0(0x136)](_0x3615c7=>_0x3615c7[_0x31aff0(0x135)]['id'][_0x31aff0(0x11a)](_0x385e7e));if(!_0x5ebfd0)throw new _0x4b704c(_0x31aff0(0x13a),this,{'id':_0x385e7e});return _0x5ebfd0;}[_0xfed7f4(0x159)](_0x5558c9){const _0x2ac342=_0xfed7f4;this[_0x2ac342(0x111)](_0x2ac342(0x12d),_0x5558c9);}[_0xfed7f4(0x12b)](_0x3bfd3c){const _0x231537=_0xfed7f4;this[_0x231537(0x111)](_0x231537(0x141),_0x3bfd3c);}[_0xfed7f4(0x10f)](){const _0x21d05d=_0xfed7f4;this[_0x21d05d(0x11c)][_0x21d05d(0x123)]();}[_0xfed7f4(0x14c)](){const _0x1e3b5d=_0xfed7f4;this[_0x1e3b5d(0x11c)][_0x1e3b5d(0x119)]();}}
23
+ const _0x41ba10=_0x2e1a;(function(_0x55cd11,_0x4da3df){const _0x12dda4=_0x2e1a,_0x549d7d=_0x55cd11();while(!![]){try{const _0x2f255c=-parseInt(_0x12dda4(0x137))/0x1*(-parseInt(_0x12dda4(0x149))/0x2)+parseInt(_0x12dda4(0x13a))/0x3+-parseInt(_0x12dda4(0x118))/0x4+parseInt(_0x12dda4(0x14b))/0x5*(parseInt(_0x12dda4(0x14f))/0x6)+-parseInt(_0x12dda4(0x107))/0x7*(parseInt(_0x12dda4(0x142))/0x8)+-parseInt(_0x12dda4(0x133))/0x9*(parseInt(_0x12dda4(0x14e))/0xa)+-parseInt(_0x12dda4(0x13c))/0xb;if(_0x2f255c===_0x4da3df)break;else _0x549d7d['push'](_0x549d7d['shift']());}catch(_0x1adeb8){_0x549d7d['push'](_0x549d7d['shift']());}}}(_0x39a0,0xd021c));function _0x39a0(){const _0x430c64=['extendTemplate','isLoadingSkeletonVisible','ai-chat-feed-view-item-not-found','map','setTemplate','destroy','updateContent','ck-hidden','clear','start','markAsDone','_createFeedItems','div','aiFeed','1753668VsAvzJ','ai-reply','interaction-header','span','89esPVAG','delegate','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','4376154UleDNy','addItem','17781467nDUFaw','removeItem','_createSkeletonLoader','_createFeedLoader','_setupTemplate','user-message','4602424aymfTi','ck-ai-chat__loader','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','updateSuggestionItem','markItemAsDone','remove','17230JWkRFL','updateSources','4715EObVgU','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','locale','20ZprVnJ','9840oitSBp','options','isPending','updateSuggestionPartState','ai-chat-feed-view-item-not-a-suggestion-item','updateWebSources','find','bindTemplate','ck-ai-chat__feed__items','startAutoScroll','7KURKQQ','getItemIds','scrollToSuggestion','getItemById','_createTemplateChildren','setLoadingMessage','scrollManager','updatePartState','render','stopAutoScroll','isTrackChangesOn','ck-ai-chat__loader-text','isVisible','getPartView','ai-chat-feed-view-item-not-a-reply-item','bind','_createLoaderChildren','1351844BKtKwO','includes','createCollection','_bodyCollection','loadingMessage','toggleLoadingSkeleton','element','children','add','updateReplyItem','stop','ck-ai-chat__feed','ai-suggestion-reply'];_0x39a0=function(){return _0x430c64;};return _0x39a0();}import{CKEditorError as _0x1b6116,logWarning as _0x4b9416,scrollViewportToShowTarget as _0x1a8ba5}from'ckeditor5/src/utils.js';import{View as _0x12a8a1}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x125173}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x4d23fc}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1eb8cd}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x105067}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x15ba44}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x83b32e}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x43b11d}from'../utils/scrollmanager.js';import{AISkeletonView as _0x4ce2e7,SKELETON_DEFINITIONS as _0x5c4277}from'../../aicore/ui/aiskeleton.js';function _0x2e1a(_0x1c4c03,_0x34d914){const _0x39a08f=_0x39a0();return _0x2e1a=function(_0x2e1a26,_0x445f6a){_0x2e1a26=_0x2e1a26-0x103;let _0x598bed=_0x39a08f[_0x2e1a26];return _0x598bed;},_0x2e1a(_0x1c4c03,_0x34d914);}import{AISpinnerView as _0x15cd35}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x12a8a1{[_0x41ba10(0x11f)];[_0x41ba10(0x10d)];[_0x41ba10(0x11b)];constructor(_0x4409f8,_0x82d280){const _0xe7de78=_0x41ba10;super(_0x4409f8),this[_0xe7de78(0x11b)]=_0x82d280,this[_0xe7de78(0x144)](_0xe7de78(0x151),!0x1),this[_0xe7de78(0x144)](_0xe7de78(0x11c),''),this[_0xe7de78(0x144)](_0xe7de78(0x126),!0x1),this[_0xe7de78(0x144)](_0xe7de78(0x111),!0x1),this[_0xe7de78(0x11f)]=this[_0xe7de78(0x11a)](),this[_0xe7de78(0x11f)][_0xe7de78(0x138)](..._0x125173)['to'](this),this[_0xe7de78(0x140)]();}[_0x41ba10(0x10f)](){const _0x5bdcb5=_0x41ba10;super[_0x5bdcb5(0x10f)](),this[_0x5bdcb5(0x10d)]=new _0x43b11d(this[_0x5bdcb5(0x11e)]);}[_0x41ba10(0x12a)](){const _0x34bffc=_0x41ba10;super[_0x34bffc(0x12a)](),this[_0x34bffc(0x10d)][_0x34bffc(0x12a)]();}[_0x41ba10(0x12d)](){const _0x75e1b7=_0x41ba10;this[_0x75e1b7(0x11f)][_0x75e1b7(0x12d)]();}[_0x41ba10(0x13b)](_0x30fe06,_0x1287f1){const _0x4941bb=_0x41ba10;let _0x19846d;_0x4941bb(0x134)===_0x30fe06?_0x19846d=new _0x1eb8cd(this[_0x4941bb(0x14d)],_0x1287f1):_0x4941bb(0x124)===_0x30fe06?(_0x19846d=new _0x4d23fc(this[_0x4941bb(0x14d)],_0x1287f1),_0x19846d[_0x4941bb(0x116)](_0x4941bb(0x111))['to'](this,_0x4941bb(0x111))):_0x19846d=_0x4941bb(0x141)===_0x30fe06?new _0x105067(this[_0x4941bb(0x14d)],_0x1287f1,this[_0x4941bb(0x11b)]):_0x4941bb(0x135)===_0x30fe06?new _0x83b32e(this[_0x4941bb(0x14d)],_0x1287f1):new _0x15ba44(_0x1287f1),this[_0x4941bb(0x11f)][_0x4941bb(0x120)](_0x19846d);}async[_0x41ba10(0x121)]({id:_0x1225ba,parsedContent:_0x32cc66,renderingStrategy:_0x21d61a,abortSignal:_0x3764cc}){const _0x1c6845=_0x41ba10,_0x1e6827=this[_0x1c6845(0x10a)](_0x1225ba);if(!(_0x1e6827 instanceof _0x1eb8cd))throw new _0x1b6116(_0x1c6845(0x115),null,{'itemView':_0x1e6827,'id':_0x1225ba,'parsedContent':_0x32cc66});await _0x1e6827[_0x1c6845(0x12b)]({'parsedContent':_0x32cc66,'renderingStrategy':_0x21d61a,'abortSignal':_0x3764cc});}async[_0x41ba10(0x154)](_0x131d51,_0x5ab919){const _0x401a4d=_0x41ba10,_0x47339d=this[_0x401a4d(0x10a)](_0x131d51);if(_0x47339d instanceof _0x4d23fc)_0x47339d[_0x401a4d(0x14a)](_0x5ab919);else{if(!(_0x47339d instanceof _0x1eb8cd))throw new _0x1b6116(_0x401a4d(0x139),null,{'itemView':_0x47339d,'id':_0x131d51,'sources':_0x5ab919});_0x47339d[_0x401a4d(0x14a)](_0x5ab919);}}async[_0x41ba10(0x146)]({id:_0x16ee74,parts:_0x20afd1,renderingStrategy:_0x26a362,abortSignal:_0x30fc43}){const _0x2f48b0=_0x41ba10,_0x593dcd=this[_0x2f48b0(0x10a)](_0x16ee74);if(!(_0x593dcd instanceof _0x4d23fc))throw new _0x1b6116(_0x2f48b0(0x153),null,{'itemView':_0x593dcd,'id':_0x16ee74,'parts':_0x20afd1});await _0x593dcd[_0x2f48b0(0x12b)]({'parts':_0x20afd1,'renderingStrategy':_0x26a362,'abortSignal':_0x30fc43});}[_0x41ba10(0x152)]({id:_0x40be1a,index:_0x3a69e9,state:_0x1ff6eb}){const _0x1f6834=_0x41ba10,_0x2d4342=this[_0x1f6834(0x10a)](_0x40be1a);if(!(_0x2d4342 instanceof _0x4d23fc))throw new _0x1b6116(_0x1f6834(0x153),this,{'id':_0x40be1a});_0x2d4342[_0x1f6834(0x10e)](_0x3a69e9,_0x1ff6eb);}[_0x41ba10(0x147)](_0x1e06e7){const _0x48a673=_0x41ba10;this[_0x48a673(0x10a)](_0x1e06e7)[_0x48a673(0x12f)]();}[_0x41ba10(0x108)](){const _0x3e9c96=_0x41ba10;return this[_0x3e9c96(0x11f)][_0x3e9c96(0x128)](_0x5f1dc0=>_0x5f1dc0[_0x3e9c96(0x150)]['id']);}[_0x41ba10(0x13d)](_0x1d86c1){const _0x132b67=_0x41ba10;this[_0x132b67(0x11f)][_0x132b67(0x148)](this[_0x132b67(0x10a)](_0x1d86c1));}[_0x41ba10(0x109)](_0x35997a,_0xc5389e){const _0x3248c0=_0x41ba10,_0x3c3ec1=this[_0x3248c0(0x10a)](_0x35997a);if(!(_0x3c3ec1 instanceof _0x4d23fc))return void _0x4b9416(_0x3248c0(0x145),{'replyId':_0x35997a,'partIndex':_0xc5389e});const _0x67e328=_0x3c3ec1[_0x3248c0(0x114)](_0xc5389e);_0x67e328?_0x1a8ba5({'target':_0x67e328[_0x3248c0(0x11e)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x4b9416(_0x3248c0(0x14c),{'replyId':_0x35997a,'partIndex':_0xc5389e});}[_0x41ba10(0x140)](){const _0x3599e7=_0x41ba10;this[_0x3599e7(0x129)]({'tag':_0x3599e7(0x131),'attributes':{'class':['ck',_0x3599e7(0x123)]},'children':this[_0x3599e7(0x10b)]()});}[_0x41ba10(0x10b)](){const _0x4b4763=_0x41ba10,_0x4560d9=this[_0x4b4763(0x13e)]();return[this[_0x4b4763(0x130)](),_0x4560d9,this[_0x4b4763(0x13f)]()];}[_0x41ba10(0x13e)](){const _0x2d704a=_0x41ba10,_0x4517a3=new _0x4ce2e7(this[_0x2d704a(0x14d)],_0x5c4277[_0x2d704a(0x132)]);return _0x4517a3[_0x2d704a(0x125)]({'attributes':{'class':[this[_0x2d704a(0x104)]['if'](_0x2d704a(0x126),_0x2d704a(0x12c),_0x159697=>!_0x159697)]}}),_0x4517a3;}[_0x41ba10(0x130)](){const _0x4e924b=_0x41ba10,_0x5ab376=new _0x12a8a1(this[_0x4e924b(0x14d)]);return _0x5ab376[_0x4e924b(0x129)]({'tag':_0x4e924b(0x131),'attributes':{'class':['ck',_0x4e924b(0x105),this[_0x4e924b(0x104)]['if'](_0x4e924b(0x126),_0x4e924b(0x12c))]},'children':this[_0x4e924b(0x11f)]}),_0x5ab376;}[_0x41ba10(0x13f)](){const _0x487a13=_0x41ba10,_0xdfc592=new _0x12a8a1(this[_0x487a13(0x14d)]);return _0xdfc592[_0x487a13(0x129)]({'tag':_0x487a13(0x131),'attributes':{'class':['ck',_0x487a13(0x143),this[_0x487a13(0x104)]['if'](_0x487a13(0x151),_0x487a13(0x12c),_0x48c8f9=>!_0x48c8f9)]},'children':this[_0x487a13(0x117)]()}),_0xdfc592;}[_0x41ba10(0x117)](){const _0x25df19=_0x41ba10,_0xae35be=new _0x15cd35();return _0xae35be[_0x25df19(0x113)]=!0x0,[_0xae35be,{'tag':_0x25df19(0x136),'attributes':{'class':['ck',_0x25df19(0x112)]},'children':[{'text':this[_0x25df19(0x104)]['to'](_0x25df19(0x11c))}]}];}[_0x41ba10(0x10a)](_0x4094c8){const _0x36cdb3=_0x41ba10,_0x1f6b42=this[_0x36cdb3(0x11f)][_0x36cdb3(0x103)](_0xe4cbd4=>_0xe4cbd4[_0x36cdb3(0x150)]['id'][_0x36cdb3(0x119)](_0x4094c8));if(!_0x1f6b42)throw new _0x1b6116(_0x36cdb3(0x127),this,{'id':_0x4094c8});return _0x1f6b42;}[_0x41ba10(0x10c)](_0x2a69ba){const _0x5afb73=_0x41ba10;this[_0x5afb73(0x144)](_0x5afb73(0x11c),_0x2a69ba);}[_0x41ba10(0x11d)](_0x57ae90){const _0x5a7951=_0x41ba10;this[_0x5a7951(0x144)](_0x5a7951(0x126),_0x57ae90);}[_0x41ba10(0x106)](){const _0x80875d=_0x41ba10;this[_0x80875d(0x10d)][_0x80875d(0x12e)]();}[_0x41ba10(0x110)](){const _0x4d37c6=_0x41ba10;this[_0x4d37c6(0x10d)][_0x4d37c6(0x122)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cb143=_0x4108;(function(_0x3fe67f,_0x5d931b){const _0x2fd376=_0x4108,_0x3de81b=_0x3fe67f();while(!![]){try{const _0x484078=-parseInt(_0x2fd376(0x9b))/0x1*(-parseInt(_0x2fd376(0xb2))/0x2)+parseInt(_0x2fd376(0xab))/0x3*(parseInt(_0x2fd376(0xb5))/0x4)+parseInt(_0x2fd376(0x9c))/0x5*(-parseInt(_0x2fd376(0xb1))/0x6)+-parseInt(_0x2fd376(0xa0))/0x7*(parseInt(_0x2fd376(0xaf))/0x8)+-parseInt(_0x2fd376(0xa5))/0x9*(-parseInt(_0x2fd376(0xb0))/0xa)+parseInt(_0x2fd376(0xa4))/0xb*(-parseInt(_0x2fd376(0xa7))/0xc)+-parseInt(_0x2fd376(0xae))/0xd*(parseInt(_0x2fd376(0x9f))/0xe);if(_0x484078===_0x5d931b)break;else _0x3de81b['push'](_0x3de81b['shift']());}catch(_0xa13654){_0x3de81b['push'](_0x3de81b['shift']());}}}(_0x8359,0x9c2b2));function _0x8359(){const _0x522793=['162974NfyNjD','68747catgak','AI_CHAT_LABEL_NEW_CHAT','fire','ck-ai-chat__start-conversation','363fpAsSH','75897apkhjm','locale','218292PVXojI','isMaximized','children','ck-ai-header\x20ck-ai-header_chat','3ZVZlYm','resizeButton','AI_CHAT_HEADING','689ybHyCh','8rnJxTA','570uqACix','1098QKKjMj','54602amLSMk','_createStartConversationButton','conversationStartButton','2710524CzEYGv','set','execute','34EPXSje','6005JEignH','startConversation','add'];_0x8359=function(){return _0x522793;};return _0x8359();}import{ButtonView as _0x52a307,FormHeaderView as _0x1e0bca}from'ckeditor5/src/ui.js';import{IconPlus as _0x469aac,IconAIChat as _0x38c79c}from'ckeditor5/src/icons.js';import{getTranslation as _0x347178}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1a29da}from'../../aicore/utils/createresizebutton.js';function _0x4108(_0x188c47,_0x46e309){const _0x835910=_0x8359();return _0x4108=function(_0x410843,_0x1c2fcc){_0x410843=_0x410843-0x99;let _0x300afa=_0x835910[_0x410843];return _0x300afa;},_0x4108(_0x188c47,_0x46e309);}export class AIChatHeaderView extends _0x1e0bca{[_0x4cb143(0xb4)];[_0x4cb143(0xac)];constructor(_0x566c0c,_0x311945){const _0x3d93ce=_0x4cb143;super(_0x566c0c,{'label':_0x347178(_0x566c0c,_0x3d93ce(0xad)),'class':_0x3d93ce(0xaa),'icon':_0x38c79c}),this[_0x3d93ce(0x99)](_0x3d93ce(0xa8),!0x1),this[_0x3d93ce(0xb4)]=this[_0x3d93ce(0xb3)](_0x566c0c),this[_0x3d93ce(0xa9)][_0x3d93ce(0x9e)](this[_0x3d93ce(0xb4)]),_0x311945&&(this[_0x3d93ce(0xac)]=_0x1a29da(_0x566c0c,this),this[_0x3d93ce(0xa9)][_0x3d93ce(0x9e)](this[_0x3d93ce(0xac)]));}[_0x4cb143(0xb3)](_0x15c595){const _0x196fea=_0x4cb143,_0x27ceee=new _0x52a307(_0x15c595);return _0x27ceee[_0x196fea(0x99)]({'label':_0x347178(this[_0x196fea(0xa6)],_0x196fea(0xa1)),'withText':!0x0,'icon':_0x469aac,'class':_0x196fea(0xa3)}),_0x27ceee['on'](_0x196fea(0x9a),()=>{const _0x111353=_0x196fea;this[_0x111353(0xa2)](_0x111353(0x9d));}),_0x27ceee;}}
23
+ const _0x3225f0=_0xa418;(function(_0x1196ef,_0x15039e){const _0x4d2ea6=_0xa418,_0x5aff61=_0x1196ef();while(!![]){try{const _0x545149=-parseInt(_0x4d2ea6(0xf1))/0x1+-parseInt(_0x4d2ea6(0xeb))/0x2+parseInt(_0x4d2ea6(0xea))/0x3*(parseInt(_0x4d2ea6(0xf2))/0x4)+parseInt(_0x4d2ea6(0xe0))/0x5+-parseInt(_0x4d2ea6(0xe8))/0x6*(parseInt(_0x4d2ea6(0xe2))/0x7)+parseInt(_0x4d2ea6(0xf4))/0x8*(parseInt(_0x4d2ea6(0xed))/0x9)+parseInt(_0x4d2ea6(0xf7))/0xa;if(_0x545149===_0x15039e)break;else _0x5aff61['push'](_0x5aff61['shift']());}catch(_0x1ee4ea){_0x5aff61['push'](_0x5aff61['shift']());}}}(_0x439c,0x7af16));function _0x439c(){const _0x11d2f7=['resizeButton','startConversation','fire','42OScWlx','set','141EPSozU','814772wRWAYZ','isMaximized','8469837xMYJBO','ck-ai-chat__start-conversation','_createStartConversationButton','conversationStartButton','702105LemsXs','31260YtJaTj','AI_CHAT_HEADING','8oLliRk','add','AI_CHAT_LABEL_NEW_CHAT','6056930wANROM','children','865665dBAhRv','locale','474159iDIiJL','ck-ai-header\x20ck-ai-header_chat','execute'];_0x439c=function(){return _0x11d2f7;};return _0x439c();}import{ButtonView as _0x2a0eed,FormHeaderView as _0x54720c}from'ckeditor5/src/ui.js';import{IconPlus as _0x3e99a5,IconAIChat as _0x168672}from'ckeditor5/src/icons.js';import{getTranslation as _0x64d84b}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x47d9b2}from'../../aicore/utils/createresizebutton.js';function _0xa418(_0x31e5b6,_0x1e6d7a){const _0x439cb=_0x439c();return _0xa418=function(_0xa418bc,_0x2cc227){_0xa418bc=_0xa418bc-0xdf;let _0x14dfc0=_0x439cb[_0xa418bc];return _0x14dfc0;},_0xa418(_0x31e5b6,_0x1e6d7a);}export class AIChatHeaderView extends _0x54720c{[_0x3225f0(0xf0)];[_0x3225f0(0xe5)];constructor(_0x585dfd,_0x152e1a){const _0x3c2d9a=_0x3225f0;super(_0x585dfd,{'label':_0x64d84b(_0x585dfd,_0x3c2d9a(0xf3)),'class':_0x3c2d9a(0xe3),'icon':_0x168672}),this[_0x3c2d9a(0xe9)](_0x3c2d9a(0xec),!0x1),this[_0x3c2d9a(0xf0)]=this[_0x3c2d9a(0xef)](_0x585dfd),this[_0x3c2d9a(0xdf)][_0x3c2d9a(0xf5)](this[_0x3c2d9a(0xf0)]),_0x152e1a&&(this[_0x3c2d9a(0xe5)]=_0x47d9b2(_0x585dfd,this),this[_0x3c2d9a(0xdf)][_0x3c2d9a(0xf5)](this[_0x3c2d9a(0xe5)]));}[_0x3225f0(0xef)](_0x4d03d4){const _0x7a0a3f=_0x3225f0,_0x4680a0=new _0x2a0eed(_0x4d03d4);return _0x4680a0[_0x7a0a3f(0xe9)]({'label':_0x64d84b(this[_0x7a0a3f(0xe1)],_0x7a0a3f(0xf6)),'withText':!0x0,'icon':_0x3e99a5,'class':_0x7a0a3f(0xee)}),_0x4680a0['on'](_0x7a0a3f(0xe4),()=>{const _0x160998=_0x7a0a3f;this[_0x160998(0xe7)](_0x160998(0xe6));}),_0x4680a0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4aaa48=_0xba50;(function(_0x383d9a,_0x335b57){var _0x5b5962=_0xba50,_0x53def4=_0x383d9a();while(!![]){try{var _0x266a11=parseInt(_0x5b5962(0x128))/0x1+parseInt(_0x5b5962(0x121))/0x2*(-parseInt(_0x5b5962(0x13d))/0x3)+-parseInt(_0x5b5962(0x124))/0x4*(-parseInt(_0x5b5962(0x123))/0x5)+parseInt(_0x5b5962(0x135))/0x6*(parseInt(_0x5b5962(0x13a))/0x7)+-parseInt(_0x5b5962(0x12b))/0x8+parseInt(_0x5b5962(0x12c))/0x9*(parseInt(_0x5b5962(0x12a))/0xa)+parseInt(_0x5b5962(0x127))/0xb*(-parseInt(_0x5b5962(0x136))/0xc);if(_0x266a11===_0x335b57)break;else _0x53def4['push'](_0x53def4['shift']());}catch(_0x5d97de){_0x53def4['push'](_0x53def4['shift']());}}}(_0x2aa4,0xd36ed));import{View as _0x328c6a,BodyCollection as _0x4a5a60}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x280f85}from'../utils/eventnames.js';function _0x2aa4(){var _0x5914ea=['1968gsCmHo','_bodyCollection','attachToDom','chatDisclaimer','539YqcypR','contextResourcesSearchInputVisibleFrom','uiLanguageDirection','324237leXigS','closeSourceResourceBalloon','ck-rounded-corners','6CSdiSt','detachFromDom','2315hKCAyN','3844lVKSVO','delegate','ck-ai-chat','48301nktsow','1062623IHdArl','destroy','70UuodZt','10781384zWDvrO','350334CWSTar','setTemplate','chatHeader','populateSourceResourceBalloon','div','showResizeButton','chatControls','ck-reset_all','chatFeed','115170rUOUcz'];_0x2aa4=function(){return _0x5914ea;};return _0x2aa4();}import{AIChatFeedView as _0x36a3fb}from'./aichatfeedview.js';import{AIChatControlsView as _0xdebddf}from'./aichatcontrolsview.js';function _0xba50(_0x908b5c,_0x489609){var _0x2aa4b6=_0x2aa4();return _0xba50=function(_0xba508f,_0x3f25a4){_0xba508f=_0xba508f-0x120;var _0x2005a9=_0x2aa4b6[_0xba508f];return _0x2005a9;},_0xba50(_0x908b5c,_0x489609);}import{AIChatHeaderView as _0x337c3b}from'./aichatheaderview.js';import{AIDisclaimerView as _0x331f99}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x328c6a{[_0x4aaa48(0x12e)];[_0x4aaa48(0x134)];[_0x4aaa48(0x132)];[_0x4aaa48(0x139)];[_0x4aaa48(0x137)];constructor(_0x39b66e,_0x4ac255){var _0x4b7638=_0x4aaa48;super(_0x39b66e),this[_0x4b7638(0x137)]=new _0x4a5a60(_0x39b66e),this[_0x4b7638(0x137)][_0x4b7638(0x138)](),this[_0x4b7638(0x12e)]=new _0x337c3b(_0x39b66e,_0x4ac255[_0x4b7638(0x131)]),this[_0x4b7638(0x12e)][_0x4b7638(0x125)](..._0x280f85)['to'](this),this[_0x4b7638(0x134)]=new _0x36a3fb(_0x39b66e,this[_0x4b7638(0x137)]),this[_0x4b7638(0x134)][_0x4b7638(0x125)](..._0x280f85)['to'](this),this[_0x4b7638(0x132)]=new _0xdebddf(_0x39b66e,{'bodyCollection':this[_0x4b7638(0x137)],'contextResourcesSearchInputVisibleFrom':_0x4ac255[_0x4b7638(0x13b)]}),this[_0x4b7638(0x132)][_0x4b7638(0x125)](..._0x280f85)['to'](this),this[_0x4b7638(0x139)]=new _0x331f99(_0x39b66e),this[_0x4b7638(0x12d)]({'tag':_0x4b7638(0x130),'attributes':{'class':['ck',_0x4b7638(0x133),_0x4b7638(0x126),_0x4b7638(0x120)],'dir':_0x39b66e[_0x4b7638(0x13c)]},'children':[this[_0x4b7638(0x12e)],this[_0x4b7638(0x134)],this[_0x4b7638(0x132)],this[_0x4b7638(0x139)]]});}[_0x4aaa48(0x12f)](_0x58f49a,_0x4e021e,_0x182653,_0x5a1ae9){var _0x19d45f=_0x4aaa48;this[_0x19d45f(0x132)][_0x19d45f(0x12f)](_0x58f49a,_0x4e021e,_0x182653,_0x5a1ae9);}[_0x4aaa48(0x13e)](_0x9c18e7){var _0x53fc74=_0x4aaa48;this[_0x53fc74(0x132)][_0x53fc74(0x13e)](_0x9c18e7);}[_0x4aaa48(0x129)](){var _0x332d9a=_0x4aaa48;this[_0x332d9a(0x137)][_0x332d9a(0x122)](),super[_0x332d9a(0x129)]();}}
23
+ var _0x19a2dc=_0x43b7;(function(_0x232053,_0x2eec9d){var _0x6c4fa9=_0x43b7,_0x241256=_0x232053();while(!![]){try{var _0x6623ff=parseInt(_0x6c4fa9(0xd5))/0x1+parseInt(_0x6c4fa9(0xda))/0x2+parseInt(_0x6c4fa9(0xc4))/0x3*(-parseInt(_0x6c4fa9(0xd8))/0x4)+parseInt(_0x6c4fa9(0xdb))/0x5+-parseInt(_0x6c4fa9(0xc5))/0x6+parseInt(_0x6c4fa9(0xd1))/0x7*(-parseInt(_0x6c4fa9(0xca))/0x8)+-parseInt(_0x6c4fa9(0xcc))/0x9;if(_0x6623ff===_0x2eec9d)break;else _0x241256['push'](_0x241256['shift']());}catch(_0x2d0e1a){_0x241256['push'](_0x241256['shift']());}}}(_0x559a,0xc1b49));import{View as _0x22da13,BodyCollection as _0x31e6a6}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1df0fa}from'../utils/eventnames.js';import{AIChatFeedView as _0x1b9685}from'./aichatfeedview.js';function _0x559a(){var _0x2d0e45=['attachToDom','destroy','233152cCNqxv','_bodyCollection','5115393vYCMdh','chatDisclaimer','div','setTemplate','ck-reset_all','28ugudnS','chatFeed','chatControls','showResizeButton','828356dxnrzN','detachFromDom','populateSourceResourceBalloon','58228wrkLTg','contextResourcesSearchInputVisibleFrom','2039102KhDTtM','178070PZwjQF','ck-rounded-corners','closeSourceResourceBalloon','delegate','uiLanguageDirection','39wpykmL','1295460rSungb','ck-ai-chat','chatHeader'];_0x559a=function(){return _0x2d0e45;};return _0x559a();}import{AIChatControlsView as _0x4fd109}from'./aichatcontrolsview.js';function _0x43b7(_0x298533,_0x5b10ba){var _0x559ae0=_0x559a();return _0x43b7=function(_0x43b72c,_0x2cf9b6){_0x43b72c=_0x43b72c-0xc2;var _0x4fe5df=_0x559ae0[_0x43b72c];return _0x4fe5df;},_0x43b7(_0x298533,_0x5b10ba);}import{AIChatHeaderView as _0x2293b3}from'./aichatheaderview.js';import{AIDisclaimerView as _0x13f0bb}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x22da13{[_0x19a2dc(0xc7)];[_0x19a2dc(0xd2)];[_0x19a2dc(0xd3)];[_0x19a2dc(0xcd)];[_0x19a2dc(0xcb)];constructor(_0x59b44d,_0xeb3186){var _0x51af4d=_0x19a2dc;super(_0x59b44d),this[_0x51af4d(0xcb)]=new _0x31e6a6(_0x59b44d),this[_0x51af4d(0xcb)][_0x51af4d(0xc8)](),this[_0x51af4d(0xc7)]=new _0x2293b3(_0x59b44d,_0xeb3186[_0x51af4d(0xd4)]),this[_0x51af4d(0xc7)][_0x51af4d(0xc2)](..._0x1df0fa)['to'](this),this[_0x51af4d(0xd2)]=new _0x1b9685(_0x59b44d,this[_0x51af4d(0xcb)]),this[_0x51af4d(0xd2)][_0x51af4d(0xc2)](..._0x1df0fa)['to'](this),this[_0x51af4d(0xd3)]=new _0x4fd109(_0x59b44d,{'bodyCollection':this[_0x51af4d(0xcb)],'contextResourcesSearchInputVisibleFrom':_0xeb3186[_0x51af4d(0xd9)]}),this[_0x51af4d(0xd3)][_0x51af4d(0xc2)](..._0x1df0fa)['to'](this),this[_0x51af4d(0xcd)]=new _0x13f0bb(_0x59b44d),this[_0x51af4d(0xcf)]({'tag':_0x51af4d(0xce),'attributes':{'class':['ck',_0x51af4d(0xd0),_0x51af4d(0xc6),_0x51af4d(0xdc)],'dir':_0x59b44d[_0x51af4d(0xc3)]},'children':[this[_0x51af4d(0xc7)],this[_0x51af4d(0xd2)],this[_0x51af4d(0xd3)],this[_0x51af4d(0xcd)]]});}[_0x19a2dc(0xd7)](_0x4a902a,_0x598c62,_0x364b48,_0x2cd466){var _0xf19426=_0x19a2dc;this[_0xf19426(0xd3)][_0xf19426(0xd7)](_0x4a902a,_0x598c62,_0x364b48,_0x2cd466);}[_0x19a2dc(0xdd)](_0x274bbb){var _0x114616=_0x19a2dc;this[_0x114616(0xd3)][_0x114616(0xdd)](_0x274bbb);}[_0x19a2dc(0xc9)](){var _0x116f53=_0x19a2dc;this[_0x116f53(0xcb)][_0x116f53(0xd6)](),super[_0x116f53(0xc9)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5d4c(_0x1f53a4,_0x1a43af){const _0xd0a18=_0xd0a1();return _0x5d4c=function(_0x5d4cd1,_0x408fde){_0x5d4cd1=_0x5d4cd1-0x6d;let _0x29bbff=_0xd0a18[_0x5d4cd1];return _0x29bbff;},_0x5d4c(_0x1f53a4,_0x1a43af);}function _0xd0a1(){const _0x355d76=['right','_pendingCalculation','.ck-ai-chat','_calculateOverflowInContainer','add','push','extendTemplate','410tcUiVU','visibility','-9999px','showBalloonPanel','set','toLowerCase','showMoreBalloon','innerHTML','_distributeChips','pin','_updateBalloonContent','tagName','controlsButton','_restoreAncestorVisibility','_createContainerElements','_repinBalloonPanel','left','innerWidth','position','showMoreButtonView','0px','visible','_intersectionObserver','appendChild','+\x201','ck-calculation-container','clientHeight','className','remove','hidden','style','classList','execute','render','_updateShowMoreButtonVisibility','createElement','element','_config','_applyOverflowResults','slice','top','maxVisibleRows','10332xMRccA','boxSizing','block\x20!important','disableAnimationOnEnter','display','300px','_updateOverflowUI','510972MAyQDb','offsetWidth','pointerEvents','children','innerHeight','getBoundingClientRect','_createMockButton','_createCalculationContainer','_isContainerVisible','showMoreButton','border-box','27126tukNin','rowDetectionTolerance','setTemplate','opacity','9tfyjpT','_overflowChips','forEach','_setupVisibilityObserver','_makeAncestorsVisible','undefined','669570ZuKPKQ','show','auto','abs','_bodyCollection','documentElement','_createShowMoreButton','_showMoreButtonView','getComputedStyle','disconnect','from','destroy','_containerElement','parentElement','pop','label','showMoreLabelPrefix','overflowChips','height','_handleShowMoreButtonClick','_locale','width','isIntersecting','_createShowMoreButtonView','_applyCalculationStyles','cssClasses','isConnected','_targetContainer','absolute','_createShowMoreBalloonPanelView','_testButtonFit','258360LdYXDY','visible\x20!important','observe','357105dmRGls','textContent','_renderChipsAndCountRows','_findTargetContainer','length','includes','50px','_ancestorsToRestore','_calculateContainerWidth','bottom','_checkAndHandleOverflow','reorganizeChips','isVisible','querySelector','content','_visibleChips','clientWidth','_showMoreBalloonPanelView','440XDlxdl','setContainerElement','zIndex','clear','overflowContainer','block','div','some','10739490pNZuOM','button','calculationContainer','hide','none','filter','hideBalloonPanel','cloneNode','body','_parentView','isOn'];_0xd0a1=function(){return _0x355d76;};return _0xd0a1();}const _0x7ab8d3=_0x5d4c;(function(_0x55a619,_0x38f65c){const _0x2b8dc7=_0x5d4c,_0x11b4f8=_0x55a619();while(!![]){try{const _0x2f0cad=parseInt(_0x2b8dc7(0xbb))/0x1+-parseInt(_0x2b8dc7(0x84))/0x2+-parseInt(_0x2b8dc7(0x99))/0x3+-parseInt(_0x2b8dc7(0xb8))/0x4+parseInt(_0x2b8dc7(0xe7))/0x5*(-parseInt(_0x2b8dc7(0x8f))/0x6)+-parseInt(_0x2b8dc7(0x7d))/0x7*(parseInt(_0x2b8dc7(0xcd))/0x8)+-parseInt(_0x2b8dc7(0x93))/0x9*(-parseInt(_0x2b8dc7(0xd5))/0xa);if(_0x2f0cad===_0x38f65c)break;else _0x11b4f8['push'](_0x11b4f8['shift']());}catch(_0x1ff184){_0x11b4f8['push'](_0x11b4f8['shift']());}}}(_0xd0a1,0x6a6ae));import{View as _0x200635,BalloonPanelView as _0x3c2665,ButtonView as _0x444bb3,clickOutsideHandler as _0x2015bf}from'ckeditor5/src/ui.js';import{Collection as _0x2926e3}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x7ab8d3(0x82);export class AIChatChipsOverflowManager{[_0x7ab8d3(0xad)];[_0x7ab8d3(0x78)];[_0x7ab8d3(0xca)];[_0x7ab8d3(0x94)];[_0x7ab8d3(0xa0)]=null;[_0x7ab8d3(0xcc)]=null;[_0x7ab8d3(0xa5)]=null;[_0x7ab8d3(0x9d)];[_0x7ab8d3(0xde)]=null;[_0x7ab8d3(0xfd)]=null;[_0x7ab8d3(0xe1)]=!0x1;constructor(_0x41f611,_0x364fc0,_0x200412,_0x551f15,_0x1feb6a){const _0x3c0839=_0x7ab8d3;this[_0x3c0839(0xad)]=_0x41f611,this[_0x3c0839(0xca)]=_0x364fc0,this[_0x3c0839(0x78)]={...hn,..._0x200412,'cssClasses':{'controlsButton':'','calculationContainer':_0x3c0839(0x100),..._0x200412[_0x3c0839(0xb2)]}},this[_0x3c0839(0x94)]=new _0x2926e3(),this[_0x3c0839(0x9d)]=_0x551f15,this[_0x3c0839(0xde)]=_0x1feb6a||null;}[_0x7ab8d3(0xce)](_0x1ccd4b){const _0x52138b=_0x7ab8d3;this[_0x52138b(0xfd)]&&(this[_0x52138b(0xfd)][_0x52138b(0xa2)](),this[_0x52138b(0xfd)]=null),this[_0x52138b(0xa5)]=_0x1ccd4b,this[_0x52138b(0x96)]();}get[_0x7ab8d3(0xfa)](){const _0x6e444d=_0x7ab8d3;return this[_0x6e444d(0xa0)];}get[_0x7ab8d3(0xaa)](){const _0x41c240=_0x7ab8d3;return this[_0x41c240(0x94)];}[_0x7ab8d3(0xc6)](){requestAnimationFrame(()=>{const _0x1b3999=_0x5d4c;this[_0x1b3999(0xc5)]();});}[_0x7ab8d3(0xea)](){const _0x343f50=_0x7ab8d3;this[_0x343f50(0xa0)]&&this[_0x343f50(0xcc)]&&(this[_0x343f50(0xf1)](),this[_0x343f50(0xa0)][_0x343f50(0xdf)]=!0x0,this[_0x343f50(0xcc)][_0x343f50(0x9a)](),this[_0x343f50(0xcc)][_0x343f50(0xf0)]({'target':this[_0x343f50(0xa0)][_0x343f50(0x77)],'limiter':document[_0x343f50(0xc8)](_0x343f50(0xe2))}));}[_0x7ab8d3(0xdb)](){const _0xcfbfc=_0x7ab8d3;this[_0xcfbfc(0xa0)]&&this[_0xcfbfc(0xcc)]&&(this[_0xcfbfc(0xa0)][_0xcfbfc(0xdf)]=!0x1,this[_0xcfbfc(0xcc)][_0xcfbfc(0xd8)]());}[_0x7ab8d3(0xd0)](){const _0x3c8a0a=_0x7ab8d3;this[_0x3c8a0a(0x94)][_0x3c8a0a(0xd0)](),this[_0x3c8a0a(0xdb)](),this[_0x3c8a0a(0x75)](),this[_0x3c8a0a(0xa0)]&&(this[_0x3c8a0a(0xa0)][_0x3c8a0a(0xa8)]=''),this[_0x3c8a0a(0xcc)]&&this[_0x3c8a0a(0xcc)][_0x3c8a0a(0xc9)][_0x3c8a0a(0xd0)]();}[_0x7ab8d3(0xa4)](){const _0x49f5e5=_0x7ab8d3;this[_0x49f5e5(0xfd)]&&(this[_0x49f5e5(0xfd)][_0x49f5e5(0xa2)](),this[_0x49f5e5(0xfd)]=null),this[_0x49f5e5(0xa0)]&&(this[_0x49f5e5(0xa0)][_0x49f5e5(0xa4)](),this[_0x49f5e5(0xa0)]=null),this[_0x49f5e5(0xcc)]&&(this[_0x49f5e5(0xcc)][_0x49f5e5(0xa4)](),this[_0x49f5e5(0xcc)]=null);}[_0x7ab8d3(0xc5)](){const _0x395c4b=_0x7ab8d3;if(!this[_0x395c4b(0xa5)])return;if(!this[_0x395c4b(0x8c)]())return void(this[_0x395c4b(0xe1)]=!0x0);this[_0x395c4b(0xe1)]=!0x1;const _0x577c67=[...this[_0x395c4b(0xca)],...this[_0x395c4b(0x94)]],_0x25f249=this[_0x395c4b(0x8b)](),_0x254589=this[_0x395c4b(0xe3)](_0x25f249,_0x577c67),_0x4cd2c0=_0x25f249[_0x395c4b(0xc2)];_0x4cd2c0&&this[_0x395c4b(0xf4)](_0x4cd2c0),_0x25f249[_0x395c4b(0x6f)](),this[_0x395c4b(0x79)](_0x577c67,_0x254589);}[_0x7ab8d3(0x9f)](){const _0x1b68da=_0x7ab8d3;this[_0x1b68da(0xa0)]=this[_0x1b68da(0xb0)](),this[_0x1b68da(0xcc)]=this[_0x1b68da(0xb6)](),this[_0x1b68da(0xa0)][_0x1b68da(0x74)](),this[_0x1b68da(0xa5)][_0x1b68da(0xfe)](this[_0x1b68da(0xa0)][_0x1b68da(0x77)]),this[_0x1b68da(0xa0)]['on'](_0x1b68da(0x73),()=>{const _0x4d1891=_0x1b68da;this[_0x4d1891(0xac)]();}),_0x2015bf({'emitter':this[_0x1b68da(0xcc)],'contextElements':[this[_0x1b68da(0xcc)][_0x1b68da(0x77)],this[_0x1b68da(0xa0)][_0x1b68da(0x77)]],'callback':()=>this[_0x1b68da(0xdb)](),'activator':()=>this[_0x1b68da(0xa0)][_0x1b68da(0xdf)]});}[_0x7ab8d3(0xb0)](){const _0xf814d3=_0x7ab8d3,_0x3ed1d8=new _0x444bb3(this[_0xf814d3(0xad)]);_0x3ed1d8[_0xf814d3(0xeb)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0xfeadee=[this[_0xf814d3(0x78)][_0xf814d3(0xb2)][_0xf814d3(0x8d)]];return this[_0xf814d3(0x78)][_0xf814d3(0xb2)][_0xf814d3(0xf3)]&&_0xfeadee[_0xf814d3(0xe5)](this[_0xf814d3(0x78)][_0xf814d3(0xb2)][_0xf814d3(0xf3)]),_0x3ed1d8[_0xf814d3(0xe6)]({'attributes':{'class':_0xfeadee}}),_0x3ed1d8;}[_0x7ab8d3(0xb6)](){const _0x1f7531=_0x7ab8d3,_0x3ea9c7=new _0x3c2665(this[_0x1f7531(0xad)]);return _0x3ea9c7[_0x1f7531(0xe6)]({'attributes':{'class':this[_0x1f7531(0x78)][_0x1f7531(0xb2)][_0x1f7531(0xed)]}}),this[_0x1f7531(0x9d)][_0x1f7531(0xe4)](_0x3ea9c7),_0x3ea9c7;}[_0x7ab8d3(0xf1)](){const _0x230a08=_0x7ab8d3;if(this[_0x230a08(0xcc)]&&(this[_0x230a08(0xcc)][_0x230a08(0xc9)][_0x230a08(0xd0)](),this[_0x230a08(0x94)][_0x230a08(0xbf)]>0x0)){this[_0x230a08(0x94)][_0x230a08(0x95)](_0x3ff94b=>{const _0x3c5fab=_0x230a08;_0x3ff94b[_0x3c5fab(0x80)]();});const _0x549cf3=new _0x200635(this[_0x230a08(0xad)]);_0x549cf3[_0x230a08(0x91)]({'tag':_0x230a08(0xd3),'attributes':{'class':this[_0x230a08(0x78)][_0x230a08(0xb2)][_0x230a08(0xd1)]},'children':this[_0x230a08(0x94)]}),this[_0x230a08(0xcc)][_0x230a08(0xc9)][_0x230a08(0xe4)](_0x549cf3);}}[_0x7ab8d3(0xac)](){const _0x353f87=_0x7ab8d3;this[_0x353f87(0xa0)][_0x353f87(0xdf)]?this[_0x353f87(0xdb)]():this[_0x353f87(0xea)]();}[_0x7ab8d3(0x75)](){const _0x1aa622=_0x7ab8d3,_0x48820d=this[_0x1aa622(0x94)][_0x1aa622(0xbf)]>0x0;this[_0x1aa622(0xa0)]?.[_0x1aa622(0x77)]&&(this[_0x1aa622(0xa0)][_0x1aa622(0x77)][_0x1aa622(0x71)][_0x1aa622(0x81)]=_0x48820d?'':_0x1aa622(0xd9));}[_0x7ab8d3(0xf6)](){const _0x40545f=_0x7ab8d3;this[_0x40545f(0xa0)]?.[_0x40545f(0xdf)]&&this[_0x40545f(0xcc)]?.[_0x40545f(0xc7)]&&this[_0x40545f(0xa0)][_0x40545f(0x77)]&&this[_0x40545f(0xcc)][_0x40545f(0xf0)]({'target':this[_0x40545f(0xa0)][_0x40545f(0x77)],'limiter':document[_0x40545f(0xc8)](_0x40545f(0xe2))});}[_0x7ab8d3(0xbe)](_0x168c87){const _0x4eca71=_0x7ab8d3,_0x105957=this[_0x4eca71(0xa5)]?.[_0x4eca71(0xf2)][_0x4eca71(0xec)]()||_0x4eca71(0xd3),_0x363bfc=this[_0x4eca71(0xa5)]?.[_0x4eca71(0x72)];if(_0x363bfc){const _0x344fc6=_0x363bfc[0x0]||'',_0x5e8e55=_0x168c87[_0x4eca71(0xc8)]('.'+_0x344fc6),_0x5ba349=_0x168c87[_0x4eca71(0xc8)](_0x105957);return _0x5e8e55||_0x5ba349||_0x168c87;}return _0x168c87[_0x4eca71(0xc8)](_0x105957)||_0x168c87;}[_0x7ab8d3(0xc3)](){const _0x2e1559=_0x7ab8d3,_0x586164=this[_0x2e1559(0xde)]?.[_0x2e1559(0x77)]||this[_0x2e1559(0xa5)];if(!_0x586164)return an;const _0x419ef2=window[_0x2e1559(0xa1)](_0x586164)[_0x2e1559(0xae)];if(_0x2e1559(0x9b)===_0x419ef2||_0x2e1559(0xfb)===_0x419ef2||!_0x419ef2){const _0x93b9e1=_0x586164[_0x2e1559(0xa6)];if(_0x93b9e1){const _0x395e24=window[_0x2e1559(0xa1)](_0x93b9e1);return _0x2e1559(0x9b)!==_0x395e24[_0x2e1559(0xae)]?_0x395e24[_0x2e1559(0xae)]:an;}return an;}return _0x419ef2;}[_0x7ab8d3(0xb1)](_0x332a11,_0x514c4a){const _0x54413f=_0x7ab8d3;this[_0x54413f(0x78)][_0x54413f(0xb2)][_0x54413f(0xd7)]&&_0x332a11[_0x54413f(0x72)][_0x54413f(0xe4)](this[_0x54413f(0x78)][_0x54413f(0xb2)][_0x54413f(0xd7)]),_0x332a11[_0x54413f(0x71)][_0x54413f(0xae)]=_0x514c4a,_0x332a11[_0x54413f(0x71)][_0x54413f(0xf9)]=_0x54413f(0xb5),_0x332a11[_0x54413f(0x71)][_0x54413f(0x7b)]=_0x54413f(0xe9),_0x332a11[_0x54413f(0x71)][_0x54413f(0xf7)]=_0x54413f(0xe9),_0x332a11[_0x54413f(0x71)][_0x54413f(0x92)]='0',_0x332a11[_0x54413f(0x71)][_0x54413f(0x86)]=_0x54413f(0xd9),_0x332a11[_0x54413f(0x71)][_0x54413f(0xcf)]='-1',_0x332a11[_0x54413f(0x71)][_0x54413f(0xe8)]=_0x54413f(0xb9),_0x332a11[_0x54413f(0x71)][_0x54413f(0x81)]=_0x54413f(0x7f),_0x332a11[_0x54413f(0x71)][_0x54413f(0x7e)]=_0x54413f(0x8e);}[_0x7ab8d3(0xf4)](_0x339c62){const _0x85ef8b=_0x7ab8d3;_0x339c62[_0x85ef8b(0x95)](({element:_0x4c8e0a,originalDisplay:_0xb394b7,originalVisibility:_0x53005a})=>{const _0x56a0c4=_0x85ef8b;_0x4c8e0a[_0x56a0c4(0x71)][_0x56a0c4(0x81)]=_0xb394b7,_0x4c8e0a[_0x56a0c4(0x71)][_0x56a0c4(0xe8)]=_0x53005a;});}[_0x7ab8d3(0x97)](_0x2cd50e){const _0xe1f1a7=_0x7ab8d3,_0x377279=[];let _0x2dea24=_0x2cd50e;for(;_0x2dea24&&_0x2dea24!==document[_0xe1f1a7(0xdd)];){const _0x5103a0=window[_0xe1f1a7(0xa1)](_0x2dea24);_0xe1f1a7(0xd9)!==_0x5103a0[_0xe1f1a7(0x81)]&&_0xe1f1a7(0x70)!==_0x5103a0[_0xe1f1a7(0xe8)]||(_0x377279[_0xe1f1a7(0xe5)]({'element':_0x2dea24,'originalDisplay':_0x2dea24[_0xe1f1a7(0x71)][_0xe1f1a7(0x81)],'originalVisibility':_0x2dea24[_0xe1f1a7(0x71)][_0xe1f1a7(0xe8)]}),_0x2dea24[_0xe1f1a7(0x71)][_0xe1f1a7(0x81)]=_0xe1f1a7(0xd2),_0x2dea24[_0xe1f1a7(0x71)][_0xe1f1a7(0xe8)]=_0xe1f1a7(0xfc)),_0x2dea24=_0x2dea24[_0xe1f1a7(0xa6)];}return _0x377279;}[_0x7ab8d3(0xf5)](){const _0xdc1eec=_0x7ab8d3;let _0x53440e,_0x887e22;return this[_0xdc1eec(0xde)]?.[_0xdc1eec(0x77)]?(_0x53440e=this[_0xdc1eec(0xde)][_0xdc1eec(0x77)][_0xdc1eec(0xdc)](!0x0),_0x887e22=this[_0xdc1eec(0xbe)](_0x53440e)):(_0x53440e=document[_0xdc1eec(0x76)](_0xdc1eec(0xd3)),_0x887e22=_0x53440e),{'calculationContainer':_0x53440e,'targetContainer':_0x887e22};}[_0x7ab8d3(0x8b)](){const _0x361ecc=_0x7ab8d3,{calculationContainer:_0x104506,targetContainer:_0x127e78}=this[_0x361ecc(0xf5)](),_0x265ad9=this[_0x361ecc(0xc3)]();this[_0x361ecc(0xb1)](_0x104506,_0x265ad9);const _0x5680b2=this[_0x361ecc(0xde)]?.[_0x361ecc(0x77)]||this[_0x361ecc(0xa5)],_0x43a603=_0x5680b2?.[_0x361ecc(0xa6)];_0x43a603?_0x43a603[_0x361ecc(0xfe)](_0x104506):document[_0x361ecc(0xdd)][_0x361ecc(0xfe)](_0x104506),_0x104506[_0x361ecc(0xb4)]=_0x127e78;const _0x5e80e1=this[_0x361ecc(0x97)](_0x43a603||null);return _0x104506[_0x361ecc(0x85)],_0x104506[_0x361ecc(0xc2)]=_0x5e80e1,_0x104506;}[_0x7ab8d3(0xe3)](_0x2cf987,_0x595877){const _0x528e46=_0x7ab8d3,_0x4eb0bb=_0x2cf987[_0x528e46(0xb4)]||_0x2cf987,_0x2d66d9=[],{rowCount:_0x2ab766}=this[_0x528e46(0xbd)](_0x4eb0bb,_0x595877);if(_0x2ab766<=this[_0x528e46(0x78)][_0x528e46(0x7c)])return _0x2d66d9;const _0x4ee80a=_0x595877[_0x528e46(0x7a)]();for(;_0x4ee80a[_0x528e46(0xbf)]>0x0;){if(this[_0x528e46(0xb7)](_0x2cf987,_0x4eb0bb,_0x4ee80a)){const _0xcf5d66=_0x595877[_0x528e46(0xda)](_0x567912=>!_0x4ee80a[_0x528e46(0xc0)](_0x567912));_0x2d66d9[_0x528e46(0xe5)](..._0xcf5d66);break;}if(!_0x4ee80a[_0x528e46(0xa7)]())break;}return _0x2d66d9;}[_0x7ab8d3(0xbd)](_0x335f9d,_0x341c66){const _0x5d1517=_0x7ab8d3;_0x335f9d[_0x5d1517(0xee)]='',_0x341c66[_0x5d1517(0x95)](_0x5e61b7=>{const _0x269c40=_0x5d1517;if(_0x5e61b7[_0x269c40(0x77)]){const _0x34e7ed=_0x5e61b7[_0x269c40(0x77)][_0x269c40(0xdc)](!0x0);_0x335f9d[_0x269c40(0xfe)](_0x34e7ed);}}),_0x335f9d[_0x5d1517(0x85)];const _0x3934b8=_0x335f9d[_0x5d1517(0x87)],_0x4329f9=[];return Array[_0x5d1517(0xa3)](_0x3934b8)[_0x5d1517(0x95)](_0x186738=>{const _0x1535d4=_0x5d1517,_0xd80604=_0x186738[_0x1535d4(0x89)]()[_0x1535d4(0x7b)];_0x4329f9[_0x1535d4(0xd4)](_0x32c642=>Math[_0x1535d4(0x9c)](_0x32c642-_0xd80604)<this[_0x1535d4(0x78)][_0x1535d4(0x90)])||_0x4329f9[_0x1535d4(0xe5)](_0xd80604);}),{'rowCount':_0x4329f9[_0x5d1517(0xbf)]};}[_0x7ab8d3(0x8a)](){const _0x4dea44=_0x7ab8d3,_0x54164f=document[_0x4dea44(0x76)](_0x4dea44(0xd6));return _0x54164f[_0x4dea44(0x6e)]=this[_0x4dea44(0x78)][_0x4dea44(0xb2)][_0x4dea44(0x8d)],this[_0x4dea44(0x78)][_0x4dea44(0xb2)][_0x4dea44(0xf3)]&&_0x54164f[_0x4dea44(0x72)][_0x4dea44(0xe4)](this[_0x4dea44(0x78)][_0x4dea44(0xb2)][_0x4dea44(0xf3)]),_0x54164f[_0x4dea44(0xbc)]=_0x4dea44(0xff),_0x54164f;}[_0x7ab8d3(0xb7)](_0x1981fe,_0xd8df61,_0x2025b7){const _0x4d2e7d=_0x7ab8d3;this[_0x4d2e7d(0xbd)](_0xd8df61,_0x2025b7);const _0x4584e4=this[_0x4d2e7d(0x8a)]();_0x1981fe[_0x4d2e7d(0xfe)](_0x4584e4),_0x1981fe[_0x4d2e7d(0x85)];const _0x3a2c98=[..._0xd8df61[_0x4d2e7d(0x87)],_0x4584e4],_0x25486b=[];_0x3a2c98[_0x4d2e7d(0x95)](_0x5985d9=>{const _0x416263=_0x4d2e7d,_0xb132b5=_0x5985d9[_0x416263(0x89)]()[_0x416263(0x7b)];_0x25486b[_0x416263(0xd4)](_0x23e4e0=>Math[_0x416263(0x9c)](_0x23e4e0-_0xb132b5)<this[_0x416263(0x78)][_0x416263(0x90)])||_0x25486b[_0x416263(0xe5)](_0xb132b5);});const _0x4f2181=_0x25486b[_0x4d2e7d(0xbf)];return _0x4584e4[_0x4d2e7d(0x6f)](),_0x4f2181<=this[_0x4d2e7d(0x78)][_0x4d2e7d(0x7c)];}[_0x7ab8d3(0xef)](_0x204065,_0x2daed8){const _0x105fed=_0x7ab8d3;this[_0x105fed(0xca)][_0x105fed(0xd0)](),this[_0x105fed(0x94)][_0x105fed(0xd0)](),_0x204065[_0x105fed(0x95)](_0xe05d2=>{const _0x8d515=_0x105fed;_0x2daed8[_0x8d515(0xc0)](_0xe05d2)?this[_0x8d515(0x94)][_0x8d515(0xe4)](_0xe05d2):this[_0x8d515(0xca)][_0x8d515(0xe4)](_0xe05d2);});}[_0x7ab8d3(0x83)](_0x4f7940){const _0x48ef99=_0x7ab8d3;if(_0x4f7940>0x0&&!this[_0x48ef99(0xa0)]&&this[_0x48ef99(0x9f)](),_0x4f7940>0x0&&this[_0x48ef99(0xa0)]){const _0xd500d=''+this[_0x48ef99(0x78)][_0x48ef99(0xa9)]+(_0x4f7940<0x63?_0x4f7940:'99');this[_0x48ef99(0xa0)][_0x48ef99(0xa8)]=_0xd500d;}this[_0x48ef99(0xf1)](),this[_0x48ef99(0x75)](),this[_0x48ef99(0xf6)]();}[_0x7ab8d3(0x79)](_0x8c47cc,_0x56d977){const _0x479c9e=_0x7ab8d3;this[_0x479c9e(0xef)](_0x8c47cc,_0x56d977),this[_0x479c9e(0x83)](_0x56d977[_0x479c9e(0xbf)]);}[_0x7ab8d3(0x96)](){const _0x1b4c2a=_0x7ab8d3;this[_0x1b4c2a(0xa5)]&&_0x1b4c2a(0x98)!=typeof IntersectionObserver&&(this[_0x1b4c2a(0xfd)]=new IntersectionObserver(_0x266e8d=>{const _0x154ed3=_0x1b4c2a;_0x266e8d[0x0][_0x154ed3(0xaf)]&&this[_0x154ed3(0xe1)]&&requestAnimationFrame(()=>{const _0x51b9d0=_0x154ed3;this[_0x51b9d0(0xc5)]();});},{'threshold':0.01,'rootMargin':_0x1b4c2a(0xc1)}),this[_0x1b4c2a(0xfd)][_0x1b4c2a(0xba)](this[_0x1b4c2a(0xa5)]));}[_0x7ab8d3(0x8c)](){const _0x40da7f=_0x7ab8d3;if(!this[_0x40da7f(0xa5)])return!0x1;if(!this[_0x40da7f(0xa5)][_0x40da7f(0xb3)])return!0x1;const _0x42d2ef=this[_0x40da7f(0xa5)][_0x40da7f(0x89)]();if(0x0===_0x42d2ef[_0x40da7f(0xae)]||0x0===_0x42d2ef[_0x40da7f(0xab)])return!0x1;const _0x2eabc1=window[_0x40da7f(0x88)]||document[_0x40da7f(0x9e)][_0x40da7f(0x6d)],_0x4dc6fb=window[_0x40da7f(0xf8)]||document[_0x40da7f(0x9e)][_0x40da7f(0xcb)],_0x587e55=0xc8;return _0x42d2ef[_0x40da7f(0xc4)]>=-0xc8&&_0x42d2ef[_0x40da7f(0x7b)]<=_0x2eabc1+_0x587e55&&_0x42d2ef[_0x40da7f(0xe0)]>=-0xc8&&_0x42d2ef[_0x40da7f(0xf7)]<=_0x4dc6fb+_0x587e55;}}
23
+ function _0x6a7c(){const _0x46fe2a=['isIntersecting','textContent','cloneNode','651626ftOSgG','top','1730456IDZnGe','.ck-ai-chat','className','_showMoreButtonView','offsetWidth','undefined','show','hideBalloonPanel','showMoreButton','height','right','_ancestorsToRestore','children','_visibleChips','_locale','remove','from','createElement','_createShowMoreButton','50px','7074473nYkNXm','rowDetectionTolerance','button','+\x201','opacity','_restoreAncestorVisibility','disableAnimationOnEnter','querySelector','_config','innerWidth','_overflowChips','isConnected','element','none','showBalloonPanel','setContainerElement','appendChild','position','set','some','abs','_createCalculationContainer','boxSizing','hidden','getBoundingClientRect','left','overflowContainer','display','2LWLUJG','_showMoreBalloonPanelView','_repinBalloonPanel','calculationContainer','_createShowMoreButtonView','_isContainerVisible','visible\x20!important','label','-9999px','slice','forEach','overflowChips','tagName','style','auto','_createMockButton','innerHeight','div','isOn','_containerElement','_updateOverflowUI','border-box','_calculateOverflowInContainer','bottom','_makeAncestorsVisible','documentElement','absolute','innerHTML','visibility','8572304CUYNJo','_findTargetContainer','ck-calculation-container','6GuWnDv','execute','showMoreButtonView','body','_createShowMoreBalloonPanelView','block\x20!important','maxVisibleRows','visible','observe','4494685QQvQEj','destroy','_pendingCalculation','filter','controlsButton','_setupVisibilityObserver','isVisible','_bodyCollection','_applyOverflowResults','content','width','pin','clientWidth','showMoreBalloon','_testButtonFit','pointerEvents','cssClasses','zIndex','clientHeight','10438776UbWbRT','classList','includes','pop','300px','clear','_parentView','add','0px','_checkAndHandleOverflow','_distributeChips','disconnect','extendTemplate','_targetContainer','push','_renderChipsAndCountRows','reorganizeChips','length','_updateShowMoreButtonVisibility','parentElement','_calculateContainerWidth','_handleShowMoreButtonClick','block','_applyCalculationStyles','1005219QZxDKV','_updateBalloonContent','setTemplate','toLowerCase','getComputedStyle','showMoreLabelPrefix','hide','render','_intersectionObserver','_createContainerElements'];_0x6a7c=function(){return _0x46fe2a;};return _0x6a7c();}const _0x38503=_0x592c;function _0x592c(_0x19b6ce,_0x3b87c4){const _0x6a7ccd=_0x6a7c();return _0x592c=function(_0x592ce7,_0x323ef7){_0x592ce7=_0x592ce7-0x8a;let _0x2e98ee=_0x6a7ccd[_0x592ce7];return _0x2e98ee;},_0x592c(_0x19b6ce,_0x3b87c4);}(function(_0xd72239,_0x504d44){const _0x447b85=_0x592c,_0x2eab9e=_0xd72239();while(!![]){try{const _0x45d804=parseInt(_0x447b85(0xb8))/0x1*(parseInt(_0x447b85(0xea))/0x2)+parseInt(_0x447b85(0xab))/0x3+-parseInt(_0x447b85(0xba))/0x4+-parseInt(_0x447b85(0x113))/0x5*(parseInt(_0x447b85(0x10a))/0x6)+parseInt(_0x447b85(0xce))/0x7+parseInt(_0x447b85(0x107))/0x8+-parseInt(_0x447b85(0x93))/0x9;if(_0x45d804===_0x504d44)break;else _0x2eab9e['push'](_0x2eab9e['shift']());}catch(_0x11ec51){_0x2eab9e['push'](_0x2eab9e['shift']());}}}(_0x6a7c,0x8cfb5));import{View as _0x5377ab,BalloonPanelView as _0x59f8e9,ButtonView as _0x156a6f,clickOutsideHandler as _0x926c49}from'ckeditor5/src/ui.js';import{Collection as _0x5806e6}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x38503(0x97);export class AIChatChipsOverflowManager{[_0x38503(0xc8)];[_0x38503(0xd6)];[_0x38503(0xc7)];[_0x38503(0xd8)];[_0x38503(0xbd)]=null;[_0x38503(0xeb)]=null;[_0x38503(0xfd)]=null;[_0x38503(0x11a)];[_0x38503(0x99)]=null;[_0x38503(0xb3)]=null;[_0x38503(0x115)]=!0x1;constructor(_0x5dfd99,_0x5738d9,_0x2c09df,_0x58106b,_0x4a3e24){const _0x368122=_0x38503;this[_0x368122(0xc8)]=_0x5dfd99,this[_0x368122(0xc7)]=_0x5738d9,this[_0x368122(0xd6)]={...hn,..._0x2c09df,'cssClasses':{'controlsButton':'','calculationContainer':_0x368122(0x109),..._0x2c09df[_0x368122(0x90)]}},this[_0x368122(0xd8)]=new _0x5806e6(),this[_0x368122(0x11a)]=_0x58106b,this[_0x368122(0x99)]=_0x4a3e24||null;}[_0x38503(0xdd)](_0x28e1b9){const _0x482f83=_0x38503;this[_0x482f83(0xb3)]&&(this[_0x482f83(0xb3)][_0x482f83(0x9e)](),this[_0x482f83(0xb3)]=null),this[_0x482f83(0xfd)]=_0x28e1b9,this[_0x482f83(0x118)]();}get[_0x38503(0x10c)](){const _0x10b904=_0x38503;return this[_0x10b904(0xbd)];}get[_0x38503(0xf5)](){const _0x7049c6=_0x38503;return this[_0x7049c6(0xd8)];}[_0x38503(0xa3)](){requestAnimationFrame(()=>{const _0x337bff=_0x592c;this[_0x337bff(0x9c)]();});}[_0x38503(0xdc)](){const _0x80b734=_0x38503;this[_0x80b734(0xbd)]&&this[_0x80b734(0xeb)]&&(this[_0x80b734(0xac)](),this[_0x80b734(0xbd)][_0x80b734(0xfc)]=!0x0,this[_0x80b734(0xeb)][_0x80b734(0xc0)](),this[_0x80b734(0xeb)][_0x80b734(0x8b)]({'target':this[_0x80b734(0xbd)][_0x80b734(0xda)],'limiter':document[_0x80b734(0xd5)](_0x80b734(0xbb))}));}[_0x38503(0xc1)](){const _0xaf2e5b=_0x38503;this[_0xaf2e5b(0xbd)]&&this[_0xaf2e5b(0xeb)]&&(this[_0xaf2e5b(0xbd)][_0xaf2e5b(0xfc)]=!0x1,this[_0xaf2e5b(0xeb)][_0xaf2e5b(0xb1)]());}[_0x38503(0x98)](){const _0x23c54e=_0x38503;this[_0x23c54e(0xd8)][_0x23c54e(0x98)](),this[_0x23c54e(0xc1)](),this[_0x23c54e(0xa5)](),this[_0x23c54e(0xbd)]&&(this[_0x23c54e(0xbd)][_0x23c54e(0xf1)]=''),this[_0x23c54e(0xeb)]&&this[_0x23c54e(0xeb)][_0x23c54e(0x11c)][_0x23c54e(0x98)]();}[_0x38503(0x114)](){const _0x4d7f9b=_0x38503;this[_0x4d7f9b(0xb3)]&&(this[_0x4d7f9b(0xb3)][_0x4d7f9b(0x9e)](),this[_0x4d7f9b(0xb3)]=null),this[_0x4d7f9b(0xbd)]&&(this[_0x4d7f9b(0xbd)][_0x4d7f9b(0x114)](),this[_0x4d7f9b(0xbd)]=null),this[_0x4d7f9b(0xeb)]&&(this[_0x4d7f9b(0xeb)][_0x4d7f9b(0x114)](),this[_0x4d7f9b(0xeb)]=null);}[_0x38503(0x9c)](){const _0x22a4e9=_0x38503;if(!this[_0x22a4e9(0xfd)])return;if(!this[_0x22a4e9(0xef)]())return void(this[_0x22a4e9(0x115)]=!0x0);this[_0x22a4e9(0x115)]=!0x1;const _0x27c638=[...this[_0x22a4e9(0xc7)],...this[_0x22a4e9(0xd8)]],_0x290542=this[_0x22a4e9(0xe3)](),_0xbda151=this[_0x22a4e9(0x100)](_0x290542,_0x27c638),_0x144a97=_0x290542[_0x22a4e9(0xc5)];_0x144a97&&this[_0x22a4e9(0xd3)](_0x144a97),_0x290542[_0x22a4e9(0xc9)](),this[_0x22a4e9(0x11b)](_0x27c638,_0xbda151);}[_0x38503(0xcc)](){const _0x1b8641=_0x38503;this[_0x1b8641(0xbd)]=this[_0x1b8641(0xee)](),this[_0x1b8641(0xeb)]=this[_0x1b8641(0x10e)](),this[_0x1b8641(0xbd)][_0x1b8641(0xb2)](),this[_0x1b8641(0xfd)][_0x1b8641(0xde)](this[_0x1b8641(0xbd)][_0x1b8641(0xda)]),this[_0x1b8641(0xbd)]['on'](_0x1b8641(0x10b),()=>{const _0x5a2955=_0x1b8641;this[_0x5a2955(0xa8)]();}),_0x926c49({'emitter':this[_0x1b8641(0xeb)],'contextElements':[this[_0x1b8641(0xeb)][_0x1b8641(0xda)],this[_0x1b8641(0xbd)][_0x1b8641(0xda)]],'callback':()=>this[_0x1b8641(0xc1)](),'activator':()=>this[_0x1b8641(0xbd)][_0x1b8641(0xfc)]});}[_0x38503(0xee)](){const _0x12ee40=_0x38503,_0x4c4897=new _0x156a6f(this[_0x12ee40(0xc8)]);_0x4c4897[_0x12ee40(0xe0)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1b1d67=[this[_0x12ee40(0xd6)][_0x12ee40(0x90)][_0x12ee40(0xc2)]];return this[_0x12ee40(0xd6)][_0x12ee40(0x90)][_0x12ee40(0x117)]&&_0x1b1d67[_0x12ee40(0xa1)](this[_0x12ee40(0xd6)][_0x12ee40(0x90)][_0x12ee40(0x117)]),_0x4c4897[_0x12ee40(0x9f)]({'attributes':{'class':_0x1b1d67}}),_0x4c4897;}[_0x38503(0x10e)](){const _0x13d059=_0x38503,_0x1653e9=new _0x59f8e9(this[_0x13d059(0xc8)]);return _0x1653e9[_0x13d059(0x9f)]({'attributes':{'class':this[_0x13d059(0xd6)][_0x13d059(0x90)][_0x13d059(0x8d)]}}),this[_0x13d059(0x11a)][_0x13d059(0x9a)](_0x1653e9),_0x1653e9;}[_0x38503(0xac)](){const _0x51bda4=_0x38503;if(this[_0x51bda4(0xeb)]&&(this[_0x51bda4(0xeb)][_0x51bda4(0x11c)][_0x51bda4(0x98)](),this[_0x51bda4(0xd8)][_0x51bda4(0xa4)]>0x0)){this[_0x51bda4(0xd8)][_0x51bda4(0xf4)](_0x4abc89=>{const _0x1b6855=_0x51bda4;_0x4abc89[_0x1b6855(0xd4)]();});const _0x2af5b4=new _0x5377ab(this[_0x51bda4(0xc8)]);_0x2af5b4[_0x51bda4(0xad)]({'tag':_0x51bda4(0xfb),'attributes':{'class':this[_0x51bda4(0xd6)][_0x51bda4(0x90)][_0x51bda4(0xe8)]},'children':this[_0x51bda4(0xd8)]}),this[_0x51bda4(0xeb)][_0x51bda4(0x11c)][_0x51bda4(0x9a)](_0x2af5b4);}}[_0x38503(0xa8)](){const _0x2c1eaa=_0x38503;this[_0x2c1eaa(0xbd)][_0x2c1eaa(0xfc)]?this[_0x2c1eaa(0xc1)]():this[_0x2c1eaa(0xdc)]();}[_0x38503(0xa5)](){const _0x9a5055=_0x38503,_0x49a26e=this[_0x9a5055(0xd8)][_0x9a5055(0xa4)]>0x0;this[_0x9a5055(0xbd)]?.[_0x9a5055(0xda)]&&(this[_0x9a5055(0xbd)][_0x9a5055(0xda)][_0x9a5055(0xf7)][_0x9a5055(0xe9)]=_0x49a26e?'':_0x9a5055(0xdb));}[_0x38503(0xec)](){const _0x57299b=_0x38503;this[_0x57299b(0xbd)]?.[_0x57299b(0xfc)]&&this[_0x57299b(0xeb)]?.[_0x57299b(0x119)]&&this[_0x57299b(0xbd)][_0x57299b(0xda)]&&this[_0x57299b(0xeb)][_0x57299b(0x8b)]({'target':this[_0x57299b(0xbd)][_0x57299b(0xda)],'limiter':document[_0x57299b(0xd5)](_0x57299b(0xbb))});}[_0x38503(0x108)](_0x4a6789){const _0x4073bb=_0x38503,_0x27cfb0=this[_0x4073bb(0xfd)]?.[_0x4073bb(0xf6)][_0x4073bb(0xae)]()||_0x4073bb(0xfb),_0x4ae70e=this[_0x4073bb(0xfd)]?.[_0x4073bb(0x94)];if(_0x4ae70e){const _0x15c5b6=_0x4ae70e[0x0]||'',_0x137039=_0x4a6789[_0x4073bb(0xd5)]('.'+_0x15c5b6),_0xa1c2d0=_0x4a6789[_0x4073bb(0xd5)](_0x27cfb0);return _0x137039||_0xa1c2d0||_0x4a6789;}return _0x4a6789[_0x4073bb(0xd5)](_0x27cfb0)||_0x4a6789;}[_0x38503(0xa7)](){const _0x224982=_0x38503,_0x52ca1d=this[_0x224982(0x99)]?.[_0x224982(0xda)]||this[_0x224982(0xfd)];if(!_0x52ca1d)return an;const _0x2c67eb=window[_0x224982(0xaf)](_0x52ca1d)[_0x224982(0x8a)];if(_0x224982(0xf8)===_0x2c67eb||_0x224982(0x9b)===_0x2c67eb||!_0x2c67eb){const _0x59868a=_0x52ca1d[_0x224982(0xa6)];if(_0x59868a){const _0x148aa3=window[_0x224982(0xaf)](_0x59868a);return _0x224982(0xf8)!==_0x148aa3[_0x224982(0x8a)]?_0x148aa3[_0x224982(0x8a)]:an;}return an;}return _0x2c67eb;}[_0x38503(0xaa)](_0x2e4ded,_0x1d75ba){const _0x2102e8=_0x38503;this[_0x2102e8(0xd6)][_0x2102e8(0x90)][_0x2102e8(0xed)]&&_0x2e4ded[_0x2102e8(0x94)][_0x2102e8(0x9a)](this[_0x2102e8(0xd6)][_0x2102e8(0x90)][_0x2102e8(0xed)]),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0x8a)]=_0x1d75ba,_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xdf)]=_0x2102e8(0x104),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xb9)]=_0x2102e8(0xf2),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xe7)]=_0x2102e8(0xf2),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xd2)]='0',_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0x8f)]=_0x2102e8(0xdb),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0x91)]='-1',_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0x106)]=_0x2102e8(0xf0),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xe9)]=_0x2102e8(0x10f),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xe4)]=_0x2102e8(0xff);}[_0x38503(0xd3)](_0x47b32d){const _0x15d41c=_0x38503;_0x47b32d[_0x15d41c(0xf4)](({element:_0x29224f,originalDisplay:_0x39d422,originalVisibility:_0x29e9df})=>{const _0x17f5bb=_0x15d41c;_0x29224f[_0x17f5bb(0xf7)][_0x17f5bb(0xe9)]=_0x39d422,_0x29224f[_0x17f5bb(0xf7)][_0x17f5bb(0x106)]=_0x29e9df;});}[_0x38503(0x102)](_0x49cd7e){const _0x6b5255=_0x38503,_0x58e672=[];let _0x769c97=_0x49cd7e;for(;_0x769c97&&_0x769c97!==document[_0x6b5255(0x10d)];){const _0x280902=window[_0x6b5255(0xaf)](_0x769c97);_0x6b5255(0xdb)!==_0x280902[_0x6b5255(0xe9)]&&_0x6b5255(0xe5)!==_0x280902[_0x6b5255(0x106)]||(_0x58e672[_0x6b5255(0xa1)]({'element':_0x769c97,'originalDisplay':_0x769c97[_0x6b5255(0xf7)][_0x6b5255(0xe9)],'originalVisibility':_0x769c97[_0x6b5255(0xf7)][_0x6b5255(0x106)]}),_0x769c97[_0x6b5255(0xf7)][_0x6b5255(0xe9)]=_0x6b5255(0xa9),_0x769c97[_0x6b5255(0xf7)][_0x6b5255(0x106)]=_0x6b5255(0x111)),_0x769c97=_0x769c97[_0x6b5255(0xa6)];}return _0x58e672;}[_0x38503(0xb4)](){const _0x3c908a=_0x38503;let _0x107073,_0x13af11;return this[_0x3c908a(0x99)]?.[_0x3c908a(0xda)]?(_0x107073=this[_0x3c908a(0x99)][_0x3c908a(0xda)][_0x3c908a(0xb7)](!0x0),_0x13af11=this[_0x3c908a(0x108)](_0x107073)):(_0x107073=document[_0x3c908a(0xcb)](_0x3c908a(0xfb)),_0x13af11=_0x107073),{'calculationContainer':_0x107073,'targetContainer':_0x13af11};}[_0x38503(0xe3)](){const _0x488171=_0x38503,{calculationContainer:_0x34936f,targetContainer:_0x36969d}=this[_0x488171(0xb4)](),_0x4486a5=this[_0x488171(0xa7)]();this[_0x488171(0xaa)](_0x34936f,_0x4486a5);const _0x283f7f=this[_0x488171(0x99)]?.[_0x488171(0xda)]||this[_0x488171(0xfd)],_0x37bba8=_0x283f7f?.[_0x488171(0xa6)];_0x37bba8?_0x37bba8[_0x488171(0xde)](_0x34936f):document[_0x488171(0x10d)][_0x488171(0xde)](_0x34936f),_0x34936f[_0x488171(0xa0)]=_0x36969d;const _0xf95928=this[_0x488171(0x102)](_0x37bba8||null);return _0x34936f[_0x488171(0xbe)],_0x34936f[_0x488171(0xc5)]=_0xf95928,_0x34936f;}[_0x38503(0x100)](_0x28b33c,_0x2b061e){const _0x1bd27a=_0x38503,_0x1de97f=_0x28b33c[_0x1bd27a(0xa0)]||_0x28b33c,_0x100547=[],{rowCount:_0x46aac2}=this[_0x1bd27a(0xa2)](_0x1de97f,_0x2b061e);if(_0x46aac2<=this[_0x1bd27a(0xd6)][_0x1bd27a(0x110)])return _0x100547;const _0x31b999=_0x2b061e[_0x1bd27a(0xf3)]();for(;_0x31b999[_0x1bd27a(0xa4)]>0x0;){if(this[_0x1bd27a(0x8e)](_0x28b33c,_0x1de97f,_0x31b999)){const _0xe51370=_0x2b061e[_0x1bd27a(0x116)](_0x4cd1a5=>!_0x31b999[_0x1bd27a(0x95)](_0x4cd1a5));_0x100547[_0x1bd27a(0xa1)](..._0xe51370);break;}if(!_0x31b999[_0x1bd27a(0x96)]())break;}return _0x100547;}[_0x38503(0xa2)](_0x584b61,_0x5e2cbc){const _0x2d686a=_0x38503;_0x584b61[_0x2d686a(0x105)]='',_0x5e2cbc[_0x2d686a(0xf4)](_0x1ae15b=>{const _0x250593=_0x2d686a;if(_0x1ae15b[_0x250593(0xda)]){const _0x481275=_0x1ae15b[_0x250593(0xda)][_0x250593(0xb7)](!0x0);_0x584b61[_0x250593(0xde)](_0x481275);}}),_0x584b61[_0x2d686a(0xbe)];const _0xe5e956=_0x584b61[_0x2d686a(0xc6)],_0x339c10=[];return Array[_0x2d686a(0xca)](_0xe5e956)[_0x2d686a(0xf4)](_0x1e02ab=>{const _0x431e80=_0x2d686a,_0x53e372=_0x1e02ab[_0x431e80(0xe6)]()[_0x431e80(0xb9)];_0x339c10[_0x431e80(0xe1)](_0x5d4240=>Math[_0x431e80(0xe2)](_0x5d4240-_0x53e372)<this[_0x431e80(0xd6)][_0x431e80(0xcf)])||_0x339c10[_0x431e80(0xa1)](_0x53e372);}),{'rowCount':_0x339c10[_0x2d686a(0xa4)]};}[_0x38503(0xf9)](){const _0x325abc=_0x38503,_0x2e84d2=document[_0x325abc(0xcb)](_0x325abc(0xd0));return _0x2e84d2[_0x325abc(0xbc)]=this[_0x325abc(0xd6)][_0x325abc(0x90)][_0x325abc(0xc2)],this[_0x325abc(0xd6)][_0x325abc(0x90)][_0x325abc(0x117)]&&_0x2e84d2[_0x325abc(0x94)][_0x325abc(0x9a)](this[_0x325abc(0xd6)][_0x325abc(0x90)][_0x325abc(0x117)]),_0x2e84d2[_0x325abc(0xb6)]=_0x325abc(0xd1),_0x2e84d2;}[_0x38503(0x8e)](_0x29cae3,_0x403a2c,_0x2251f6){const _0x1ee8cc=_0x38503;this[_0x1ee8cc(0xa2)](_0x403a2c,_0x2251f6);const _0x368873=this[_0x1ee8cc(0xf9)]();_0x29cae3[_0x1ee8cc(0xde)](_0x368873),_0x29cae3[_0x1ee8cc(0xbe)];const _0x1e0271=[..._0x403a2c[_0x1ee8cc(0xc6)],_0x368873],_0x30d2d0=[];_0x1e0271[_0x1ee8cc(0xf4)](_0x106fb8=>{const _0x3430ee=_0x1ee8cc,_0x2e8312=_0x106fb8[_0x3430ee(0xe6)]()[_0x3430ee(0xb9)];_0x30d2d0[_0x3430ee(0xe1)](_0x5934b8=>Math[_0x3430ee(0xe2)](_0x5934b8-_0x2e8312)<this[_0x3430ee(0xd6)][_0x3430ee(0xcf)])||_0x30d2d0[_0x3430ee(0xa1)](_0x2e8312);});const _0x11c614=_0x30d2d0[_0x1ee8cc(0xa4)];return _0x368873[_0x1ee8cc(0xc9)](),_0x11c614<=this[_0x1ee8cc(0xd6)][_0x1ee8cc(0x110)];}[_0x38503(0x9d)](_0x1e550c,_0x21e522){const _0x4c947b=_0x38503;this[_0x4c947b(0xc7)][_0x4c947b(0x98)](),this[_0x4c947b(0xd8)][_0x4c947b(0x98)](),_0x1e550c[_0x4c947b(0xf4)](_0x361d3a=>{const _0x1b68fa=_0x4c947b;_0x21e522[_0x1b68fa(0x95)](_0x361d3a)?this[_0x1b68fa(0xd8)][_0x1b68fa(0x9a)](_0x361d3a):this[_0x1b68fa(0xc7)][_0x1b68fa(0x9a)](_0x361d3a);});}[_0x38503(0xfe)](_0xb2f2fb){const _0x2b8f2b=_0x38503;if(_0xb2f2fb>0x0&&!this[_0x2b8f2b(0xbd)]&&this[_0x2b8f2b(0xcc)](),_0xb2f2fb>0x0&&this[_0x2b8f2b(0xbd)]){const _0x23b82c=''+this[_0x2b8f2b(0xd6)][_0x2b8f2b(0xb0)]+(_0xb2f2fb<0x63?_0xb2f2fb:'99');this[_0x2b8f2b(0xbd)][_0x2b8f2b(0xf1)]=_0x23b82c;}this[_0x2b8f2b(0xac)](),this[_0x2b8f2b(0xa5)](),this[_0x2b8f2b(0xec)]();}[_0x38503(0x11b)](_0xd70e2b,_0x4b12ba){const _0x40d3da=_0x38503;this[_0x40d3da(0x9d)](_0xd70e2b,_0x4b12ba),this[_0x40d3da(0xfe)](_0x4b12ba[_0x40d3da(0xa4)]);}[_0x38503(0x118)](){const _0x45d8d1=_0x38503;this[_0x45d8d1(0xfd)]&&_0x45d8d1(0xbf)!=typeof IntersectionObserver&&(this[_0x45d8d1(0xb3)]=new IntersectionObserver(_0x78553f=>{const _0x181ea9=_0x45d8d1;_0x78553f[0x0][_0x181ea9(0xb5)]&&this[_0x181ea9(0x115)]&&requestAnimationFrame(()=>{const _0x3aab5a=_0x181ea9;this[_0x3aab5a(0x9c)]();});},{'threshold':0.01,'rootMargin':_0x45d8d1(0xcd)}),this[_0x45d8d1(0xb3)][_0x45d8d1(0x112)](this[_0x45d8d1(0xfd)]));}[_0x38503(0xef)](){const _0x4968a3=_0x38503;if(!this[_0x4968a3(0xfd)])return!0x1;if(!this[_0x4968a3(0xfd)][_0x4968a3(0xd9)])return!0x1;const _0x9f7a72=this[_0x4968a3(0xfd)][_0x4968a3(0xe6)]();if(0x0===_0x9f7a72[_0x4968a3(0x8a)]||0x0===_0x9f7a72[_0x4968a3(0xc3)])return!0x1;const _0x292ea5=window[_0x4968a3(0xfa)]||document[_0x4968a3(0x103)][_0x4968a3(0x92)],_0x3fbe0c=window[_0x4968a3(0xd7)]||document[_0x4968a3(0x103)][_0x4968a3(0x8c)],_0x2072ff=0xc8;return _0x9f7a72[_0x4968a3(0x101)]>=-0xc8&&_0x9f7a72[_0x4968a3(0xb9)]<=_0x292ea5+_0x2072ff&&_0x9f7a72[_0x4968a3(0xc4)]>=-0xc8&&_0x9f7a72[_0x4968a3(0xe7)]<=_0x3fbe0c+_0x2072ff;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2894b5=_0x3c71;(function(_0x2af967,_0x22234e){const _0x3fb2a3=_0x3c71,_0x5e7903=_0x2af967();while(!![]){try{const _0x5e4756=-parseInt(_0x3fb2a3(0xba))/0x1+parseInt(_0x3fb2a3(0xbe))/0x2*(-parseInt(_0x3fb2a3(0x8e))/0x3)+-parseInt(_0x3fb2a3(0xb1))/0x4*(-parseInt(_0x3fb2a3(0xca))/0x5)+-parseInt(_0x3fb2a3(0x90))/0x6+parseInt(_0x3fb2a3(0xb0))/0x7*(-parseInt(_0x3fb2a3(0x98))/0x8)+-parseInt(_0x3fb2a3(0xb9))/0x9+parseInt(_0x3fb2a3(0x9c))/0xa*(parseInt(_0x3fb2a3(0xce))/0xb);if(_0x5e4756===_0x22234e)break;else _0x5e7903['push'](_0x5e7903['shift']());}catch(_0x976203){_0x5e7903['push'](_0x5e7903['shift']());}}}(_0x251e,0xbf7bc));import{ButtonView as _0x575a32,IconView as _0x54de70}from'ckeditor5/src/ui.js';import{IconClose as _0x19b92f,IconDocument as _0x397b82,IconFileUpload as _0x1a9e25,IconLink as _0x597c35,IconSelection as _0x45ceb9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1b0ff2}from'../../../aicore/utils/common-translations.js';function _0x251e(){const _0x14d5f9=['add','uiId','render','ck-ai-chat-context-chip_new-chip','bindTemplate','_initializeProperties','fire','5urOzuF','type','_createIconView','isLoading','3437665IRIjZb','_createRemoveButton','_isAnimationOnEnterEnabled','15AtOCui','remove','4311768VQCQta','bind','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createTemplateChildren','disableAnimationOnEnter','_createLoaderIcon','webkitAnimationEnd','ck-ai-chat-context-controls__chip-tooltip','3224112SLkFPo','selection','element','extendTemplate','150yBAgQL','animationend','readonly','lastIndexOf','_setupRemoveButtonEvent','set','setTemplate','slice','removeContextItemChip','label','div','_handleAnimationEndOnce','ck-ai-chat-context-chip_document','itemType','locale','length','isVisible','addEventListener','ck-hidden','execute','21oKbchy','2708252FePfeU','_createTemplateAttributes','document','content','ck-ai-chat-context-chip_wide','ck-ai-chat-context-chip','span','tooltip','13757247vqdkYr','282864pLlhoI','_createLabelElement','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip__label','336542HSGfOc','removeEventListener','small','_setupTemplate','classList'];_0x251e=function(){return _0x14d5f9;};return _0x251e();}function _0x3c71(_0x624aa4,_0x1506a5){const _0x251ee8=_0x251e();return _0x3c71=function(_0x3c718c,_0x5788c5){_0x3c718c=_0x3c718c-0x8e;let _0x201467=_0x251ee8[_0x3c718c];return _0x201467;},_0x3c71(_0x624aa4,_0x1506a5);}import{AISpinnerView as _0x24bfbb}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x1a9e25,'document':_0x397b82,'web-resource':_0x597c35,'text':_0x1a9e25,'selection':_0x45ceb9},bn=_0x2894b5(0xb6),wn=_0x2894b5(0xb5),Tn=_0x2894b5(0xa8),En=_0x2894b5(0xbd),fn=_0x2894b5(0xbc),An=_0x2894b5(0x97),Cn='n';export class AIChatContextItemButtonView extends _0x575a32{constructor(_0x321304,_0x2d215e,_0x828c89,_0x138378,_0x466269=!0x1){const _0x82fe6f=_0x2894b5;super(_0x321304),this[_0x82fe6f(0xd0)]=_0x138378,this[_0x82fe6f(0xc8)](_0x2d215e,_0x828c89,_0x466269),this[_0x82fe6f(0xc1)]();}[_0x2894b5(0xc5)](){const _0x37e109=_0x2894b5;super[_0x37e109(0xc5)](),this[_0x37e109(0xd0)]&&this[_0x37e109(0x9a)]&&(this[_0x37e109(0x9a)][_0x37e109(0xc2)][_0x37e109(0xc3)](_0x37e109(0xc6)),this[_0x37e109(0xa7)](this[_0x37e109(0x9a)],()=>{const _0x3a09b2=_0x37e109;this[_0x3a09b2(0x9a)]&&this[_0x3a09b2(0x9a)][_0x3a09b2(0xc2)][_0x3a09b2(0x8f)](_0x3a09b2(0xc6));}));}[_0x2894b5(0x94)](){const _0x37eeb3=_0x2894b5;this[_0x37eeb3(0xd0)]=!0x1,this[_0x37eeb3(0x9a)]&&this[_0x37eeb3(0x9a)][_0x37eeb3(0xc2)][_0x37eeb3(0x8f)](_0x37eeb3(0xc6));}[_0x2894b5(0xc8)](_0x19b6e7,_0x2289cb,_0x1ba8d8){const _0x3cc1da=_0x2894b5;this[_0x3cc1da(0xa1)](_0x3cc1da(0xa5),_0x19b6e7[_0x3cc1da(0xa5)]),this[_0x3cc1da(0xa1)](_0x3cc1da(0xb8),!0x0),this[_0x3cc1da(0xa1)](_0x3cc1da(0xa9),_0x19b6e7[_0x3cc1da(0xcb)]),this[_0x3cc1da(0xa1)]('id',_0x19b6e7[_0x3cc1da(0xc4)]),this[_0x3cc1da(0xa1)](_0x3cc1da(0x9e),_0x2289cb),this[_0x3cc1da(0xa1)](_0x3cc1da(0xcd),_0x1ba8d8);}[_0x2894b5(0xc1)](){const _0xade04d=_0x2894b5,_0x393026=this[_0xade04d(0xcc)](),_0x4029dd=this[_0xade04d(0xcf)](),_0x10c8fc=this[_0xade04d(0xc7)];this[_0xade04d(0xa2)]({'tag':_0xade04d(0xa6),'attributes':this[_0xade04d(0xb2)](_0x10c8fc),'children':this[_0xade04d(0x93)](_0x393026,_0x4029dd,_0x10c8fc)});}[_0x2894b5(0xb2)](_0x1c6ef8){const _0x50d969=_0x2894b5;return{'class':[bn,_0x1c6ef8['if'](_0x50d969(0xa9),Tn,_0x16c5df=>_0x50d969(0xb3)==_0x16c5df),_0x1c6ef8['if'](_0x50d969(0xa9),wn,_0x40f764=>_0x50d969(0x99)==_0x40f764)],'data-cke-tooltip-text':_0x1c6ef8['to'](_0x50d969(0xa5),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2894b5(0x93)](_0x8ae503,_0x168792,_0x332eb5){const _0x5dd494=_0x2894b5,_0xede7e6=this[_0x5dd494(0xbb)](_0x332eb5),_0x57a847=this[_0x5dd494(0x95)]();return this[_0x5dd494(0x9e)]?[_0x8ae503,_0xede7e6]:[_0x8ae503,_0x57a847,_0xede7e6,_0x168792];}[_0x2894b5(0xbb)](_0x1b24ef){const _0x38455f=_0x2894b5;return{'tag':_0x38455f(0xb7),'attributes':{'class':En},'children':[{'text':_0x1b24ef['to'](_0x38455f(0xa5))}]};}[_0x2894b5(0xcf)](){const _0x2ca843=_0x2894b5,_0x532e4f=new _0x575a32(this[_0x2ca843(0xaa)]);return _0x532e4f[_0x2ca843(0xa1)]({'label':_0x1b0ff2(this[_0x2ca843(0xaa)],_0x2ca843(0x92)),'icon':_0x19b92f}),this[_0x2ca843(0xa0)](_0x532e4f),_0x532e4f;}[_0x2894b5(0xa0)](_0x365f0e){const _0x30c1c5=_0x2894b5;_0x365f0e['on'](_0x30c1c5(0xaf),()=>{const _0x5a65e0=_0x30c1c5;this[_0x5a65e0(0xc9)](_0x5a65e0(0xa4),this['id']);});}[_0x2894b5(0xcc)](){const _0x4b9e98=_0x2894b5,_0xaf8721=this[_0x4b9e98(0xc7)],_0x2d9f6c=new _0x54de70();return _0x2d9f6c[_0x4b9e98(0xb4)]=xn[this[_0x4b9e98(0xa9)]],_0x2d9f6c[_0x4b9e98(0x9b)]({'attributes':{'class':[fn,_0xaf8721['if'](_0x4b9e98(0xcd),_0x4b9e98(0xae),_0x15ed12=>_0x15ed12)]}}),_0x2d9f6c;}[_0x2894b5(0xa7)](_0x34d96e,_0x201bb7){const _0x8b9cc=_0x2894b5;if(!_0x34d96e)return;const _0x2a5865=()=>{const _0x53bb62=_0x3c71;_0x201bb7(),_0x34d96e[_0x53bb62(0xbf)](_0x53bb62(0x9d),_0x2a5865),_0x34d96e[_0x53bb62(0xbf)](_0x53bb62(0x96),_0x2a5865);};_0x34d96e[_0x8b9cc(0xad)](_0x8b9cc(0x9d),_0x2a5865),_0x34d96e[_0x8b9cc(0xad)](_0x8b9cc(0x96),_0x2a5865);}[_0x2894b5(0x95)](){const _0xadbe4c=_0x2894b5,_0x3331d0=new _0x24bfbb(_0xadbe4c(0xc0));return _0x3331d0[_0xadbe4c(0x91)](_0xadbe4c(0xac))['to'](this,_0xadbe4c(0xcd),_0x11da96=>_0x11da96),_0x3331d0;}}function In(_0xf7c12d){const _0x2e2bfe=_0x2894b5;if(!_0xf7c12d)return _0xf7c12d;if(_0xf7c12d[_0x2e2bfe(0xab)]<=0x78)return _0xf7c12d;const _0x1f5b85=_0xf7c12d[_0x2e2bfe(0xa3)](0x0,0x78),_0x369b30=_0x1f5b85[_0x2e2bfe(0x9f)]('\x20');return(_0x369b30>0x0?_0x1f5b85[_0x2e2bfe(0xa3)](0x0,_0x369b30):_0x1f5b85)+'…';}
23
+ const _0x20eaf7=_0x5106;(function(_0x2c6fde,_0x3279e2){const _0x206b96=_0x5106,_0xb41c6c=_0x2c6fde();while(!![]){try{const _0x3380ab=parseInt(_0x206b96(0x1e2))/0x1*(parseInt(_0x206b96(0x1ba))/0x2)+-parseInt(_0x206b96(0x1ac))/0x3*(-parseInt(_0x206b96(0x1c5))/0x4)+parseInt(_0x206b96(0x1b2))/0x5+parseInt(_0x206b96(0x1b1))/0x6+-parseInt(_0x206b96(0x1b6))/0x7+-parseInt(_0x206b96(0x1c2))/0x8+-parseInt(_0x206b96(0x1e3))/0x9*(parseInt(_0x206b96(0x1d8))/0xa);if(_0x3380ab===_0x3279e2)break;else _0xb41c6c['push'](_0xb41c6c['shift']());}catch(_0x1886be){_0xb41c6c['push'](_0xb41c6c['shift']());}}}(_0x5bb5,0x6436c));import{ButtonView as _0x45bcef,IconView as _0xcf1b42}from'ckeditor5/src/ui.js';import{IconClose as _0xf0749e,IconDocument as _0x4a8140,IconFileUpload as _0x39f57d,IconLink as _0x5ee639,IconSelection as _0x449193}from'@ckeditor/ckeditor5-icons';function _0x5bb5(){const _0x1804c2=['locale','span','execute','small','ck-hidden','webkitAnimationEnd','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip_document','_createLabelElement','10152790XmZONc','tooltip','remove','content','classList','add','removeContextItemChip','_isAnimationOnEnterEnabled','label','_createTemplateAttributes','498jUVHBv','9lONeQb','bindTemplate','_setupTemplate','_createRemoveButton','setTemplate','ck-ai-chat-context-chip__type-icon','document','isVisible','ck-ai-chat-context-chip_new-chip','_handleAnimationEndOnce','fire','1251exQhPA','readonly','disableAnimationOnEnter','ck-ai-chat-context-chip','lastIndexOf','4188624LKaNhc','3535905Edmvxx','render','_initializeProperties','isLoading','240597tNGNOY','ck-ai-chat-context-chip__label','type','slice','2404ZwoiNu','set','selection','uiId','animationend','_createIconView','extendTemplate','ck-ai-chat-context-controls__chip-tooltip','6488416vVPMAp','addEventListener','length','2564RlNgiE','_setupRemoveButtonEvent','_createLoaderIcon','itemType','element','_createTemplateChildren','bind','div','removeEventListener','ck-ai-chat-context-chip_wide'];_0x5bb5=function(){return _0x1804c2;};return _0x5bb5();}import{getTranslation as _0x576914}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x4334c5}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x39f57d,'document':_0x4a8140,'web-resource':_0x5ee639,'text':_0x39f57d,'selection':_0x449193},bn=_0x20eaf7(0x1af),wn=_0x20eaf7(0x1ce),Tn=_0x20eaf7(0x1d6),En=_0x20eaf7(0x1b7),fn=_0x20eaf7(0x1a6),An=_0x20eaf7(0x1c1),Cn='n';function _0x5106(_0x372872,_0x200984){const _0x5bb5cd=_0x5bb5();return _0x5106=function(_0x5106c6,_0x55403d){_0x5106c6=_0x5106c6-0x1a3;let _0x7d40b3=_0x5bb5cd[_0x5106c6];return _0x7d40b3;},_0x5106(_0x372872,_0x200984);}export class AIChatContextItemButtonView extends _0x45bcef{constructor(_0x3ab257,_0x150948,_0x5c8518,_0x4912c3,_0x5dc0e1=!0x1){const _0x25a735=_0x20eaf7;super(_0x3ab257),this[_0x25a735(0x1df)]=_0x4912c3,this[_0x25a735(0x1b4)](_0x150948,_0x5c8518,_0x5dc0e1),this[_0x25a735(0x1a3)]();}[_0x20eaf7(0x1b3)](){const _0xcd4b18=_0x20eaf7;super[_0xcd4b18(0x1b3)](),this[_0xcd4b18(0x1df)]&&this[_0xcd4b18(0x1c9)]&&(this[_0xcd4b18(0x1c9)][_0xcd4b18(0x1dc)][_0xcd4b18(0x1dd)](_0xcd4b18(0x1a9)),this[_0xcd4b18(0x1aa)](this[_0xcd4b18(0x1c9)],()=>{const _0x416159=_0xcd4b18;this[_0x416159(0x1c9)]&&this[_0x416159(0x1c9)][_0x416159(0x1dc)][_0x416159(0x1da)](_0x416159(0x1a9));}));}[_0x20eaf7(0x1ae)](){const _0x4ebc18=_0x20eaf7;this[_0x4ebc18(0x1df)]=!0x1,this[_0x4ebc18(0x1c9)]&&this[_0x4ebc18(0x1c9)][_0x4ebc18(0x1dc)][_0x4ebc18(0x1da)](_0x4ebc18(0x1a9));}[_0x20eaf7(0x1b4)](_0x9a1b55,_0x4d4c37,_0x34376f){const _0x5b78b0=_0x20eaf7;this[_0x5b78b0(0x1bb)](_0x5b78b0(0x1e0),_0x9a1b55[_0x5b78b0(0x1e0)]),this[_0x5b78b0(0x1bb)](_0x5b78b0(0x1d9),!0x0),this[_0x5b78b0(0x1bb)](_0x5b78b0(0x1c8),_0x9a1b55[_0x5b78b0(0x1b8)]),this[_0x5b78b0(0x1bb)]('id',_0x9a1b55[_0x5b78b0(0x1bd)]),this[_0x5b78b0(0x1bb)](_0x5b78b0(0x1ad),_0x4d4c37),this[_0x5b78b0(0x1bb)](_0x5b78b0(0x1b5),_0x34376f);}[_0x20eaf7(0x1a3)](){const _0x288e82=_0x20eaf7,_0x54c9a5=this[_0x288e82(0x1bf)](),_0x19c17a=this[_0x288e82(0x1a4)](),_0x3e12ec=this[_0x288e82(0x1e4)];this[_0x288e82(0x1a5)]({'tag':_0x288e82(0x1cc),'attributes':this[_0x288e82(0x1e1)](_0x3e12ec),'children':this[_0x288e82(0x1ca)](_0x54c9a5,_0x19c17a,_0x3e12ec)});}[_0x20eaf7(0x1e1)](_0x3099c8){const _0x497218=_0x20eaf7;return{'class':[bn,_0x3099c8['if'](_0x497218(0x1c8),Tn,_0x253638=>_0x497218(0x1a7)==_0x253638),_0x3099c8['if'](_0x497218(0x1c8),wn,_0x4c42e2=>_0x497218(0x1bc)==_0x4c42e2)],'data-cke-tooltip-text':_0x3099c8['to'](_0x497218(0x1e0),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x20eaf7(0x1ca)](_0xc7d72e,_0x487fa6,_0x9d8c7){const _0x352d2b=_0x20eaf7,_0x2cfe93=this[_0x352d2b(0x1d7)](_0x9d8c7),_0x2d6a3b=this[_0x352d2b(0x1c7)]();return this[_0x352d2b(0x1ad)]?[_0xc7d72e,_0x2cfe93]:[_0xc7d72e,_0x2d6a3b,_0x2cfe93,_0x487fa6];}[_0x20eaf7(0x1d7)](_0x57318e){const _0x3fb6f1=_0x20eaf7;return{'tag':_0x3fb6f1(0x1d0),'attributes':{'class':En},'children':[{'text':_0x57318e['to'](_0x3fb6f1(0x1e0))}]};}[_0x20eaf7(0x1a4)](){const _0x7d9382=_0x20eaf7,_0x388e51=new _0x45bcef(this[_0x7d9382(0x1cf)]);return _0x388e51[_0x7d9382(0x1bb)]({'label':_0x576914(this[_0x7d9382(0x1cf)],_0x7d9382(0x1d5)),'icon':_0xf0749e}),this[_0x7d9382(0x1c6)](_0x388e51),_0x388e51;}[_0x20eaf7(0x1c6)](_0x23e4c6){const _0x1c2053=_0x20eaf7;_0x23e4c6['on'](_0x1c2053(0x1d1),()=>{const _0xdd1433=_0x1c2053;this[_0xdd1433(0x1ab)](_0xdd1433(0x1de),this['id']);});}[_0x20eaf7(0x1bf)](){const _0x57625c=_0x20eaf7,_0x127f56=this[_0x57625c(0x1e4)],_0x5ae3d9=new _0xcf1b42();return _0x5ae3d9[_0x57625c(0x1db)]=xn[this[_0x57625c(0x1c8)]],_0x5ae3d9[_0x57625c(0x1c0)]({'attributes':{'class':[fn,_0x127f56['if'](_0x57625c(0x1b5),_0x57625c(0x1d3),_0x5d4ffd=>_0x5d4ffd)]}}),_0x5ae3d9;}[_0x20eaf7(0x1aa)](_0x350723,_0x335507){const _0x461e0c=_0x20eaf7;if(!_0x350723)return;const _0x2953c1=()=>{const _0x62cc43=_0x5106;_0x335507(),_0x350723[_0x62cc43(0x1cd)](_0x62cc43(0x1be),_0x2953c1),_0x350723[_0x62cc43(0x1cd)](_0x62cc43(0x1d4),_0x2953c1);};_0x350723[_0x461e0c(0x1c3)](_0x461e0c(0x1be),_0x2953c1),_0x350723[_0x461e0c(0x1c3)](_0x461e0c(0x1d4),_0x2953c1);}[_0x20eaf7(0x1c7)](){const _0x13280c=_0x20eaf7,_0x43ed32=new _0x4334c5(_0x13280c(0x1d2));return _0x43ed32[_0x13280c(0x1cb)](_0x13280c(0x1a8))['to'](this,_0x13280c(0x1b5),_0x2a9adc=>_0x2a9adc),_0x43ed32;}}function In(_0x33dbc6){const _0x864571=_0x20eaf7;if(!_0x33dbc6)return _0x33dbc6;if(_0x33dbc6[_0x864571(0x1c4)]<=0x78)return _0x33dbc6;const _0x3f561f=_0x33dbc6[_0x864571(0x1b9)](0x0,0x78),_0x3ff31d=_0x3f561f[_0x864571(0x1b0)]('\x20');return(_0x3ff31d>0x0?_0x3f561f[_0x864571(0x1b9)](0x0,_0x3ff31d):_0x3f561f)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc31e8a=_0x391f;function _0x5f50(){const _0x5a3a09=['trim','_createUrlInputField','AI_CHAT_CONTEXT_URL_INVALID_ERROR','8ECocrQ','submit','_focusables','stop','errorText','listenTo','focusCycler','locale','set','render','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon','shift+tab','12227157KUqbHS','clear','setError','_setupTemplate','AI_CHAT_CONTEXT_URL_LABEL','urlInputField','isEnabled','4397036WUdlPR','execute','tab','createCollection','_createBackButton','esc','children','260490AmyyzB','keystrokes','_updateConfirmButtonState','_handleSubmit','backButton','1564330OouKTZ','_createConfirmButton','refreshBalloon','setTemplate','add','confirmButton','_setupEventHandlers','focus','AI_CHAT_CONTEXT_URL_PLACEHOLDER','8384370mYQKAj','value','getValue','fieldView','destroy','input','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','element','cancel','fire','form','div','ck-labeled-field-view_empty','ck-ai-chat-context-controls__url-form','clearError','363UabsKS','AI_CHAT_CONTEXT_URL_ADD_URL','forEach','_setupKeystrokes','focusTracker','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-ai-chat-context-controls__url-input-section','21092vLPgQn','submitUrl','length','_isValidUrl','105813dqQpjl'];_0x5f50=function(){return _0x5a3a09;};return _0x5f50();}(function(_0x513bb9,_0x4a0c7a){const _0x55a125=_0x391f,_0x14db17=_0x513bb9();while(!![]){try{const _0x51cfa5=-parseInt(_0x55a125(0x231))/0x1+-parseInt(_0x55a125(0x20d))/0x2+-parseInt(_0x55a125(0x225))/0x3*(parseInt(_0x55a125(0x22d))/0x4)+parseInt(_0x55a125(0x216))/0x5+parseInt(_0x55a125(0x208))/0x6+-parseInt(_0x55a125(0x201))/0x7+-parseInt(_0x55a125(0x1ed))/0x8*(-parseInt(_0x55a125(0x1fa))/0x9);if(_0x51cfa5===_0x4a0c7a)break;else _0x14db17['push'](_0x14db17['shift']());}catch(_0x3a1814){_0x14db17['push'](_0x14db17['shift']());}}}(_0x5f50,0xe1c1f));import{FocusTracker as _0x1704d2,KeystrokeHandler as _0x55e2ce}from'ckeditor5/src/utils.js';import{ButtonView as _0x472d5a,FocusCycler as _0x2729d1,LabeledFieldView as _0x4484be,View as _0x196385,FormHeaderView as _0x3d802a,createLabeledInputText as _0x5431a9,submitHandler as _0x16e583}from'ckeditor5/src/ui.js';import{IconCheck as _0x40a34a,IconPreviousArrow as _0x9e59cf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x38d20b}from'../../../aicore/utils/common-translations.js';function _0x391f(_0x242cee,_0x110a2f){const _0x5f50f2=_0x5f50();return _0x391f=function(_0x391f7d,_0x2b8194){_0x391f7d=_0x391f7d-0x1ed;let _0x4ca420=_0x5f50f2[_0x391f7d];return _0x4ca420;},_0x391f(_0x242cee,_0x110a2f);}const rh=_0xc31e8a(0x223),oh=_0xc31e8a(0x22c);export class AIChatContextPanelUrlInputView extends _0x196385{[_0xc31e8a(0x229)];[_0xc31e8a(0x209)];[_0xc31e8a(0x1ef)];[_0xc31e8a(0x1f3)];[_0xc31e8a(0x1ff)];[_0xc31e8a(0x20c)];[_0xc31e8a(0x212)];constructor(_0x1e5f88){const _0x4e0080=_0xc31e8a;super(_0x1e5f88),this[_0x4e0080(0x229)]=new _0x1704d2(),this[_0x4e0080(0x209)]=new _0x55e2ce(),this[_0x4e0080(0x20c)]=this[_0x4e0080(0x205)](),this[_0x4e0080(0x1ff)]=this[_0x4e0080(0x233)](),this[_0x4e0080(0x212)]=this[_0x4e0080(0x20e)](),this[_0x4e0080(0x1ef)]=this[_0x4e0080(0x204)]([this[_0x4e0080(0x20c)],this[_0x4e0080(0x1ff)],this[_0x4e0080(0x212)]]),this[_0x4e0080(0x1f3)]=new _0x2729d1({'focusables':this[_0x4e0080(0x1ef)],'focusTracker':this[_0x4e0080(0x229)],'keystrokeHandler':this[_0x4e0080(0x209)],'actions':{'focusPrevious':_0x4e0080(0x1f9),'focusNext':_0x4e0080(0x203)}}),this[_0x4e0080(0x1fd)](),this[_0x4e0080(0x213)](),this[_0x4e0080(0x228)]();}[_0xc31e8a(0x1f6)](){const _0x617838=_0xc31e8a;super[_0x617838(0x1f6)](),this[_0x617838(0x1ef)][_0x617838(0x227)](_0x1cace1=>{const _0x3807b5=_0x617838;this[_0x3807b5(0x229)][_0x3807b5(0x211)](_0x1cace1[_0x3807b5(0x21d)]),this[_0x3807b5(0x209)][_0x3807b5(0x1f2)](_0x1cace1[_0x3807b5(0x21d)]);}),_0x16e583({'view':this}),this[_0x617838(0x214)]();}[_0xc31e8a(0x21a)](){const _0x2d9272=_0xc31e8a;super[_0x2d9272(0x21a)](),this[_0x2d9272(0x229)][_0x2d9272(0x21a)](),this[_0x2d9272(0x209)][_0x2d9272(0x21a)]();}[_0xc31e8a(0x214)](){const _0x2908c0=_0xc31e8a;this[_0x2908c0(0x1ff)][_0x2908c0(0x214)]();}[_0xc31e8a(0x218)](){const _0x242de2=_0xc31e8a;return this[_0x242de2(0x1ff)][_0x242de2(0x219)][_0x242de2(0x21d)]?.[_0x242de2(0x217)]?.[_0x242de2(0x232)]()||'';}[_0xc31e8a(0x1fb)](){const _0x27d325=_0xc31e8a;this[_0x27d325(0x1ff)][_0x27d325(0x219)][_0x27d325(0x21d)][_0x27d325(0x217)]='',this[_0x27d325(0x1ff)][_0x27d325(0x1f1)]=null,this[_0x27d325(0x212)][_0x27d325(0x200)]=!0x1;}[_0xc31e8a(0x1fc)](_0x4af868){const _0x14ead0=_0xc31e8a;this[_0x14ead0(0x1ff)][_0x14ead0(0x1f1)]=_0x4af868,this[_0x14ead0(0x20a)](),this[_0x14ead0(0x21f)](_0x14ead0(0x20f));}[_0xc31e8a(0x224)](){const _0x4ef90a=_0xc31e8a;this[_0x4ef90a(0x1ff)][_0x4ef90a(0x1f1)]=null,this[_0x4ef90a(0x20a)]();}[_0xc31e8a(0x205)](){const _0xc39525=_0xc31e8a,_0xc12589=new _0x472d5a(this[_0xc39525(0x1f4)]);return _0xc12589[_0xc39525(0x1f5)]({'icon':_0x9e59cf,'tooltip':_0x38d20b(this[_0xc39525(0x1f4)],_0xc39525(0x1f7)),'tooltipPosition':'n','class':_0xc39525(0x22a)}),_0xc12589;}[_0xc31e8a(0x233)](){const _0x1d071e=_0xc31e8a,_0x38c5c1=new _0x4484be(this[_0x1d071e(0x1f4)],_0x5431a9);return _0x38c5c1[_0x1d071e(0x1f5)]({'label':_0x38d20b(this[_0x1d071e(0x1f4)],_0x1d071e(0x1fe)),'class':_0x1d071e(0x222)}),_0x38c5c1[_0x1d071e(0x219)][_0x1d071e(0x1f5)]({'placeholder':_0x38d20b(this[_0x1d071e(0x1f4)],_0x1d071e(0x215))}),_0x38c5c1;}[_0xc31e8a(0x20e)](){const _0x406d7c=_0xc31e8a,_0x2ed9d9=new _0x472d5a(this[_0x406d7c(0x1f4)]);return _0x2ed9d9[_0x406d7c(0x1f5)]({'icon':_0x40a34a,'tooltip':_0x38d20b(this[_0x406d7c(0x1f4)],_0x406d7c(0x226)),'tooltipPosition':'n','class':_0x406d7c(0x1f8),'type':_0x406d7c(0x1ee),'isEnabled':!0x1}),_0x2ed9d9;}[_0xc31e8a(0x1fd)](){const _0x156115=_0xc31e8a,_0x50adcc=new _0x3d802a(this[_0x156115(0x1f4)],{'label':_0x38d20b(this[_0x156115(0x1f4)],_0x156115(0x226)),'class':_0x156115(0x21c)});_0x50adcc[_0x156115(0x207)][_0x156115(0x211)](this[_0x156115(0x20c)],0x0),this[_0x156115(0x210)]({'tag':_0x156115(0x220),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x50adcc,{'tag':_0x156115(0x221),'attributes':{'class':oh},'children':[this[_0x156115(0x1ff)],this[_0x156115(0x212)]]}]});}[_0xc31e8a(0x213)](){const _0x44ee49=_0xc31e8a;this[_0x44ee49(0x20c)]['on'](_0x44ee49(0x202),()=>{const _0x5a13f6=_0x44ee49;this[_0x5a13f6(0x1fb)](),this[_0x5a13f6(0x21f)](_0x5a13f6(0x21e));}),this[_0x44ee49(0x1ff)][_0x44ee49(0x219)]['on'](_0x44ee49(0x21b),()=>{const _0x4c49a4=_0x44ee49;this[_0x4c49a4(0x224)](),this[_0x4c49a4(0x20a)](),this[_0x4c49a4(0x21f)](_0x4c49a4(0x20f));}),this['on'](_0x44ee49(0x1ee),_0x49979a=>{const _0x421285=_0x44ee49;_0x49979a[_0x421285(0x1f0)](),this[_0x421285(0x20b)]();});}[_0xc31e8a(0x228)](){const _0x3e251f=_0xc31e8a;this[_0x3e251f(0x209)][_0x3e251f(0x1f5)](_0x3e251f(0x206),(_0x2474f8,_0x295cbc)=>{const _0x59436a=_0x3e251f;this[_0x59436a(0x1fb)](),this[_0x59436a(0x21f)](_0x59436a(0x21e)),_0x295cbc();});}[_0xc31e8a(0x20b)](){const _0x26dadb=_0xc31e8a,_0x3bb258=this[_0x26dadb(0x218)]()[_0x26dadb(0x232)]();_0x3bb258?this[_0x26dadb(0x230)](_0x3bb258)?(this[_0x26dadb(0x224)](),this[_0x26dadb(0x21f)](_0x26dadb(0x22e),_0x3bb258)):this[_0x26dadb(0x1fc)](_0x38d20b(this[_0x26dadb(0x1f4)],_0x26dadb(0x234))):this[_0x26dadb(0x1fc)](_0x38d20b(this[_0x26dadb(0x1f4)],_0x26dadb(0x22b)));}[_0xc31e8a(0x20a)](){const _0x272607=_0xc31e8a,_0xeb77e1=this[_0x272607(0x218)]()[_0x272607(0x232)](),_0x1c912e=!!this[_0x272607(0x1ff)][_0x272607(0x1f1)];this[_0x272607(0x212)][_0x272607(0x200)]=_0xeb77e1[_0x272607(0x22f)]>0x0&&!_0x1c912e;}[_0xc31e8a(0x230)](_0x47a544){try{return!!new URL(_0x47a544);}catch{return!0x1;}}}
23
+ const _0x497c6f=_0x27a0;(function(_0x3e13a0,_0x18bd81){const _0x55ac33=_0x27a0,_0x34c7ff=_0x3e13a0();while(!![]){try{const _0x4ff7b1=-parseInt(_0x55ac33(0x159))/0x1+parseInt(_0x55ac33(0x16e))/0x2*(-parseInt(_0x55ac33(0x164))/0x3)+-parseInt(_0x55ac33(0x15b))/0x4+parseInt(_0x55ac33(0x182))/0x5*(-parseInt(_0x55ac33(0x151))/0x6)+-parseInt(_0x55ac33(0x17d))/0x7*(parseInt(_0x55ac33(0x188))/0x8)+parseInt(_0x55ac33(0x150))/0x9*(-parseInt(_0x55ac33(0x174))/0xa)+parseInt(_0x55ac33(0x163))/0xb;if(_0x4ff7b1===_0x18bd81)break;else _0x34c7ff['push'](_0x34c7ff['shift']());}catch(_0x1892d1){_0x34c7ff['push'](_0x34c7ff['shift']());}}}(_0xaf1d,0x3b7f2));import{FocusTracker as _0x1c308b,KeystrokeHandler as _0x14b704}from'ckeditor5/src/utils.js';import{ButtonView as _0x149ef7,FocusCycler as _0x25da57,LabeledFieldView as _0x2fe33e,View as _0x5803c5,FormHeaderView as _0x17330c,createLabeledInputText as _0x6a8e34,submitHandler as _0x4f4550}from'ckeditor5/src/ui.js';function _0xaf1d(){const _0x30500a=['setTemplate','input','AI_CHAT_CONTEXT_URL_PLACEHOLDER','14891998loqfSh','60qcvjMk','ck-ai-chat-context-controls__url-form','keystrokes','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','value','_createConfirmButton','focusTracker','cancel','createCollection','17912qQrZHN','AI_CHAT_CONTEXT_URL_INVALID_ERROR','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-button-icon\x20ck-button-back','_isValidUrl','1744010kfENNA','fieldView','ck-labeled-field-view_empty','stop','forEach','AI_CHAT_CONTEXT_URL_ADD_URL','_handleSubmit','render','execute','21lCrcIx','tab','backButton','_setupTemplate','shift+tab','125hKLCnZ','ck-button-icon','div','isEnabled','trim','_createBackButton','38768YGHMEW','_setupKeystrokes','focus','esc','errorText','element','length','set','add','_setupEventHandlers','submit','locale','form','_focusables','urlInputField','clearError','submitUrl','confirmButton','9vsLSLa','25194lnuGkD','AI_CHAT_CONTEXT_URL_LABEL','destroy','children','getValue','fire','_createUrlInputField','clear','364741HwrHEN','focusCycler','1089380fCNVfQ','refreshBalloon','_updateConfirmButtonState','setError','listenTo'];_0xaf1d=function(){return _0x30500a;};return _0xaf1d();}import{IconCheck as _0x420e8e,IconPreviousArrow as _0x104389}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2c0a24}from'../../../aicore/utils/common-translations.js';const rh=_0x497c6f(0x165),oh=_0x497c6f(0x170);function _0x27a0(_0x2a0aac,_0x4181d2){const _0xaf1d1=_0xaf1d();return _0x27a0=function(_0x27a080,_0x517145){_0x27a080=_0x27a080-0x142;let _0x570692=_0xaf1d1[_0x27a080];return _0x570692;},_0x27a0(_0x2a0aac,_0x4181d2);}export class AIChatContextPanelUrlInputView extends _0x5803c5{[_0x497c6f(0x16b)];[_0x497c6f(0x166)];[_0x497c6f(0x14b)];[_0x497c6f(0x15a)];[_0x497c6f(0x14c)];[_0x497c6f(0x17f)];[_0x497c6f(0x14f)];constructor(_0x4a99a6){const _0xd8fdfe=_0x497c6f;super(_0x4a99a6),this[_0xd8fdfe(0x16b)]=new _0x1c308b(),this[_0xd8fdfe(0x166)]=new _0x14b704(),this[_0xd8fdfe(0x17f)]=this[_0xd8fdfe(0x187)](),this[_0xd8fdfe(0x14c)]=this[_0xd8fdfe(0x157)](),this[_0xd8fdfe(0x14f)]=this[_0xd8fdfe(0x16a)](),this[_0xd8fdfe(0x14b)]=this[_0xd8fdfe(0x16d)]([this[_0xd8fdfe(0x17f)],this[_0xd8fdfe(0x14c)],this[_0xd8fdfe(0x14f)]]),this[_0xd8fdfe(0x15a)]=new _0x25da57({'focusables':this[_0xd8fdfe(0x14b)],'focusTracker':this[_0xd8fdfe(0x16b)],'keystrokeHandler':this[_0xd8fdfe(0x166)],'actions':{'focusPrevious':_0xd8fdfe(0x181),'focusNext':_0xd8fdfe(0x17e)}}),this[_0xd8fdfe(0x180)](),this[_0xd8fdfe(0x147)](),this[_0xd8fdfe(0x189)]();}[_0x497c6f(0x17b)](){const _0x44c811=_0x497c6f;super[_0x44c811(0x17b)](),this[_0x44c811(0x14b)][_0x44c811(0x178)](_0x454c71=>{const _0xfe716c=_0x44c811;this[_0xfe716c(0x16b)][_0xfe716c(0x146)](_0x454c71[_0xfe716c(0x143)]),this[_0xfe716c(0x166)][_0xfe716c(0x15f)](_0x454c71[_0xfe716c(0x143)]);}),_0x4f4550({'view':this}),this[_0x44c811(0x18a)]();}[_0x497c6f(0x153)](){const _0x2131e8=_0x497c6f;super[_0x2131e8(0x153)](),this[_0x2131e8(0x16b)][_0x2131e8(0x153)](),this[_0x2131e8(0x166)][_0x2131e8(0x153)]();}[_0x497c6f(0x18a)](){const _0x3ea13d=_0x497c6f;this[_0x3ea13d(0x14c)][_0x3ea13d(0x18a)]();}[_0x497c6f(0x155)](){const _0x3b02c2=_0x497c6f;return this[_0x3b02c2(0x14c)][_0x3b02c2(0x175)][_0x3b02c2(0x143)]?.[_0x3b02c2(0x169)]?.[_0x3b02c2(0x186)]()||'';}[_0x497c6f(0x158)](){const _0x4d4f2a=_0x497c6f;this[_0x4d4f2a(0x14c)][_0x4d4f2a(0x175)][_0x4d4f2a(0x143)][_0x4d4f2a(0x169)]='',this[_0x4d4f2a(0x14c)][_0x4d4f2a(0x142)]=null,this[_0x4d4f2a(0x14f)][_0x4d4f2a(0x185)]=!0x1;}[_0x497c6f(0x15e)](_0x2d2eca){const _0x591e5a=_0x497c6f;this[_0x591e5a(0x14c)][_0x591e5a(0x142)]=_0x2d2eca,this[_0x591e5a(0x15d)](),this[_0x591e5a(0x156)](_0x591e5a(0x15c));}[_0x497c6f(0x14d)](){const _0x7d1f14=_0x497c6f;this[_0x7d1f14(0x14c)][_0x7d1f14(0x142)]=null,this[_0x7d1f14(0x15d)]();}[_0x497c6f(0x187)](){const _0x34dea1=_0x497c6f,_0x1d58b0=new _0x149ef7(this[_0x34dea1(0x149)]);return _0x1d58b0[_0x34dea1(0x145)]({'icon':_0x104389,'tooltip':_0x2c0a24(this[_0x34dea1(0x149)],_0x34dea1(0x168)),'tooltipPosition':'n','class':_0x34dea1(0x172)}),_0x1d58b0;}[_0x497c6f(0x157)](){const _0x437d22=_0x497c6f,_0x3e2937=new _0x2fe33e(this[_0x437d22(0x149)],_0x6a8e34);return _0x3e2937[_0x437d22(0x145)]({'label':_0x2c0a24(this[_0x437d22(0x149)],_0x437d22(0x152)),'class':_0x437d22(0x176)}),_0x3e2937[_0x437d22(0x175)][_0x437d22(0x145)]({'placeholder':_0x2c0a24(this[_0x437d22(0x149)],_0x437d22(0x162))}),_0x3e2937;}[_0x497c6f(0x16a)](){const _0x266704=_0x497c6f,_0x309f7e=new _0x149ef7(this[_0x266704(0x149)]);return _0x309f7e[_0x266704(0x145)]({'icon':_0x420e8e,'tooltip':_0x2c0a24(this[_0x266704(0x149)],_0x266704(0x179)),'tooltipPosition':'n','class':_0x266704(0x183),'type':_0x266704(0x148),'isEnabled':!0x1}),_0x309f7e;}[_0x497c6f(0x180)](){const _0x33382b=_0x497c6f,_0xcafc3=new _0x17330c(this[_0x33382b(0x149)],{'label':_0x2c0a24(this[_0x33382b(0x149)],_0x33382b(0x179)),'class':_0x33382b(0x167)});_0xcafc3[_0x33382b(0x154)][_0x33382b(0x146)](this[_0x33382b(0x17f)],0x0),this[_0x33382b(0x160)]({'tag':_0x33382b(0x14a),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0xcafc3,{'tag':_0x33382b(0x184),'attributes':{'class':oh},'children':[this[_0x33382b(0x14c)],this[_0x33382b(0x14f)]]}]});}[_0x497c6f(0x147)](){const _0x3cb22a=_0x497c6f;this[_0x3cb22a(0x17f)]['on'](_0x3cb22a(0x17c),()=>{const _0x1586e4=_0x3cb22a;this[_0x1586e4(0x158)](),this[_0x1586e4(0x156)](_0x1586e4(0x16c));}),this[_0x3cb22a(0x14c)][_0x3cb22a(0x175)]['on'](_0x3cb22a(0x161),()=>{const _0x577cf4=_0x3cb22a;this[_0x577cf4(0x14d)](),this[_0x577cf4(0x15d)](),this[_0x577cf4(0x156)](_0x577cf4(0x15c));}),this['on'](_0x3cb22a(0x148),_0x3a6298=>{const _0x308fa5=_0x3cb22a;_0x3a6298[_0x308fa5(0x177)](),this[_0x308fa5(0x17a)]();});}[_0x497c6f(0x189)](){const _0x2eb3c4=_0x497c6f;this[_0x2eb3c4(0x166)][_0x2eb3c4(0x145)](_0x2eb3c4(0x18b),(_0x27c15a,_0x15e844)=>{const _0x2aa5b0=_0x2eb3c4;this[_0x2aa5b0(0x158)](),this[_0x2aa5b0(0x156)](_0x2aa5b0(0x16c)),_0x15e844();});}[_0x497c6f(0x17a)](){const _0x557967=_0x497c6f,_0x404870=this[_0x557967(0x155)]()[_0x557967(0x186)]();_0x404870?this[_0x557967(0x173)](_0x404870)?(this[_0x557967(0x14d)](),this[_0x557967(0x156)](_0x557967(0x14e),_0x404870)):this[_0x557967(0x15e)](_0x2c0a24(this[_0x557967(0x149)],_0x557967(0x16f))):this[_0x557967(0x15e)](_0x2c0a24(this[_0x557967(0x149)],_0x557967(0x171)));}[_0x497c6f(0x15d)](){const _0x308365=_0x497c6f,_0x13957c=this[_0x308365(0x155)]()[_0x308365(0x186)](),_0x40dead=!!this[_0x308365(0x14c)][_0x308365(0x142)];this[_0x308365(0x14f)][_0x308365(0x185)]=_0x13957c[_0x308365(0x144)]>0x0&&!_0x40dead;}[_0x497c6f(0x173)](_0x1811c6){try{return!!new URL(_0x1811c6);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30b887=_0x2e49;function _0x9c12(){const _0x286ab6=['removeContextItem','balloonView','_urlBalloonPanelView','_conversationContextsChips','menuitem','updateResourceState','isLoading','AI_CHAT_CONTEXT_URL_LABEL','_createResourcesBalloonView','_createContextButton','_createUrlBalloonPanelView','addFileToContext','1328874uVfaoR','ck-ai-chat-context-chips-wrapper-balloon','_showSourceResourcesBalloon','children','extendTemplate','setAddContextOptions','focus','ck-ai-chat-context-controls','_urlInputView','enabled','closest','_setupAllBalloonClickOutsideHandlers','hideUrlBalloonPanel','northArrowSouthEast','content','reorganizeChips','1137UsvIcr','_setAddContextButtonEnabled','_overflowManager','_setupTemplate','bind','ck-ai-chat','showSourceResourcesBalloon','hide','_handleAddContextButtonClick','showAddContextBalloonPanel','sources','AI_CHAT_CONTEXT_FILE_LABEL','clearCurrentContextItems','clearConversationContextItems','current','refreshBalloon','removeContextItemChip','7610596EFPLPM','loadSourceResources','_addContextBalloonConfig','southArrowNorthEast','_currentContextsChips','_setBalloonPanelContent','isEnabled','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createBalloonButton','_createArrowView','_createBaseBalloonPanel','body','hideAddContextBalloonPanel','southArrowNorthWest','tooltip','ck-ai-chat-context-controls__add-context-button','overflowChips','_addUrlContent','defaultPositions','submitUrl','done','_createAddContextBalloonPanelView','_addContextBalloonPanelView','execute','add','14004zDoFRI','populateSourceResourceBalloon','icon','_addContextToCollection','type','isAnyResourceBalloonVisible','_toggleAddContextBalloon','bodyCollection','13956624whtoHo','ck-ai-chat-controls_context_show-more-button','createCollection','fire','setContainerElement','isReadOnly','addResourceToContext','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls__add-context-balloon-panel','closeSourceResourceBalloon','setContextItemLoading','files','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-controls-button','arrowView','_getLimiterElement','showUrlBalloonPanel','destroy','2154xAbeYK','_setupUrlBalloonClickOutsideHandler','5376705dsQCAd','setConversationContext','element','source','remove','ck-ai-chat-context-controls__show-more-balloon-panel','northArrowSouthWest','southArrowNorth','div','searchInputVisibleFrom','addDocumentToContext','cancel','addContextItem','49cmMFFu','addUrlToContext','document','set','ck-ai-chat-context-controls__pending-contexts','setTemplate','ck-reset_all-excluded','locale','53050MgTYNX','addContextButtonView','_bindEventHandlers','clear','isOn','label','northArrowSouth','_resourcesBalloonView','ck-ai-chat-context-controls__url-balloon-panel','_setupAddContextBalloonClickOutsideHandler','buttonView','ck-ai-chat-context-controls__balloon-button-source','_removeContextFromCollection','_createAddContextButtonView','_handleUrlSubmit','5157000ZPDbCH','render','__arrow','pin','isVisible','isHidden','find','conversation','show','urls'];_0x9c12=function(){return _0x286ab6;};return _0x9c12();}(function(_0x395c40,_0x4fead1){const _0x181cb1=_0x2e49,_0x362b1b=_0x395c40();while(!![]){try{const _0x3150fa=parseInt(_0x181cb1(0x14a))/0x1*(parseInt(_0x181cb1(0x18e))/0x2)+parseInt(_0x181cb1(0x190))/0x3+parseInt(_0x181cb1(0x15b))/0x4+parseInt(_0x181cb1(0x124))/0x5+parseInt(_0x181cb1(0x13a))/0x6*(parseInt(_0x181cb1(0x10d))/0x7)+parseInt(_0x181cb1(0x17c))/0x8+-parseInt(_0x181cb1(0x174))/0x9*(parseInt(_0x181cb1(0x115))/0xa);if(_0x3150fa===_0x4fead1)break;else _0x362b1b['push'](_0x362b1b['shift']());}catch(_0x172ae5){_0x362b1b['push'](_0x362b1b['shift']());}}}(_0x9c12,0xf1fd0));import{BalloonPanelView as _0x55fc14,ButtonView as _0x4b3a92,clickOutsideHandler as _0x48c440,FileDialogButtonView as _0x3ee739,IconView as _0x16bf4f,View as _0x22f250}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4ea551,IconDocument as _0x103fe2,IconDocumentOutline as _0x9d13af,IconDropdownArrow as _0x54d1b5,IconLink as _0x4cdb0b,IconPaperClip as _0x56f4ef}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2a46dc}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x147446}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x425414}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2c614d}from'../../../aicore/utils/common-translations.js';function _0x2e49(_0x423693,_0xa0eac9){const _0x9c1210=_0x9c12();return _0x2e49=function(_0x2e4953,_0x301025){_0x2e4953=_0x2e4953-0x10a;let _0x273827=_0x9c1210[_0x2e4953];return _0x273827;},_0x2e49(_0x423693,_0xa0eac9);}import{AIChatResourcesBalloonView as _0x20c6df}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x30b887(0x10a),_0x30b887(0x139),_0x30b887(0x10e),_0x30b887(0x182),_0x30b887(0x12e),_0x30b887(0x15c)];const Eo=_0x30b887(0x141),vo=_0x30b887(0x111),Vo=_0x30b887(0x184),Io=_0x30b887(0x16a),Po=_0x30b887(0x11d),Ro=_0x30b887(0x183),Uo=_0x30b887(0x120),Lo=_0x30b887(0x189),No=_0x30b887(0x13b),Oo=_0x30b887(0x17d),Mo=_0x30b887(0x195),Ho=_0x30b887(0x14f),jo=[_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x196)],_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x11b)],_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x147)],_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x168)],_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x197)],_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x15e)]];export class AIChatContextPanelView extends _0x22f250{[_0x30b887(0x116)];[_0x30b887(0x15f)]=this[_0x30b887(0x17e)]();[_0x30b887(0x131)]=this[_0x30b887(0x17e)]();[_0x30b887(0x14c)];[_0x30b887(0x171)];[_0x30b887(0x130)];[_0x30b887(0x142)];[_0x30b887(0x11c)];[_0x30b887(0x15d)];[_0x30b887(0x17b)];constructor(_0xdd0829,_0x38f752){const _0x5aa827=_0x30b887;super(_0xdd0829),this[_0x5aa827(0x17b)]=_0x38f752[_0x5aa827(0x17b)],this[_0x5aa827(0x15f)]=this[_0x5aa827(0x17e)](),this[_0x5aa827(0x131)]=this[_0x5aa827(0x17e)](),this[_0x5aa827(0x116)]=this[_0x5aa827(0x122)](_0xdd0829),this[_0x5aa827(0x171)]=this[_0x5aa827(0x170)](_0xdd0829),this[_0x5aa827(0x130)]=this[_0x5aa827(0x138)](_0xdd0829),this[_0x5aa827(0x11c)]=this[_0x5aa827(0x136)](_0xdd0829,_0x38f752);const _0x19f37f={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x5aa827(0x14c)]=new _0x425414(_0xdd0829,this[_0x5aa827(0x15f)],_0x19f37f,this[_0x5aa827(0x17b)],this),this[_0x5aa827(0x15d)]={'buttonView':this[_0x5aa827(0x116)],'balloonView':this[_0x5aa827(0x171)],'hideMethod':this[_0x5aa827(0x167)][_0x5aa827(0x14e)](this),'showMethod':this[_0x5aa827(0x153)][_0x5aa827(0x14e)](this)},this[_0x5aa827(0x14d)](),this[_0x5aa827(0x117)]();}[_0x30b887(0x125)](){const _0x2fdf6f=_0x30b887;super[_0x2fdf6f(0x125)](),this[_0x2fdf6f(0x145)](),this[_0x2fdf6f(0x14c)][_0x2fdf6f(0x180)](this[_0x2fdf6f(0x192)]),this[_0x2fdf6f(0x14c)][_0x2fdf6f(0x149)]();}[_0x30b887(0x18d)](){const _0x10231f=_0x30b887;super[_0x10231f(0x18d)](),this[_0x10231f(0x14c)][_0x10231f(0x18d)](),this[_0x10231f(0x11c)][_0x10231f(0x18d)]();}[_0x30b887(0x10c)](_0xeff4ce,_0x1ae3ba){const _0x2ddbcf=_0x30b887,_0x1da06b=this[_0x2ddbcf(0x137)](_0xeff4ce,_0x2ddbcf(0x158),!0x0,_0x1ae3ba);this[_0x2ddbcf(0x177)](_0x1da06b,this[_0x2ddbcf(0x15f)]),this[_0x2ddbcf(0x14c)][_0x2ddbcf(0x149)]();}[_0x30b887(0x12e)](_0x37ef44){const _0x1f0995=_0x30b887;this[_0x1f0995(0x121)](_0x37ef44,this[_0x1f0995(0x15f)]),this[_0x1f0995(0x121)](_0x37ef44,this[_0x1f0995(0x14c)][_0x1f0995(0x16b)]),this[_0x1f0995(0x14c)][_0x1f0995(0x149)]();}[_0x30b887(0x186)](_0x13583a,_0x45d997){const _0x47d71d=_0x30b887;let _0x4c1f2c=this[_0x47d71d(0x15f)][_0x47d71d(0x12a)](_0xff9230=>_0xff9230['id']===_0x13583a);_0x4c1f2c||(_0x4c1f2c=this[_0x47d71d(0x14c)][_0x47d71d(0x16b)][_0x47d71d(0x12a)](_0x3c7c9d=>_0x3c7c9d['id']===_0x13583a)),_0x4c1f2c&&(_0x4c1f2c[_0x47d71d(0x134)]=_0x45d997);}[_0x30b887(0x191)](_0x5413f6){const _0x1a72f6=_0x30b887;this[_0x1a72f6(0x131)][_0x1a72f6(0x118)]();for(const _0x666605 of _0x5413f6){const _0x28b13a=this[_0x1a72f6(0x137)](_0x666605,_0x1a72f6(0x12b),!0x1,!0x1);this[_0x1a72f6(0x177)](_0x28b13a,this[_0x1a72f6(0x131)]);}}[_0x30b887(0x156)](){const _0x58fad2=_0x30b887;this[_0x58fad2(0x15f)][_0x58fad2(0x118)](),this[_0x58fad2(0x14c)][_0x58fad2(0x118)]();}[_0x30b887(0x157)](){const _0x3c9f7c=_0x30b887;this[_0x3c9f7c(0x131)][_0x3c9f7c(0x118)]();}[_0x30b887(0x133)](_0x335a41,_0x2204b5,_0x4b9861){const _0x4f8668=_0x30b887;this[_0x4f8668(0x11c)][_0x4f8668(0x133)](_0x335a41,_0x2204b5,_0x4b9861);}[_0x30b887(0x167)](){const _0x3973c2=_0x30b887;this[_0x3973c2(0x17a)](!0x1);}[_0x30b887(0x153)](){const _0x242df4=_0x30b887;this[_0x242df4(0x17a)](!0x0);}[_0x30b887(0x146)](){const _0x32f29e=_0x30b887;this[_0x32f29e(0x130)][_0x32f29e(0x151)](),this[_0x32f29e(0x116)][_0x32f29e(0x119)]=!0x1,this[_0x32f29e(0x142)]&&this[_0x32f29e(0x142)][_0x32f29e(0x118)]();}[_0x30b887(0x18c)](){const _0x2a7746=_0x30b887;this[_0x2a7746(0x130)][_0x2a7746(0x12c)](),this[_0x2a7746(0x116)][_0x2a7746(0x119)]=!0x0;}[_0x30b887(0x13c)](_0x4cc99b){const _0x3bdc74=_0x30b887;this[_0x3bdc74(0x11c)][_0x3bdc74(0x150)](_0x4cc99b),this[_0x3bdc74(0x116)][_0x3bdc74(0x119)]=!0x0;}[_0x30b887(0x175)](_0x13c5e2,_0x421ed5,_0x260f8c,_0x504dba){const _0x3318ba=_0x30b887;this[_0x3318ba(0x11c)][_0x3318ba(0x175)](_0x13c5e2,_0x260f8c,_0x504dba);}[_0x30b887(0x185)](_0x53f041){const _0x844eb=_0x30b887;this[_0x844eb(0x11c)][_0x844eb(0x185)](_0x53f041),this[_0x844eb(0x116)][_0x844eb(0x119)]=!0x1;}[_0x30b887(0x13f)](_0x2914aa){const _0x4b765c=_0x30b887;this[_0x4b765c(0x160)](this[_0x4b765c(0x171)],this[_0x4b765c(0x114)],_0x2914aa),this[_0x4b765c(0x14b)](_0x2914aa);}[_0x30b887(0x14b)](_0x4347c5){const _0x2d5648=_0x30b887,_0x23a221=!_0x4347c5[_0x2d5648(0x10f)][_0x2d5648(0x129)]&&_0x4347c5[_0x2d5648(0x10f)][_0x2d5648(0x143)],_0x185a05=_0x4347c5[_0x2d5648(0x12d)][_0x2d5648(0x143)],_0xaa5136=_0x4347c5[_0x2d5648(0x187)][_0x2d5648(0x143)];this[_0x2d5648(0x116)][_0x2d5648(0x161)]=_0x23a221||_0x185a05||_0xaa5136;}[_0x30b887(0x14d)](){const _0x52188a=_0x30b887;this[_0x52188a(0x112)]({'tag':_0x52188a(0x198),'attributes':{'class':[Eo,_0x52188a(0x113)]},'children':[{'tag':_0x52188a(0x198),'attributes':{'class':vo},'children':this[_0x52188a(0x15f)]}]});}[_0x30b887(0x117)](){const _0x17e029=_0x30b887;this[_0x17e029(0x116)]['on'](_0x17e029(0x172),()=>{const _0x158649=_0x17e029;this[_0x158649(0x152)]();});}[_0x30b887(0x122)](_0x382e36){const _0x3f6bf5=_0x30b887,_0x5f042e=new _0x4b3a92(_0x382e36);return _0x5f042e[_0x3f6bf5(0x110)]({'label':_0x2c614d(_0x382e36,_0x3f6bf5(0x188)),'class':Lo+'\x20'+Io,'icon':_0x56f4ef,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5f042e;}[_0x30b887(0x170)](_0x1542bc){const _0x5a7ac9=_0x30b887;return this[_0x5a7ac9(0x165)](_0x1542bc,Vo);}[_0x30b887(0x138)](_0x1b82aa){const _0x234e47=_0x30b887,_0x377a50=this[_0x234e47(0x165)](_0x1b82aa,Po);return this[_0x234e47(0x16c)](_0x377a50,_0x1b82aa),_0x377a50;}[_0x30b887(0x136)](_0x3cc582,_0x2d42b7){const _0x4e711e=_0x30b887,_0x2850fe={'searchInputVisibleFrom':_0x2d42b7[_0x4e711e(0x199)],'onBackToContext':()=>{const _0x55e688=_0x4e711e;this[_0x55e688(0x153)](),this[_0x55e688(0x171)][_0x55e688(0x127)]({'target':this[_0x55e688(0x116)][_0x55e688(0x192)],'limiter':this[_0x55e688(0x18b)](),'positions':jo});},'onResourceSelected':(_0x2ab98d,_0x51c6d2)=>{const _0x5d0c0f=_0x4e711e;this[_0x5d0c0f(0x17f)](_0x5d0c0f(0x182),{'source':_0x2ab98d,'resource':_0x51c6d2});},'onLoadSourceResources':_0x2f19fa=>{const _0x5a6a0f=_0x4e711e;this[_0x5a6a0f(0x17f)](_0x5a6a0f(0x15c),_0x2f19fa);},'onBalloonClosed':()=>{const _0x494a05=_0x4e711e;this[_0x494a05(0x116)][_0x494a05(0x119)]=!0x1;},'getLimiterElement':()=>this[_0x4e711e(0x18b)](),'getTargetElement':()=>this[_0x4e711e(0x116)][_0x4e711e(0x192)]};return new _0x20c6df(_0x3cc582,_0x2d42b7[_0x4e711e(0x17b)],_0x2850fe);}[_0x30b887(0x18b)](){const _0x5bae44=_0x30b887;return this[_0x5bae44(0x192)]?.[_0x5bae44(0x144)]('.'+Ho)||document[_0x5bae44(0x166)];}[_0x30b887(0x165)](_0x319461,_0x5b22e7){const _0xe6f2af=_0x30b887,_0x1c8452=new _0x55fc14(_0x319461);return _0x1c8452[_0xe6f2af(0x13e)]({'attributes':{'class':_0x5b22e7}}),this[_0xe6f2af(0x17b)][_0xe6f2af(0x173)](_0x1c8452),_0x1c8452;}[_0x30b887(0x160)](_0x30f697,_0x2750eb,_0x1d4405){const _0x7fadb4=_0x30b887;if(_0x30f697[_0x7fadb4(0x148)][_0x7fadb4(0x118)](),!_0x1d4405[_0x7fadb4(0x10f)][_0x7fadb4(0x129)]&&_0x1d4405[_0x7fadb4(0x10f)][_0x7fadb4(0x143)]){const _0x53fd66=this[_0x7fadb4(0x163)](_0x2750eb,{'label':_0x2c614d(_0x2750eb,_0x7fadb4(0x162)),'icon':_0x103fe2});_0x53fd66['on'](_0x7fadb4(0x172),()=>{const _0x22cd56=_0x7fadb4;this[_0x22cd56(0x17f)](_0x22cd56(0x10a)),this[_0x22cd56(0x167)]();}),_0x30f697[_0x7fadb4(0x148)][_0x7fadb4(0x173)](_0x53fd66);}if(_0x1d4405[_0x7fadb4(0x12d)][_0x7fadb4(0x143)]){const _0x57e77e=this[_0x7fadb4(0x163)](_0x2750eb,{'label':_0x2c614d(_0x2750eb,_0x7fadb4(0x135)),'icon':_0x4cdb0b});_0x57e77e['on'](_0x7fadb4(0x172),()=>{const _0x5c9f7e=_0x7fadb4;this[_0x5c9f7e(0x167)](),this[_0x5c9f7e(0x18c)](),this[_0x5c9f7e(0x130)][_0x5c9f7e(0x127)]({'target':this[_0x5c9f7e(0x116)][_0x5c9f7e(0x192)],'limiter':this[_0x5c9f7e(0x18b)](),'positions':jo}),this[_0x5c9f7e(0x142)][_0x5c9f7e(0x140)]();}),_0x30f697[_0x7fadb4(0x148)][_0x7fadb4(0x173)](_0x57e77e);}if(_0x1d4405[_0x7fadb4(0x187)][_0x7fadb4(0x143)]){const _0x4d2e57=new _0x3ee739(_0x2750eb);_0x4d2e57[_0x7fadb4(0x110)]({'label':_0x2c614d(_0x2750eb,_0x7fadb4(0x155)),'icon':_0x4ea551,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x4d2e57['on'](_0x7fadb4(0x16f),(_0xc90907,_0x41ae67)=>{const _0xf2bb19=_0x7fadb4;this[_0xf2bb19(0x17f)](_0xf2bb19(0x139),_0x41ae67),this[_0xf2bb19(0x167)]();}),_0x4d2e57[_0x7fadb4(0x169)]=!0x0,_0x30f697[_0x7fadb4(0x148)][_0x7fadb4(0x173)](_0x4d2e57);}for(const _0x38a68f of _0x1d4405[_0x7fadb4(0x154)]){const _0x54f7bb=this[_0x7fadb4(0x163)](_0x2750eb,{'label':_0x38a68f[_0x7fadb4(0x11a)],'icon':_0x38a68f[_0x7fadb4(0x176)]||_0x9d13af,'type':_0x7fadb4(0x193)});_0x30f697[_0x7fadb4(0x148)][_0x7fadb4(0x173)](_0x54f7bb),_0x54f7bb['on'](_0x7fadb4(0x172),()=>{const _0x2ee5b8=_0x7fadb4;this[_0x2ee5b8(0x167)](),this[_0x2ee5b8(0x13c)](_0x38a68f);});}}[_0x30b887(0x16c)](_0xb98550,_0x32db84){const _0x165e0d=_0x30b887;this[_0x165e0d(0x142)]=new _0x147446(_0x32db84),this[_0x165e0d(0x142)]['on'](_0x165e0d(0x16e),(_0x19c5fc,_0x78e9f0)=>{const _0x20d441=_0x165e0d;this[_0x20d441(0x123)](_0x78e9f0);}),this[_0x165e0d(0x142)]['on'](_0x165e0d(0x10b),()=>{const _0x18c011=_0x165e0d;this[_0x18c011(0x146)](),this[_0x18c011(0x153)](),this[_0x18c011(0x171)][_0x18c011(0x127)]({'target':this[_0x18c011(0x116)][_0x18c011(0x192)],'limiter':this[_0x18c011(0x18b)](),'positions':jo});}),this[_0x165e0d(0x142)]['on'](_0x165e0d(0x159),()=>{const _0x2dbf50=_0x165e0d;this[_0x2dbf50(0x130)][_0x2dbf50(0x128)]&&this[_0x2dbf50(0x130)][_0x2dbf50(0x127)]({'target':this[_0x2dbf50(0x116)][_0x2dbf50(0x192)],'limiter':this[_0x2dbf50(0x18b)](),'positions':jo});}),_0xb98550[_0x165e0d(0x148)][_0x165e0d(0x173)](this[_0x165e0d(0x142)]);}[_0x30b887(0x163)](_0x2a8362,_0x4cdc4d){const _0x6663fd=_0x30b887,_0x410e9e=_0x6663fd(0x193)===_0x4cdc4d[_0x6663fd(0x178)]?new SourcesBalloonButtonView(_0x2a8362):new _0x4b3a92(_0x2a8362);return _0x410e9e[_0x6663fd(0x110)]({'label':_0x4cdc4d[_0x6663fd(0x11a)],'icon':_0x4cdc4d[_0x6663fd(0x176)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x410e9e;}[_0x30b887(0x145)](){const _0x746811=_0x30b887;this[_0x746811(0x11e)](),this[_0x746811(0x18f)]();}[_0x30b887(0x18f)](){const _0x4bcdfd=_0x30b887;_0x48c440({'emitter':this[_0x4bcdfd(0x130)],'contextElements':[this[_0x4bcdfd(0x130)][_0x4bcdfd(0x192)]],'callback':()=>{const _0x34c622=_0x4bcdfd;this[_0x34c622(0x146)]();},'activator':()=>this[_0x4bcdfd(0x130)][_0x4bcdfd(0x128)]});}[_0x30b887(0x17a)](_0x5b452b){const _0x1ae95f=_0x30b887,_0x466634=this[_0x1ae95f(0x15d)];_0x466634[_0x1ae95f(0x11f)][_0x1ae95f(0x119)]=_0x5b452b,_0x5b452b?_0x466634[_0x1ae95f(0x12f)][_0x1ae95f(0x12c)]():_0x466634[_0x1ae95f(0x12f)][_0x1ae95f(0x151)]();}[_0x30b887(0x11e)](){const _0x2dfe64=_0x30b887,{balloonView:_0x53c2bb,buttonView:_0x5c51fd,hideMethod:_0x239187}=this[_0x2dfe64(0x15d)];_0x48c440({'emitter':_0x53c2bb,'contextElements':[_0x53c2bb[_0x2dfe64(0x192)],_0x5c51fd[_0x2dfe64(0x192)]],'callback':()=>{_0x239187();},'activator':()=>_0x5c51fd[_0x2dfe64(0x119)]&&!this[_0x2dfe64(0x130)][_0x2dfe64(0x128)]&&!this[_0x2dfe64(0x11c)][_0x2dfe64(0x179)]()});}[_0x30b887(0x137)](_0x5e7a56,_0x1b4303,_0xf66c86=!0x1,_0x1389b5=!0x1){const _0x2628f3=_0x30b887,_0x2f6d42=_0x2628f3(0x12b)===_0x1b4303||!0x0===_0x5e7a56[_0x2628f3(0x181)],_0xdda5b9=new _0x2a46dc(this[_0x2628f3(0x114)],_0x5e7a56,_0x2f6d42,_0xf66c86,_0x1389b5);return _0x2f6d42||_0xdda5b9['on'](_0x2628f3(0x15a),()=>{const _0x104917=_0x2628f3;this[_0x104917(0x17f)](_0x104917(0x12e),_0xdda5b9['id']);}),_0xdda5b9;}[_0x30b887(0x177)](_0x7dcf73,_0x47cc55){const _0x3bf195=_0x30b887;_0x47cc55[_0x3bf195(0x173)](_0x7dcf73,0x0);}[_0x30b887(0x121)](_0x381d5e,_0x13abf4){const _0x506db4=_0x30b887,_0x35d133=_0x13abf4[_0x506db4(0x12a)](_0x312549=>_0x312549['id']===_0x381d5e);_0x35d133&&_0x13abf4[_0x506db4(0x194)](_0x35d133);}[_0x30b887(0x152)](){const _0x55db69=_0x30b887;this[_0x55db69(0x116)][_0x55db69(0x119)]?this[_0x55db69(0x167)]():(this[_0x55db69(0x153)](),this[_0x55db69(0x171)][_0x55db69(0x127)]({'target':this[_0x55db69(0x116)][_0x55db69(0x192)],'limiter':this[_0x55db69(0x18b)](),'positions':jo}));}[_0x30b887(0x123)](_0x2081ab){const _0xab2e2=_0x30b887;this[_0xab2e2(0x142)][_0xab2e2(0x118)](),this[_0xab2e2(0x146)](),this[_0xab2e2(0x17f)](_0xab2e2(0x10e),_0x2081ab);}}export class SourcesBalloonButtonView extends _0x4b3a92{[_0x30b887(0x18a)];constructor(_0x567ec9){const _0x25158d=_0x30b887;super(_0x567ec9),this[_0x25158d(0x110)]({'withText':!0x0,'role':_0x25158d(0x132)}),this[_0x25158d(0x18a)]=this[_0x25158d(0x164)](),this[_0x25158d(0x13e)]({'attributes':{'class':[Uo]}});}[_0x30b887(0x125)](){const _0xca7526=_0x30b887;super[_0xca7526(0x125)](),this[_0xca7526(0x13d)][_0xca7526(0x173)](this[_0xca7526(0x18a)]);}[_0x30b887(0x164)](){const _0x4f9a7e=_0x30b887,_0x454948=new _0x16bf4f();return _0x454948[_0x4f9a7e(0x148)]=_0x54d1b5,_0x454948[_0x4f9a7e(0x13e)]({'attributes':{'class':Uo+_0x4f9a7e(0x126)}}),_0x454948;}}
23
+ const _0x24443e=_0x321b;(function(_0x17991c,_0x49cda0){const _0x2c35db=_0x321b,_0x51e355=_0x17991c();while(!![]){try{const _0x3f15a6=parseInt(_0x2c35db(0x166))/0x1*(parseInt(_0x2c35db(0x19b))/0x2)+-parseInt(_0x2c35db(0x17d))/0x3*(parseInt(_0x2c35db(0x1e7))/0x4)+-parseInt(_0x2c35db(0x16a))/0x5*(-parseInt(_0x2c35db(0x172))/0x6)+-parseInt(_0x2c35db(0x1bb))/0x7+-parseInt(_0x2c35db(0x182))/0x8+-parseInt(_0x2c35db(0x1d4))/0x9+parseInt(_0x2c35db(0x1c5))/0xa;if(_0x3f15a6===_0x49cda0)break;else _0x51e355['push'](_0x51e355['shift']());}catch(_0x5418c8){_0x51e355['push'](_0x51e355['shift']());}}}(_0x7bf7,0x5f121));import{BalloonPanelView as _0x1fed47,ButtonView as _0x5899f1,clickOutsideHandler as _0x220d32,FileDialogButtonView as _0x480457,IconView as _0x445558,View as _0x1ff5a1}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3a0aba,IconDocument as _0x842da8,IconDocumentOutline as _0x4fc455,IconDropdownArrow as _0x18c70c,IconLink as _0x375e90,IconPaperClip as _0x197374}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x20119b}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x31d66f}from'./aichatcontextpanelurlinputview.js';function _0x7bf7(){const _0x506fd9=['ck-reset_all-excluded','ck-ai-chat-context-chips-wrapper-balloon','children','55RgjlZh','loadSourceResources','_createBaseBalloonPanel','addContextButtonView','hide','populateSourceResourceBalloon','files','clearConversationContextItems','125274LosOkY','hideUrlBalloonPanel','body','urls','showSourceResourcesBalloon','_getLimiterElement','element','_createArrowView','ck-ai-chat-context-controls__show-more-balloon-panel','done','_addContextBalloonConfig','12NIYmov','arrowView','isEnabled','ck-ai-chat','_setBalloonPanelContent','4598872ZeUOuj','isReadOnly','enabled','extendTemplate','pin','setTemplate','setConversationContext','closeSourceResourceBalloon','ck-ai-chat-context-controls__pending-contexts','submitUrl','setAddContextOptions','clear','AI_CHAT_CONTEXT_URL_LABEL','isAnyResourceBalloonVisible','_urlBalloonPanelView','ck-ai-chat-context-controls__add-context-button','_overflowManager','removeContextItem','southArrowNorthEast','_addUrlContent','_currentContextsChips','_toggleAddContextBalloon','_conversationContextsChips','createCollection','AI_CHAT_CONTEXT_FILE_LABEL','18768WVQnsY','content','ck-ai-chat-context-controls','menuitem','_createContextButton','bodyCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','execute','closest','isOn','render','addResourceToContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addFileToContext','sources','showAddContextBalloonPanel','overflowChips','source','div','bind','locale','addContextItem','label','addUrlToContext','fire','remove','updateResourceState','northArrowSouth','buttonView','ck-ai-chat-context-controls__add-context-balloon-panel','destroy','find','1858206yCGtsn','ck-ai-chat-context-controls__balloon-button','_addContextToCollection','defaultPositions','balloonView','ck-ai-chat-controls_context_show-more-button','northArrowSouthEast','_bindEventHandlers','refreshBalloon','_addContextBalloonPanelView','19085460YUqSTh','_handleUrlSubmit','reorganizeChips','_resourcesBalloonView','clearCurrentContextItems','_setupAllBalloonClickOutsideHandlers','_createUrlBalloonPanelView','searchInputVisibleFrom','isVisible','_showSourceResourcesBalloon','addDocumentToContext','document','_setupUrlBalloonClickOutsideHandler','_createResourcesBalloonView','icon','6896277WjMEQV','northArrowSouthWest','southArrowNorthWest','ck-ai-chat-context-controls__balloon-button-source','showUrlBalloonPanel','current','_urlInputView','_createAddContextButtonView','southArrowNorth','tooltip','_createAddContextBalloonPanelView','ck-ai-chat-context-controls__url-balloon-panel','set','add','_setupTemplate','_setupAddContextBalloonClickOutsideHandler','isLoading','_setAddContextButtonEnabled','__arrow','752196gHQhmU','show','isHidden','focus','ck-ai-chat-controls-button','removeContextItemChip','_createBalloonButton','setContainerElement','type','conversation','_handleAddContextButtonClick','setContextItemLoading','cancel','hideAddContextBalloonPanel','_removeContextFromCollection','65tJEUea'];_0x7bf7=function(){return _0x506fd9;};return _0x7bf7();}import{AIChatChipsOverflowManager as _0x2f4ad0}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2765f1}from'../../../aicore/utils/common-translations.js';function _0x321b(_0x577683,_0x2a79dd){const _0x7bf70a=_0x7bf7();return _0x321b=function(_0x321b0f,_0x3837a8){_0x321b0f=_0x321b0f-0x15b;let _0x586dbc=_0x7bf70a[_0x321b0f];return _0x586dbc;},_0x321b(_0x577683,_0x2a79dd);}import{AIChatResourcesBalloonView as _0x23cc76}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x24443e(0x1cf),_0x24443e(0x1a8),_0x24443e(0x1b2),_0x24443e(0x1a6),_0x24443e(0x193),_0x24443e(0x16b)];const Eo=_0x24443e(0x19d),vo=_0x24443e(0x18a),Vo=_0x24443e(0x1b8),Io=_0x24443e(0x191),Po=_0x24443e(0x1df),Ro=_0x24443e(0x1bc),Uo=_0x24443e(0x1d7),Lo=_0x24443e(0x15b),No=_0x24443e(0x168),Oo=_0x24443e(0x1c0),Mo=_0x24443e(0x17a),Ho=_0x24443e(0x180),jo=[_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x1d5)],_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x1b6)],_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x1c1)],_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x1d6)],_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x1dc)],_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x194)]];export class AIChatContextPanelView extends _0x1ff5a1{[_0x24443e(0x16d)];[_0x24443e(0x196)]=this[_0x24443e(0x199)]();[_0x24443e(0x198)]=this[_0x24443e(0x199)]();[_0x24443e(0x192)];[_0x24443e(0x1c4)];[_0x24443e(0x190)];[_0x24443e(0x1da)];[_0x24443e(0x1c8)];[_0x24443e(0x17c)];[_0x24443e(0x1a0)];constructor(_0x27b5bb,_0x21aa60){const _0x41973d=_0x24443e;super(_0x27b5bb),this[_0x41973d(0x1a0)]=_0x21aa60[_0x41973d(0x1a0)],this[_0x41973d(0x196)]=this[_0x41973d(0x199)](),this[_0x41973d(0x198)]=this[_0x41973d(0x199)](),this[_0x41973d(0x16d)]=this[_0x41973d(0x1db)](_0x27b5bb),this[_0x41973d(0x1c4)]=this[_0x41973d(0x1de)](_0x27b5bb),this[_0x41973d(0x190)]=this[_0x41973d(0x1cb)](_0x27b5bb),this[_0x41973d(0x1c8)]=this[_0x41973d(0x1d2)](_0x27b5bb,_0x21aa60);const _0x187ee8={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x41973d(0x192)]=new _0x2f4ad0(_0x27b5bb,this[_0x41973d(0x196)],_0x187ee8,this[_0x41973d(0x1a0)],this),this[_0x41973d(0x17c)]={'buttonView':this[_0x41973d(0x16d)],'balloonView':this[_0x41973d(0x1c4)],'hideMethod':this[_0x41973d(0x164)][_0x41973d(0x1ae)](this),'showMethod':this[_0x41973d(0x1aa)][_0x41973d(0x1ae)](this)},this[_0x41973d(0x1e2)](),this[_0x41973d(0x1c2)]();}[_0x24443e(0x1a5)](){const _0x367265=_0x24443e;super[_0x367265(0x1a5)](),this[_0x367265(0x1ca)](),this[_0x367265(0x192)][_0x367265(0x15e)](this[_0x367265(0x178)]),this[_0x367265(0x192)][_0x367265(0x1c7)]();}[_0x24443e(0x1b9)](){const _0x34f980=_0x24443e;super[_0x34f980(0x1b9)](),this[_0x34f980(0x192)][_0x34f980(0x1b9)](),this[_0x34f980(0x1c8)][_0x34f980(0x1b9)]();}[_0x24443e(0x1b0)](_0x2d3745,_0x2c7eb9){const _0x3f4974=_0x24443e,_0x2d32db=this[_0x3f4974(0x19f)](_0x2d3745,_0x3f4974(0x1d9),!0x0,_0x2c7eb9);this[_0x3f4974(0x1bd)](_0x2d32db,this[_0x3f4974(0x196)]),this[_0x3f4974(0x192)][_0x3f4974(0x1c7)]();}[_0x24443e(0x193)](_0x716d82){const _0x40ae69=_0x24443e;this[_0x40ae69(0x165)](_0x716d82,this[_0x40ae69(0x196)]),this[_0x40ae69(0x165)](_0x716d82,this[_0x40ae69(0x192)][_0x40ae69(0x1ab)]),this[_0x40ae69(0x192)][_0x40ae69(0x1c7)]();}[_0x24443e(0x162)](_0x2cf97d,_0x4ca5c3){const _0xeff8cc=_0x24443e;let _0x4bf330=this[_0xeff8cc(0x196)][_0xeff8cc(0x1ba)](_0x348fc3=>_0x348fc3['id']===_0x2cf97d);_0x4bf330||(_0x4bf330=this[_0xeff8cc(0x192)][_0xeff8cc(0x1ab)][_0xeff8cc(0x1ba)](_0x4904a6=>_0x4904a6['id']===_0x2cf97d)),_0x4bf330&&(_0x4bf330[_0xeff8cc(0x1e4)]=_0x4ca5c3);}[_0x24443e(0x188)](_0x4cd8b3){const _0x318b33=_0x24443e;this[_0x318b33(0x198)][_0x318b33(0x18d)]();for(const _0x10a3de of _0x4cd8b3){const _0x3242d4=this[_0x318b33(0x19f)](_0x10a3de,_0x318b33(0x160),!0x1,!0x1);this[_0x318b33(0x1bd)](_0x3242d4,this[_0x318b33(0x198)]);}}[_0x24443e(0x1c9)](){const _0x545d7b=_0x24443e;this[_0x545d7b(0x196)][_0x545d7b(0x18d)](),this[_0x545d7b(0x192)][_0x545d7b(0x18d)]();}[_0x24443e(0x171)](){const _0x3bacd6=_0x24443e;this[_0x3bacd6(0x198)][_0x3bacd6(0x18d)]();}[_0x24443e(0x1b5)](_0x368710,_0x238b8c,_0x155c0f){const _0x3dfd9e=_0x24443e;this[_0x3dfd9e(0x1c8)][_0x3dfd9e(0x1b5)](_0x368710,_0x238b8c,_0x155c0f);}[_0x24443e(0x164)](){const _0x349ef5=_0x24443e;this[_0x349ef5(0x197)](!0x1);}[_0x24443e(0x1aa)](){const _0x32b4a7=_0x24443e;this[_0x32b4a7(0x197)](!0x0);}[_0x24443e(0x173)](){const _0x29b47d=_0x24443e;this[_0x29b47d(0x190)][_0x29b47d(0x16e)](),this[_0x29b47d(0x16d)][_0x29b47d(0x1a4)]=!0x1,this[_0x29b47d(0x1da)]&&this[_0x29b47d(0x1da)][_0x29b47d(0x18d)]();}[_0x24443e(0x1d8)](){const _0x34eb02=_0x24443e;this[_0x34eb02(0x190)][_0x34eb02(0x1e8)](),this[_0x34eb02(0x16d)][_0x34eb02(0x1a4)]=!0x0;}[_0x24443e(0x1ce)](_0xb61172){const _0x51399c=_0x24443e;this[_0x51399c(0x1c8)][_0x51399c(0x176)](_0xb61172),this[_0x51399c(0x16d)][_0x51399c(0x1a4)]=!0x0;}[_0x24443e(0x16f)](_0x4c0644,_0x121286,_0x5b2cb6,_0x96baf8){const _0x10fa51=_0x24443e;this[_0x10fa51(0x1c8)][_0x10fa51(0x16f)](_0x4c0644,_0x5b2cb6,_0x96baf8);}[_0x24443e(0x189)](_0x2662da){const _0x37b5c0=_0x24443e;this[_0x37b5c0(0x1c8)][_0x37b5c0(0x189)](_0x2662da),this[_0x37b5c0(0x16d)][_0x37b5c0(0x1a4)]=!0x1;}[_0x24443e(0x18c)](_0x109a27){const _0x5e3bc2=_0x24443e;this[_0x5e3bc2(0x181)](this[_0x5e3bc2(0x1c4)],this[_0x5e3bc2(0x1af)],_0x109a27),this[_0x5e3bc2(0x1e5)](_0x109a27);}[_0x24443e(0x1e5)](_0x467783){const _0x57c633=_0x24443e,_0x5066ff=!_0x467783[_0x57c633(0x1d0)][_0x57c633(0x1e9)]&&_0x467783[_0x57c633(0x1d0)][_0x57c633(0x184)],_0x4049b2=_0x467783[_0x57c633(0x175)][_0x57c633(0x184)],_0x1ae283=_0x467783[_0x57c633(0x170)][_0x57c633(0x184)];this[_0x57c633(0x16d)][_0x57c633(0x17f)]=_0x5066ff||_0x4049b2||_0x1ae283;}[_0x24443e(0x1e2)](){const _0x480ac5=_0x24443e;this[_0x480ac5(0x187)]({'tag':_0x480ac5(0x1ad),'attributes':{'class':[Eo,_0x480ac5(0x167)]},'children':[{'tag':_0x480ac5(0x1ad),'attributes':{'class':vo},'children':this[_0x480ac5(0x196)]}]});}[_0x24443e(0x1c2)](){const _0xbada8d=_0x24443e;this[_0xbada8d(0x16d)]['on'](_0xbada8d(0x1a2),()=>{const _0x1cb469=_0xbada8d;this[_0x1cb469(0x161)]();});}[_0x24443e(0x1db)](_0x2fa692){const _0x43fd2e=_0x24443e,_0x20a34f=new _0x5899f1(_0x2fa692);return _0x20a34f[_0x43fd2e(0x1e0)]({'label':_0x2765f1(_0x2fa692,_0x43fd2e(0x1a1)),'class':Lo+'\x20'+Io,'icon':_0x197374,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x20a34f;}[_0x24443e(0x1de)](_0x58e879){const _0xc5d178=_0x24443e;return this[_0xc5d178(0x16c)](_0x58e879,Vo);}[_0x24443e(0x1cb)](_0x1a57ff){const _0x5ac2b3=_0x24443e,_0x2b863a=this[_0x5ac2b3(0x16c)](_0x1a57ff,Po);return this[_0x5ac2b3(0x195)](_0x2b863a,_0x1a57ff),_0x2b863a;}[_0x24443e(0x1d2)](_0x1b3e7c,_0x27f014){const _0xae5a2=_0x24443e,_0x591d5a={'searchInputVisibleFrom':_0x27f014[_0xae5a2(0x1cc)],'onBackToContext':()=>{const _0x43df6d=_0xae5a2;this[_0x43df6d(0x1aa)](),this[_0x43df6d(0x1c4)][_0x43df6d(0x186)]({'target':this[_0x43df6d(0x16d)][_0x43df6d(0x178)],'limiter':this[_0x43df6d(0x177)](),'positions':jo});},'onResourceSelected':(_0x3d50d6,_0x31a177)=>{const _0x431bdb=_0xae5a2;this[_0x431bdb(0x1b3)](_0x431bdb(0x1a6),{'source':_0x3d50d6,'resource':_0x31a177});},'onLoadSourceResources':_0x3de922=>{const _0x42d925=_0xae5a2;this[_0x42d925(0x1b3)](_0x42d925(0x16b),_0x3de922);},'onBalloonClosed':()=>{const _0x423033=_0xae5a2;this[_0x423033(0x16d)][_0x423033(0x1a4)]=!0x1;},'getLimiterElement':()=>this[_0xae5a2(0x177)](),'getTargetElement':()=>this[_0xae5a2(0x16d)][_0xae5a2(0x178)]};return new _0x23cc76(_0x1b3e7c,_0x27f014[_0xae5a2(0x1a0)],_0x591d5a);}[_0x24443e(0x177)](){const _0x30a1be=_0x24443e;return this[_0x30a1be(0x178)]?.[_0x30a1be(0x1a3)]('.'+Ho)||document[_0x30a1be(0x174)];}[_0x24443e(0x16c)](_0x2f3ae2,_0x38a449){const _0x36d505=_0x24443e,_0x123858=new _0x1fed47(_0x2f3ae2);return _0x123858[_0x36d505(0x185)]({'attributes':{'class':_0x38a449}}),this[_0x36d505(0x1a0)][_0x36d505(0x1e1)](_0x123858),_0x123858;}[_0x24443e(0x181)](_0x282180,_0x36aa3e,_0x4c62a4){const _0x539df3=_0x24443e;if(_0x282180[_0x539df3(0x19c)][_0x539df3(0x18d)](),!_0x4c62a4[_0x539df3(0x1d0)][_0x539df3(0x1e9)]&&_0x4c62a4[_0x539df3(0x1d0)][_0x539df3(0x184)]){const _0x19afab=this[_0x539df3(0x15d)](_0x36aa3e,{'label':_0x2765f1(_0x36aa3e,_0x539df3(0x1a7)),'icon':_0x842da8});_0x19afab['on'](_0x539df3(0x1a2),()=>{const _0x2f5120=_0x539df3;this[_0x2f5120(0x1b3)](_0x2f5120(0x1cf)),this[_0x2f5120(0x164)]();}),_0x282180[_0x539df3(0x19c)][_0x539df3(0x1e1)](_0x19afab);}if(_0x4c62a4[_0x539df3(0x175)][_0x539df3(0x184)]){const _0x37bc9f=this[_0x539df3(0x15d)](_0x36aa3e,{'label':_0x2765f1(_0x36aa3e,_0x539df3(0x18e)),'icon':_0x375e90});_0x37bc9f['on'](_0x539df3(0x1a2),()=>{const _0x3db3a9=_0x539df3;this[_0x3db3a9(0x164)](),this[_0x3db3a9(0x1d8)](),this[_0x3db3a9(0x190)][_0x3db3a9(0x186)]({'target':this[_0x3db3a9(0x16d)][_0x3db3a9(0x178)],'limiter':this[_0x3db3a9(0x177)](),'positions':jo}),this[_0x3db3a9(0x1da)][_0x3db3a9(0x1ea)]();}),_0x282180[_0x539df3(0x19c)][_0x539df3(0x1e1)](_0x37bc9f);}if(_0x4c62a4[_0x539df3(0x170)][_0x539df3(0x184)]){const _0x1a14fa=new _0x480457(_0x36aa3e);_0x1a14fa[_0x539df3(0x1e0)]({'label':_0x2765f1(_0x36aa3e,_0x539df3(0x19a)),'icon':_0x3a0aba,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x1a14fa['on'](_0x539df3(0x17b),(_0x43116d,_0x208307)=>{const _0x430283=_0x539df3;this[_0x430283(0x1b3)](_0x430283(0x1a8),_0x208307),this[_0x430283(0x164)]();}),_0x1a14fa[_0x539df3(0x1dd)]=!0x0,_0x282180[_0x539df3(0x19c)][_0x539df3(0x1e1)](_0x1a14fa);}for(const _0x16b1cd of _0x4c62a4[_0x539df3(0x1a9)]){const _0x54e1e7=this[_0x539df3(0x15d)](_0x36aa3e,{'label':_0x16b1cd[_0x539df3(0x1b1)],'icon':_0x16b1cd[_0x539df3(0x1d3)]||_0x4fc455,'type':_0x539df3(0x1ac)});_0x282180[_0x539df3(0x19c)][_0x539df3(0x1e1)](_0x54e1e7),_0x54e1e7['on'](_0x539df3(0x1a2),()=>{const _0x423605=_0x539df3;this[_0x423605(0x164)](),this[_0x423605(0x1ce)](_0x16b1cd);});}}[_0x24443e(0x195)](_0x369fc0,_0x2d46e6){const _0x2e5cbb=_0x24443e;this[_0x2e5cbb(0x1da)]=new _0x31d66f(_0x2d46e6),this[_0x2e5cbb(0x1da)]['on'](_0x2e5cbb(0x18b),(_0x162d27,_0x337ae0)=>{const _0xa44568=_0x2e5cbb;this[_0xa44568(0x1c6)](_0x337ae0);}),this[_0x2e5cbb(0x1da)]['on'](_0x2e5cbb(0x163),()=>{const _0x2e57da=_0x2e5cbb;this[_0x2e57da(0x173)](),this[_0x2e57da(0x1aa)](),this[_0x2e57da(0x1c4)][_0x2e57da(0x186)]({'target':this[_0x2e57da(0x16d)][_0x2e57da(0x178)],'limiter':this[_0x2e57da(0x177)](),'positions':jo});}),this[_0x2e5cbb(0x1da)]['on'](_0x2e5cbb(0x1c3),()=>{const _0x387f51=_0x2e5cbb;this[_0x387f51(0x190)][_0x387f51(0x1cd)]&&this[_0x387f51(0x190)][_0x387f51(0x186)]({'target':this[_0x387f51(0x16d)][_0x387f51(0x178)],'limiter':this[_0x387f51(0x177)](),'positions':jo});}),_0x369fc0[_0x2e5cbb(0x19c)][_0x2e5cbb(0x1e1)](this[_0x2e5cbb(0x1da)]);}[_0x24443e(0x15d)](_0x240118,_0x559d57){const _0xac73b2=_0x24443e,_0x405993=_0xac73b2(0x1ac)===_0x559d57[_0xac73b2(0x15f)]?new SourcesBalloonButtonView(_0x240118):new _0x5899f1(_0x240118);return _0x405993[_0xac73b2(0x1e0)]({'label':_0x559d57[_0xac73b2(0x1b1)],'icon':_0x559d57[_0xac73b2(0x1d3)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x405993;}[_0x24443e(0x1ca)](){const _0x3711b5=_0x24443e;this[_0x3711b5(0x1e3)](),this[_0x3711b5(0x1d1)]();}[_0x24443e(0x1d1)](){const _0x4ee84b=_0x24443e;_0x220d32({'emitter':this[_0x4ee84b(0x190)],'contextElements':[this[_0x4ee84b(0x190)][_0x4ee84b(0x178)]],'callback':()=>{const _0x2d24c7=_0x4ee84b;this[_0x2d24c7(0x173)]();},'activator':()=>this[_0x4ee84b(0x190)][_0x4ee84b(0x1cd)]});}[_0x24443e(0x197)](_0x514e22){const _0x2a5921=_0x24443e,_0x10c0ae=this[_0x2a5921(0x17c)];_0x10c0ae[_0x2a5921(0x1b7)][_0x2a5921(0x1a4)]=_0x514e22,_0x514e22?_0x10c0ae[_0x2a5921(0x1bf)][_0x2a5921(0x1e8)]():_0x10c0ae[_0x2a5921(0x1bf)][_0x2a5921(0x16e)]();}[_0x24443e(0x1e3)](){const _0x48fd73=_0x24443e,{balloonView:_0x3244c4,buttonView:_0x530cda,hideMethod:_0x3bec51}=this[_0x48fd73(0x17c)];_0x220d32({'emitter':_0x3244c4,'contextElements':[_0x3244c4[_0x48fd73(0x178)],_0x530cda[_0x48fd73(0x178)]],'callback':()=>{_0x3bec51();},'activator':()=>_0x530cda[_0x48fd73(0x1a4)]&&!this[_0x48fd73(0x190)][_0x48fd73(0x1cd)]&&!this[_0x48fd73(0x1c8)][_0x48fd73(0x18f)]()});}[_0x24443e(0x19f)](_0x298211,_0x232b11,_0xaedc21=!0x1,_0x38da90=!0x1){const _0xd707d3=_0x24443e,_0x29b64e=_0xd707d3(0x160)===_0x232b11||!0x0===_0x298211[_0xd707d3(0x183)],_0x2d5a01=new _0x20119b(this[_0xd707d3(0x1af)],_0x298211,_0x29b64e,_0xaedc21,_0x38da90);return _0x29b64e||_0x2d5a01['on'](_0xd707d3(0x15c),()=>{const _0x397f28=_0xd707d3;this[_0x397f28(0x1b3)](_0x397f28(0x193),_0x2d5a01['id']);}),_0x2d5a01;}[_0x24443e(0x1bd)](_0x2f1e67,_0x33c5a2){const _0x426048=_0x24443e;_0x33c5a2[_0x426048(0x1e1)](_0x2f1e67,0x0);}[_0x24443e(0x165)](_0x5f3ddd,_0x4e14af){const _0xcc00ca=_0x24443e,_0x135671=_0x4e14af[_0xcc00ca(0x1ba)](_0x4736ed=>_0x4736ed['id']===_0x5f3ddd);_0x135671&&_0x4e14af[_0xcc00ca(0x1b4)](_0x135671);}[_0x24443e(0x161)](){const _0x2d3197=_0x24443e;this[_0x2d3197(0x16d)][_0x2d3197(0x1a4)]?this[_0x2d3197(0x164)]():(this[_0x2d3197(0x1aa)](),this[_0x2d3197(0x1c4)][_0x2d3197(0x186)]({'target':this[_0x2d3197(0x16d)][_0x2d3197(0x178)],'limiter':this[_0x2d3197(0x177)](),'positions':jo}));}[_0x24443e(0x1c6)](_0x27178e){const _0x2fca8a=_0x24443e;this[_0x2fca8a(0x1da)][_0x2fca8a(0x18d)](),this[_0x2fca8a(0x173)](),this[_0x2fca8a(0x1b3)](_0x2fca8a(0x1b2),_0x27178e);}}export class SourcesBalloonButtonView extends _0x5899f1{[_0x24443e(0x17e)];constructor(_0x3877ef){const _0x163acf=_0x24443e;super(_0x3877ef),this[_0x163acf(0x1e0)]({'withText':!0x0,'role':_0x163acf(0x19e)}),this[_0x163acf(0x17e)]=this[_0x163acf(0x179)](),this[_0x163acf(0x185)]({'attributes':{'class':[Uo]}});}[_0x24443e(0x1a5)](){const _0xda1777=_0x24443e;super[_0xda1777(0x1a5)](),this[_0xda1777(0x169)][_0xda1777(0x1e1)](this[_0xda1777(0x17e)]);}[_0x24443e(0x179)](){const _0x212d65=_0x24443e,_0x3ee8b5=new _0x445558();return _0x3ee8b5[_0x212d65(0x19c)]=_0x18c70c,_0x3ee8b5[_0x212d65(0x185)]({'attributes':{'class':Uo+_0x212d65(0x1e6)}}),_0x3ee8b5;}}