@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.7

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 (317) hide show
  1. package/LICENSE.md +4 -0
  2. package/build/ai.js +1 -1
  3. package/dist/index-editor.css +54 -18
  4. package/dist/index.css +64 -19
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +5 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.d.ts +0 -2
  155. package/src/aiactions/aiactions.js +1 -1
  156. package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
  157. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  158. package/src/aiactions/model/aiactionsreply.js +1 -1
  159. package/src/aiassistant/adapters/aiadapter.js +1 -1
  160. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  161. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  162. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  163. package/src/aiassistant/aiassistant.js +1 -1
  164. package/src/aiassistant/aiassistantediting.js +1 -1
  165. package/src/aiassistant/aiassistantui.js +1 -1
  166. package/src/aiassistant/legacyerrors.js +1 -1
  167. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  168. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  169. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  171. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  172. package/src/aiassistant/ui/form/aiformview.js +1 -1
  173. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  174. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  175. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  176. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  177. package/src/aiassistant/utils/common-translations.js +1 -1
  178. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  179. package/src/aiballoon/aiballoon.js +1 -1
  180. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  181. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  182. package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
  183. package/src/aiballoon/ui/aiballoonview.js +1 -1
  184. package/src/aichat/aichat.js +1 -1
  185. package/src/aichat/aichatcontroller.js +1 -1
  186. package/src/aichat/aichatui.d.ts +7 -2
  187. package/src/aichat/aichatui.js +1 -1
  188. package/src/aichat/model/aichatcontext.js +1 -1
  189. package/src/aichat/model/aichatconversation.js +1 -1
  190. package/src/aichat/model/aichatinteraction.js +1 -1
  191. package/src/aichat/model/aichatmodels.js +1 -1
  192. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  193. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  194. package/src/aichat/ui/aichatfeedview.js +1 -1
  195. package/src/aichat/ui/aichatheaderview.js +1 -1
  196. package/src/aichat/ui/aichatview.js +1 -1
  197. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  200. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  203. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  204. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
  213. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  216. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
  217. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  218. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
  219. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  220. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  221. package/src/aichat/utils/eventnames.js +1 -1
  222. package/src/aichat/utils/promisequeue.js +1 -1
  223. package/src/aichat/utils/scrollmanager.js +1 -1
  224. package/src/aichathistory/aichathistory.js +1 -1
  225. package/src/aichathistory/aichathistorycontroller.js +1 -1
  226. package/src/aichathistory/aichathistoryui.js +1 -1
  227. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  228. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  229. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  230. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  231. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  232. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  233. package/src/aiconfig.d.ts +17 -0
  234. package/src/aicore/aiconnector.d.ts +13 -0
  235. package/src/aicore/aiconnector.js +1 -1
  236. package/src/aicore/aiediting.js +1 -1
  237. package/src/aicore/model/aicapabilities.js +1 -1
  238. package/src/aicore/model/aicontext.js +1 -1
  239. package/src/aicore/model/aiinteraction.d.ts +41 -1
  240. package/src/aicore/model/aiinteraction.js +1 -1
  241. package/src/aicore/model/aireply.d.ts +2 -2
  242. package/src/aicore/model/aireply.js +1 -1
  243. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  244. package/src/aicore/pipeline/airesponseparser.js +2 -2
  245. package/src/aicore/ui/aidisclaimerview.js +1 -1
  246. package/src/aicore/ui/aiskeleton.js +1 -1
  247. package/src/aicore/ui/aispinner.js +1 -1
  248. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  249. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  250. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
  251. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  252. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  253. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  254. package/src/aicore/utils/common-translations.js +1 -1
  255. package/src/aicore/utils/createresizebutton.js +1 -1
  256. package/src/aicore/utils/documentposition.js +1 -1
  257. package/src/aicore/utils/documentrange.js +1 -1
  258. package/src/aicore/utils/eventnames.js +1 -1
  259. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  260. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  261. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  262. package/src/aicore/utils/htmlparser.js +1 -1
  263. package/src/aicore/utils/htmlstreamer.js +1 -1
  264. package/src/aieditorintegration/aieditorintegration.js +1 -1
  265. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  266. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  267. package/src/aiquickactions/aiquickactions.js +1 -1
  268. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  269. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  270. package/src/aiquickactions/aiquickactionsui.js +1 -1
  271. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  272. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  273. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  274. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  275. package/src/aireviewmode/aireviewmode.js +1 -1
  276. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  277. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  278. package/src/aireviewmode/aireviewmodeui.js +1 -1
  279. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  280. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  281. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  282. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  283. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  284. package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
  285. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  286. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  287. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  288. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  289. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  290. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  291. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  292. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  293. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  294. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  295. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  296. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  298. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  299. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  300. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  301. package/src/aitabs/aitabs.js +1 -1
  302. package/src/aitabs/aitabsmainview.js +1 -1
  303. package/src/aitabs/tabs/aitabsview.js +1 -1
  304. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  305. package/src/aitabs/tabs/tabpanelview.js +1 -1
  306. package/src/index.d.ts +1 -1
  307. package/src/index.js +1 -1
  308. package/theme/aiballoon/aiballoon.css +17 -4
  309. package/theme/aichat/aichathistory.css +26 -9
  310. package/theme/aichat/aiminitoolbar.css +8 -0
  311. package/theme/aichat/aisuggestioncontainer.css +6 -0
  312. package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
  313. package/theme/aitabs/aitabsview.css +6 -1
  314. package/theme/common/aibutton.css +0 -4
  315. package/theme/common/aiheader.css +1 -0
  316. package/src/aiquickactions/utils/common-translations.d.ts +0 -9
  317. package/src/aiquickactions/utils/common-translations.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd53a74=_0x44ba;(function(_0xd5ae2,_0x228684){const _0x8392e0=_0x44ba,_0x24883f=_0xd5ae2();while(!![]){try{const _0x3c0f4b=parseInt(_0x8392e0(0xab))/0x1*(-parseInt(_0x8392e0(0x94))/0x2)+-parseInt(_0x8392e0(0xa2))/0x3+-parseInt(_0x8392e0(0x9b))/0x4+parseInt(_0x8392e0(0x9c))/0x5+parseInt(_0x8392e0(0x95))/0x6*(-parseInt(_0x8392e0(0xa7))/0x7)+parseInt(_0x8392e0(0xb0))/0x8+-parseInt(_0x8392e0(0x99))/0x9*(-parseInt(_0x8392e0(0xa9))/0xa);if(_0x3c0f4b===_0x228684)break;else _0x24883f['push'](_0x24883f['shift']());}catch(_0x3fc18b){_0x24883f['push'](_0x24883f['shift']());}}}(_0x4936,0xaae58));import{EmitterMixin as _0x564a0a,logWarning as _0x4bdebe}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x564a0a(){[_0xd53a74(0xa8)]=[];[_0xd53a74(0x9e)];constructor({connector:_0x56fadc}){const _0x3ab8d0=_0xd53a74;super(),this[_0x3ab8d0(0x9e)]=_0x56fadc;}async[_0xd53a74(0xa1)](){const _0x4f6750=_0xd53a74;if(!this[_0x4f6750(0xa8)][_0x4f6750(0xad)]){const _0x383904=this[_0x4f6750(0x9e)][_0x4f6750(0xa4)](),_0x240dab=(await _0x383904[_0x4f6750(0x96)]())[_0x4f6750(0xae)][_0x4f6750(0x9f)]((_0x3ec9a0,_0x19eb98)=>{const _0x56b8dc=_0x4f6750,_0xef5531=Object[_0x56b8dc(0xa3)](_0x3ec9a0[_0x56b8dc(0xa5)])[_0x56b8dc(0xac)](_0x1fa35e=>_0x1fa35e[_0x56b8dc(0x98)])[_0x56b8dc(0xad)];return Object[_0x56b8dc(0xa3)](_0x19eb98[_0x56b8dc(0xa5)])[_0x56b8dc(0xac)](_0x16979c=>_0x16979c[_0x56b8dc(0x98)])[_0x56b8dc(0xad)]-_0xef5531;});this[_0x4f6750(0xa8)]=_0x240dab;}return this[_0x4f6750(0xa8)];}async[_0xd53a74(0x9a)](_0x5b5e8a){const _0x43332e=_0xd53a74,_0x43ad3d=await this[_0x43332e(0xa1)]();if(!_0x43ad3d[_0x43332e(0xad)])return null;if(_0x5b5e8a){const _0x28da38=_0x43ad3d[_0x43332e(0xa6)](_0x537292=>_0x537292['id']===_0x5b5e8a);if(_0x28da38)return _0x28da38;_0x4bdebe(_0x43332e(0xa0),{'defaultModelId':_0x5b5e8a,'fallBackModelId':_0x43ad3d[0x0]['id']});}return _0x43ad3d[0x0];}async[_0xd53a74(0x97)](_0x5c2063){const _0x1906f7=_0xd53a74;return(await this[_0x1906f7(0xa1)]())[_0x1906f7(0xaf)](_0x1d0bea=>_0x1d0bea[_0x1906f7(0xaa)]===_0x5c2063[_0x1906f7(0xaa)]&&_0x1d0bea[_0x1906f7(0x9d)]===_0x5c2063[_0x1906f7(0x9d)]);}}function _0x44ba(_0x5885bb,_0x231517){const _0x493669=_0x4936();return _0x44ba=function(_0x44ba6e,_0x22dc27){_0x44ba6e=_0x44ba6e-0x94;let _0x416797=_0x493669[_0x44ba6e];return _0x416797;},_0x44ba(_0x5885bb,_0x231517);}function _0x4936(){const _0x5dfbfd=['654717JKiQVt','_modelList','1546190luDIto','name','439kPKDSD','filter','length','items','some','6962328oqeQYv','3406WsVCVO','78BOfuCc','list','isAvailable','enabled','171NSutOf','getDefault','3759696baeQDO','5868685RgNKuX','provider','_connector','sort','ai-chat-default-model-id-unrecognized','getAll','4135059pubeYg','values','getModels','capabilities','find'];_0x4936=function(){return _0x5dfbfd;};return _0x4936();}
23
+ const _0x5c6dae=_0x111c;(function(_0x50cfd5,_0x1160cb){const _0x572cae=_0x111c,_0xa01292=_0x50cfd5();while(!![]){try{const _0x51df51=parseInt(_0x572cae(0xa0))/0x1+-parseInt(_0x572cae(0xab))/0x2*(parseInt(_0x572cae(0xa6))/0x3)+parseInt(_0x572cae(0x9d))/0x4+parseInt(_0x572cae(0xb4))/0x5*(parseInt(_0x572cae(0xa2))/0x6)+-parseInt(_0x572cae(0xad))/0x7*(parseInt(_0x572cae(0xb1))/0x8)+-parseInt(_0x572cae(0xb2))/0x9*(parseInt(_0x572cae(0xa3))/0xa)+-parseInt(_0x572cae(0xa4))/0xb;if(_0x51df51===_0x1160cb)break;else _0xa01292['push'](_0xa01292['shift']());}catch(_0x4a8024){_0xa01292['push'](_0xa01292['shift']());}}}(_0x312c,0xd9513));function _0x111c(_0x1231e2,_0x2f65e0){const _0x312c26=_0x312c();return _0x111c=function(_0x111cb4,_0x11541b){_0x111cb4=_0x111cb4-0x9c;let _0x46fe6c=_0x312c26[_0x111cb4];return _0x46fe6c;},_0x111c(_0x1231e2,_0x2f65e0);}function _0x312c(){const _0x2293fa=['find','filter','_modelList','getDefault','some','values','5053472acAiWN','isAvailable','getModels','1240016xlFkYR','_connector','570RYitPk','1479990wCjGmQ','783123DLlOaI','name','244419OrdXzX','list','capabilities','ai-chat-default-model-id-unrecognized','items','8HVmfXw','length','140FmHjuZ','sort','getAll','provider','390928ifLJag','63ReAFhw','enabled','41955WtUPoq'];_0x312c=function(){return _0x2293fa;};return _0x312c();}import{EmitterMixin as _0x3fe714,logWarning as _0x1b9e27}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x3fe714(){[_0x5c6dae(0xb7)]=[];[_0x5c6dae(0xa1)];constructor({connector:_0x58e577}){const _0x448c29=_0x5c6dae;super(),this[_0x448c29(0xa1)]=_0x58e577;}async[_0x5c6dae(0xaf)](){const _0xd792d2=_0x5c6dae;if(!this[_0xd792d2(0xb7)][_0xd792d2(0xac)]){const _0x870cee=this[_0xd792d2(0xa1)][_0xd792d2(0x9f)](),_0x43ad57=(await _0x870cee[_0xd792d2(0xa7)]())[_0xd792d2(0xaa)][_0xd792d2(0xae)]((_0x1bce8f,_0x1c9344)=>{const _0x1a3103=_0xd792d2,_0x49e507=Object[_0x1a3103(0x9c)](_0x1bce8f[_0x1a3103(0xa8)])[_0x1a3103(0xb6)](_0x40f2d3=>_0x40f2d3[_0x1a3103(0xb3)])[_0x1a3103(0xac)];return Object[_0x1a3103(0x9c)](_0x1c9344[_0x1a3103(0xa8)])[_0x1a3103(0xb6)](_0x2083d0=>_0x2083d0[_0x1a3103(0xb3)])[_0x1a3103(0xac)]-_0x49e507;});this[_0xd792d2(0xb7)]=_0x43ad57;}return this[_0xd792d2(0xb7)];}async[_0x5c6dae(0xb8)](_0x440a3c){const _0x1dec01=_0x5c6dae,_0x155733=await this[_0x1dec01(0xaf)]();if(!_0x155733[_0x1dec01(0xac)])return null;if(_0x440a3c){const _0x30b982=_0x155733[_0x1dec01(0xb5)](_0x5bb6dc=>_0x5bb6dc['id']===_0x440a3c);if(_0x30b982)return _0x30b982;_0x1b9e27(_0x1dec01(0xa9),{'defaultModelId':_0x440a3c,'fallBackModelId':_0x155733[0x0]['id']});}return _0x155733[0x0];}async[_0x5c6dae(0x9e)](_0x5edbbb){const _0x2ead32=_0x5c6dae;return(await this[_0x2ead32(0xaf)]())[_0x2ead32(0xb9)](_0x31a87e=>_0x31a87e[_0x2ead32(0xa5)]===_0x5edbbb[_0x2ead32(0xa5)]&&_0x31a87e[_0x2ead32(0xb0)]===_0x5edbbb[_0x2ead32(0xb0)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x775eca=_0x391a;function _0x391a(_0xfe3823,_0xff00c7){const _0x509a16=_0x509a();return _0x391a=function(_0x391af9,_0x20cddc){_0x391af9=_0x391af9-0xee;let _0x54cea8=_0x509a16[_0x391af9];return _0x54cea8;},_0x391a(_0xfe3823,_0xff00c7);}(function(_0x243eeb,_0x1b1c95){const _0x3884c2=_0x391a,_0x41b868=_0x243eeb();while(!![]){try{const _0x37dbc0=parseInt(_0x3884c2(0x12e))/0x1*(parseInt(_0x3884c2(0x10c))/0x2)+-parseInt(_0x3884c2(0x116))/0x3+-parseInt(_0x3884c2(0x10d))/0x4+parseInt(_0x3884c2(0x102))/0x5*(parseInt(_0x3884c2(0x10a))/0x6)+-parseInt(_0x3884c2(0xfc))/0x7*(parseInt(_0x3884c2(0xfe))/0x8)+parseInt(_0x3884c2(0x10b))/0x9*(-parseInt(_0x3884c2(0x107))/0xa)+-parseInt(_0x3884c2(0x100))/0xb*(-parseInt(_0x3884c2(0x113))/0xc);if(_0x37dbc0===_0x1b1c95)break;else _0x41b868['push'](_0x41b868['shift']());}catch(_0x14d466){_0x41b868['push'](_0x41b868['shift']());}}}(_0x509a,0xb85ef));import{clickOutsideHandler as _0x406d68,View as _0x270575}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x290890}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x65e913}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0xfebaf3,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1b528f}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x4dcad8}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0x270575{[_0x775eca(0x112)];[_0x775eca(0x118)];[_0x775eca(0xf6)];[_0x775eca(0x115)];[_0x775eca(0x101)];constructor(_0x327c38,_0x187eae){const _0x3d482b=_0x775eca;super(_0x327c38),this[_0x3d482b(0x112)]=this[_0x3d482b(0xef)](_0x327c38,_0x187eae),this[_0x3d482b(0x118)]=this[_0x3d482b(0x104)](_0x327c38),this[_0x3d482b(0xf6)]=this[_0x3d482b(0x12d)](_0x327c38),this[_0x3d482b(0x115)]=this[_0x3d482b(0x119)](_0x327c38),this[_0x3d482b(0x101)]=!0x1,this[_0x3d482b(0x118)][_0x3d482b(0x11a)](_0x3d482b(0x10f))['to'](this),this[_0x3d482b(0x115)][_0x3d482b(0x11a)](_0x3d482b(0xfb))['to'](this),this[_0x3d482b(0xf6)][_0x3d482b(0x11a)](_0x3d482b(0x127))['to'](this),this[_0x3d482b(0xf6)][_0x3d482b(0x11a)](_0x3d482b(0xf2))['to'](this),this[_0x3d482b(0xf6)][_0x3d482b(0x11a)](_0x3d482b(0x11d))['to'](this),this[_0x3d482b(0x112)][_0x3d482b(0x11a)](..._0x1b528f)['to'](this),this[_0x3d482b(0x12a)](_0x3d482b(0x109),!0x1);const _0x1d4cba=this[_0x3d482b(0xff)];this[_0x3d482b(0xf9)]({'tag':_0x3d482b(0xf7),'attributes':{'class':['ck',_0x3d482b(0x12c),_0x1d4cba['if'](_0x3d482b(0x109),_0x3d482b(0x103))]},'children':[{'tag':_0x3d482b(0x10e),'attributes':{'class':[_0x1d4cba['if'](_0x3d482b(0x12f),_0x3d482b(0x123))]},'children':[this[_0x3d482b(0x112)],this[_0x3d482b(0x118)],this[_0x3d482b(0xf6)]]},{'tag':_0x3d482b(0x10e),'attributes':{'class':[_0x1d4cba['if'](_0x3d482b(0x12f),_0x3d482b(0x123),_0x572d97=>!_0x572d97)]},'children':[this[_0x3d482b(0x115)]]}]}),_0x406d68({'emitter':this[_0x3d482b(0x118)],'activator':()=>this[_0x3d482b(0x12f)],'contextElements':()=>[this[_0x3d482b(0x124)]],'callback':()=>{const _0x37b552=_0x3d482b;this[_0x37b552(0x101)]=!0x1;}}),this['on'](_0x3d482b(0x125),this[_0x3d482b(0xfa)],{'priority':_0x3d482b(0x117)});}[_0x775eca(0xef)](_0x23a4f5,_0xd022be){return new _0xfebaf3(_0x23a4f5,_0xd022be);}[_0x775eca(0x104)](_0x3bb749){const _0x1736a2=_0x775eca;return new _0x290890(_0x3bb749,this[_0x1736a2(0x112)][_0x1736a2(0x128)]);}[_0x775eca(0x12d)](_0xd7fe92){return new _0x65e913(_0xd7fe92);}[_0x775eca(0x119)](_0x48c627){return new _0x4dcad8(_0x48c627);}[_0x775eca(0xfa)](_0x1902e7,_0x3bd74f,_0x28f6dc){const _0xfdbae1=_0x775eca;_0x28f6dc?this[_0xfdbae1(0x101)]=!0x0:this[_0xfdbae1(0x101)]&&this[_0xfdbae1(0x118)][_0xfdbae1(0x130)]();}[_0x775eca(0xf3)](_0x24a13c,_0x13e448){const _0xcf6537=_0x775eca;this[_0xcf6537(0x112)][_0xcf6537(0xf3)](_0x24a13c,_0x13e448);}[_0x775eca(0xf4)](_0x49a138){const _0x35a5a3=_0x775eca;this[_0x35a5a3(0x112)][_0x35a5a3(0xf4)](_0x49a138);}[_0x775eca(0xfd)](_0x1b6f7d,_0x143f8b){const _0x1b7ad5=_0x775eca;this[_0x1b7ad5(0x112)][_0x1b7ad5(0xfd)](_0x1b6f7d,_0x143f8b);}[_0x775eca(0x106)](_0x10dab4){const _0x2b7bf6=_0x775eca;this[_0x2b7bf6(0x118)][_0x2b7bf6(0x106)](_0x10dab4);}[_0x775eca(0xee)](_0x13acfe){const _0x44f886=_0x775eca;this[_0x44f886(0x112)][_0x44f886(0xee)](_0x13acfe);}[_0x775eca(0x108)](){const _0x15fa0c=_0x775eca;this[_0x15fa0c(0x112)][_0x15fa0c(0x122)]();}[_0x775eca(0x121)](){const _0x4c9db8=_0x775eca;this[_0x4c9db8(0x112)][_0x4c9db8(0x126)]();}[_0x775eca(0x11f)](_0x2f660b,_0x45c4e1,_0x399ddb){const _0x13c4bc=_0x775eca;this[_0x13c4bc(0x112)][_0x13c4bc(0x11f)](_0x2f660b,_0x45c4e1,_0x399ddb);}[_0x775eca(0x12b)](_0x50d9e0){const _0x1e289a=_0x775eca;this[_0x1e289a(0xf6)][_0x1e289a(0x12b)](_0x50d9e0);}[_0x775eca(0x11e)](_0x599442){const _0x5d6d5b=_0x775eca;this[_0x5d6d5b(0xf6)][_0x5d6d5b(0x11e)](_0x599442);}[_0x775eca(0xf8)](){const _0x2bdcdd=_0x775eca;this[_0x2bdcdd(0x118)][_0x2bdcdd(0x120)]();}[_0x775eca(0x11c)](_0x2c3191){const _0x1059ef=_0x775eca;this[_0x1059ef(0x112)][_0x1059ef(0x11c)](_0x2c3191);}[_0x775eca(0x114)](_0x4b547f){const _0x2c2389=_0x775eca;this[_0x2c2389(0x118)][_0x2c2389(0xf5)](_0x4b547f);}[_0x775eca(0xf1)](_0x51f82c,_0x55b484){const _0x392414=_0x775eca;this[_0x392414(0xf6)][_0x392414(0xf1)](_0x51f82c,_0x55b484);}[_0x775eca(0x11b)](_0x2cdc77){const _0x3ada49=_0x775eca;this[_0x3ada49(0xf6)][_0x3ada49(0x11b)](_0x2cdc77);}[_0x775eca(0x110)](){const _0x94f3d3=_0x775eca;this[_0x94f3d3(0xf6)][_0x94f3d3(0x110)]();}[_0x775eca(0xf0)](_0x4bd5bf){const _0x7a451=_0x775eca;this[_0x7a451(0xf6)][_0x7a451(0xf0)](_0x4bd5bf);}[_0x775eca(0x129)](_0x2fd62a,_0x29046c,_0x2bd953,_0x24552b){const _0x27d0ae=_0x775eca;this[_0x27d0ae(0x112)][_0x27d0ae(0x129)](_0x2fd62a,_0x29046c,_0x2bd953,_0x24552b);}[_0x775eca(0x111)](_0x3cafde){const _0x2ae9a6=_0x775eca;this[_0x2ae9a6(0x112)][_0x2ae9a6(0x111)](_0x3cafde);}[_0x775eca(0x105)](){const _0x39d10b=_0x775eca;this[_0x39d10b(0x118)][_0x39d10b(0x130)]();}}function _0x509a(){const _0xfa098e=['closeSourceResourceBalloon','_contextPanelView','12vFxprM','setInputPlaceholder','_loaderView','3034290wzIKrs','low','_promptInputView','_createLoaderView','delegate','setModel','setAddContextOptions','selectModel','setReasoning','updateResourceState','reset','clearConversationContextUI','clearCurrentContextItems','ck-hidden','element','change:isLoading','clearConversationContextItems','toggleWebSearch','addContextButtonView','populateSourceResourceBalloon','set','setWebSearch','ck-ai-chat-controls','_createPromptCapabilitiesView','501uigsSh','isLoading','focus','setConversationContext','_createContextPanelView','disableModelSelector','setModelList','toggleReasoning','addContextItem','removeContextItem','setPlaceholderText','_promptCapabilitiesView','form','resetMessageInput','setTemplate','_handlePromptInputFocus','abortPromptStream','2628367grSPNj','setContextItemLoading','8tXsHgz','bindTemplate','48434837pntHoj','_shouldRestorePromptInputFocus','5sgRjUF','ck-ai-chat-controls-disabled','_createPromptInputView','focusPromptInput','setIsUploadInProgress','2705130NLhYeM','clearPendingContextUI','isDisabled','74004ZydzFI','36DKAsEs','868hPqdjS','5635156hyUbxo','div','sendUserMessage','enableModelSelector'];_0x509a=function(){return _0xfa098e;};return _0x509a();}
23
+ const _0x57996b=_0x420c;(function(_0x249f16,_0x4377a3){const _0x259443=_0x420c,_0x484d35=_0x249f16();while(!![]){try{const _0x3694a7=-parseInt(_0x259443(0x181))/0x1+parseInt(_0x259443(0x197))/0x2*(parseInt(_0x259443(0x18f))/0x3)+parseInt(_0x259443(0x18b))/0x4+parseInt(_0x259443(0x190))/0x5+-parseInt(_0x259443(0x1ac))/0x6+-parseInt(_0x259443(0x192))/0x7+parseInt(_0x259443(0x1b8))/0x8;if(_0x3694a7===_0x4377a3)break;else _0x484d35['push'](_0x484d35['shift']());}catch(_0x2aaffd){_0x484d35['push'](_0x484d35['shift']());}}}(_0x5cfa,0xc28d7));import{clickOutsideHandler as _0x318332,View as _0x35ef2e}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x118a79}from'./controls/aichatpromptinputview.js';function _0x420c(_0x25220e,_0x2270ca){const _0x5cfadc=_0x5cfa();return _0x420c=function(_0x420cba,_0x27995e){_0x420cba=_0x420cba-0x17f;let _0x25cad3=_0x5cfadc[_0x420cba];return _0x25cad3;},_0x420c(_0x25220e,_0x2270ca);}function _0x5cfa(){const _0x33bcde=['clearConversationContextItems','setTemplate','focusPromptInput','setIsUploadInProgress','clearConversationContextUI','element','toggleReasoning','ck-hidden','5412136rECeGl','enableModelSelector','updateResourceState','_contextPanelView','_promptInputView','div','setAddContextOptions','setModelList','1376810OOwBEa','setContextItemLoading','_handlePromptInputFocus','addContextItem','setPlaceholderText','setConversationContext','clearPendingContextUI','_shouldRestorePromptInputFocus','setReasoning','sendUserMessage','2355736FgFYYV','toggleWebSearch','ck-ai-chat-controls-disabled','bindTemplate','4056609eBHFcP','6774680aKyAet','form','4749521rRsKhC','populateSourceResourceBalloon','delegate','low','selectModel','2zCBtIC','closeSourceResourceBalloon','_createLoaderView','clearCurrentContextItems','removeContextItem','_promptCapabilitiesView','isDisabled','addContextButtonView','set','setModel','isLoading','focus','change:isLoading','setWebSearch','setInputPlaceholder','_createPromptInputView','_loaderView','disableModelSelector','_createContextPanelView','ck-ai-chat-controls','_createPromptCapabilitiesView','6722340dXVaGL','resetMessageInput','abortPromptStream','reset'];_0x5cfa=function(){return _0x33bcde;};return _0x5cfa();}import{AIChatPromptCapabilitiesView as _0x68772c}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x273a3a,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x89c1d9}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x1df78f}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0x35ef2e{[_0x57996b(0x1bb)];[_0x57996b(0x1bc)];[_0x57996b(0x19c)];[_0x57996b(0x1a7)];[_0x57996b(0x188)];constructor(_0x174a71,_0x325497){const _0x405a7=_0x57996b;super(_0x174a71),this[_0x405a7(0x1bb)]=this[_0x405a7(0x1a9)](_0x174a71,_0x325497),this[_0x405a7(0x1bc)]=this[_0x405a7(0x1a6)](_0x174a71),this[_0x405a7(0x19c)]=this[_0x405a7(0x1ab)](_0x174a71),this[_0x405a7(0x1a7)]=this[_0x405a7(0x199)](_0x174a71),this[_0x405a7(0x188)]=!0x1,this[_0x405a7(0x1bc)][_0x405a7(0x194)](_0x405a7(0x18a))['to'](this),this[_0x405a7(0x1a7)][_0x405a7(0x194)](_0x405a7(0x1ae))['to'](this),this[_0x405a7(0x19c)][_0x405a7(0x194)](_0x405a7(0x18c))['to'](this),this[_0x405a7(0x19c)][_0x405a7(0x194)](_0x405a7(0x1b6))['to'](this),this[_0x405a7(0x19c)][_0x405a7(0x194)](_0x405a7(0x196))['to'](this),this[_0x405a7(0x1bb)][_0x405a7(0x194)](..._0x89c1d9)['to'](this),this[_0x405a7(0x19f)](_0x405a7(0x19d),!0x1);const _0x549080=this[_0x405a7(0x18e)];this[_0x405a7(0x1b1)]({'tag':_0x405a7(0x191),'attributes':{'class':['ck',_0x405a7(0x1aa),_0x549080['if'](_0x405a7(0x19d),_0x405a7(0x18d))]},'children':[{'tag':_0x405a7(0x1bd),'attributes':{'class':[_0x549080['if'](_0x405a7(0x1a1),_0x405a7(0x1b7))]},'children':[this[_0x405a7(0x1bb)],this[_0x405a7(0x1bc)],this[_0x405a7(0x19c)]]},{'tag':_0x405a7(0x1bd),'attributes':{'class':[_0x549080['if'](_0x405a7(0x1a1),_0x405a7(0x1b7),_0x19d99a=>!_0x19d99a)]},'children':[this[_0x405a7(0x1a7)]]}]}),_0x318332({'emitter':this[_0x405a7(0x1bc)],'activator':()=>this[_0x405a7(0x1a1)],'contextElements':()=>[this[_0x405a7(0x1b5)]],'callback':()=>{const _0x136f42=_0x405a7;this[_0x136f42(0x188)]=!0x1;}}),this['on'](_0x405a7(0x1a3),this[_0x405a7(0x183)],{'priority':_0x405a7(0x195)});}[_0x57996b(0x1a9)](_0x5665d1,_0x225cc5){return new _0x273a3a(_0x5665d1,_0x225cc5);}[_0x57996b(0x1a6)](_0x4aef8a){const _0x4d3fcd=_0x57996b;return new _0x118a79(_0x4aef8a,this[_0x4d3fcd(0x1bb)][_0x4d3fcd(0x19e)]);}[_0x57996b(0x1ab)](_0x15bb82){return new _0x68772c(_0x15bb82);}[_0x57996b(0x199)](_0x476ccc){return new _0x1df78f(_0x476ccc);}[_0x57996b(0x183)](_0x2138e3,_0x467289,_0x6001c3){const _0x23efad=_0x57996b;_0x6001c3?this[_0x23efad(0x188)]=!0x0:this[_0x23efad(0x188)]&&this[_0x23efad(0x1bc)][_0x23efad(0x1a2)]();}[_0x57996b(0x184)](_0x1881c4,_0x200acb){const _0x3f3aff=_0x57996b;this[_0x3f3aff(0x1bb)][_0x3f3aff(0x184)](_0x1881c4,_0x200acb);}[_0x57996b(0x19b)](_0x49444a){const _0x215ccb=_0x57996b;this[_0x215ccb(0x1bb)][_0x215ccb(0x19b)](_0x49444a);}[_0x57996b(0x182)](_0xf9385e,_0x3e0f9b){const _0x55eb31=_0x57996b;this[_0x55eb31(0x1bb)][_0x55eb31(0x182)](_0xf9385e,_0x3e0f9b);}[_0x57996b(0x1b3)](_0x66abba){const _0x5313b9=_0x57996b;this[_0x5313b9(0x1bc)][_0x5313b9(0x1b3)](_0x66abba);}[_0x57996b(0x186)](_0x3222c8){const _0x20c539=_0x57996b;this[_0x20c539(0x1bb)][_0x20c539(0x186)](_0x3222c8);}[_0x57996b(0x187)](){const _0x272a3d=_0x57996b;this[_0x272a3d(0x1bb)][_0x272a3d(0x19a)]();}[_0x57996b(0x1b4)](){const _0x315e91=_0x57996b;this[_0x315e91(0x1bb)][_0x315e91(0x1b0)]();}[_0x57996b(0x1ba)](_0x5c9f10,_0x4c69be,_0x5e4573){const _0x589df1=_0x57996b;this[_0x589df1(0x1bb)][_0x589df1(0x1ba)](_0x5c9f10,_0x4c69be,_0x5e4573);}[_0x57996b(0x1a4)](_0xf3cc6d){const _0x3c3442=_0x57996b;this[_0x3c3442(0x19c)][_0x3c3442(0x1a4)](_0xf3cc6d);}[_0x57996b(0x189)](_0x26f014){const _0x4e2d87=_0x57996b;this[_0x4e2d87(0x19c)][_0x4e2d87(0x189)](_0x26f014);}[_0x57996b(0x1ad)](){const _0x45de04=_0x57996b;this[_0x45de04(0x1bc)][_0x45de04(0x1af)]();}[_0x57996b(0x17f)](_0x46b6c3){const _0x5b0ea1=_0x57996b;this[_0x5b0ea1(0x1bb)][_0x5b0ea1(0x17f)](_0x46b6c3);}[_0x57996b(0x1a5)](_0x3fa27d){const _0x55c8a7=_0x57996b;this[_0x55c8a7(0x1bc)][_0x55c8a7(0x185)](_0x3fa27d);}[_0x57996b(0x180)](_0x1a813d,_0x19e799){const _0x2c20f4=_0x57996b;this[_0x2c20f4(0x19c)][_0x2c20f4(0x180)](_0x1a813d,_0x19e799);}[_0x57996b(0x1a0)](_0x412436){const _0x37face=_0x57996b;this[_0x37face(0x19c)][_0x37face(0x1a0)](_0x412436);}[_0x57996b(0x1b9)](){const _0x322fc3=_0x57996b;this[_0x322fc3(0x19c)][_0x322fc3(0x1b9)]();}[_0x57996b(0x1a8)](_0x2d02b8){const _0x5b4348=_0x57996b;this[_0x5b4348(0x19c)][_0x5b4348(0x1a8)](_0x2d02b8);}[_0x57996b(0x193)](_0x39c7ba,_0x6b0f68,_0x46fe13,_0x12dbba){const _0x2c0d8c=_0x57996b;this[_0x2c0d8c(0x1bb)][_0x2c0d8c(0x193)](_0x39c7ba,_0x6b0f68,_0x46fe13,_0x12dbba);}[_0x57996b(0x198)](_0x1640c2){const _0x554d7d=_0x57996b;this[_0x554d7d(0x1bb)][_0x554d7d(0x198)](_0x1640c2);}[_0x57996b(0x1b2)](){const _0x39266b=_0x57996b;this[_0x39266b(0x1bc)][_0x39266b(0x1a2)]();}}
@@ -39,6 +39,10 @@ export declare class AIChatFeedView extends View {
39
39
  */
40
40
  loadingMessage: string;
41
41
  isLoadingSkeletonVisible: boolean;
42
+ /**
43
+ * @observable
44
+ */
45
+ isTrackChangesOn: boolean;
42
46
  /**
43
47
  * @inheritDoc
44
48
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3704cb=_0x2464;(function(_0x13a615,_0x169863){const _0x567179=_0x2464,_0x2beb42=_0x13a615();while(!![]){try{const _0x17fc4b=parseInt(_0x567179(0x9c))/0x1+-parseInt(_0x567179(0x73))/0x2*(-parseInt(_0x567179(0x96))/0x3)+-parseInt(_0x567179(0xb8))/0x4*(parseInt(_0x567179(0xaf))/0x5)+-parseInt(_0x567179(0x7a))/0x6+-parseInt(_0x567179(0xb5))/0x7*(parseInt(_0x567179(0x7c))/0x8)+-parseInt(_0x567179(0x95))/0x9*(-parseInt(_0x567179(0x7b))/0xa)+parseInt(_0x567179(0x79))/0xb*(parseInt(_0x567179(0x6a))/0xc);if(_0x17fc4b===_0x169863)break;else _0x2beb42['push'](_0x2beb42['shift']());}catch(_0x2f5c9f){_0x2beb42['push'](_0x2beb42['shift']());}}}(_0x41f4,0x5197d));import{CKEditorError as _0x2e0fd6,logWarning as _0x456c63,scrollViewportToShowTarget as _0x2383c2}from'ckeditor5/src/utils.js';import{View as _0x3d1a7a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x274f32}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x5175e9}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3f3a51}from'./feed/aichatfeedreplyitemview.js';function _0x2464(_0x18bece,_0x3fbe23){const _0x41f49f=_0x41f4();return _0x2464=function(_0x246428,_0x435210){_0x246428=_0x246428-0x69;let _0xf75df1=_0x41f49f[_0x246428];return _0xf75df1;},_0x2464(_0x18bece,_0x3fbe23);}import{AIChatFeedUserMessageItemView as _0x493618}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x1037d5}from'./feed/aichatfeederroritemview.js';function _0x41f4(){const _0x20b249=['isLoadingSkeletonVisible','createCollection','locale','clear','_createFeedLoader','setLoadingMessage','ck-ai-chat__loader-text','getItemById','add','updateWebSources','updateSuggestionPartState','stopAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','options','ai-chat-feed-view-item-not-a-reply-item','remove','isVisible','2048373ZeYRLa','1131kBbmHc','element','ck-ai-chat__feed','updateSuggestionItem','scrollToSuggestion','toggleLoadingSkeleton','209557fXmbVO','updateReplyItem','delegate','interaction-header','destroy','find','_setupTemplate','markAsDone','updateContent','_createSkeletonLoader','updateSources','includes','ck-ai-chat__loader','removeItem','markItemAsDone','children','user-message','_createLoaderChildren','map','280205aSghqI','ai-reply','aiFeed','extendTemplate','updatePartState','span','105CFlEmP','scrollManager','isPending','4RWSjkm','getPartView','ai-chat-feed-view-item-not-a-suggestion-item','1816044ItWHGO','render','ck-ai-chat__feed__items','loadingMessage','_bodyCollection','getItemIds','ai-chat-feed-view-item-not-found','ai-suggestion-reply','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','3104LgkyFo','div','_createTemplateChildren','setTemplate','start','startAutoScroll','33AerrVB','3525888JlblCB','10mtXczh','265800tbvvNw','ck-hidden','_createFeedItems','set','stop','bindTemplate','addItem'];_0x41f4=function(){return _0x20b249;};return _0x41f4();}import{AIChatFeedInteractionHeaderView as _0x429aba}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x162c5f}from'../utils/scrollmanager.js';import{AISkeletonView as _0x50bee6,SKELETON_DEFINITIONS as _0x50e9be}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4a95f2}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x3d1a7a{[_0x3704cb(0xab)];[_0x3704cb(0xb6)];[_0x3704cb(0x6e)];constructor(_0x51d747,_0x2dbe78){const _0x8950aa=_0x3704cb;super(_0x51d747),this[_0x8950aa(0x6e)]=_0x2dbe78,this[_0x8950aa(0x7f)](_0x8950aa(0xb7),!0x1),this[_0x8950aa(0x7f)](_0x8950aa(0x6d),''),this[_0x8950aa(0x7f)](_0x8950aa(0x83),!0x1),this[_0x8950aa(0xab)]=this[_0x8950aa(0x84)](),this[_0x8950aa(0xab)][_0x8950aa(0x9e)](..._0x274f32)['to'](this),this[_0x8950aa(0xa2)]();}[_0x3704cb(0x6b)](){const _0x1c2cc7=_0x3704cb;super[_0x1c2cc7(0x6b)](),this[_0x1c2cc7(0xb6)]=new _0x162c5f(this[_0x1c2cc7(0x97)]);}[_0x3704cb(0xa0)](){const _0x28a5c7=_0x3704cb;super[_0x28a5c7(0xa0)](),this[_0x28a5c7(0xb6)][_0x28a5c7(0xa0)]();}[_0x3704cb(0x86)](){const _0x4968d1=_0x3704cb;this[_0x4968d1(0xab)][_0x4968d1(0x86)]();}[_0x3704cb(0x82)](_0x3a6ee4,_0x4cc980){const _0x4e7063=_0x3704cb;let _0x1a5298;_0x1a5298=_0x4e7063(0xb0)===_0x3a6ee4?new _0x3f3a51(this[_0x4e7063(0x85)],_0x4cc980):_0x4e7063(0x71)===_0x3a6ee4?new _0x5175e9(this[_0x4e7063(0x85)],_0x4cc980):_0x4e7063(0xac)===_0x3a6ee4?new _0x493618(this[_0x4e7063(0x85)],_0x4cc980,this[_0x4e7063(0x6e)]):_0x4e7063(0x9f)===_0x3a6ee4?new _0x429aba(this[_0x4e7063(0x85)],_0x4cc980):new _0x1037d5(_0x4cc980),this[_0x4e7063(0xab)][_0x4e7063(0x8b)](_0x1a5298);}async[_0x3704cb(0x9d)]({id:_0x22fa0a,parsedContent:_0x75e6fd,renderingStrategy:_0x58a3c5,abortSignal:_0x1ede1d}){const _0x18e098=_0x3704cb,_0x3f4ce0=this[_0x18e098(0x8a)](_0x22fa0a);if(!(_0x3f4ce0 instanceof _0x3f3a51))throw new _0x2e0fd6(_0x18e098(0x92),null,{'itemView':_0x3f4ce0,'id':_0x22fa0a,'parsedContent':_0x75e6fd});await _0x3f4ce0[_0x18e098(0xa4)]({'parsedContent':_0x75e6fd,'renderingStrategy':_0x58a3c5,'abortSignal':_0x1ede1d});}async[_0x3704cb(0x8c)](_0x44d31f,_0x2b429d){const _0x164fac=_0x3704cb,_0x24dcf2=this[_0x164fac(0x8a)](_0x44d31f);if(_0x24dcf2 instanceof _0x5175e9)_0x24dcf2[_0x164fac(0xa6)](_0x2b429d);else{if(!(_0x24dcf2 instanceof _0x3f3a51))throw new _0x2e0fd6(_0x164fac(0x72),null,{'itemView':_0x24dcf2,'id':_0x44d31f,'sources':_0x2b429d});_0x24dcf2[_0x164fac(0xa6)](_0x2b429d);}}async[_0x3704cb(0x99)]({id:_0x1479ba,parts:_0x2e64b1,renderingStrategy:_0x2d3545,abortSignal:_0x463312}){const _0x45ab38=_0x3704cb,_0x22a103=this[_0x45ab38(0x8a)](_0x1479ba);if(!(_0x22a103 instanceof _0x5175e9))throw new _0x2e0fd6(_0x45ab38(0x69),null,{'itemView':_0x22a103,'id':_0x1479ba,'parts':_0x2e64b1});await _0x22a103[_0x45ab38(0xa4)]({'parts':_0x2e64b1,'renderingStrategy':_0x2d3545,'abortSignal':_0x463312});}[_0x3704cb(0x8d)]({id:_0x1d9b41,index:_0x4d4580,state:_0x37a57f}){const _0x21fc8b=_0x3704cb,_0x359b5d=this[_0x21fc8b(0x8a)](_0x1d9b41);if(!(_0x359b5d instanceof _0x5175e9))throw new _0x2e0fd6(_0x21fc8b(0x69),this,{'id':_0x1d9b41});_0x359b5d[_0x21fc8b(0xb3)](_0x4d4580,_0x37a57f);}[_0x3704cb(0xaa)](_0x37a0f7){const _0x448f4d=_0x3704cb;this[_0x448f4d(0x8a)](_0x37a0f7)[_0x448f4d(0xa3)]();}[_0x3704cb(0x6f)](){const _0x35a49a=_0x3704cb;return this[_0x35a49a(0xab)][_0x35a49a(0xae)](_0x4f73a6=>_0x4f73a6[_0x35a49a(0x91)]['id']);}[_0x3704cb(0xa9)](_0x1824f8){const _0x24e18d=_0x3704cb;this[_0x24e18d(0xab)][_0x24e18d(0x93)](this[_0x24e18d(0x8a)](_0x1824f8));}[_0x3704cb(0x9a)](_0x28e775,_0x21d3b4){const _0x34e92d=_0x3704cb,_0x10f7cf=this[_0x34e92d(0x8a)](_0x28e775);if(!(_0x10f7cf instanceof _0x5175e9))return void _0x456c63(_0x34e92d(0x90),{'replyId':_0x28e775,'partIndex':_0x21d3b4});const _0x386697=_0x10f7cf[_0x34e92d(0xb9)](_0x21d3b4);_0x386697?_0x2383c2({'target':_0x386697[_0x34e92d(0x97)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x456c63(_0x34e92d(0x8f),{'replyId':_0x28e775,'partIndex':_0x21d3b4});}[_0x3704cb(0xa2)](){const _0x1728e8=_0x3704cb;this[_0x1728e8(0x76)]({'tag':_0x1728e8(0x74),'attributes':{'class':['ck',_0x1728e8(0x98)]},'children':this[_0x1728e8(0x75)]()});}[_0x3704cb(0x75)](){const _0x2100a8=_0x3704cb,_0x202d1c=this[_0x2100a8(0xa5)]();return[this[_0x2100a8(0x7e)](),_0x202d1c,this[_0x2100a8(0x87)]()];}[_0x3704cb(0xa5)](){const _0x35bb13=_0x3704cb,_0x4a1d86=new _0x50bee6(this[_0x35bb13(0x85)],_0x50e9be[_0x35bb13(0xb1)]);return _0x4a1d86[_0x35bb13(0xb2)]({'attributes':{'class':[this[_0x35bb13(0x81)]['if'](_0x35bb13(0x83),_0x35bb13(0x7d),_0x44835f=>!_0x44835f)]}}),_0x4a1d86;}[_0x3704cb(0x7e)](){const _0x273dbe=_0x3704cb,_0x4af09e=new _0x3d1a7a(this[_0x273dbe(0x85)]);return _0x4af09e[_0x273dbe(0x76)]({'tag':_0x273dbe(0x74),'attributes':{'class':['ck',_0x273dbe(0x6c),this[_0x273dbe(0x81)]['if'](_0x273dbe(0x83),_0x273dbe(0x7d))]},'children':this[_0x273dbe(0xab)]}),_0x4af09e;}[_0x3704cb(0x87)](){const _0x412254=_0x3704cb,_0x8c400f=new _0x3d1a7a(this[_0x412254(0x85)]);return _0x8c400f[_0x412254(0x76)]({'tag':_0x412254(0x74),'attributes':{'class':['ck',_0x412254(0xa8),this[_0x412254(0x81)]['if'](_0x412254(0xb7),_0x412254(0x7d),_0x444e20=>!_0x444e20)]},'children':this[_0x412254(0xad)]()}),_0x8c400f;}[_0x3704cb(0xad)](){const _0x18b476=_0x3704cb,_0x1e8c40=new _0x4a95f2();return _0x1e8c40[_0x18b476(0x94)]=!0x0,[_0x1e8c40,{'tag':_0x18b476(0xb4),'attributes':{'class':['ck',_0x18b476(0x89)]},'children':[{'text':this[_0x18b476(0x81)]['to'](_0x18b476(0x6d))}]}];}[_0x3704cb(0x8a)](_0x283933){const _0x2ef810=_0x3704cb,_0x1dd3c6=this[_0x2ef810(0xab)][_0x2ef810(0xa1)](_0x390ba7=>_0x390ba7[_0x2ef810(0x91)]['id'][_0x2ef810(0xa7)](_0x283933));if(!_0x1dd3c6)throw new _0x2e0fd6(_0x2ef810(0x70),this,{'id':_0x283933});return _0x1dd3c6;}[_0x3704cb(0x88)](_0x461980){const _0x365c4b=_0x3704cb;this[_0x365c4b(0x7f)](_0x365c4b(0x6d),_0x461980);}[_0x3704cb(0x9b)](_0x53a470){const _0x13ccd4=_0x3704cb;this[_0x13ccd4(0x7f)](_0x13ccd4(0x83),_0x53a470);}[_0x3704cb(0x78)](){const _0x14bba9=_0x3704cb;this[_0x14bba9(0xb6)][_0x14bba9(0x77)]();}[_0x3704cb(0x8e)](){const _0x515762=_0x3704cb;this[_0x515762(0xb6)][_0x515762(0x80)]();}}
23
+ const _0x279a10=_0x1fc2;(function(_0x12eecd,_0x26c909){const _0x83a234=_0x1fc2,_0x928649=_0x12eecd();while(!![]){try{const _0x1050eb=-parseInt(_0x83a234(0xa2))/0x1+-parseInt(_0x83a234(0xe6))/0x2*(parseInt(_0x83a234(0xad))/0x3)+-parseInt(_0x83a234(0xc4))/0x4*(parseInt(_0x83a234(0xcb))/0x5)+parseInt(_0x83a234(0xc6))/0x6*(-parseInt(_0x83a234(0xa7))/0x7)+parseInt(_0x83a234(0xce))/0x8*(-parseInt(_0x83a234(0xe9))/0x9)+-parseInt(_0x83a234(0xbf))/0xa+parseInt(_0x83a234(0x9d))/0xb;if(_0x1050eb===_0x26c909)break;else _0x928649['push'](_0x928649['shift']());}catch(_0x630429){_0x928649['push'](_0x928649['shift']());}}}(_0x3cd9,0x1a49b));import{CKEditorError as _0x4a028a,logWarning as _0x28ae64,scrollViewportToShowTarget as _0x46fdf8}from'ckeditor5/src/utils.js';import{View as _0x28867d}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xa84e19}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x255221}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3f5828}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x2e1e7e}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x463ad4}from'./feed/aichatfeederroritemview.js';function _0x1fc2(_0x2f8e6a,_0x126f8c){const _0x3cd981=_0x3cd9();return _0x1fc2=function(_0x1fc282,_0x43d914){_0x1fc282=_0x1fc282-0x9b;let _0x258a0d=_0x3cd981[_0x1fc282];return _0x258a0d;},_0x1fc2(_0x2f8e6a,_0x126f8c);}import{AIChatFeedInteractionHeaderView as _0x3dcf63}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4ba47d}from'../utils/scrollmanager.js';import{AISkeletonView as _0x126b68,SKELETON_DEFINITIONS as _0x3e7a52}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x54046a}from'../../aicore/ui/aispinner.js';function _0x3cd9(){const _0x1918ca=['231582hZoWeZ','startAutoScroll','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','start','ck-ai-chat__loader-text','remove','_setupTemplate','setTemplate','user-message','find','isLoadingSkeletonVisible','updateSuggestionItem','_createSkeletonLoader','stopAutoScroll','loadingMessage','locale','markItemAsDone','1027320ZYuzjy','createCollection','options','markAsDone','clear','495916uQEziq','extendTemplate','282zEHQYN','ai-chat-feed-view-item-not-a-suggestion-item','ai-suggestion-reply','getPartView','removeItem','5XLHFAP','ck-ai-chat__loader','getItemIds','14312QZahhN','setLoadingMessage','getItemById','interaction-header','span','updateSuggestionPartState','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','scrollToSuggestion','scrollManager','isTrackChangesOn','updatePartState','bind','element','stop','ai-reply','_createTemplateChildren','toggleLoadingSkeleton','div','set','ck-hidden','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','updateSources','isPending','bindTemplate','4LDeZFI','isVisible','ck-ai-chat__feed__items','828iAKesl','destroy','_createFeedItems','render','map','add','10713472gLrFMY','updateContent','ai-chat-feed-view-item-not-a-reply-item','addItem','_createFeedLoader','191199blspdJ','updateReplyItem','delegate','aiFeed','_createLoaderChildren','19271YjRcxC','_bodyCollection','children','includes','updateWebSources','ai-chat-feed-view-item-not-found'];_0x3cd9=function(){return _0x1918ca;};return _0x3cd9();}export class AIChatFeedView extends _0x28867d{[_0x279a10(0xa9)];[_0x279a10(0xd6)];[_0x279a10(0xa8)];constructor(_0x36ad99,_0x26af27){const _0x370bd5=_0x279a10;super(_0x36ad99),this[_0x370bd5(0xa8)]=_0x26af27,this[_0x370bd5(0xe0)](_0x370bd5(0xe4),!0x1),this[_0x370bd5(0xe0)](_0x370bd5(0xbc),''),this[_0x370bd5(0xe0)](_0x370bd5(0xb8),!0x1),this[_0x370bd5(0xe0)](_0x370bd5(0xd7),!0x1),this[_0x370bd5(0xa9)]=this[_0x370bd5(0xc0)](),this[_0x370bd5(0xa9)][_0x370bd5(0xa4)](..._0xa84e19)['to'](this),this[_0x370bd5(0xb4)]();}[_0x279a10(0xec)](){const _0x347a7a=_0x279a10;super[_0x347a7a(0xec)](),this[_0x347a7a(0xd6)]=new _0x4ba47d(this[_0x347a7a(0xda)]);}[_0x279a10(0xea)](){const _0x2ae2f8=_0x279a10;super[_0x2ae2f8(0xea)](),this[_0x2ae2f8(0xd6)][_0x2ae2f8(0xea)]();}[_0x279a10(0xc3)](){const _0x2d24ea=_0x279a10;this[_0x2d24ea(0xa9)][_0x2d24ea(0xc3)]();}[_0x279a10(0xa0)](_0x2e4218,_0x5a5f1d){const _0x10f786=_0x279a10;let _0x4c0c69;_0x10f786(0xdc)===_0x2e4218?_0x4c0c69=new _0x3f5828(this[_0x10f786(0xbd)],_0x5a5f1d):_0x10f786(0xc8)===_0x2e4218?(_0x4c0c69=new _0x255221(this[_0x10f786(0xbd)],_0x5a5f1d),_0x4c0c69[_0x10f786(0xd9)](_0x10f786(0xd7))['to'](this,_0x10f786(0xd7))):_0x4c0c69=_0x10f786(0xb6)===_0x2e4218?new _0x2e1e7e(this[_0x10f786(0xbd)],_0x5a5f1d,this[_0x10f786(0xa8)]):_0x10f786(0xd1)===_0x2e4218?new _0x3dcf63(this[_0x10f786(0xbd)],_0x5a5f1d):new _0x463ad4(_0x5a5f1d),this[_0x10f786(0xa9)][_0x10f786(0x9c)](_0x4c0c69);}async[_0x279a10(0xa3)]({id:_0x4cb309,parsedContent:_0x847a5f,renderingStrategy:_0x309898,abortSignal:_0x2bb1ce}){const _0x3b7229=_0x279a10,_0x103376=this[_0x3b7229(0xd0)](_0x4cb309);if(!(_0x103376 instanceof _0x3f5828))throw new _0x4a028a(_0x3b7229(0x9f),null,{'itemView':_0x103376,'id':_0x4cb309,'parsedContent':_0x847a5f});await _0x103376[_0x3b7229(0x9e)]({'parsedContent':_0x847a5f,'renderingStrategy':_0x309898,'abortSignal':_0x2bb1ce});}async[_0x279a10(0xab)](_0x569a63,_0x165c4e){const _0x5b188f=_0x279a10,_0x187c78=this[_0x5b188f(0xd0)](_0x569a63);if(_0x187c78 instanceof _0x255221)_0x187c78[_0x5b188f(0xe3)](_0x165c4e);else{if(!(_0x187c78 instanceof _0x3f5828))throw new _0x4a028a(_0x5b188f(0xb0),null,{'itemView':_0x187c78,'id':_0x569a63,'sources':_0x165c4e});_0x187c78[_0x5b188f(0xe3)](_0x165c4e);}}async[_0x279a10(0xb9)]({id:_0x148869,parts:_0xb6c0a4,renderingStrategy:_0xa0ea70,abortSignal:_0x384dba}){const _0x46a65b=_0x279a10,_0x5184d0=this[_0x46a65b(0xd0)](_0x148869);if(!(_0x5184d0 instanceof _0x255221))throw new _0x4a028a(_0x46a65b(0xc7),null,{'itemView':_0x5184d0,'id':_0x148869,'parts':_0xb6c0a4});await _0x5184d0[_0x46a65b(0x9e)]({'parts':_0xb6c0a4,'renderingStrategy':_0xa0ea70,'abortSignal':_0x384dba});}[_0x279a10(0xd3)]({id:_0x424b45,index:_0x2ea87a,state:_0x3c56e8}){const _0x36bf5d=_0x279a10,_0x2ef060=this[_0x36bf5d(0xd0)](_0x424b45);if(!(_0x2ef060 instanceof _0x255221))throw new _0x4a028a(_0x36bf5d(0xc7),this,{'id':_0x424b45});_0x2ef060[_0x36bf5d(0xd8)](_0x2ea87a,_0x3c56e8);}[_0x279a10(0xbe)](_0x5c9116){const _0x2ace23=_0x279a10;this[_0x2ace23(0xd0)](_0x5c9116)[_0x2ace23(0xc2)]();}[_0x279a10(0xcd)](){const _0x14090f=_0x279a10;return this[_0x14090f(0xa9)][_0x14090f(0x9b)](_0x8bcf66=>_0x8bcf66[_0x14090f(0xc1)]['id']);}[_0x279a10(0xca)](_0x3e5be4){const _0x2d3358=_0x279a10;this[_0x2d3358(0xa9)][_0x2d3358(0xb3)](this[_0x2d3358(0xd0)](_0x3e5be4));}[_0x279a10(0xd5)](_0x437a0f,_0xa6d563){const _0x43ed92=_0x279a10,_0x5d777c=this[_0x43ed92(0xd0)](_0x437a0f);if(!(_0x5d777c instanceof _0x255221))return void _0x28ae64(_0x43ed92(0xe2),{'replyId':_0x437a0f,'partIndex':_0xa6d563});const _0x47d468=_0x5d777c[_0x43ed92(0xc9)](_0xa6d563);_0x47d468?_0x46fdf8({'target':_0x47d468[_0x43ed92(0xda)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x28ae64(_0x43ed92(0xd4),{'replyId':_0x437a0f,'partIndex':_0xa6d563});}[_0x279a10(0xb4)](){const _0x57b3b0=_0x279a10;this[_0x57b3b0(0xb5)]({'tag':_0x57b3b0(0xdf),'attributes':{'class':['ck',_0x57b3b0(0xaf)]},'children':this[_0x57b3b0(0xdd)]()});}[_0x279a10(0xdd)](){const _0x125582=_0x279a10,_0x1da4d4=this[_0x125582(0xba)]();return[this[_0x125582(0xeb)](),_0x1da4d4,this[_0x125582(0xa1)]()];}[_0x279a10(0xba)](){const _0x2a15ea=_0x279a10,_0x1d147b=new _0x126b68(this[_0x2a15ea(0xbd)],_0x3e7a52[_0x2a15ea(0xa5)]);return _0x1d147b[_0x2a15ea(0xc5)]({'attributes':{'class':[this[_0x2a15ea(0xe5)]['if'](_0x2a15ea(0xb8),_0x2a15ea(0xe1),_0x53697a=>!_0x53697a)]}}),_0x1d147b;}[_0x279a10(0xeb)](){const _0x5cbb0b=_0x279a10,_0x3a4383=new _0x28867d(this[_0x5cbb0b(0xbd)]);return _0x3a4383[_0x5cbb0b(0xb5)]({'tag':_0x5cbb0b(0xdf),'attributes':{'class':['ck',_0x5cbb0b(0xe8),this[_0x5cbb0b(0xe5)]['if'](_0x5cbb0b(0xb8),_0x5cbb0b(0xe1))]},'children':this[_0x5cbb0b(0xa9)]}),_0x3a4383;}[_0x279a10(0xa1)](){const _0xd590d3=_0x279a10,_0x40a211=new _0x28867d(this[_0xd590d3(0xbd)]);return _0x40a211[_0xd590d3(0xb5)]({'tag':_0xd590d3(0xdf),'attributes':{'class':['ck',_0xd590d3(0xcc),this[_0xd590d3(0xe5)]['if'](_0xd590d3(0xe4),_0xd590d3(0xe1),_0x445356=>!_0x445356)]},'children':this[_0xd590d3(0xa6)]()}),_0x40a211;}[_0x279a10(0xa6)](){const _0x5512cd=_0x279a10,_0x4ef4a2=new _0x54046a();return _0x4ef4a2[_0x5512cd(0xe7)]=!0x0,[_0x4ef4a2,{'tag':_0x5512cd(0xd2),'attributes':{'class':['ck',_0x5512cd(0xb2)]},'children':[{'text':this[_0x5512cd(0xe5)]['to'](_0x5512cd(0xbc))}]}];}[_0x279a10(0xd0)](_0x164e90){const _0x4ea862=_0x279a10,_0x28ccfb=this[_0x4ea862(0xa9)][_0x4ea862(0xb7)](_0x3f8db2=>_0x3f8db2[_0x4ea862(0xc1)]['id'][_0x4ea862(0xaa)](_0x164e90));if(!_0x28ccfb)throw new _0x4a028a(_0x4ea862(0xac),this,{'id':_0x164e90});return _0x28ccfb;}[_0x279a10(0xcf)](_0xc551ac){const _0x1286d2=_0x279a10;this[_0x1286d2(0xe0)](_0x1286d2(0xbc),_0xc551ac);}[_0x279a10(0xde)](_0x573c9e){const _0x311398=_0x279a10;this[_0x311398(0xe0)](_0x311398(0xb8),_0x573c9e);}[_0x279a10(0xae)](){const _0x143379=_0x279a10;this[_0x143379(0xd6)][_0x143379(0xb1)]();}[_0x279a10(0xbb)](){const _0x35c8d3=_0x279a10;this[_0x35c8d3(0xd6)][_0x35c8d3(0xdb)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ee169=_0x3d5c;(function(_0x4f8bfc,_0x12ba5a){const _0x39e902=_0x3d5c,_0x1cc74d=_0x4f8bfc();while(!![]){try{const _0x2714be=parseInt(_0x39e902(0x1ec))/0x1*(-parseInt(_0x39e902(0x1eb))/0x2)+parseInt(_0x39e902(0x1f5))/0x3+-parseInt(_0x39e902(0x1fb))/0x4*(-parseInt(_0x39e902(0x1f4))/0x5)+-parseInt(_0x39e902(0x1e8))/0x6*(parseInt(_0x39e902(0x1ea))/0x7)+-parseInt(_0x39e902(0x1ed))/0x8+-parseInt(_0x39e902(0x1f2))/0x9+parseInt(_0x39e902(0x1f3))/0xa;if(_0x2714be===_0x12ba5a)break;else _0x1cc74d['push'](_0x1cc74d['shift']());}catch(_0x563799){_0x1cc74d['push'](_0x1cc74d['shift']());}}}(_0x3b81,0xc7934));import{ButtonView as _0xd77086,FormHeaderView as _0x3908a7}from'ckeditor5/src/ui.js';import{IconPlus as _0x3f10ba,IconAIChat as _0x3db927}from'ckeditor5/src/icons.js';import{getTranslation as _0xf38a28}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x57ab1e}from'../../aicore/utils/createresizebutton.js';function _0x3d5c(_0x25a0b7,_0x4709f3){const _0x3b8187=_0x3b81();return _0x3d5c=function(_0x3d5ccf,_0x1ea071){_0x3d5ccf=_0x3d5ccf-0x1e6;let _0x46f749=_0x3b8187[_0x3d5ccf];return _0x46f749;},_0x3d5c(_0x25a0b7,_0x4709f3);}export class AIChatHeaderView extends _0x3908a7{[_0x3ee169(0x1fc)];[_0x3ee169(0x1f6)];constructor(_0x300dc5,_0x527d5f){const _0x5bf24f=_0x3ee169;super(_0x300dc5,{'label':_0xf38a28(_0x300dc5,_0x5bf24f(0x1e6)),'class':_0x5bf24f(0x1e7),'icon':_0x3db927}),this[_0x5bf24f(0x1ee)](_0x5bf24f(0x1e9),!0x1),this[_0x5bf24f(0x1fc)]=this[_0x5bf24f(0x1f9)](_0x300dc5),this[_0x5bf24f(0x1ef)][_0x5bf24f(0x1fa)](this[_0x5bf24f(0x1fc)]),_0x527d5f&&(this[_0x5bf24f(0x1f6)]=_0x57ab1e(_0x300dc5,this),this[_0x5bf24f(0x1ef)][_0x5bf24f(0x1fa)](this[_0x5bf24f(0x1f6)]));}[_0x3ee169(0x1f9)](_0x2b03cb){const _0x36868e=_0x3ee169,_0x2ea23f=new _0xd77086(_0x2b03cb);return _0x2ea23f[_0x36868e(0x1ee)]({'label':_0xf38a28(this[_0x36868e(0x1f8)],_0x36868e(0x1fd)),'withText':!0x0,'icon':_0x3f10ba,'class':_0x36868e(0x1fe)}),_0x2ea23f['on'](_0x36868e(0x1f0),()=>{const _0x43605c=_0x36868e;this[_0x43605c(0x1f1)](_0x43605c(0x1f7));}),_0x2ea23f;}}function _0x3b81(){const _0x181381=['fire','14290092ybVhaO','26453000XfnGDb','2230355svezcc','3688044nKIrHP','resizeButton','startConversation','locale','_createStartConversationButton','add','8vmjhGl','conversationStartButton','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat__start-conversation','AI_CHAT_HEADING','ck-ai-header\x20ck-ai-header_chat','1774860DeTvkU','isMaximized','7MxYnjH','74rSiZqv','40685ljldbF','4483096wspWci','set','children','execute'];_0x3b81=function(){return _0x181381;};return _0x3b81();}
23
+ const _0x29fc6e=_0x4de1;function _0xee6a(){const _0x57853b=['7081954yNcifN','startConversation','AI_CHAT_HEADING','AI_CHAT_LABEL_NEW_CHAT','92398dzfZfK','276TVCfsB','set','801DHXChI','add','13LRoEdl','children','61540LZImHN','execute','_createStartConversationButton','26553bLDUmb','ck-ai-header\x20ck-ai-header_chat','5546604ufRzkN','conversationStartButton','155ksfjVe','fire','156540PcqiDS','locale','resizeButton','ck-ai-chat__start-conversation','3801704GvDwxJ','isMaximized'];_0xee6a=function(){return _0x57853b;};return _0xee6a();}(function(_0x56193c,_0x2e28b1){const _0x3432cb=_0x4de1,_0x1e7018=_0x56193c();while(!![]){try{const _0x1dbbe4=parseInt(_0x3432cb(0x97))/0x1*(-parseInt(_0x3432cb(0x92))/0x2)+-parseInt(_0x3432cb(0x82))/0x3*(-parseInt(_0x3432cb(0x93))/0x4)+-parseInt(_0x3432cb(0x86))/0x5*(-parseInt(_0x3432cb(0x88))/0x6)+-parseInt(_0x3432cb(0x84))/0x7+parseInt(_0x3432cb(0x8c))/0x8+-parseInt(_0x3432cb(0x95))/0x9*(-parseInt(_0x3432cb(0x99))/0xa)+-parseInt(_0x3432cb(0x8e))/0xb;if(_0x1dbbe4===_0x2e28b1)break;else _0x1e7018['push'](_0x1e7018['shift']());}catch(_0xd15133){_0x1e7018['push'](_0x1e7018['shift']());}}}(_0xee6a,0x63097));import{ButtonView as _0x4c15d5,FormHeaderView as _0x373d88}from'ckeditor5/src/ui.js';import{IconPlus as _0x507f2b,IconAIChat as _0x304244}from'ckeditor5/src/icons.js';function _0x4de1(_0x2dce1c,_0x2d9df7){const _0xee6a41=_0xee6a();return _0x4de1=function(_0x4de187,_0x52daf8){_0x4de187=_0x4de187-0x80;let _0x44cac4=_0xee6a41[_0x4de187];return _0x44cac4;},_0x4de1(_0x2dce1c,_0x2d9df7);}import{getTranslation as _0x1f04b1}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1aa6a5}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x373d88{[_0x29fc6e(0x85)];[_0x29fc6e(0x8a)];constructor(_0x2a01e1,_0x19f761){const _0x21d56b=_0x29fc6e;super(_0x2a01e1,{'label':_0x1f04b1(_0x2a01e1,_0x21d56b(0x90)),'class':_0x21d56b(0x83),'icon':_0x304244}),this[_0x21d56b(0x94)](_0x21d56b(0x8d),!0x1),this[_0x21d56b(0x85)]=this[_0x21d56b(0x81)](_0x2a01e1),this[_0x21d56b(0x98)][_0x21d56b(0x96)](this[_0x21d56b(0x85)]),_0x19f761&&(this[_0x21d56b(0x8a)]=_0x1aa6a5(_0x2a01e1,this),this[_0x21d56b(0x98)][_0x21d56b(0x96)](this[_0x21d56b(0x8a)]));}[_0x29fc6e(0x81)](_0xd48dce){const _0x181133=_0x29fc6e,_0x539043=new _0x4c15d5(_0xd48dce);return _0x539043[_0x181133(0x94)]({'label':_0x1f04b1(this[_0x181133(0x89)],_0x181133(0x91)),'withText':!0x0,'icon':_0x507f2b,'class':_0x181133(0x8b)}),_0x539043['on'](_0x181133(0x80),()=>{const _0x1acb68=_0x181133;this[_0x1acb68(0x87)](_0x1acb68(0x8f));}),_0x539043;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5f00(){var _0x3bf5ff=['12oDWKku','populateSourceResourceBalloon','detachFromDom','chatHeader','1746920PnjaRw','ck-ai-chat','_bodyCollection','destroy','1774350EOMWhp','10Njejsv','ck-rounded-corners','setTemplate','ck-reset_all','uiLanguageDirection','delegate','chatControls','1871vMJTOH','277792HUSmjA','1469012dhTWWf','attachToDom','chatDisclaimer','closeSourceResourceBalloon','chatFeed','462qxmnMP','11263887zZCofU','2283778fbhqmz','div'];_0x5f00=function(){return _0x3bf5ff;};return _0x5f00();}var _0x10867c=_0x4f68;(function(_0x14e894,_0xe8b1d6){var _0x59551b=_0x4f68,_0x34d99b=_0x14e894();while(!![]){try{var _0x5de58b=parseInt(_0x59551b(0x108))/0x1*(parseInt(_0x59551b(0x10f))/0x2)+parseInt(_0x59551b(0x100))/0x3+-parseInt(_0x59551b(0x10a))/0x4+parseInt(_0x59551b(0xfc))/0x5+parseInt(_0x59551b(0x113))/0x6*(parseInt(_0x59551b(0x111))/0x7)+parseInt(_0x59551b(0x109))/0x8+parseInt(_0x59551b(0x110))/0x9*(-parseInt(_0x59551b(0x101))/0xa);if(_0x5de58b===_0xe8b1d6)break;else _0x34d99b['push'](_0x34d99b['shift']());}catch(_0x3aa9db){_0x34d99b['push'](_0x34d99b['shift']());}}}(_0x5f00,0x6bc7f));function _0x4f68(_0x2f48c1,_0x44dcf8){var _0x5f0097=_0x5f00();return _0x4f68=function(_0x4f684c,_0x1908cc){_0x4f684c=_0x4f684c-0xfb;var _0x55f6c8=_0x5f0097[_0x4f684c];return _0x55f6c8;},_0x4f68(_0x2f48c1,_0x44dcf8);}import{View as _0x208caa,BodyCollection as _0x304369}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xb06caf}from'../utils/eventnames.js';import{AIChatFeedView as _0x12d1b8}from'./aichatfeedview.js';import{AIChatControlsView as _0x5020f4}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x407971}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4102e8}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x208caa{[_0x10867c(0xfb)];[_0x10867c(0x10e)];[_0x10867c(0x107)];[_0x10867c(0x10c)];[_0x10867c(0xfe)];constructor(_0xe42b4c,_0x9c3329){var _0x30be08=_0x10867c;super(_0xe42b4c),this[_0x30be08(0xfe)]=new _0x304369(_0xe42b4c),this[_0x30be08(0xfe)][_0x30be08(0x10b)](),this[_0x30be08(0xfb)]=new _0x407971(_0xe42b4c,_0x9c3329),this[_0x30be08(0xfb)][_0x30be08(0x106)](..._0xb06caf)['to'](this),this[_0x30be08(0x10e)]=new _0x12d1b8(_0xe42b4c,this[_0x30be08(0xfe)]),this[_0x30be08(0x10e)][_0x30be08(0x106)](..._0xb06caf)['to'](this),this[_0x30be08(0x107)]=new _0x5020f4(_0xe42b4c,this[_0x30be08(0xfe)]),this[_0x30be08(0x107)][_0x30be08(0x106)](..._0xb06caf)['to'](this),this[_0x30be08(0x10c)]=new _0x4102e8(_0xe42b4c),this[_0x30be08(0x103)]({'tag':_0x30be08(0x112),'attributes':{'class':['ck',_0x30be08(0x104),_0x30be08(0xfd),_0x30be08(0x102)],'dir':_0xe42b4c[_0x30be08(0x105)]},'children':[this[_0x30be08(0xfb)],this[_0x30be08(0x10e)],this[_0x30be08(0x107)],this[_0x30be08(0x10c)]]});}[_0x10867c(0x114)](_0x8bffde,_0x2224c5,_0x36322d,_0x284434){var _0x201e9d=_0x10867c;this[_0x201e9d(0x107)][_0x201e9d(0x114)](_0x8bffde,_0x2224c5,_0x36322d,_0x284434);}[_0x10867c(0x10d)](_0x174bc5){var _0x4f7f3c=_0x10867c;this[_0x4f7f3c(0x107)][_0x4f7f3c(0x10d)](_0x174bc5);}[_0x10867c(0xff)](){var _0x19ccae=_0x10867c;this[_0x19ccae(0xfe)][_0x19ccae(0x115)](),super[_0x19ccae(0xff)]();}}
23
+ function _0x5344(){var _0x4c4998=['uiLanguageDirection','646446ogrROw','detachFromDom','populateSourceResourceBalloon','chatDisclaimer','16650QuaLCQ','div','9339nvJphM','delegate','_bodyCollection','2475658eTunIF','attachToDom','ck-rounded-corners','9941240gHLTQv','3901541TsBGqI','645312wevHfp','10ZhRpEZ','ck-ai-chat','chatHeader','destroy','chatFeed','10539JJEDjI','setTemplate','chatControls','1756xNIMpG','ck-reset_all','closeSourceResourceBalloon'];_0x5344=function(){return _0x4c4998;};return _0x5344();}var _0x2dd37d=_0x26d6;(function(_0x7d5e1f,_0x1b446e){var _0x1cdb22=_0x26d6,_0xc8d7fc=_0x7d5e1f();while(!![]){try{var _0x2c114b=-parseInt(_0x1cdb22(0xb5))/0x1+parseInt(_0x1cdb22(0xb0))/0x2+parseInt(_0x1cdb22(0xad))/0x3*(-parseInt(_0x1cdb22(0xbe))/0x4)+parseInt(_0x1cdb22(0xb6))/0x5*(parseInt(_0x1cdb22(0xc2))/0x6)+parseInt(_0x1cdb22(0xb4))/0x7+-parseInt(_0x1cdb22(0xb3))/0x8+parseInt(_0x1cdb22(0xbb))/0x9*(parseInt(_0x1cdb22(0xab))/0xa);if(_0x2c114b===_0x1b446e)break;else _0xc8d7fc['push'](_0xc8d7fc['shift']());}catch(_0x5793be){_0xc8d7fc['push'](_0xc8d7fc['shift']());}}}(_0x5344,0xac517));function _0x26d6(_0x46d543,_0x4f75e6){var _0x53441f=_0x5344();return _0x26d6=function(_0x26d663,_0x5943a7){_0x26d663=_0x26d663-0xab;var _0x2f2612=_0x53441f[_0x26d663];return _0x2f2612;},_0x26d6(_0x46d543,_0x4f75e6);}import{View as _0x45f3f5,BodyCollection as _0x2fe29a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x26ea0a}from'../utils/eventnames.js';import{AIChatFeedView as _0x28befb}from'./aichatfeedview.js';import{AIChatControlsView as _0x541ed5}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x173b53}from'./aichatheaderview.js';import{AIDisclaimerView as _0x24c13b}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x45f3f5{[_0x2dd37d(0xb8)];[_0x2dd37d(0xba)];[_0x2dd37d(0xbd)];[_0x2dd37d(0xc5)];[_0x2dd37d(0xaf)];constructor(_0x33cb61,_0x46e0ae){var _0x31e153=_0x2dd37d;super(_0x33cb61),this[_0x31e153(0xaf)]=new _0x2fe29a(_0x33cb61),this[_0x31e153(0xaf)][_0x31e153(0xb1)](),this[_0x31e153(0xb8)]=new _0x173b53(_0x33cb61,_0x46e0ae),this[_0x31e153(0xb8)][_0x31e153(0xae)](..._0x26ea0a)['to'](this),this[_0x31e153(0xba)]=new _0x28befb(_0x33cb61,this[_0x31e153(0xaf)]),this[_0x31e153(0xba)][_0x31e153(0xae)](..._0x26ea0a)['to'](this),this[_0x31e153(0xbd)]=new _0x541ed5(_0x33cb61,this[_0x31e153(0xaf)]),this[_0x31e153(0xbd)][_0x31e153(0xae)](..._0x26ea0a)['to'](this),this[_0x31e153(0xc5)]=new _0x24c13b(_0x33cb61),this[_0x31e153(0xbc)]({'tag':_0x31e153(0xac),'attributes':{'class':['ck',_0x31e153(0xbf),_0x31e153(0xb7),_0x31e153(0xb2)],'dir':_0x33cb61[_0x31e153(0xc1)]},'children':[this[_0x31e153(0xb8)],this[_0x31e153(0xba)],this[_0x31e153(0xbd)],this[_0x31e153(0xc5)]]});}[_0x2dd37d(0xc4)](_0x4e19ee,_0x2abd2d,_0xb0ca7e,_0x393534){var _0x9bd007=_0x2dd37d;this[_0x9bd007(0xbd)][_0x9bd007(0xc4)](_0x4e19ee,_0x2abd2d,_0xb0ca7e,_0x393534);}[_0x2dd37d(0xc0)](_0x463916){var _0x2753ff=_0x2dd37d;this[_0x2753ff(0xbd)][_0x2753ff(0xc0)](_0x463916);}[_0x2dd37d(0xb9)](){var _0x3989fe=_0x2dd37d;this[_0x3989fe(0xaf)][_0x3989fe(0xc3)](),super[_0x3989fe(0xb9)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18e301=_0x3eda;function _0x3eda(_0x5f3c67,_0x4f5029){const _0x454db6=_0x454d();return _0x3eda=function(_0x3eda71,_0x181ceb){_0x3eda71=_0x3eda71-0x138;let _0x6f7766=_0x454db6[_0x3eda71];return _0x6f7766;},_0x3eda(_0x5f3c67,_0x4f5029);}(function(_0x1de6fc,_0x42c6e8){const _0x743d28=_0x3eda,_0x41e073=_0x1de6fc();while(!![]){try{const _0x1d401f=parseInt(_0x743d28(0x170))/0x1+-parseInt(_0x743d28(0x142))/0x2*(parseInt(_0x743d28(0x1ba))/0x3)+parseInt(_0x743d28(0x171))/0x4+-parseInt(_0x743d28(0x1bc))/0x5*(-parseInt(_0x743d28(0x159))/0x6)+-parseInt(_0x743d28(0x1af))/0x7*(-parseInt(_0x743d28(0x15c))/0x8)+-parseInt(_0x743d28(0x1c1))/0x9*(parseInt(_0x743d28(0x191))/0xa)+parseInt(_0x743d28(0x165))/0xb;if(_0x1d401f===_0x42c6e8)break;else _0x41e073['push'](_0x41e073['shift']());}catch(_0x580c4c){_0x41e073['push'](_0x41e073['shift']());}}}(_0x454d,0x6ee24));function _0x454d(){const _0x1d799d=['rowDetectionTolerance','from','label','15297aZrxVK','959544mkawgw','includes','_bodyCollection','block\x20!important','_calculateOverflowInContainer','offsetWidth','clientWidth','_showMoreBalloonPanelView','height','classList','overflowChips','+\x201','none','_testButtonFit','_makeAncestorsVisible','_createShowMoreButtonView','display','showMoreButtonView','_updateBalloonContent','overflowContainer','some','reorganizeChips','getBoundingClientRect','destroy','_findTargetContainer','_createContainerElements','block','extendTemplate','pin','_containerElement','createElement','_updateOverflowUI','24620EroWqX','absolute','className','parentElement','border-box','push','element','bottom','showBalloonPanel','_intersectionObserver','opacity','isIntersecting','visibility','auto','innerWidth','visible\x20!important','execute','_createMockButton','_restoreAncestorVisibility','_createShowMoreBalloonPanelView','clientHeight','_renderChipsAndCountRows','div','cloneNode','children','top','_createShowMoreButton','disconnect','300px','set','1092763yTjEEW','abs','render','_distributeChips','_visibleChips','appendChild','innerHTML','left','length','setContainerElement','remove','104109KlBNxB','_repinBalloonPanel','7880TZqXUc','add','_ancestorsToRestore','getComputedStyle','tagName','3015wWIFtJ','_parentView','content','.ck-ai-chat','undefined','right','slice','cssClasses','position','showMoreLabelPrefix','isConnected','forEach','showMoreBalloon','style','_createCalculationContainer','hideBalloonPanel','_setupVisibilityObserver','toLowerCase','setTemplate','clear','width','innerHeight','34lmcili','hidden','_checkAndHandleOverflow','querySelector','body','boxSizing','filter','-9999px','_applyCalculationStyles','_config','maxVisibleRows','textContent','_calculateContainerWidth','documentElement','_locale','hide','button','_showMoreButtonView','_applyOverflowResults','_isContainerVisible','ck-calculation-container','_updateShowMoreButtonVisibility','disableAnimationOnEnter','438dsLMqv','_targetContainer','_handleShowMoreButtonClick','16IMTiPv','_overflowChips','pop','calculationContainer','showMoreButton','_pendingCalculation','observe','show','zIndex','13050972UJSXGe','isOn','controlsButton','pointerEvents','50px','isVisible','visible','0px'];_0x454d=function(){return _0x1d799d;};return _0x454d();}import{View as _0x39c7dd,BalloonPanelView as _0x518f0a,ButtonView as _0x4dd38d,clickOutsideHandler as _0x40759b}from'ckeditor5/src/ui.js';import{Collection as _0x3562c1}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},un=_0x18e301(0x1ad);export class AIChatChipsOverflowManager{[_0x18e301(0x150)];[_0x18e301(0x14b)];[_0x18e301(0x1b3)];[_0x18e301(0x15d)];[_0x18e301(0x153)]=null;[_0x18e301(0x178)]=null;[_0x18e301(0x18e)]=null;[_0x18e301(0x173)];[_0x18e301(0x1c2)]=null;[_0x18e301(0x19a)]=null;[_0x18e301(0x161)]=!0x1;constructor(_0x450d2e,_0x555ff0,_0x485aaa,_0x26de1a,_0x2f3697){const _0xe57de5=_0x18e301;this[_0xe57de5(0x150)]=_0x450d2e,this[_0xe57de5(0x1b3)]=_0x555ff0,this[_0xe57de5(0x14b)]={...hn,..._0x485aaa,'cssClasses':{'controlsButton':'','calculationContainer':_0xe57de5(0x156),..._0x485aaa[_0xe57de5(0x1c8)]}},this[_0xe57de5(0x15d)]=new _0x3562c1(),this[_0xe57de5(0x173)]=_0x26de1a,this[_0xe57de5(0x1c2)]=_0x2f3697||null;}[_0x18e301(0x1b8)](_0x5e2fb0){const _0x499fb9=_0x18e301;this[_0x499fb9(0x19a)]&&(this[_0x499fb9(0x19a)][_0x499fb9(0x1ac)](),this[_0x499fb9(0x19a)]=null),this[_0x499fb9(0x18e)]=_0x5e2fb0,this[_0x499fb9(0x13c)]();}get[_0x18e301(0x182)](){const _0x52053a=_0x18e301;return this[_0x52053a(0x153)];}get[_0x18e301(0x17b)](){const _0x5c16e3=_0x18e301;return this[_0x5c16e3(0x15d)];}[_0x18e301(0x186)](){requestAnimationFrame(()=>{const _0x57d77a=_0x3eda;this[_0x57d77a(0x144)]();});}[_0x18e301(0x199)](){const _0x10caff=_0x18e301;this[_0x10caff(0x153)]&&this[_0x10caff(0x178)]&&(this[_0x10caff(0x183)](),this[_0x10caff(0x153)][_0x10caff(0x166)]=!0x0,this[_0x10caff(0x178)][_0x10caff(0x163)](),this[_0x10caff(0x178)][_0x10caff(0x18d)]({'target':this[_0x10caff(0x153)][_0x10caff(0x197)],'limiter':document[_0x10caff(0x145)](_0x10caff(0x1c4))}));}[_0x18e301(0x13b)](){const _0x1eb9a5=_0x18e301;this[_0x1eb9a5(0x153)]&&this[_0x1eb9a5(0x178)]&&(this[_0x1eb9a5(0x153)][_0x1eb9a5(0x166)]=!0x1,this[_0x1eb9a5(0x178)][_0x1eb9a5(0x151)]());}[_0x18e301(0x13f)](){const _0x53c2e5=_0x18e301;this[_0x53c2e5(0x15d)][_0x53c2e5(0x13f)](),this[_0x53c2e5(0x13b)](),this[_0x53c2e5(0x157)](),this[_0x53c2e5(0x153)]&&(this[_0x53c2e5(0x153)][_0x53c2e5(0x16f)]=''),this[_0x53c2e5(0x178)]&&this[_0x53c2e5(0x178)][_0x53c2e5(0x1c3)][_0x53c2e5(0x13f)]();}[_0x18e301(0x188)](){const _0x12e410=_0x18e301;this[_0x12e410(0x19a)]&&(this[_0x12e410(0x19a)][_0x12e410(0x1ac)](),this[_0x12e410(0x19a)]=null),this[_0x12e410(0x153)]&&(this[_0x12e410(0x153)][_0x12e410(0x188)](),this[_0x12e410(0x153)]=null),this[_0x12e410(0x178)]&&(this[_0x12e410(0x178)][_0x12e410(0x188)](),this[_0x12e410(0x178)]=null);}[_0x18e301(0x144)](){const _0x27d33f=_0x18e301;if(!this[_0x27d33f(0x18e)])return;if(!this[_0x27d33f(0x155)]())return void(this[_0x27d33f(0x161)]=!0x0);this[_0x27d33f(0x161)]=!0x1;const _0x53ea45=[...this[_0x27d33f(0x1b3)],...this[_0x27d33f(0x15d)]],_0xd613c1=this[_0x27d33f(0x13a)](),_0x2a9d3f=this[_0x27d33f(0x175)](_0xd613c1,_0x53ea45),_0x477263=_0xd613c1[_0x27d33f(0x1be)];_0x477263&&this[_0x27d33f(0x1a3)](_0x477263),_0xd613c1[_0x27d33f(0x1b9)](),this[_0x27d33f(0x154)](_0x53ea45,_0x2a9d3f);}[_0x18e301(0x1ab)](){const _0x2d4904=_0x18e301;this[_0x2d4904(0x153)]=this[_0x2d4904(0x180)](),this[_0x2d4904(0x178)]=this[_0x2d4904(0x1a4)](),this[_0x2d4904(0x153)][_0x2d4904(0x1b1)](),this[_0x2d4904(0x18e)][_0x2d4904(0x1b4)](this[_0x2d4904(0x153)][_0x2d4904(0x197)]),this[_0x2d4904(0x153)]['on'](_0x2d4904(0x1a1),()=>{const _0x2415ad=_0x2d4904;this[_0x2415ad(0x15b)]();}),_0x40759b({'emitter':this[_0x2d4904(0x178)],'contextElements':[this[_0x2d4904(0x178)][_0x2d4904(0x197)],this[_0x2d4904(0x153)][_0x2d4904(0x197)]],'callback':()=>this[_0x2d4904(0x13b)](),'activator':()=>this[_0x2d4904(0x153)][_0x2d4904(0x166)]});}[_0x18e301(0x180)](){const _0x344483=_0x18e301,_0x1a6a0c=new _0x4dd38d(this[_0x344483(0x150)]);_0x1a6a0c[_0x344483(0x1ae)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5d7788=[this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x160)]];return this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x167)]&&_0x5d7788[_0x344483(0x196)](this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x167)]),_0x1a6a0c[_0x344483(0x18c)]({'attributes':{'class':_0x5d7788}}),_0x1a6a0c;}[_0x18e301(0x1a4)](){const _0xb158ec=_0x18e301,_0x42d317=new _0x518f0a(this[_0xb158ec(0x150)]);return _0x42d317[_0xb158ec(0x18c)]({'attributes':{'class':this[_0xb158ec(0x14b)][_0xb158ec(0x1c8)][_0xb158ec(0x138)]}}),this[_0xb158ec(0x173)][_0xb158ec(0x1bd)](_0x42d317),_0x42d317;}[_0x18e301(0x183)](){const _0x3ea262=_0x18e301;if(this[_0x3ea262(0x178)]&&(this[_0x3ea262(0x178)][_0x3ea262(0x1c3)][_0x3ea262(0x13f)](),this[_0x3ea262(0x15d)][_0x3ea262(0x1b7)]>0x0)){this[_0x3ea262(0x15d)][_0x3ea262(0x1cc)](_0x19435f=>{const _0x1cb297=_0x3ea262;_0x19435f[_0x1cb297(0x158)]();});const _0x31b901=new _0x39c7dd(this[_0x3ea262(0x150)]);_0x31b901[_0x3ea262(0x13e)]({'tag':_0x3ea262(0x1a7),'attributes':{'class':this[_0x3ea262(0x14b)][_0x3ea262(0x1c8)][_0x3ea262(0x184)]},'children':this[_0x3ea262(0x15d)]}),this[_0x3ea262(0x178)][_0x3ea262(0x1c3)][_0x3ea262(0x1bd)](_0x31b901);}}[_0x18e301(0x15b)](){const _0x5f2988=_0x18e301;this[_0x5f2988(0x153)][_0x5f2988(0x166)]?this[_0x5f2988(0x13b)]():this[_0x5f2988(0x199)]();}[_0x18e301(0x157)](){const _0x4cc57f=_0x18e301,_0x1a8b91=this[_0x4cc57f(0x15d)][_0x4cc57f(0x1b7)]>0x0;this[_0x4cc57f(0x153)]?.[_0x4cc57f(0x197)]&&(this[_0x4cc57f(0x153)][_0x4cc57f(0x197)][_0x4cc57f(0x139)][_0x4cc57f(0x181)]=_0x1a8b91?'':_0x4cc57f(0x17d));}[_0x18e301(0x1bb)](){const _0x527a91=_0x18e301;this[_0x527a91(0x153)]?.[_0x527a91(0x166)]&&this[_0x527a91(0x178)]?.[_0x527a91(0x16a)]&&this[_0x527a91(0x153)][_0x527a91(0x197)]&&this[_0x527a91(0x178)][_0x527a91(0x18d)]({'target':this[_0x527a91(0x153)][_0x527a91(0x197)],'limiter':document[_0x527a91(0x145)](_0x527a91(0x1c4))});}[_0x18e301(0x189)](_0x2cc2fd){const _0x1aba6a=_0x18e301,_0x117b59=this[_0x1aba6a(0x18e)]?.[_0x1aba6a(0x1c0)][_0x1aba6a(0x13d)]()||_0x1aba6a(0x1a7),_0x52f5f2=this[_0x1aba6a(0x18e)]?.[_0x1aba6a(0x17a)];if(_0x52f5f2){const _0x320399=_0x52f5f2[0x0]||'',_0x2c118e=_0x2cc2fd[_0x1aba6a(0x145)]('.'+_0x320399),_0x4a0c30=_0x2cc2fd[_0x1aba6a(0x145)](_0x117b59);return _0x2c118e||_0x4a0c30||_0x2cc2fd;}return _0x2cc2fd[_0x1aba6a(0x145)](_0x117b59)||_0x2cc2fd;}[_0x18e301(0x14e)](){const _0x174cd7=_0x18e301,_0xe6fbfa=this[_0x174cd7(0x1c2)]?.[_0x174cd7(0x197)]||this[_0x174cd7(0x18e)];if(!_0xe6fbfa)return un;const _0xe0d600=window[_0x174cd7(0x1bf)](_0xe6fbfa)[_0x174cd7(0x140)];if(_0x174cd7(0x19e)===_0xe0d600||_0x174cd7(0x16c)===_0xe0d600||!_0xe0d600){const _0x55b249=_0xe6fbfa[_0x174cd7(0x194)];if(_0x55b249){const _0xcf975=window[_0x174cd7(0x1bf)](_0x55b249);return _0x174cd7(0x19e)!==_0xcf975[_0x174cd7(0x140)]?_0xcf975[_0x174cd7(0x140)]:un;}return un;}return _0xe0d600;}[_0x18e301(0x14a)](_0x39fc1d,_0xfe250f){const _0x1f029d=_0x18e301;this[_0x1f029d(0x14b)][_0x1f029d(0x1c8)][_0x1f029d(0x15f)]&&_0x39fc1d[_0x1f029d(0x17a)][_0x1f029d(0x1bd)](this[_0x1f029d(0x14b)][_0x1f029d(0x1c8)][_0x1f029d(0x15f)]),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x140)]=_0xfe250f,_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1c9)]=_0x1f029d(0x192),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1aa)]=_0x1f029d(0x149),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1b6)]=_0x1f029d(0x149),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x19b)]='0',_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x168)]=_0x1f029d(0x17d),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x164)]='-1',_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x19d)]=_0x1f029d(0x1a0),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x181)]=_0x1f029d(0x174),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x147)]=_0x1f029d(0x195);}[_0x18e301(0x1a3)](_0x115b0c){const _0x27ed20=_0x18e301;_0x115b0c[_0x27ed20(0x1cc)](({element:_0x338a73,originalDisplay:_0x4a7616,originalVisibility:_0x2d4c40})=>{const _0x4d8e18=_0x27ed20;_0x338a73[_0x4d8e18(0x139)][_0x4d8e18(0x181)]=_0x4a7616,_0x338a73[_0x4d8e18(0x139)][_0x4d8e18(0x19d)]=_0x2d4c40;});}[_0x18e301(0x17f)](_0x5b85d9){const _0x5896b0=_0x18e301,_0x56920d=[];let _0x1d3508=_0x5b85d9;for(;_0x1d3508&&_0x1d3508!==document[_0x5896b0(0x146)];){const _0x41b1ad=window[_0x5896b0(0x1bf)](_0x1d3508);_0x5896b0(0x17d)!==_0x41b1ad[_0x5896b0(0x181)]&&_0x5896b0(0x143)!==_0x41b1ad[_0x5896b0(0x19d)]||(_0x56920d[_0x5896b0(0x196)]({'element':_0x1d3508,'originalDisplay':_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x181)],'originalVisibility':_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x19d)]}),_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x181)]=_0x5896b0(0x18b),_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x19d)]=_0x5896b0(0x16b)),_0x1d3508=_0x1d3508[_0x5896b0(0x194)];}return _0x56920d;}[_0x18e301(0x18a)](){const _0x24c7f7=_0x18e301;let _0x17de19,_0x19352d;return this[_0x24c7f7(0x1c2)]?.[_0x24c7f7(0x197)]?(_0x17de19=this[_0x24c7f7(0x1c2)][_0x24c7f7(0x197)][_0x24c7f7(0x1a8)](!0x0),_0x19352d=this[_0x24c7f7(0x189)](_0x17de19)):(_0x17de19=document[_0x24c7f7(0x18f)](_0x24c7f7(0x1a7)),_0x19352d=_0x17de19),{'calculationContainer':_0x17de19,'targetContainer':_0x19352d};}[_0x18e301(0x13a)](){const _0x6f0b6d=_0x18e301,{calculationContainer:_0x55082d,targetContainer:_0x7fbce3}=this[_0x6f0b6d(0x18a)](),_0x488777=this[_0x6f0b6d(0x14e)]();this[_0x6f0b6d(0x14a)](_0x55082d,_0x488777);const _0x1e1aeb=this[_0x6f0b6d(0x1c2)]?.[_0x6f0b6d(0x197)]||this[_0x6f0b6d(0x18e)],_0x36d796=_0x1e1aeb?.[_0x6f0b6d(0x194)];_0x36d796?_0x36d796[_0x6f0b6d(0x1b4)](_0x55082d):document[_0x6f0b6d(0x146)][_0x6f0b6d(0x1b4)](_0x55082d),_0x55082d[_0x6f0b6d(0x15a)]=_0x7fbce3;const _0x4841d7=this[_0x6f0b6d(0x17f)](_0x36d796||null);return _0x55082d[_0x6f0b6d(0x176)],_0x55082d[_0x6f0b6d(0x1be)]=_0x4841d7,_0x55082d;}[_0x18e301(0x175)](_0x5eda9e,_0x4bc077){const _0x91bd5a=_0x18e301,_0x88cb2d=_0x5eda9e[_0x91bd5a(0x15a)]||_0x5eda9e,_0x1ee89f=[],{rowCount:_0x2c81c4}=this[_0x91bd5a(0x1a6)](_0x88cb2d,_0x4bc077);if(_0x2c81c4<=this[_0x91bd5a(0x14b)][_0x91bd5a(0x14c)])return _0x1ee89f;const _0x1574e2=_0x4bc077[_0x91bd5a(0x1c7)]();for(;_0x1574e2[_0x91bd5a(0x1b7)]>0x0;){if(this[_0x91bd5a(0x17e)](_0x5eda9e,_0x88cb2d,_0x1574e2)){const _0x453b6f=_0x4bc077[_0x91bd5a(0x148)](_0x52c3c1=>!_0x1574e2[_0x91bd5a(0x172)](_0x52c3c1));_0x1ee89f[_0x91bd5a(0x196)](..._0x453b6f);break;}if(!_0x1574e2[_0x91bd5a(0x15e)]())break;}return _0x1ee89f;}[_0x18e301(0x1a6)](_0x232378,_0x4fb1c8){const _0xa61c63=_0x18e301;_0x232378[_0xa61c63(0x1b5)]='',_0x4fb1c8[_0xa61c63(0x1cc)](_0x5112ad=>{const _0x4b65ef=_0xa61c63;if(_0x5112ad[_0x4b65ef(0x197)]){const _0x174627=_0x5112ad[_0x4b65ef(0x197)][_0x4b65ef(0x1a8)](!0x0);_0x232378[_0x4b65ef(0x1b4)](_0x174627);}}),_0x232378[_0xa61c63(0x176)];const _0x114609=_0x232378[_0xa61c63(0x1a9)],_0x404b3a=[];return Array[_0xa61c63(0x16e)](_0x114609)[_0xa61c63(0x1cc)](_0x4e5b5a=>{const _0x4a9dcb=_0xa61c63,_0x14426d=_0x4e5b5a[_0x4a9dcb(0x187)]()[_0x4a9dcb(0x1aa)];_0x404b3a[_0x4a9dcb(0x185)](_0x329ac5=>Math[_0x4a9dcb(0x1b0)](_0x329ac5-_0x14426d)<this[_0x4a9dcb(0x14b)][_0x4a9dcb(0x16d)])||_0x404b3a[_0x4a9dcb(0x196)](_0x14426d);}),{'rowCount':_0x404b3a[_0xa61c63(0x1b7)]};}[_0x18e301(0x1a2)](){const _0x586bee=_0x18e301,_0x4031b8=document[_0x586bee(0x18f)](_0x586bee(0x152));return _0x4031b8[_0x586bee(0x193)]=this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x160)],this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x167)]&&_0x4031b8[_0x586bee(0x17a)][_0x586bee(0x1bd)](this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x167)]),_0x4031b8[_0x586bee(0x14d)]=_0x586bee(0x17c),_0x4031b8;}[_0x18e301(0x17e)](_0x5574b3,_0x575971,_0x4d8db6){const _0x28f1d7=_0x18e301;this[_0x28f1d7(0x1a6)](_0x575971,_0x4d8db6);const _0x584c41=this[_0x28f1d7(0x1a2)]();_0x5574b3[_0x28f1d7(0x1b4)](_0x584c41),_0x5574b3[_0x28f1d7(0x176)];const _0x11a262=[..._0x575971[_0x28f1d7(0x1a9)],_0x584c41],_0xeff3e1=[];_0x11a262[_0x28f1d7(0x1cc)](_0x2048b1=>{const _0x1473f7=_0x28f1d7,_0x418e40=_0x2048b1[_0x1473f7(0x187)]()[_0x1473f7(0x1aa)];_0xeff3e1[_0x1473f7(0x185)](_0xd2ad0e=>Math[_0x1473f7(0x1b0)](_0xd2ad0e-_0x418e40)<this[_0x1473f7(0x14b)][_0x1473f7(0x16d)])||_0xeff3e1[_0x1473f7(0x196)](_0x418e40);});const _0x46a7e0=_0xeff3e1[_0x28f1d7(0x1b7)];return _0x584c41[_0x28f1d7(0x1b9)](),_0x46a7e0<=this[_0x28f1d7(0x14b)][_0x28f1d7(0x14c)];}[_0x18e301(0x1b2)](_0x128079,_0x4a61ed){const _0x17317b=_0x18e301;this[_0x17317b(0x1b3)][_0x17317b(0x13f)](),this[_0x17317b(0x15d)][_0x17317b(0x13f)](),_0x128079[_0x17317b(0x1cc)](_0x1faf69=>{const _0x8be56d=_0x17317b;_0x4a61ed[_0x8be56d(0x172)](_0x1faf69)?this[_0x8be56d(0x15d)][_0x8be56d(0x1bd)](_0x1faf69):this[_0x8be56d(0x1b3)][_0x8be56d(0x1bd)](_0x1faf69);});}[_0x18e301(0x190)](_0xa90596){const _0x264561=_0x18e301;if(_0xa90596>0x0&&!this[_0x264561(0x153)]&&this[_0x264561(0x1ab)](),_0xa90596>0x0&&this[_0x264561(0x153)]){const _0x2e55bd=''+this[_0x264561(0x14b)][_0x264561(0x1ca)]+(_0xa90596<0x63?_0xa90596:'99');this[_0x264561(0x153)][_0x264561(0x16f)]=_0x2e55bd;}this[_0x264561(0x183)](),this[_0x264561(0x157)](),this[_0x264561(0x1bb)]();}[_0x18e301(0x154)](_0x5052c3,_0x1da049){const _0x37069b=_0x18e301;this[_0x37069b(0x1b2)](_0x5052c3,_0x1da049),this[_0x37069b(0x190)](_0x1da049[_0x37069b(0x1b7)]);}[_0x18e301(0x13c)](){const _0x548ca2=_0x18e301;this[_0x548ca2(0x18e)]&&_0x548ca2(0x1c5)!=typeof IntersectionObserver&&(this[_0x548ca2(0x19a)]=new IntersectionObserver(_0x2e2733=>{const _0x10b0e9=_0x548ca2;_0x2e2733[0x0][_0x10b0e9(0x19c)]&&this[_0x10b0e9(0x161)]&&requestAnimationFrame(()=>{const _0x3c5e93=_0x10b0e9;this[_0x3c5e93(0x144)]();});},{'threshold':0.01,'rootMargin':_0x548ca2(0x169)}),this[_0x548ca2(0x19a)][_0x548ca2(0x162)](this[_0x548ca2(0x18e)]));}[_0x18e301(0x155)](){const _0x51dfa0=_0x18e301;if(!this[_0x51dfa0(0x18e)])return!0x1;if(!this[_0x51dfa0(0x18e)][_0x51dfa0(0x1cb)])return!0x1;const _0x50a369=this[_0x51dfa0(0x18e)][_0x51dfa0(0x187)]();if(0x0===_0x50a369[_0x51dfa0(0x140)]||0x0===_0x50a369[_0x51dfa0(0x179)])return!0x1;const _0x87a510=window[_0x51dfa0(0x141)]||document[_0x51dfa0(0x14f)][_0x51dfa0(0x1a5)],_0x125b01=window[_0x51dfa0(0x19f)]||document[_0x51dfa0(0x14f)][_0x51dfa0(0x177)],_0x471568=0xc8;return _0x50a369[_0x51dfa0(0x198)]>=-0xc8&&_0x50a369[_0x51dfa0(0x1aa)]<=_0x87a510+_0x471568&&_0x50a369[_0x51dfa0(0x1c6)]>=-0xc8&&_0x50a369[_0x51dfa0(0x1b6)]<=_0x125b01+_0x471568;}}
23
+ const _0x483829=_0xde92;(function(_0x393971,_0x264d82){const _0x5c8c17=_0xde92,_0x2c488b=_0x393971();while(!![]){try{const _0x126a8d=parseInt(_0x5c8c17(0xc3))/0x1+parseInt(_0x5c8c17(0x76))/0x2+parseInt(_0x5c8c17(0x8c))/0x3+-parseInt(_0x5c8c17(0xb7))/0x4*(parseInt(_0x5c8c17(0x7e))/0x5)+-parseInt(_0x5c8c17(0xab))/0x6*(-parseInt(_0x5c8c17(0x8a))/0x7)+parseInt(_0x5c8c17(0x9f))/0x8+-parseInt(_0x5c8c17(0x8d))/0x9*(parseInt(_0x5c8c17(0xcb))/0xa);if(_0x126a8d===_0x264d82)break;else _0x2c488b['push'](_0x2c488b['shift']());}catch(_0x37c62e){_0x2c488b['push'](_0x2c488b['shift']());}}}(_0xc0f4,0xc75a9));function _0xc0f4(){const _0x2b58ad=['pop','body','length','1280810yWSvFI','set','zIndex','_restoreAncestorVisibility','block\x20!important','innerWidth','_visibleChips','from','2126640QISHPe','_createShowMoreBalloonPanelView','auto','isVisible','_parentView','children','observe','_ancestorsToRestore','hidden','width','_containerElement','_updateShowMoreButtonVisibility','render','appendChild','_applyCalculationStyles','_showMoreButtonView','abs','toLowerCase','_showMoreBalloonPanelView','none','50px','_createShowMoreButton','createElement','button','_createContainerElements','_findTargetContainer','pointerEvents','_intersectionObserver','maxVisibleRows','setTemplate','disconnect','display','slice','opacity','0px','clientHeight','clientWidth','clear','right','label','visibility','element','showMoreButtonView','position','_updateOverflowUI','_createShowMoreButtonView','filter','showBalloonPanel','_updateBalloonContent','showMoreBalloon','content','boxSizing','getBoundingClientRect','hideBalloonPanel','add','_calculateContainerWidth','calculationContainer','height','_distributeChips','remove','_handleShowMoreButtonClick','pin','isOn','2621570FDEDzm','controlsButton','_locale','_renderChipsAndCountRows','_overflowChips','style','undefined','overflowChips','25EIykxY','_createMockButton','visible','innerHeight','_applyOverflowResults','showMoreButton','border-box','block','forEach','_calculateOverflowInContainer','_testButtonFit','visible\x20!important','7QwZCoe','classList','4717653JCOebw','162KTqlIj','isConnected','bottom','setContainerElement','left','300px','.ck-ai-chat','_setupVisibilityObserver','_config','_pendingCalculation','div','offsetWidth','-9999px','_createCalculationContainer','parentElement','top','execute','isIntersecting','3078624hHllBN','absolute','documentElement','ck-calculation-container','cloneNode','reorganizeChips','className','_repinBalloonPanel','hide','overflowContainer','querySelector','push','4020396iQYQHn','tagName','_targetContainer','getComputedStyle','_isContainerVisible','rowDetectionTolerance','some','includes','extendTemplate','+\x201','disableAnimationOnEnter','_bodyCollection','459628bJNYkm','_checkAndHandleOverflow','destroy','innerHTML','show','textContent','cssClasses','showMoreLabelPrefix','_makeAncestorsVisible'];_0xc0f4=function(){return _0x2b58ad;};return _0xc0f4();}import{View as _0x2cb2c6,BalloonPanelView as _0x2eace9,ButtonView as _0x3c95e8,clickOutsideHandler as _0x4af2b1}from'ckeditor5/src/ui.js';import{Collection as _0x169b08}from'ckeditor5/src/utils.js';const dn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},bn=_0x483829(0x92);function _0xde92(_0x500072,_0x2f3014){const _0xc0f4bd=_0xc0f4();return _0xde92=function(_0xde921d,_0x34c510){_0xde921d=_0xde921d-0x68;let _0x5e3100=_0xc0f4bd[_0xde921d];return _0x5e3100;},_0xde92(_0x500072,_0x2f3014);}export class AIChatChipsOverflowManager{[_0x483829(0x78)];[_0x483829(0x95)];[_0x483829(0xc9)];[_0x483829(0x7a)];[_0x483829(0xda)]=null;[_0x483829(0xdd)]=null;[_0x483829(0xd5)]=null;[_0x483829(0xb6)];[_0x483829(0xcf)]=null;[_0x483829(0xe6)]=null;[_0x483829(0x96)]=!0x1;constructor(_0x59c991,_0x55c4d9,_0x4461d4,_0xf0f49a,_0x4b7240){const _0x388ac9=_0x483829;this[_0x388ac9(0x78)]=_0x59c991,this[_0x388ac9(0xc9)]=_0x55c4d9,this[_0x388ac9(0x95)]={...dn,..._0x4461d4,'cssClasses':{'controlsButton':'','calculationContainer':_0x388ac9(0xa2),..._0x4461d4[_0x388ac9(0xbd)]}},this[_0x388ac9(0x7a)]=new _0x169b08(),this[_0x388ac9(0xb6)]=_0xf0f49a,this[_0x388ac9(0xcf)]=_0x4b7240||null;}[_0x483829(0x90)](_0x3e2459){const _0x35e1a5=_0x483829;this[_0x35e1a5(0xe6)]&&(this[_0x35e1a5(0xe6)][_0x35e1a5(0xe9)](),this[_0x35e1a5(0xe6)]=null),this[_0x35e1a5(0xd5)]=_0x3e2459,this[_0x35e1a5(0x94)]();}get[_0x483829(0xf5)](){const _0x9388d5=_0x483829;return this[_0x9388d5(0xda)];}get[_0x483829(0x7d)](){const _0x8075da=_0x483829;return this[_0x8075da(0x7a)];}[_0x483829(0xa4)](){requestAnimationFrame(()=>{const _0xf00231=_0xde92;this[_0xf00231(0xb8)]();});}[_0x483829(0xfa)](){const _0x13e179=_0x483829;this[_0x13e179(0xda)]&&this[_0x13e179(0xdd)]&&(this[_0x13e179(0xfb)](),this[_0x13e179(0xda)][_0x13e179(0x75)]=!0x0,this[_0x13e179(0xdd)][_0x13e179(0xbb)](),this[_0x13e179(0xdd)][_0x13e179(0x74)]({'target':this[_0x13e179(0xda)][_0x13e179(0xf4)],'limiter':document[_0x13e179(0xa9)](_0x13e179(0x93))}));}[_0x483829(0x6c)](){const _0x23ecfb=_0x483829;this[_0x23ecfb(0xda)]&&this[_0x23ecfb(0xdd)]&&(this[_0x23ecfb(0xda)][_0x23ecfb(0x75)]=!0x1,this[_0x23ecfb(0xdd)][_0x23ecfb(0xa7)]());}[_0x483829(0xf0)](){const _0x1a798f=_0x483829;this[_0x1a798f(0x7a)][_0x1a798f(0xf0)](),this[_0x1a798f(0x6c)](),this[_0x1a798f(0xd6)](),this[_0x1a798f(0xda)]&&(this[_0x1a798f(0xda)][_0x1a798f(0xf2)]=''),this[_0x1a798f(0xdd)]&&this[_0x1a798f(0xdd)][_0x1a798f(0x69)][_0x1a798f(0xf0)]();}[_0x483829(0xb9)](){const _0x4abc8d=_0x483829;this[_0x4abc8d(0xe6)]&&(this[_0x4abc8d(0xe6)][_0x4abc8d(0xe9)](),this[_0x4abc8d(0xe6)]=null),this[_0x4abc8d(0xda)]&&(this[_0x4abc8d(0xda)][_0x4abc8d(0xb9)](),this[_0x4abc8d(0xda)]=null),this[_0x4abc8d(0xdd)]&&(this[_0x4abc8d(0xdd)][_0x4abc8d(0xb9)](),this[_0x4abc8d(0xdd)]=null);}[_0x483829(0xb8)](){const _0x579b6b=_0x483829;if(!this[_0x579b6b(0xd5)])return;if(!this[_0x579b6b(0xaf)]())return void(this[_0x579b6b(0x96)]=!0x0);this[_0x579b6b(0x96)]=!0x1;const _0x51956d=[...this[_0x579b6b(0xc9)],...this[_0x579b6b(0x7a)]],_0x1b0953=this[_0x579b6b(0x9a)](),_0x373643=this[_0x579b6b(0x87)](_0x1b0953,_0x51956d),_0x338c49=_0x1b0953[_0x579b6b(0xd2)];_0x338c49&&this[_0x579b6b(0xc6)](_0x338c49),_0x1b0953[_0x579b6b(0x72)](),this[_0x579b6b(0x82)](_0x51956d,_0x373643);}[_0x483829(0xe0)](){const _0x8b7211=_0x483829;this[_0x8b7211(0xda)]=this[_0x8b7211(0xf8)](),this[_0x8b7211(0xdd)]=this[_0x8b7211(0xcc)](),this[_0x8b7211(0xda)][_0x8b7211(0xd7)](),this[_0x8b7211(0xd5)][_0x8b7211(0xd8)](this[_0x8b7211(0xda)][_0x8b7211(0xf4)]),this[_0x8b7211(0xda)]['on'](_0x8b7211(0x9d),()=>{const _0x2d9426=_0x8b7211;this[_0x2d9426(0x73)]();}),_0x4af2b1({'emitter':this[_0x8b7211(0xdd)],'contextElements':[this[_0x8b7211(0xdd)][_0x8b7211(0xf4)],this[_0x8b7211(0xda)][_0x8b7211(0xf4)]],'callback':()=>this[_0x8b7211(0x6c)](),'activator':()=>this[_0x8b7211(0xda)][_0x8b7211(0x75)]});}[_0x483829(0xf8)](){const _0x3c591e=_0x483829,_0xff7504=new _0x3c95e8(this[_0x3c591e(0x78)]);_0xff7504[_0x3c591e(0xc4)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x19b581=[this[_0x3c591e(0x95)][_0x3c591e(0xbd)][_0x3c591e(0x83)]];return this[_0x3c591e(0x95)][_0x3c591e(0xbd)][_0x3c591e(0x77)]&&_0x19b581[_0x3c591e(0xaa)](this[_0x3c591e(0x95)][_0x3c591e(0xbd)][_0x3c591e(0x77)]),_0xff7504[_0x3c591e(0xb3)]({'attributes':{'class':_0x19b581}}),_0xff7504;}[_0x483829(0xcc)](){const _0x19f99a=_0x483829,_0x3fff59=new _0x2eace9(this[_0x19f99a(0x78)]);return _0x3fff59[_0x19f99a(0xb3)]({'attributes':{'class':this[_0x19f99a(0x95)][_0x19f99a(0xbd)][_0x19f99a(0x68)]}}),this[_0x19f99a(0xb6)][_0x19f99a(0x6d)](_0x3fff59),_0x3fff59;}[_0x483829(0xfb)](){const _0x466636=_0x483829;if(this[_0x466636(0xdd)]&&(this[_0x466636(0xdd)][_0x466636(0x69)][_0x466636(0xf0)](),this[_0x466636(0x7a)][_0x466636(0xc2)]>0x0)){this[_0x466636(0x7a)][_0x466636(0x86)](_0x11eef4=>{const _0x2534c0=_0x466636;_0x11eef4[_0x2534c0(0xb5)]();});const _0x4fea8e=new _0x2cb2c6(this[_0x466636(0x78)]);_0x4fea8e[_0x466636(0xe8)]({'tag':_0x466636(0x97),'attributes':{'class':this[_0x466636(0x95)][_0x466636(0xbd)][_0x466636(0xa8)]},'children':this[_0x466636(0x7a)]}),this[_0x466636(0xdd)][_0x466636(0x69)][_0x466636(0x6d)](_0x4fea8e);}}[_0x483829(0x73)](){const _0x12f6b9=_0x483829;this[_0x12f6b9(0xda)][_0x12f6b9(0x75)]?this[_0x12f6b9(0x6c)]():this[_0x12f6b9(0xfa)]();}[_0x483829(0xd6)](){const _0x577e3e=_0x483829,_0x2571a1=this[_0x577e3e(0x7a)][_0x577e3e(0xc2)]>0x0;this[_0x577e3e(0xda)]?.[_0x577e3e(0xf4)]&&(this[_0x577e3e(0xda)][_0x577e3e(0xf4)][_0x577e3e(0x7b)][_0x577e3e(0xea)]=_0x2571a1?'':_0x577e3e(0xde));}[_0x483829(0xa6)](){const _0x1ccc98=_0x483829;this[_0x1ccc98(0xda)]?.[_0x1ccc98(0x75)]&&this[_0x1ccc98(0xdd)]?.[_0x1ccc98(0xce)]&&this[_0x1ccc98(0xda)][_0x1ccc98(0xf4)]&&this[_0x1ccc98(0xdd)][_0x1ccc98(0x74)]({'target':this[_0x1ccc98(0xda)][_0x1ccc98(0xf4)],'limiter':document[_0x1ccc98(0xa9)](_0x1ccc98(0x93))});}[_0x483829(0xe4)](_0x5348a9){const _0x2c9148=_0x483829,_0x4b91d5=this[_0x2c9148(0xd5)]?.[_0x2c9148(0xac)][_0x2c9148(0xdc)]()||_0x2c9148(0x97),_0x2bf049=this[_0x2c9148(0xd5)]?.[_0x2c9148(0x8b)];if(_0x2bf049){const _0x1c3111=_0x2bf049[0x0]||'',_0x20e1c0=_0x5348a9[_0x2c9148(0xa9)]('.'+_0x1c3111),_0x40f295=_0x5348a9[_0x2c9148(0xa9)](_0x4b91d5);return _0x20e1c0||_0x40f295||_0x5348a9;}return _0x5348a9[_0x2c9148(0xa9)](_0x4b91d5)||_0x5348a9;}[_0x483829(0x6e)](){const _0x170704=_0x483829,_0x4a07b6=this[_0x170704(0xcf)]?.[_0x170704(0xf4)]||this[_0x170704(0xd5)];if(!_0x4a07b6)return bn;const _0x10fc00=window[_0x170704(0xae)](_0x4a07b6)[_0x170704(0xd4)];if(_0x170704(0xcd)===_0x10fc00||_0x170704(0xed)===_0x10fc00||!_0x10fc00){const _0x27fff8=_0x4a07b6[_0x170704(0x9b)];if(_0x27fff8){const _0x33279b=window[_0x170704(0xae)](_0x27fff8);return _0x170704(0xcd)!==_0x33279b[_0x170704(0xd4)]?_0x33279b[_0x170704(0xd4)]:bn;}return bn;}return _0x10fc00;}[_0x483829(0xd9)](_0x534f98,_0x4d9b3b){const _0x3f7479=_0x483829;this[_0x3f7479(0x95)][_0x3f7479(0xbd)][_0x3f7479(0x6f)]&&_0x534f98[_0x3f7479(0x8b)][_0x3f7479(0x6d)](this[_0x3f7479(0x95)][_0x3f7479(0xbd)][_0x3f7479(0x6f)]),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xd4)]=_0x4d9b3b,_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xf6)]=_0x3f7479(0xa0),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0x9c)]=_0x3f7479(0x99),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0x91)]=_0x3f7479(0x99),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xec)]='0',_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xe5)]=_0x3f7479(0xde),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xc5)]='-1',_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xf3)]=_0x3f7479(0x89),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xea)]=_0x3f7479(0xc7),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0x6a)]=_0x3f7479(0x84);}[_0x483829(0xc6)](_0x12b498){const _0x39c8ae=_0x483829;_0x12b498[_0x39c8ae(0x86)](({element:_0x4b254c,originalDisplay:_0x475209,originalVisibility:_0x45eab9})=>{const _0x508f8e=_0x39c8ae;_0x4b254c[_0x508f8e(0x7b)][_0x508f8e(0xea)]=_0x475209,_0x4b254c[_0x508f8e(0x7b)][_0x508f8e(0xf3)]=_0x45eab9;});}[_0x483829(0xbf)](_0x35cca0){const _0x3038f0=_0x483829,_0x48451a=[];let _0xeeed63=_0x35cca0;for(;_0xeeed63&&_0xeeed63!==document[_0x3038f0(0xc1)];){const _0x5d76f7=window[_0x3038f0(0xae)](_0xeeed63);_0x3038f0(0xde)!==_0x5d76f7[_0x3038f0(0xea)]&&_0x3038f0(0xd3)!==_0x5d76f7[_0x3038f0(0xf3)]||(_0x48451a[_0x3038f0(0xaa)]({'element':_0xeeed63,'originalDisplay':_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xea)],'originalVisibility':_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xf3)]}),_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xea)]=_0x3038f0(0x85),_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xf3)]=_0x3038f0(0x80)),_0xeeed63=_0xeeed63[_0x3038f0(0x9b)];}return _0x48451a;}[_0x483829(0xe3)](){const _0x463339=_0x483829;let _0x26af4c,_0x310e1b;return this[_0x463339(0xcf)]?.[_0x463339(0xf4)]?(_0x26af4c=this[_0x463339(0xcf)][_0x463339(0xf4)][_0x463339(0xa3)](!0x0),_0x310e1b=this[_0x463339(0xe4)](_0x26af4c)):(_0x26af4c=document[_0x463339(0xe1)](_0x463339(0x97)),_0x310e1b=_0x26af4c),{'calculationContainer':_0x26af4c,'targetContainer':_0x310e1b};}[_0x483829(0x9a)](){const _0x30f0a0=_0x483829,{calculationContainer:_0x1d9c9e,targetContainer:_0x1ca2d7}=this[_0x30f0a0(0xe3)](),_0x46257d=this[_0x30f0a0(0x6e)]();this[_0x30f0a0(0xd9)](_0x1d9c9e,_0x46257d);const _0x47051d=this[_0x30f0a0(0xcf)]?.[_0x30f0a0(0xf4)]||this[_0x30f0a0(0xd5)],_0x52956f=_0x47051d?.[_0x30f0a0(0x9b)];_0x52956f?_0x52956f[_0x30f0a0(0xd8)](_0x1d9c9e):document[_0x30f0a0(0xc1)][_0x30f0a0(0xd8)](_0x1d9c9e),_0x1d9c9e[_0x30f0a0(0xad)]=_0x1ca2d7;const _0x5e55a9=this[_0x30f0a0(0xbf)](_0x52956f||null);return _0x1d9c9e[_0x30f0a0(0x98)],_0x1d9c9e[_0x30f0a0(0xd2)]=_0x5e55a9,_0x1d9c9e;}[_0x483829(0x87)](_0x5469c1,_0x4f3da8){const _0x2ebcfe=_0x483829,_0xef181c=_0x5469c1[_0x2ebcfe(0xad)]||_0x5469c1,_0x3de835=[],{rowCount:_0x57c3ae}=this[_0x2ebcfe(0x79)](_0xef181c,_0x4f3da8);if(_0x57c3ae<=this[_0x2ebcfe(0x95)][_0x2ebcfe(0xe7)])return _0x3de835;const _0x59386d=_0x4f3da8[_0x2ebcfe(0xeb)]();for(;_0x59386d[_0x2ebcfe(0xc2)]>0x0;){if(this[_0x2ebcfe(0x88)](_0x5469c1,_0xef181c,_0x59386d)){const _0x16fdf0=_0x4f3da8[_0x2ebcfe(0xf9)](_0x28385f=>!_0x59386d[_0x2ebcfe(0xb2)](_0x28385f));_0x3de835[_0x2ebcfe(0xaa)](..._0x16fdf0);break;}if(!_0x59386d[_0x2ebcfe(0xc0)]())break;}return _0x3de835;}[_0x483829(0x79)](_0x2c7022,_0x111654){const _0x32269f=_0x483829;_0x2c7022[_0x32269f(0xba)]='',_0x111654[_0x32269f(0x86)](_0x5d3906=>{const _0x10658e=_0x32269f;if(_0x5d3906[_0x10658e(0xf4)]){const _0x7ff70a=_0x5d3906[_0x10658e(0xf4)][_0x10658e(0xa3)](!0x0);_0x2c7022[_0x10658e(0xd8)](_0x7ff70a);}}),_0x2c7022[_0x32269f(0x98)];const _0x19bc14=_0x2c7022[_0x32269f(0xd0)],_0x47fe85=[];return Array[_0x32269f(0xca)](_0x19bc14)[_0x32269f(0x86)](_0x2dc917=>{const _0x5bc6fb=_0x32269f,_0xe2260e=_0x2dc917[_0x5bc6fb(0x6b)]()[_0x5bc6fb(0x9c)];_0x47fe85[_0x5bc6fb(0xb1)](_0x1253fd=>Math[_0x5bc6fb(0xdb)](_0x1253fd-_0xe2260e)<this[_0x5bc6fb(0x95)][_0x5bc6fb(0xb0)])||_0x47fe85[_0x5bc6fb(0xaa)](_0xe2260e);}),{'rowCount':_0x47fe85[_0x32269f(0xc2)]};}[_0x483829(0x7f)](){const _0xf778fd=_0x483829,_0x40c880=document[_0xf778fd(0xe1)](_0xf778fd(0xe2));return _0x40c880[_0xf778fd(0xa5)]=this[_0xf778fd(0x95)][_0xf778fd(0xbd)][_0xf778fd(0x83)],this[_0xf778fd(0x95)][_0xf778fd(0xbd)][_0xf778fd(0x77)]&&_0x40c880[_0xf778fd(0x8b)][_0xf778fd(0x6d)](this[_0xf778fd(0x95)][_0xf778fd(0xbd)][_0xf778fd(0x77)]),_0x40c880[_0xf778fd(0xbc)]=_0xf778fd(0xb4),_0x40c880;}[_0x483829(0x88)](_0x1373c6,_0x4f84ab,_0x459e4a){const _0x3bcedb=_0x483829;this[_0x3bcedb(0x79)](_0x4f84ab,_0x459e4a);const _0x227650=this[_0x3bcedb(0x7f)]();_0x1373c6[_0x3bcedb(0xd8)](_0x227650),_0x1373c6[_0x3bcedb(0x98)];const _0x54046d=[..._0x4f84ab[_0x3bcedb(0xd0)],_0x227650],_0x2fe3c5=[];_0x54046d[_0x3bcedb(0x86)](_0xb67307=>{const _0x2cc2e3=_0x3bcedb,_0x4ca822=_0xb67307[_0x2cc2e3(0x6b)]()[_0x2cc2e3(0x9c)];_0x2fe3c5[_0x2cc2e3(0xb1)](_0x158cc7=>Math[_0x2cc2e3(0xdb)](_0x158cc7-_0x4ca822)<this[_0x2cc2e3(0x95)][_0x2cc2e3(0xb0)])||_0x2fe3c5[_0x2cc2e3(0xaa)](_0x4ca822);});const _0x186b53=_0x2fe3c5[_0x3bcedb(0xc2)];return _0x227650[_0x3bcedb(0x72)](),_0x186b53<=this[_0x3bcedb(0x95)][_0x3bcedb(0xe7)];}[_0x483829(0x71)](_0x3cf724,_0x34de50){const _0xddbe42=_0x483829;this[_0xddbe42(0xc9)][_0xddbe42(0xf0)](),this[_0xddbe42(0x7a)][_0xddbe42(0xf0)](),_0x3cf724[_0xddbe42(0x86)](_0x1088eb=>{const _0x19a192=_0xddbe42;_0x34de50[_0x19a192(0xb2)](_0x1088eb)?this[_0x19a192(0x7a)][_0x19a192(0x6d)](_0x1088eb):this[_0x19a192(0xc9)][_0x19a192(0x6d)](_0x1088eb);});}[_0x483829(0xf7)](_0x302d64){const _0x4b868b=_0x483829;if(_0x302d64>0x0&&!this[_0x4b868b(0xda)]&&this[_0x4b868b(0xe0)](),_0x302d64>0x0&&this[_0x4b868b(0xda)]){const _0xb4af5f=''+this[_0x4b868b(0x95)][_0x4b868b(0xbe)]+(_0x302d64<0x63?_0x302d64:'99');this[_0x4b868b(0xda)][_0x4b868b(0xf2)]=_0xb4af5f;}this[_0x4b868b(0xfb)](),this[_0x4b868b(0xd6)](),this[_0x4b868b(0xa6)]();}[_0x483829(0x82)](_0xee1490,_0x5bfa33){const _0x150373=_0x483829;this[_0x150373(0x71)](_0xee1490,_0x5bfa33),this[_0x150373(0xf7)](_0x5bfa33[_0x150373(0xc2)]);}[_0x483829(0x94)](){const _0x595fad=_0x483829;this[_0x595fad(0xd5)]&&_0x595fad(0x7c)!=typeof IntersectionObserver&&(this[_0x595fad(0xe6)]=new IntersectionObserver(_0x490fed=>{const _0x1733a7=_0x595fad;_0x490fed[0x0][_0x1733a7(0x9e)]&&this[_0x1733a7(0x96)]&&requestAnimationFrame(()=>{const _0xb22c84=_0x1733a7;this[_0xb22c84(0xb8)]();});},{'threshold':0.01,'rootMargin':_0x595fad(0xdf)}),this[_0x595fad(0xe6)][_0x595fad(0xd1)](this[_0x595fad(0xd5)]));}[_0x483829(0xaf)](){const _0x3d6492=_0x483829;if(!this[_0x3d6492(0xd5)])return!0x1;if(!this[_0x3d6492(0xd5)][_0x3d6492(0x8e)])return!0x1;const _0x2c201f=this[_0x3d6492(0xd5)][_0x3d6492(0x6b)]();if(0x0===_0x2c201f[_0x3d6492(0xd4)]||0x0===_0x2c201f[_0x3d6492(0x70)])return!0x1;const _0x8583f7=window[_0x3d6492(0x81)]||document[_0x3d6492(0xa1)][_0x3d6492(0xee)],_0x5e9193=window[_0x3d6492(0xc8)]||document[_0x3d6492(0xa1)][_0x3d6492(0xef)],_0x5d42a0=0xc8;return _0x2c201f[_0x3d6492(0x8f)]>=-0xc8&&_0x2c201f[_0x3d6492(0x9c)]<=_0x8583f7+_0x5d42a0&&_0x2c201f[_0x3d6492(0xf1)]>=-0xc8&&_0x2c201f[_0x3d6492(0x91)]<=_0x5e9193+_0x5d42a0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27544b=_0x18d5;(function(_0x53c21a,_0x559ae6){const _0x408d9=_0x18d5,_0x23347c=_0x53c21a();while(!![]){try{const _0x2febce=-parseInt(_0x408d9(0xd4))/0x1*(parseInt(_0x408d9(0xee))/0x2)+-parseInt(_0x408d9(0xd0))/0x3+-parseInt(_0x408d9(0xe4))/0x4+-parseInt(_0x408d9(0xeb))/0x5+parseInt(_0x408d9(0xf2))/0x6*(parseInt(_0x408d9(0xdf))/0x7)+-parseInt(_0x408d9(0xde))/0x8+-parseInt(_0x408d9(0xe7))/0x9*(-parseInt(_0x408d9(0xe5))/0xa);if(_0x2febce===_0x559ae6)break;else _0x23347c['push'](_0x23347c['shift']());}catch(_0x2e294f){_0x23347c['push'](_0x23347c['shift']());}}}(_0x145e,0x1f82d));import{ButtonView as _0x2f278e,IconView as _0x58f11f}from'ckeditor5/src/ui.js';import{IconClose as _0x32faf0,IconDocument as _0x28aa75,IconFileUpload as _0x9b0179,IconLink as _0x75021a,IconSelection as _0x536432}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5c3b4d}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0xf6c804}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x9b0179,'document':_0x28aa75,'web-resource':_0x75021a,'text':_0x9b0179,'selection':_0x536432},bn=_0x27544b(0xc7),wn=_0x27544b(0xe6),Tn=_0x27544b(0xcd),En=_0x27544b(0xed),An=_0x27544b(0xe0),Cn=_0x27544b(0xce),In='n';export class AIChatContextItemButtonView extends _0x2f278e{constructor(_0x1ff259,_0xaf7767,_0x2ae6e0,_0x544206,_0x544c61=!0x1){const _0x19366a=_0x27544b;super(_0x1ff259),this[_0x19366a(0xc2)]=_0x544206,this[_0x19366a(0xc6)](_0xaf7767,_0x2ae6e0,_0x544c61),this[_0x19366a(0xef)]();}[_0x27544b(0xfa)](){const _0x3dd8b8=_0x27544b;super[_0x3dd8b8(0xfa)](),this[_0x3dd8b8(0xc2)]&&this[_0x3dd8b8(0xdb)]&&(this[_0x3dd8b8(0xdb)][_0x3dd8b8(0xe9)][_0x3dd8b8(0xe1)](_0x3dd8b8(0xd8)),this[_0x3dd8b8(0xf3)](this[_0x3dd8b8(0xdb)],()=>{const _0x280909=_0x3dd8b8;this[_0x280909(0xdb)]&&this[_0x280909(0xdb)][_0x280909(0xe9)][_0x280909(0xf1)](_0x280909(0xd8));}));}[_0x27544b(0xf9)](){const _0x202167=_0x27544b;this[_0x202167(0xc2)]=!0x1,this[_0x202167(0xdb)]&&this[_0x202167(0xdb)][_0x202167(0xe9)][_0x202167(0xf1)](_0x202167(0xd8));}[_0x27544b(0xc6)](_0xcbff48,_0x33d387,_0x2c0ebb){const _0x3b7c70=_0x27544b;this[_0x3b7c70(0xfc)](_0x3b7c70(0xbe),_0xcbff48[_0x3b7c70(0xbe)]),this[_0x3b7c70(0xfc)](_0x3b7c70(0xbf),!0x0),this[_0x3b7c70(0xfc)](_0x3b7c70(0xdd),_0xcbff48[_0x3b7c70(0xcb)]),this[_0x3b7c70(0xfc)]('id',_0xcbff48[_0x3b7c70(0xc8)]),this[_0x3b7c70(0xfc)](_0x3b7c70(0xe3),_0x33d387),this[_0x3b7c70(0xfc)](_0x3b7c70(0xc4),_0x2c0ebb);}[_0x27544b(0xef)](){const _0x4aa39e=_0x27544b,_0x58ecc7=this[_0x4aa39e(0xf8)](),_0x593b53=this[_0x4aa39e(0xc5)](),_0x55c878=this[_0x4aa39e(0xe8)];this[_0x4aa39e(0xf4)]({'tag':_0x4aa39e(0xfd),'attributes':this[_0x4aa39e(0xfb)](_0x55c878),'children':this[_0x4aa39e(0xd5)](_0x58ecc7,_0x593b53,_0x55c878)});}[_0x27544b(0xfb)](_0x4babed){const _0x21f399=_0x27544b;return{'class':[bn,_0x4babed['if'](_0x21f399(0xdd),Tn,_0x3c407d=>_0x21f399(0xfe)==_0x3c407d),_0x4babed['if'](_0x21f399(0xdd),wn,_0x4990a4=>_0x21f399(0xe2)==_0x4990a4)],'data-cke-tooltip-text':_0x4babed['to'](_0x21f399(0xbe),On),'data-cke-tooltip-position':In,'data-cke-tooltip-class':Cn};}[_0x27544b(0xd5)](_0x4e79fe,_0x532f62,_0x36d0d5){const _0x113e21=_0x27544b,_0x3f1cbf=this[_0x113e21(0xc3)](_0x36d0d5),_0x6cacd=this[_0x113e21(0xd7)]();return this[_0x113e21(0xe3)]?[_0x4e79fe,_0x3f1cbf]:[_0x4e79fe,_0x6cacd,_0x3f1cbf,_0x532f62];}[_0x27544b(0xc3)](_0x40a556){const _0x2f2836=_0x27544b;return{'tag':_0x2f2836(0xd3),'attributes':{'class':En},'children':[{'text':_0x40a556['to'](_0x2f2836(0xbe))}]};}[_0x27544b(0xc5)](){const _0x3e60b2=_0x27544b,_0x2a7ed0=new _0x2f278e(this[_0x3e60b2(0xf6)]);return _0x2a7ed0[_0x3e60b2(0xfc)]({'label':_0x5c3b4d(this[_0x3e60b2(0xf6)],_0x3e60b2(0xc9)),'icon':_0x32faf0}),this[_0x3e60b2(0xbd)](_0x2a7ed0),_0x2a7ed0;}[_0x27544b(0xbd)](_0x53418e){const _0x1c18ae=_0x27544b;_0x53418e['on'](_0x1c18ae(0xc0),()=>{const _0x3d9df4=_0x1c18ae;this[_0x3d9df4(0xdc)](_0x3d9df4(0xd1),this['id']);});}[_0x27544b(0xf8)](){const _0x33ea04=_0x27544b,_0x39dc10=this[_0x33ea04(0xe8)],_0x1c34e1=new _0x58f11f();return _0x1c34e1[_0x33ea04(0xca)]=xn[this[_0x33ea04(0xdd)]],_0x1c34e1[_0x33ea04(0xea)]({'attributes':{'class':[An,_0x39dc10['if'](_0x33ea04(0xc4),_0x33ea04(0xd9),_0x131c85=>_0x131c85)]}}),_0x1c34e1;}[_0x27544b(0xf3)](_0x1b27d5,_0x2678b8){const _0x10c604=_0x27544b;if(!_0x1b27d5)return;const _0xd66717=()=>{const _0x4ce82d=_0x18d5;_0x2678b8(),_0x1b27d5[_0x4ce82d(0xec)](_0x4ce82d(0xc1),_0xd66717),_0x1b27d5[_0x4ce82d(0xec)](_0x4ce82d(0xf5),_0xd66717);};_0x1b27d5[_0x10c604(0xf0)](_0x10c604(0xc1),_0xd66717),_0x1b27d5[_0x10c604(0xf0)](_0x10c604(0xf5),_0xd66717);}[_0x27544b(0xd7)](){const _0x221664=_0x27544b,_0x5566f3=new _0xf6c804(_0x221664(0xf7));return _0x5566f3[_0x221664(0xcf)](_0x221664(0xda))['to'](this,_0x221664(0xc4),_0x3af1ff=>_0x3af1ff),_0x5566f3;}}function _0x18d5(_0x5c3ca2,_0x9bc01f){const _0x145e34=_0x145e();return _0x18d5=function(_0x18d592,_0x57b40a){_0x18d592=_0x18d592-0xbd;let _0x3dae7d=_0x145e34[_0x18d592];return _0x3dae7d;},_0x18d5(_0x5c3ca2,_0x9bc01f);}function _0x145e(){const _0x514fcd=['_setupRemoveButtonEvent','label','tooltip','execute','animationend','_isAnimationOnEnterEnabled','_createLabelElement','isLoading','_createRemoveButton','_initializeProperties','ck-ai-chat-context-chip','uiId','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','content','type','slice','ck-ai-chat-context-chip_document','ck-ai-chat-context-controls__chip-tooltip','bind','585774GsCKik','removeContextItemChip','lastIndexOf','span','305XHiFGL','_createTemplateChildren','length','_createLoaderIcon','ck-ai-chat-context-chip_new-chip','ck-hidden','isVisible','element','fire','itemType','189720HwzrlN','77QgxlFw','ck-ai-chat-context-chip__type-icon','add','selection','readonly','275168gejLwb','1871290gmXGeA','ck-ai-chat-context-chip_wide','18SRUJcn','bindTemplate','classList','extendTemplate','565910iLGULD','removeEventListener','ck-ai-chat-context-chip__label','6dPmucB','_setupTemplate','addEventListener','remove','85458AuxqwL','_handleAnimationEndOnce','setTemplate','webkitAnimationEnd','locale','small','_createIconView','disableAnimationOnEnter','render','_createTemplateAttributes','set','div','document'];_0x145e=function(){return _0x514fcd;};return _0x145e();}function On(_0x3ae4c8){const _0x56f64=_0x27544b;if(!_0x3ae4c8)return _0x3ae4c8;if(_0x3ae4c8[_0x56f64(0xd6)]<=0x78)return _0x3ae4c8;const _0x31b36f=_0x3ae4c8[_0x56f64(0xcc)](0x0,0x78),_0x23a636=_0x31b36f[_0x56f64(0xd2)]('\x20');return(_0x23a636>0x0?_0x31b36f[_0x56f64(0xcc)](0x0,_0x23a636):_0x31b36f)+'…';}
23
+ const _0x175709=_0x1c36;function _0x159f(){const _0x30e446=['350619hlxGTK','889JBFmLz','addEventListener','label','small','_createTemplateChildren','disableAnimationOnEnter','selection','document','execute','_setupRemoveButtonEvent','bind','ck-ai-chat-context-chip__type-icon','isLoading','ck-ai-chat-context-chip_document','lastIndexOf','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createLoaderIcon','animationend','12fSBBkt','div','set','locale','tooltip','slice','_createIconView','content','removeEventListener','span','element','ck-ai-chat-context-chip__label','432188YSxyeN','_isAnimationOnEnterEnabled','246FirOvF','ck-ai-chat-context-chip_wide','_setupTemplate','isVisible','length','_createLabelElement','_createRemoveButton','webkitAnimationEnd','bindTemplate','fire','readonly','ck-ai-chat-context-chip_new-chip','extendTemplate','9082899ddxcXW','type','render','28607360rNaZot','_initializeProperties','47770qORvxE','121685zEIGLQ','classList','ck-ai-chat-context-controls__chip-tooltip','_handleAnimationEndOnce','removeContextItemChip','ck-hidden','_createTemplateAttributes','59912vKareT','ck-ai-chat-context-chip','uiId','remove','setTemplate','add','itemType'];_0x159f=function(){return _0x30e446;};return _0x159f();}(function(_0x3185f5,_0x6b9c8b){const _0x511a0c=_0x1c36,_0x4ff331=_0x3185f5();while(!![]){try{const _0x6abfa6=parseInt(_0x511a0c(0x189))/0x1+-parseInt(_0x511a0c(0x19d))/0x2+parseInt(_0x511a0c(0x16a))/0x3*(parseInt(_0x511a0c(0x17d))/0x4)+parseInt(_0x511a0c(0x19e))/0x5*(-parseInt(_0x511a0c(0x18b))/0x6)+parseInt(_0x511a0c(0x16b))/0x7*(-parseInt(_0x511a0c(0x163))/0x8)+-parseInt(_0x511a0c(0x198))/0x9+parseInt(_0x511a0c(0x19b))/0xa;if(_0x6abfa6===_0x6b9c8b)break;else _0x4ff331['push'](_0x4ff331['shift']());}catch(_0x1c7049){_0x4ff331['push'](_0x4ff331['shift']());}}}(_0x159f,0xa1817));import{ButtonView as _0x30b984,IconView as _0x2c7615}from'ckeditor5/src/ui.js';import{IconClose as _0x59770f,IconDocument as _0x258d9c,IconFileUpload as _0x23d225,IconLink as _0x959826,IconSelection as _0x23c090}from'@ckeditor/ckeditor5-icons';function _0x1c36(_0xc19359,_0x194357){const _0x159fc1=_0x159f();return _0x1c36=function(_0x1c36b3,_0x15a910){_0x1c36b3=_0x1c36b3-0x15e;let _0x500710=_0x159fc1[_0x1c36b3];return _0x500710;},_0x1c36(_0xc19359,_0x194357);}import{getTranslation as _0x4dbb8c}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5cbcb7}from'../../../aicore/ui/aispinner.js';const yn={'file':_0x23d225,'document':_0x258d9c,'web-resource':_0x959826,'text':_0x23d225,'selection':_0x23c090},Ln=_0x175709(0x164),Rn=_0x175709(0x18c),Vn=_0x175709(0x178),jn=_0x175709(0x188),Bn=_0x175709(0x176),Mn=_0x175709(0x15e),Nn='n';export class AIChatContextItemButtonView extends _0x30b984{constructor(_0x39a3de,_0x9d0852,_0xe0460,_0x79d2d1,_0x40648b=!0x1){const _0x5e59fc=_0x175709;super(_0x39a3de),this[_0x5e59fc(0x18a)]=_0x79d2d1,this[_0x5e59fc(0x19c)](_0x9d0852,_0xe0460,_0x40648b),this[_0x5e59fc(0x18d)]();}[_0x175709(0x19a)](){const _0x5655c6=_0x175709;super[_0x5655c6(0x19a)](),this[_0x5655c6(0x18a)]&&this[_0x5655c6(0x187)]&&(this[_0x5655c6(0x187)][_0x5655c6(0x19f)][_0x5655c6(0x168)](_0x5655c6(0x196)),this[_0x5655c6(0x15f)](this[_0x5655c6(0x187)],()=>{const _0x23466b=_0x5655c6;this[_0x23466b(0x187)]&&this[_0x23466b(0x187)][_0x23466b(0x19f)][_0x23466b(0x166)](_0x23466b(0x196));}));}[_0x175709(0x170)](){const _0x342c7c=_0x175709;this[_0x342c7c(0x18a)]=!0x1,this[_0x342c7c(0x187)]&&this[_0x342c7c(0x187)][_0x342c7c(0x19f)][_0x342c7c(0x166)](_0x342c7c(0x196));}[_0x175709(0x19c)](_0x407ef3,_0x2dc38d,_0x1ab688){const _0x2dec11=_0x175709;this[_0x2dec11(0x17f)](_0x2dec11(0x16d),_0x407ef3[_0x2dec11(0x16d)]),this[_0x2dec11(0x17f)](_0x2dec11(0x181),!0x0),this[_0x2dec11(0x17f)](_0x2dec11(0x169),_0x407ef3[_0x2dec11(0x199)]),this[_0x2dec11(0x17f)]('id',_0x407ef3[_0x2dec11(0x165)]),this[_0x2dec11(0x17f)](_0x2dec11(0x195),_0x2dc38d),this[_0x2dec11(0x17f)](_0x2dec11(0x177),_0x1ab688);}[_0x175709(0x18d)](){const _0x248ed9=_0x175709,_0x4d3463=this[_0x248ed9(0x183)](),_0x3eed01=this[_0x248ed9(0x191)](),_0x46edd5=this[_0x248ed9(0x193)];this[_0x248ed9(0x167)]({'tag':_0x248ed9(0x17e),'attributes':this[_0x248ed9(0x162)](_0x46edd5),'children':this[_0x248ed9(0x16f)](_0x4d3463,_0x3eed01,_0x46edd5)});}[_0x175709(0x162)](_0x108cfe){const _0x677364=_0x175709;return{'class':[Ln,_0x108cfe['if'](_0x677364(0x169),Vn,_0x46af6e=>_0x677364(0x172)==_0x46af6e),_0x108cfe['if'](_0x677364(0x169),Rn,_0x405293=>_0x677364(0x171)==_0x405293)],'data-cke-tooltip-text':_0x108cfe['to'](_0x677364(0x16d),Xn),'data-cke-tooltip-position':Nn,'data-cke-tooltip-class':Mn};}[_0x175709(0x16f)](_0x40100c,_0x2f40b5,_0x5e854e){const _0x12362d=_0x175709,_0x52fa98=this[_0x12362d(0x190)](_0x5e854e),_0x4d44a4=this[_0x12362d(0x17b)]();return this[_0x12362d(0x195)]?[_0x40100c,_0x52fa98]:[_0x40100c,_0x4d44a4,_0x52fa98,_0x2f40b5];}[_0x175709(0x190)](_0x1c57f9){const _0x40be9d=_0x175709;return{'tag':_0x40be9d(0x186),'attributes':{'class':jn},'children':[{'text':_0x1c57f9['to'](_0x40be9d(0x16d))}]};}[_0x175709(0x191)](){const _0x108414=_0x175709,_0x446374=new _0x30b984(this[_0x108414(0x180)]);return _0x446374[_0x108414(0x17f)]({'label':_0x4dbb8c(this[_0x108414(0x180)],_0x108414(0x17a)),'icon':_0x59770f}),this[_0x108414(0x174)](_0x446374),_0x446374;}[_0x175709(0x174)](_0x32c1c6){const _0x297674=_0x175709;_0x32c1c6['on'](_0x297674(0x173),()=>{const _0x415d62=_0x297674;this[_0x415d62(0x194)](_0x415d62(0x160),this['id']);});}[_0x175709(0x183)](){const _0x11c16f=_0x175709,_0x11da51=this[_0x11c16f(0x193)],_0x29de88=new _0x2c7615();return _0x29de88[_0x11c16f(0x184)]=yn[this[_0x11c16f(0x169)]],_0x29de88[_0x11c16f(0x197)]({'attributes':{'class':[Bn,_0x11da51['if'](_0x11c16f(0x177),_0x11c16f(0x161),_0xbd1509=>_0xbd1509)]}}),_0x29de88;}[_0x175709(0x15f)](_0x5533e5,_0x10239f){const _0x16b90d=_0x175709;if(!_0x5533e5)return;const _0x323942=()=>{const _0x2c3015=_0x1c36;_0x10239f(),_0x5533e5[_0x2c3015(0x185)](_0x2c3015(0x17c),_0x323942),_0x5533e5[_0x2c3015(0x185)](_0x2c3015(0x192),_0x323942);};_0x5533e5[_0x16b90d(0x16c)](_0x16b90d(0x17c),_0x323942),_0x5533e5[_0x16b90d(0x16c)](_0x16b90d(0x192),_0x323942);}[_0x175709(0x17b)](){const _0x3f56df=_0x175709,_0x2e388e=new _0x5cbcb7(_0x3f56df(0x16e));return _0x2e388e[_0x3f56df(0x175)](_0x3f56df(0x18e))['to'](this,_0x3f56df(0x177),_0x15eedf=>_0x15eedf),_0x2e388e;}}function Xn(_0x250dc7){const _0x55b4f3=_0x175709;if(!_0x250dc7)return _0x250dc7;if(_0x250dc7[_0x55b4f3(0x18f)]<=0x78)return _0x250dc7;const _0xf74bdd=_0x250dc7[_0x55b4f3(0x182)](0x0,0x78),_0x56d587=_0xf74bdd[_0x55b4f3(0x179)]('\x20');return(_0x56d587>0x0?_0xf74bdd[_0x55b4f3(0x182)](0x0,_0x56d587):_0xf74bdd)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe54e6f=_0x578e;function _0x578e(_0x8242d4,_0x8f1d7c){const _0x30545a=_0x3054();return _0x578e=function(_0x578e04,_0x1c5d46){_0x578e04=_0x578e04-0x141;let _0x4b5f04=_0x30545a[_0x578e04];return _0x4b5f04;},_0x578e(_0x8242d4,_0x8f1d7c);}(function(_0x51c2b7,_0x80cca6){const _0x386c00=_0x578e,_0x57dfaf=_0x51c2b7();while(!![]){try{const _0x571760=-parseInt(_0x386c00(0x175))/0x1+-parseInt(_0x386c00(0x187))/0x2*(parseInt(_0x386c00(0x179))/0x3)+parseInt(_0x386c00(0x17f))/0x4*(-parseInt(_0x386c00(0x182))/0x5)+parseInt(_0x386c00(0x162))/0x6+parseInt(_0x386c00(0x166))/0x7*(parseInt(_0x386c00(0x155))/0x8)+-parseInt(_0x386c00(0x169))/0x9*(-parseInt(_0x386c00(0x14e))/0xa)+parseInt(_0x386c00(0x159))/0xb;if(_0x571760===_0x80cca6)break;else _0x57dfaf['push'](_0x57dfaf['shift']());}catch(_0x5e096f){_0x57dfaf['push'](_0x57dfaf['shift']());}}}(_0x3054,0x46570));import{FocusTracker as _0x451ccd,KeystrokeHandler as _0x3b649d}from'ckeditor5/src/utils.js';import{ButtonView as _0x24112e,FocusCycler as _0x43c0a9,LabeledFieldView as _0x1a285e,View as _0x248eb1,FormHeaderView as _0xec18a3,createLabeledInputText as _0x540d29,submitHandler as _0x4710c5}from'ckeditor5/src/ui.js';import{IconCheck as _0xe37954,IconPreviousArrow as _0x175eba}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2e93fc}from'../../../aicore/utils/common-translations.js';const eh=_0xe54e6f(0x184),hh=_0xe54e6f(0x17b);export class AIChatContextPanelUrlInputView extends _0x248eb1{[_0xe54e6f(0x177)];[_0xe54e6f(0x18a)];[_0xe54e6f(0x147)];[_0xe54e6f(0x167)];[_0xe54e6f(0x173)];[_0xe54e6f(0x176)];[_0xe54e6f(0x160)];constructor(_0xcbc034){const _0x4a83c3=_0xe54e6f;super(_0xcbc034),this[_0x4a83c3(0x177)]=new _0x451ccd(),this[_0x4a83c3(0x18a)]=new _0x3b649d(),this[_0x4a83c3(0x176)]=this[_0x4a83c3(0x16c)](),this[_0x4a83c3(0x173)]=this[_0x4a83c3(0x172)](),this[_0x4a83c3(0x160)]=this[_0x4a83c3(0x16b)](),this[_0x4a83c3(0x147)]=this[_0x4a83c3(0x158)]([this[_0x4a83c3(0x176)],this[_0x4a83c3(0x173)],this[_0x4a83c3(0x160)]]),this[_0x4a83c3(0x167)]=new _0x43c0a9({'focusables':this[_0x4a83c3(0x147)],'focusTracker':this[_0x4a83c3(0x177)],'keystrokeHandler':this[_0x4a83c3(0x18a)],'actions':{'focusPrevious':_0x4a83c3(0x188),'focusNext':_0x4a83c3(0x170)}}),this[_0x4a83c3(0x151)](),this[_0x4a83c3(0x174)](),this[_0x4a83c3(0x15b)]();}[_0xe54e6f(0x17c)](){const _0x4541f4=_0xe54e6f;super[_0x4541f4(0x17c)](),this[_0x4541f4(0x147)][_0x4541f4(0x150)](_0x329e74=>{const _0x70cdc=_0x4541f4;this[_0x70cdc(0x177)][_0x70cdc(0x15d)](_0x329e74[_0x70cdc(0x180)]),this[_0x70cdc(0x18a)][_0x70cdc(0x16d)](_0x329e74[_0x70cdc(0x180)]);}),_0x4710c5({'view':this}),this[_0x4541f4(0x17e)]();}[_0xe54e6f(0x17a)](){const _0x437c93=_0xe54e6f;super[_0x437c93(0x17a)](),this[_0x437c93(0x177)][_0x437c93(0x17a)](),this[_0x437c93(0x18a)][_0x437c93(0x17a)]();}[_0xe54e6f(0x17e)](){const _0x3f5d94=_0xe54e6f;this[_0x3f5d94(0x173)][_0x3f5d94(0x17e)]();}[_0xe54e6f(0x154)](){const _0x314b82=_0xe54e6f;return this[_0x314b82(0x173)][_0x314b82(0x163)][_0x314b82(0x180)]?.[_0x314b82(0x14d)]?.[_0x314b82(0x153)]()||'';}[_0xe54e6f(0x161)](){const _0x4253c7=_0xe54e6f;this[_0x4253c7(0x173)][_0x4253c7(0x163)][_0x4253c7(0x180)][_0x4253c7(0x14d)]='',this[_0x4253c7(0x173)][_0x4253c7(0x15e)]=null,this[_0x4253c7(0x160)][_0x4253c7(0x149)]=!0x1;}[_0xe54e6f(0x146)](_0x1a676e){const _0x35317d=_0xe54e6f;this[_0x35317d(0x173)][_0x35317d(0x15e)]=_0x1a676e,this[_0x35317d(0x16e)](),this[_0x35317d(0x186)](_0x35317d(0x156));}[_0xe54e6f(0x14a)](){const _0xb706e6=_0xe54e6f;this[_0xb706e6(0x173)][_0xb706e6(0x15e)]=null,this[_0xb706e6(0x16e)]();}[_0xe54e6f(0x16c)](){const _0x10b3fa=_0xe54e6f,_0xc90b2a=new _0x24112e(this[_0x10b3fa(0x145)]);return _0xc90b2a[_0x10b3fa(0x141)]({'icon':_0x175eba,'tooltip':_0x2e93fc(this[_0x10b3fa(0x145)],_0x10b3fa(0x15a)),'tooltipPosition':'n','class':_0x10b3fa(0x144)}),_0xc90b2a;}[_0xe54e6f(0x172)](){const _0x44c2f8=_0xe54e6f,_0x3acf37=new _0x1a285e(this[_0x44c2f8(0x145)],_0x540d29);return _0x3acf37[_0x44c2f8(0x141)]({'label':_0x2e93fc(this[_0x44c2f8(0x145)],_0x44c2f8(0x17d)),'class':_0x44c2f8(0x181)}),_0x3acf37[_0x44c2f8(0x163)][_0x44c2f8(0x141)]({'placeholder':_0x2e93fc(this[_0x44c2f8(0x145)],_0x44c2f8(0x143))}),_0x3acf37;}[_0xe54e6f(0x16b)](){const _0x412243=_0xe54e6f,_0x3cbe34=new _0x24112e(this[_0x412243(0x145)]);return _0x3cbe34[_0x412243(0x141)]({'icon':_0xe37954,'tooltip':_0x2e93fc(this[_0x412243(0x145)],_0x412243(0x165)),'tooltipPosition':'n','class':_0x412243(0x15f),'type':_0x412243(0x152),'isEnabled':!0x1}),_0x3cbe34;}[_0xe54e6f(0x151)](){const _0x4adfc8=_0xe54e6f,_0x2aa536=new _0xec18a3(this[_0x4adfc8(0x145)],{'label':_0x2e93fc(this[_0x4adfc8(0x145)],_0x4adfc8(0x165)),'class':_0x4adfc8(0x157)});_0x2aa536[_0x4adfc8(0x16a)][_0x4adfc8(0x15d)](this[_0x4adfc8(0x176)],0x0),this[_0x4adfc8(0x148)]({'tag':_0x4adfc8(0x14b),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x2aa536,{'tag':_0x4adfc8(0x16f),'attributes':{'class':hh},'children':[this[_0x4adfc8(0x173)],this[_0x4adfc8(0x160)]]}]});}[_0xe54e6f(0x174)](){const _0x302a3e=_0xe54e6f;this[_0x302a3e(0x176)]['on'](_0x302a3e(0x14c),()=>{const _0x118fcc=_0x302a3e;this[_0x118fcc(0x161)](),this[_0x118fcc(0x186)](_0x118fcc(0x185));}),this[_0x302a3e(0x173)][_0x302a3e(0x163)]['on'](_0x302a3e(0x189),()=>{const _0x26be93=_0x302a3e;this[_0x26be93(0x14a)](),this[_0x26be93(0x16e)](),this[_0x26be93(0x186)](_0x26be93(0x156));}),this['on'](_0x302a3e(0x152),_0x3533dc=>{const _0x2b686e=_0x302a3e;_0x3533dc[_0x2b686e(0x168)](),this[_0x2b686e(0x183)]();});}[_0xe54e6f(0x15b)](){const _0x3327c4=_0xe54e6f;this[_0x3327c4(0x18a)][_0x3327c4(0x141)](_0x3327c4(0x164),(_0x1d336c,_0x47294e)=>{const _0x506f6d=_0x3327c4;this[_0x506f6d(0x161)](),this[_0x506f6d(0x186)](_0x506f6d(0x185)),_0x47294e();});}[_0xe54e6f(0x183)](){const _0x26243e=_0xe54e6f,_0x5269c9=this[_0x26243e(0x154)]()[_0x26243e(0x153)]();_0x5269c9?this[_0x26243e(0x178)](_0x5269c9)?(this[_0x26243e(0x14a)](),this[_0x26243e(0x186)](_0x26243e(0x142),_0x5269c9)):this[_0x26243e(0x146)](_0x2e93fc(this[_0x26243e(0x145)],_0x26243e(0x14f))):this[_0x26243e(0x146)](_0x2e93fc(this[_0x26243e(0x145)],_0x26243e(0x15c)));}[_0xe54e6f(0x16e)](){const _0x5e5082=_0xe54e6f,_0x41d381=this[_0x5e5082(0x154)]()[_0x5e5082(0x153)](),_0x55cf4e=!!this[_0x5e5082(0x173)][_0x5e5082(0x15e)];this[_0x5e5082(0x160)][_0x5e5082(0x149)]=_0x41d381[_0x5e5082(0x171)]>0x0&&!_0x55cf4e;}[_0xe54e6f(0x178)](_0x15f93c){try{return!!new URL(_0x15f93c);}catch{return!0x1;}}}function _0x3054(){const _0x18ce92=['focusCycler','stop','9WJRWxk','children','_createConfirmButton','_createBackButton','listenTo','_updateConfirmButtonState','div','tab','length','_createUrlInputField','urlInputField','_setupEventHandlers','290201qgdxVy','backButton','focusTracker','_isValidUrl','3LMHxUL','destroy','ck-ai-chat-context-controls__url-input-section','render','AI_CHAT_CONTEXT_URL_LABEL','focus','228308PENBGw','element','ck-labeled-field-view_empty','40VSfliF','_handleSubmit','ck-ai-chat-context-controls__url-form','cancel','fire','492034ENMTlO','shift+tab','input','keystrokes','set','submitUrl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','ck-button-icon\x20ck-button-back','locale','setError','_focusables','setTemplate','isEnabled','clearError','form','execute','value','2445470NemSsG','AI_CHAT_CONTEXT_URL_INVALID_ERROR','forEach','_setupTemplate','submit','trim','getValue','11848jKfohP','refreshBalloon','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','createCollection','2540681bjJBct','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_setupKeystrokes','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','add','errorText','ck-button-icon','confirmButton','clear','1642494KozFuX','fieldView','esc','AI_CHAT_CONTEXT_URL_ADD_URL','2513KaZbEW'];_0x3054=function(){return _0x18ce92;};return _0x3054();}
23
+ function _0x4ea7(_0x4b65dc,_0xa4c639){const _0x3978c9=_0x3978();return _0x4ea7=function(_0x4ea76c,_0x51f6d0){_0x4ea76c=_0x4ea76c-0x157;let _0x5d2c47=_0x3978c9[_0x4ea76c];return _0x5d2c47;},_0x4ea7(_0x4b65dc,_0xa4c639);}function _0x3978(){const _0x3d1b97=['execute','length','set','destroy','children','_createBackButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','focusTracker','div','isEnabled','keystrokes','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','listenTo','submitUrl','shift+tab','forEach','value','AI_CHAT_CONTEXT_URL_ADD_URL','ck-button-icon','21zaKhOm','ck-button-icon\x20ck-button-back','clearError','_createConfirmButton','_setupKeystrokes','656LOMCTx','_setupTemplate','focus','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','esc','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','clear','5630090MTZJFp','setError','focusCycler','createCollection','trim','input','refreshBalloon','_createUrlInputField','locale','ck-labeled-field-view_empty','8674605rkVyMq','_setupEventHandlers','138012yQQJvr','_updateConfirmButtonState','add','2414664lNkOHv','stop','backButton','_handleSubmit','1277417CaXvmr','ck-ai-chat-context-controls__url-form','tab','fieldView','form','AI_CHAT_CONTEXT_URL_INVALID_ERROR','99uglQlt','getValue','render','errorText','_isValidUrl','setTemplate','submit','1006928LgXXjD','_focusables','fire','cancel','ck-ai-chat-context-controls__url-input-section','6833178RaEaYm','element','confirmButton','AI_CHAT_CONTEXT_URL_LABEL','urlInputField'];_0x3978=function(){return _0x3d1b97;};return _0x3978();}const _0x5ef798=_0x4ea7;(function(_0x2c75af,_0x250db5){const _0x358a53=_0x4ea7,_0x2e53fb=_0x2c75af();while(!![]){try{const _0x344b7e=-parseInt(_0x358a53(0x185))/0x1+-parseInt(_0x358a53(0x181))/0x2+parseInt(_0x358a53(0x166))/0x3*(parseInt(_0x358a53(0x192))/0x4)+-parseInt(_0x358a53(0x17c))/0x5+-parseInt(_0x358a53(0x197))/0x6+parseInt(_0x358a53(0x17e))/0x7*(-parseInt(_0x358a53(0x16b))/0x8)+-parseInt(_0x358a53(0x18b))/0x9*(-parseInt(_0x358a53(0x172))/0xa);if(_0x344b7e===_0x250db5)break;else _0x2e53fb['push'](_0x2e53fb['shift']());}catch(_0xcbd67d){_0x2e53fb['push'](_0x2e53fb['shift']());}}}(_0x3978,0xef40a));import{FocusTracker as _0x1a7fbb,KeystrokeHandler as _0x59a5e9}from'ckeditor5/src/utils.js';import{ButtonView as _0x4585e3,FocusCycler as _0x2984e9,LabeledFieldView as _0x14d684,View as _0x10aab1,FormHeaderView as _0x586608,createLabeledInputText as _0x50a4df,submitHandler as _0x34da7c}from'ckeditor5/src/ui.js';import{IconCheck as _0x31e6bb,IconPreviousArrow as _0x61039c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1e9914}from'../../../aicore/utils/common-translations.js';const rh=_0x5ef798(0x186),oh=_0x5ef798(0x196);export class AIChatContextPanelUrlInputView extends _0x10aab1{[_0x5ef798(0x15a)];[_0x5ef798(0x15d)];[_0x5ef798(0x193)];[_0x5ef798(0x174)];[_0x5ef798(0x19b)];[_0x5ef798(0x183)];[_0x5ef798(0x199)];constructor(_0x10fffa){const _0x1e738c=_0x5ef798;super(_0x10fffa),this[_0x1e738c(0x15a)]=new _0x1a7fbb(),this[_0x1e738c(0x15d)]=new _0x59a5e9(),this[_0x1e738c(0x183)]=this[_0x1e738c(0x158)](),this[_0x1e738c(0x19b)]=this[_0x1e738c(0x179)](),this[_0x1e738c(0x199)]=this[_0x1e738c(0x169)](),this[_0x1e738c(0x193)]=this[_0x1e738c(0x175)]([this[_0x1e738c(0x183)],this[_0x1e738c(0x19b)],this[_0x1e738c(0x199)]]),this[_0x1e738c(0x174)]=new _0x2984e9({'focusables':this[_0x1e738c(0x193)],'focusTracker':this[_0x1e738c(0x15a)],'keystrokeHandler':this[_0x1e738c(0x15d)],'actions':{'focusPrevious':_0x1e738c(0x161),'focusNext':_0x1e738c(0x187)}}),this[_0x1e738c(0x16c)](),this[_0x1e738c(0x17d)](),this[_0x1e738c(0x16a)]();}[_0x5ef798(0x18d)](){const _0x3fff24=_0x5ef798;super[_0x3fff24(0x18d)](),this[_0x3fff24(0x193)][_0x3fff24(0x162)](_0x37764e=>{const _0x111ce0=_0x3fff24;this[_0x111ce0(0x15a)][_0x111ce0(0x180)](_0x37764e[_0x111ce0(0x198)]),this[_0x111ce0(0x15d)][_0x111ce0(0x15f)](_0x37764e[_0x111ce0(0x198)]);}),_0x34da7c({'view':this}),this[_0x3fff24(0x16d)]();}[_0x5ef798(0x19f)](){const _0x2459ee=_0x5ef798;super[_0x2459ee(0x19f)](),this[_0x2459ee(0x15a)][_0x2459ee(0x19f)](),this[_0x2459ee(0x15d)][_0x2459ee(0x19f)]();}[_0x5ef798(0x16d)](){const _0x4ebc10=_0x5ef798;this[_0x4ebc10(0x19b)][_0x4ebc10(0x16d)]();}[_0x5ef798(0x18c)](){const _0x2977d0=_0x5ef798;return this[_0x2977d0(0x19b)][_0x2977d0(0x188)][_0x2977d0(0x198)]?.[_0x2977d0(0x163)]?.[_0x2977d0(0x176)]()||'';}[_0x5ef798(0x171)](){const _0x1b4258=_0x5ef798;this[_0x1b4258(0x19b)][_0x1b4258(0x188)][_0x1b4258(0x198)][_0x1b4258(0x163)]='',this[_0x1b4258(0x19b)][_0x1b4258(0x18e)]=null,this[_0x1b4258(0x199)][_0x1b4258(0x15c)]=!0x1;}[_0x5ef798(0x173)](_0x4c426f){const _0x56badd=_0x5ef798;this[_0x56badd(0x19b)][_0x56badd(0x18e)]=_0x4c426f,this[_0x56badd(0x17f)](),this[_0x56badd(0x194)](_0x56badd(0x178));}[_0x5ef798(0x168)](){const _0x4142a3=_0x5ef798;this[_0x4142a3(0x19b)][_0x4142a3(0x18e)]=null,this[_0x4142a3(0x17f)]();}[_0x5ef798(0x158)](){const _0x117c16=_0x5ef798,_0x1072a7=new _0x4585e3(this[_0x117c16(0x17a)]);return _0x1072a7[_0x117c16(0x19e)]({'icon':_0x61039c,'tooltip':_0x1e9914(this[_0x117c16(0x17a)],_0x117c16(0x16e)),'tooltipPosition':'n','class':_0x117c16(0x167)}),_0x1072a7;}[_0x5ef798(0x179)](){const _0x113e97=_0x5ef798,_0x527d44=new _0x14d684(this[_0x113e97(0x17a)],_0x50a4df);return _0x527d44[_0x113e97(0x19e)]({'label':_0x1e9914(this[_0x113e97(0x17a)],_0x113e97(0x19a)),'class':_0x113e97(0x17b)}),_0x527d44[_0x113e97(0x188)][_0x113e97(0x19e)]({'placeholder':_0x1e9914(this[_0x113e97(0x17a)],_0x113e97(0x159))}),_0x527d44;}[_0x5ef798(0x169)](){const _0x59583e=_0x5ef798,_0x4588cf=new _0x4585e3(this[_0x59583e(0x17a)]);return _0x4588cf[_0x59583e(0x19e)]({'icon':_0x31e6bb,'tooltip':_0x1e9914(this[_0x59583e(0x17a)],_0x59583e(0x164)),'tooltipPosition':'n','class':_0x59583e(0x165),'type':_0x59583e(0x191),'isEnabled':!0x1}),_0x4588cf;}[_0x5ef798(0x16c)](){const _0x5c55b7=_0x5ef798,_0x2e89a0=new _0x586608(this[_0x5c55b7(0x17a)],{'label':_0x1e9914(this[_0x5c55b7(0x17a)],_0x5c55b7(0x164)),'class':_0x5c55b7(0x170)});_0x2e89a0[_0x5c55b7(0x157)][_0x5c55b7(0x180)](this[_0x5c55b7(0x183)],0x0),this[_0x5c55b7(0x190)]({'tag':_0x5c55b7(0x189),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x2e89a0,{'tag':_0x5c55b7(0x15b),'attributes':{'class':oh},'children':[this[_0x5c55b7(0x19b)],this[_0x5c55b7(0x199)]]}]});}[_0x5ef798(0x17d)](){const _0x2ec42c=_0x5ef798;this[_0x2ec42c(0x183)]['on'](_0x2ec42c(0x19c),()=>{const _0x114617=_0x2ec42c;this[_0x114617(0x171)](),this[_0x114617(0x194)](_0x114617(0x195));}),this[_0x2ec42c(0x19b)][_0x2ec42c(0x188)]['on'](_0x2ec42c(0x177),()=>{const _0x5b8849=_0x2ec42c;this[_0x5b8849(0x168)](),this[_0x5b8849(0x17f)](),this[_0x5b8849(0x194)](_0x5b8849(0x178));}),this['on'](_0x2ec42c(0x191),_0x3603db=>{const _0x18f8bc=_0x2ec42c;_0x3603db[_0x18f8bc(0x182)](),this[_0x18f8bc(0x184)]();});}[_0x5ef798(0x16a)](){const _0x5f4e67=_0x5ef798;this[_0x5f4e67(0x15d)][_0x5f4e67(0x19e)](_0x5f4e67(0x16f),(_0x45b602,_0x392dec)=>{const _0xff82c4=_0x5f4e67;this[_0xff82c4(0x171)](),this[_0xff82c4(0x194)](_0xff82c4(0x195)),_0x392dec();});}[_0x5ef798(0x184)](){const _0x32a828=_0x5ef798,_0x1bb57c=this[_0x32a828(0x18c)]()[_0x32a828(0x176)]();_0x1bb57c?this[_0x32a828(0x18f)](_0x1bb57c)?(this[_0x32a828(0x168)](),this[_0x32a828(0x194)](_0x32a828(0x160),_0x1bb57c)):this[_0x32a828(0x173)](_0x1e9914(this[_0x32a828(0x17a)],_0x32a828(0x18a))):this[_0x32a828(0x173)](_0x1e9914(this[_0x32a828(0x17a)],_0x32a828(0x15e)));}[_0x5ef798(0x17f)](){const _0x5511c1=_0x5ef798,_0xba2775=this[_0x5511c1(0x18c)]()[_0x5511c1(0x176)](),_0x4edb40=!!this[_0x5511c1(0x19b)][_0x5511c1(0x18e)];this[_0x5511c1(0x199)][_0x5511c1(0x15c)]=_0xba2775[_0x5511c1(0x19d)]>0x0&&!_0x4edb40;}[_0x5ef798(0x18f)](_0xf27b7c){try{return!!new URL(_0xf27b7c);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x84dda9=_0x389d;(function(_0x246b87,_0x39c574){const _0x3e2e3a=_0x389d,_0x4a3caa=_0x246b87();while(!![]){try{const _0x20e755=-parseInt(_0x3e2e3a(0x1b8))/0x1+-parseInt(_0x3e2e3a(0x1a9))/0x2*(parseInt(_0x3e2e3a(0x1dd))/0x3)+-parseInt(_0x3e2e3a(0x1b2))/0x4*(parseInt(_0x3e2e3a(0x1e9))/0x5)+parseInt(_0x3e2e3a(0x1cb))/0x6*(parseInt(_0x3e2e3a(0x16d))/0x7)+-parseInt(_0x3e2e3a(0x183))/0x8*(-parseInt(_0x3e2e3a(0x1a3))/0x9)+-parseInt(_0x3e2e3a(0x1f9))/0xa*(-parseInt(_0x3e2e3a(0x1b5))/0xb)+parseInt(_0x3e2e3a(0x1a4))/0xc;if(_0x20e755===_0x39c574)break;else _0x4a3caa['push'](_0x4a3caa['shift']());}catch(_0x5ccd9b){_0x4a3caa['push'](_0x4a3caa['shift']());}}}(_0x3dc8,0xeb4f6));function _0x389d(_0x309092,_0x19e0ad){const _0x3dc8ae=_0x3dc8();return _0x389d=function(_0x389d2b,_0x2dbe71){_0x389d2b=_0x389d2b-0x169;let _0x3cf4d2=_0x3dc8ae[_0x389d2b];return _0x3cf4d2;},_0x389d(_0x309092,_0x19e0ad);}import{BalloonPanelView as _0x5af0aa,ButtonView as _0x455f47,clickOutsideHandler as _0x525405,FileDialogButtonView as _0x32df22,IconView as _0x435def,View as _0x58153e}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3b078c,IconDocument as _0x2ae25e,IconDocumentOutline as _0x41aa6f,IconDropdownArrow as _0x3ede3c,IconLink as _0x3f96c8,IconPaperClip as _0x31a6df}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x7a8c6a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x22cb32}from'./aichatcontextpanelurlinputview.js';function _0x3dc8(){const _0x521cd0=['566106ZzMOhM','buttonView','southArrowNorthEast','loadSourceResources','AI_CHAT_CONTEXT_URL_LABEL','_overflowManager','label','sources','_setAddContextButtonEnabled','setContextItemLoading','element','setContainerElement','clearConversationContextItems','_currentContextsChips','clearCurrentContextItems','_conversationContextsChips','showSourceResourcesBalloon','execute','31449nPxouW','updateResourceState','isAnyResourceBalloonVisible','hideUrlBalloonPanel','find','ck-ai-chat-context-controls__add-context-balloon-panel','northArrowSouthEast','refreshBalloon','files','fire','render','_removeContextFromCollection','5rXfZwp','clear','ck-ai-chat-context-controls__url-balloon-panel','showAddContextBalloonPanel','_resourcesBalloonView','_getLimiterElement','_toggleAddContextBalloon','_setupAllBalloonClickOutsideHandlers','locale','_createArrowView','addContextButtonView','setConversationContext','ck-ai-chat-context-controls__show-more-balloon-panel','reorganizeChips','bind','type','10pepkah','addFileToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls__balloon-button','_createContextButton','133nQxKGe','addResourceToContext','body','extendTemplate','icon','ck-ai-chat-controls-button','submitUrl','northArrowSouth','_handleUrlSubmit','addContextItem','_urlInputView','hide','ck-ai-chat-context-controls__balloon-button-source','AI_CHAT_CONTEXT_FILE_LABEL','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','closest','balloonView','current','_setupAddContextBalloonClickOutsideHandler','_createBalloonButton','_setupTemplate','closeSourceResourceBalloon','8XUNwPR','document','menuitem','setAddContextOptions','isVisible','isEnabled','_bindEventHandlers','_createAddContextButtonView','children','defaultPositions','urls','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','__arrow','enabled','add','southArrowNorthWest','isLoading','remove','showUrlBalloonPanel','_createAddContextBalloonPanelView','northArrowSouthWest','bodyCollection','tooltip','set','_createResourcesBalloonView','_addContextToCollection','source','addUrlToContext','removeContextItemChip','isReadOnly','_createBaseBalloonPanel','3474045HsuNNJ','5215284jKTfeH','setTemplate','ck-ai-chat-controls_context_show-more-button','_urlBalloonPanelView','conversation','282VrDsQF','hideAddContextBalloonPanel','_addUrlContent','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-context-controls','ck-ai-chat-context-controls__pending-contexts','populateSourceResourceBalloon','isHidden','ck-ai-chat','418728gTqrjo','createCollection','ck-ai-chat-context-chips-wrapper-balloon','19905325hzZaAK','_setupUrlBalloonClickOutsideHandler','div','1876241lRiDff','removeContextItem','done','isOn','show','_createUrlBalloonPanelView','arrowView','destroy','_setBalloonPanelContent','_handleAddContextButtonClick','cancel','southArrowNorth','content','focus','pin','overflowChips','_addContextBalloonConfig','ck-reset_all-excluded','_addContextBalloonPanelView'];_0x3dc8=function(){return _0x521cd0;};return _0x3dc8();}import{AIChatChipsOverflowManager as _0x47f623}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4ffe96}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2085ee}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x84dda9(0x18e),_0x84dda9(0x169),_0x84dda9(0x19f),_0x84dda9(0x16e),_0x84dda9(0x1b9),_0x84dda9(0x1ce)];const bo=_0x84dda9(0x1ad),To=_0x84dda9(0x1ae),Ao=_0x84dda9(0x1e2),ko=_0x84dda9(0x18f),Eo=_0x84dda9(0x1eb),vo=_0x84dda9(0x16b),go=_0x84dda9(0x179),Vo=_0x84dda9(0x172),fo=_0x84dda9(0x1b4),Io=_0x84dda9(0x1a6),Po=_0x84dda9(0x1f5),Ro=_0x84dda9(0x1b1),So=[_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x198)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x174)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1e3)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x193)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1c3)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1cd)]];export class AIChatContextPanelView extends _0x58153e{[_0x84dda9(0x1f3)];[_0x84dda9(0x1d8)]=this[_0x84dda9(0x1b3)]();[_0x84dda9(0x1da)]=this[_0x84dda9(0x1b3)]();[_0x84dda9(0x1d0)];[_0x84dda9(0x1ca)];[_0x84dda9(0x1a7)];[_0x84dda9(0x177)];[_0x84dda9(0x1ed)];[_0x84dda9(0x1c8)];[_0x84dda9(0x199)];constructor(_0x27078c,_0x423fea){const _0x54d317=_0x84dda9;super(_0x27078c),this[_0x54d317(0x199)]=_0x423fea,this[_0x54d317(0x1d8)]=this[_0x54d317(0x1b3)](),this[_0x54d317(0x1da)]=this[_0x54d317(0x1b3)](),this[_0x54d317(0x1f3)]=this[_0x54d317(0x18a)](_0x27078c),this[_0x54d317(0x1ca)]=this[_0x54d317(0x197)](_0x27078c),this[_0x54d317(0x1a7)]=this[_0x54d317(0x1bd)](_0x27078c),this[_0x54d317(0x1ed)]=this[_0x54d317(0x19c)](_0x27078c,_0x423fea);const _0x27b6b6={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x54d317(0x1d0)]=new _0x47f623(_0x27078c,this[_0x54d317(0x1d8)],_0x27b6b6,this[_0x54d317(0x199)],this),this[_0x54d317(0x1c8)]={'buttonView':this[_0x54d317(0x1f3)],'balloonView':this[_0x54d317(0x1ca)],'hideMethod':this[_0x54d317(0x1aa)][_0x54d317(0x1f7)](this),'showMethod':this[_0x54d317(0x1ec)][_0x54d317(0x1f7)](this)},this[_0x54d317(0x181)](),this[_0x54d317(0x189)]();}[_0x84dda9(0x1e7)](){const _0x3c0694=_0x84dda9;super[_0x3c0694(0x1e7)](),this[_0x3c0694(0x1f0)](),this[_0x3c0694(0x1d0)][_0x3c0694(0x1d6)](this[_0x3c0694(0x1d5)]),this[_0x3c0694(0x1d0)][_0x3c0694(0x1f6)]();}[_0x84dda9(0x1bf)](){const _0x30d3e8=_0x84dda9;super[_0x30d3e8(0x1bf)](),this[_0x30d3e8(0x1d0)][_0x30d3e8(0x1bf)](),this[_0x30d3e8(0x1ed)][_0x30d3e8(0x1bf)]();}[_0x84dda9(0x176)](_0x1a5290,_0x61847b){const _0x20b057=_0x84dda9,_0xc9f4f1=this[_0x20b057(0x16c)](_0x1a5290,_0x20b057(0x17e),!0x0,_0x61847b);this[_0x20b057(0x19d)](_0xc9f4f1,this[_0x20b057(0x1d8)]),this[_0x20b057(0x1d0)][_0x20b057(0x1f6)]();}[_0x84dda9(0x1b9)](_0x252243){const _0x1363c6=_0x84dda9;this[_0x1363c6(0x1e8)](_0x252243,this[_0x1363c6(0x1d8)]),this[_0x1363c6(0x1e8)](_0x252243,this[_0x1363c6(0x1d0)][_0x1363c6(0x1c7)]),this[_0x1363c6(0x1d0)][_0x1363c6(0x1f6)]();}[_0x84dda9(0x1d4)](_0xbde7e9,_0x5cfd60){const _0x4eae89=_0x84dda9;let _0x29f430=this[_0x4eae89(0x1d8)][_0x4eae89(0x1e1)](_0x291a36=>_0x291a36['id']===_0xbde7e9);_0x29f430||(_0x29f430=this[_0x4eae89(0x1d0)][_0x4eae89(0x1c7)][_0x4eae89(0x1e1)](_0x2aae8f=>_0x2aae8f['id']===_0xbde7e9)),_0x29f430&&(_0x29f430[_0x4eae89(0x194)]=_0x5cfd60);}[_0x84dda9(0x1f4)](_0x41f502){const _0x9e11b1=_0x84dda9;this[_0x9e11b1(0x1da)][_0x9e11b1(0x1ea)]();for(const _0x54e031 of _0x41f502){const _0x40f52a=this[_0x9e11b1(0x16c)](_0x54e031,_0x9e11b1(0x1a8),!0x1,!0x1);this[_0x9e11b1(0x19d)](_0x40f52a,this[_0x9e11b1(0x1da)]);}}[_0x84dda9(0x1d9)](){const _0x21b4a7=_0x84dda9;this[_0x21b4a7(0x1d8)][_0x21b4a7(0x1ea)](),this[_0x21b4a7(0x1d0)][_0x21b4a7(0x1ea)]();}[_0x84dda9(0x1d7)](){const _0x287499=_0x84dda9;this[_0x287499(0x1da)][_0x287499(0x1ea)]();}[_0x84dda9(0x1de)](_0x4ec77b,_0x16d296,_0x57a90c){const _0xe08db4=_0x84dda9;this[_0xe08db4(0x1ed)][_0xe08db4(0x1de)](_0x4ec77b,_0x16d296,_0x57a90c);}[_0x84dda9(0x1aa)](){const _0x15d679=_0x84dda9;this[_0x15d679(0x1ef)](!0x1);}[_0x84dda9(0x1ec)](){const _0x5e6657=_0x84dda9;this[_0x5e6657(0x1ef)](!0x0);}[_0x84dda9(0x1e0)](){const _0x2ef6a7=_0x84dda9;this[_0x2ef6a7(0x1a7)][_0x2ef6a7(0x178)](),this[_0x2ef6a7(0x1f3)][_0x2ef6a7(0x1bb)]=!0x1,this[_0x2ef6a7(0x177)]&&this[_0x2ef6a7(0x177)][_0x2ef6a7(0x1ea)]();}[_0x84dda9(0x196)](){const _0x4f2f8a=_0x84dda9;this[_0x4f2f8a(0x1a7)][_0x4f2f8a(0x1bc)](),this[_0x4f2f8a(0x1f3)][_0x4f2f8a(0x1bb)]=!0x0;}[_0x84dda9(0x16a)](_0x49bd92){const _0x279f60=_0x84dda9;this[_0x279f60(0x1ed)][_0x279f60(0x1db)](_0x49bd92),this[_0x279f60(0x1f3)][_0x279f60(0x1bb)]=!0x0;}[_0x84dda9(0x1af)](_0x598058,_0x43376d,_0x32323c,_0xc185f6){const _0x3fcb60=_0x84dda9;this[_0x3fcb60(0x1ed)][_0x3fcb60(0x1af)](_0x598058,_0x32323c,_0xc185f6);}[_0x84dda9(0x182)](_0x35c4f9){const _0x222d8d=_0x84dda9;this[_0x222d8d(0x1ed)][_0x222d8d(0x182)](_0x35c4f9),this[_0x222d8d(0x1f3)][_0x222d8d(0x1bb)]=!0x1;}[_0x84dda9(0x186)](_0x108e4c){const _0x154623=_0x84dda9;this[_0x154623(0x1c0)](this[_0x154623(0x1ca)],this[_0x154623(0x1f1)],_0x108e4c),this[_0x154623(0x1d3)](_0x108e4c);}[_0x84dda9(0x1d3)](_0x4fda12){const _0x433c5c=_0x84dda9,_0xc67d79=!_0x4fda12[_0x433c5c(0x184)][_0x433c5c(0x1b0)]&&_0x4fda12[_0x433c5c(0x184)][_0x433c5c(0x191)],_0x475c71=_0x4fda12[_0x433c5c(0x18d)][_0x433c5c(0x191)],_0x49ed4c=_0x4fda12[_0x433c5c(0x1e5)][_0x433c5c(0x191)];this[_0x433c5c(0x1f3)][_0x433c5c(0x188)]=_0xc67d79||_0x475c71||_0x49ed4c;}[_0x84dda9(0x181)](){const _0x4a7f3e=_0x84dda9;this[_0x4a7f3e(0x1a5)]({'tag':_0x4a7f3e(0x1b7),'attributes':{'class':[bo,_0x4a7f3e(0x1c9)]},'children':[{'tag':_0x4a7f3e(0x1b7),'attributes':{'class':To},'children':this[_0x4a7f3e(0x1d8)]}]});}[_0x84dda9(0x189)](){const _0x15854a=_0x84dda9;this[_0x15854a(0x1f3)]['on'](_0x15854a(0x1dc),()=>{const _0x44f1e8=_0x15854a;this[_0x44f1e8(0x1c1)]();});}[_0x84dda9(0x18a)](_0x8c5cce){const _0x883ea2=_0x84dda9,_0x353e58=new _0x455f47(_0x8c5cce);return _0x353e58[_0x883ea2(0x19b)]({'label':_0x4ffe96(_0x8c5cce,_0x883ea2(0x1ac)),'class':Vo+'\x20'+ko,'icon':_0x31a6df,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x353e58;}[_0x84dda9(0x197)](_0x435700){const _0x447587=_0x84dda9;return this[_0x447587(0x1a2)](_0x435700,Ao);}[_0x84dda9(0x1bd)](_0x272fac){const _0x186d20=_0x84dda9,_0x5e4488=this[_0x186d20(0x1a2)](_0x272fac,Eo);return this[_0x186d20(0x1ab)](_0x5e4488,_0x272fac),_0x5e4488;}[_0x84dda9(0x19c)](_0x14153c,_0x1543aa){const _0x168909=_0x84dda9;return new _0x2085ee(_0x14153c,_0x1543aa,{'onBackToContext':()=>{const _0x30c472=_0x389d;this[_0x30c472(0x1ec)](),this[_0x30c472(0x1ca)][_0x30c472(0x1c6)]({'target':this[_0x30c472(0x1f3)][_0x30c472(0x1d5)],'limiter':this[_0x30c472(0x1ee)](),'positions':So});},'onResourceSelected':(_0x31b3fc,_0x518aea)=>{const _0x384476=_0x389d;this[_0x384476(0x1e6)](_0x384476(0x16e),{'source':_0x31b3fc,'resource':_0x518aea});},'onLoadSourceResources':_0x29523d=>{const _0x10ec79=_0x389d;this[_0x10ec79(0x1e6)](_0x10ec79(0x1ce),_0x29523d);},'onBalloonClosed':()=>{const _0x100ef9=_0x389d;this[_0x100ef9(0x1f3)][_0x100ef9(0x1bb)]=!0x1;},'getLimiterElement':()=>this[_0x168909(0x1ee)](),'getTargetElement':()=>this[_0x168909(0x1f3)][_0x168909(0x1d5)]});}[_0x84dda9(0x1ee)](){const _0x152546=_0x84dda9;return this[_0x152546(0x1d5)]?.[_0x152546(0x17c)]('.'+Ro)||document[_0x152546(0x16f)];}[_0x84dda9(0x1a2)](_0x3c0e0d,_0x5d5f5a){const _0x71be5=_0x84dda9,_0x9875a0=new _0x5af0aa(_0x3c0e0d);return _0x9875a0[_0x71be5(0x170)]({'attributes':{'class':_0x5d5f5a}}),this[_0x71be5(0x199)][_0x71be5(0x192)](_0x9875a0),_0x9875a0;}[_0x84dda9(0x1c0)](_0x3438e8,_0x599501,_0x28a81f){const _0x5cc0dd=_0x84dda9;if(_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x1ea)](),!_0x28a81f[_0x5cc0dd(0x184)][_0x5cc0dd(0x1b0)]&&_0x28a81f[_0x5cc0dd(0x184)][_0x5cc0dd(0x191)]){const _0x3a8602=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x17b)),'icon':_0x2ae25e});_0x3a8602['on'](_0x5cc0dd(0x1dc),()=>{const _0x551500=_0x5cc0dd;this[_0x551500(0x1e6)](_0x551500(0x18e)),this[_0x551500(0x1aa)]();}),_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x3a8602);}if(_0x28a81f[_0x5cc0dd(0x18d)][_0x5cc0dd(0x191)]){const _0xeb2c9f=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x1cf)),'icon':_0x3f96c8});_0xeb2c9f['on'](_0x5cc0dd(0x1dc),()=>{const _0x21f753=_0x5cc0dd;this[_0x21f753(0x1aa)](),this[_0x21f753(0x196)](),this[_0x21f753(0x1a7)][_0x21f753(0x1c6)]({'target':this[_0x21f753(0x1f3)][_0x21f753(0x1d5)],'limiter':this[_0x21f753(0x1ee)](),'positions':So}),this[_0x21f753(0x177)][_0x21f753(0x1c5)]();}),_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0xeb2c9f);}if(_0x28a81f[_0x5cc0dd(0x1e5)][_0x5cc0dd(0x191)]){const _0x10a096=new _0x32df22(_0x599501);_0x10a096[_0x5cc0dd(0x19b)]({'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x17a)),'icon':_0x3b078c,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x10a096['on'](_0x5cc0dd(0x1ba),(_0x5d63a4,_0x43b841)=>{const _0x50a78b=_0x5cc0dd;this[_0x50a78b(0x1e6)](_0x50a78b(0x169),_0x43b841),this[_0x50a78b(0x1aa)]();}),_0x10a096[_0x5cc0dd(0x19a)]=!0x0,_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x10a096);}for(const _0x52a62c of _0x28a81f[_0x5cc0dd(0x1d2)]){const _0x489c5=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x52a62c[_0x5cc0dd(0x1d1)],'icon':_0x52a62c[_0x5cc0dd(0x171)]||_0x41aa6f,'type':_0x5cc0dd(0x19e)});_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x489c5),_0x489c5['on'](_0x5cc0dd(0x1dc),()=>{const _0x3004e7=_0x5cc0dd;this[_0x3004e7(0x1aa)](),this[_0x3004e7(0x16a)](_0x52a62c);});}}[_0x84dda9(0x1ab)](_0x52f1fd,_0x3ba454){const _0xbf0af2=_0x84dda9;this[_0xbf0af2(0x177)]=new _0x22cb32(_0x3ba454),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x173),(_0x1e21cd,_0x3f844e)=>{const _0x24e459=_0xbf0af2;this[_0x24e459(0x175)](_0x3f844e);}),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x1c2),()=>{const _0x5b0de9=_0xbf0af2;this[_0x5b0de9(0x1e0)](),this[_0x5b0de9(0x1ec)](),this[_0x5b0de9(0x1ca)][_0x5b0de9(0x1c6)]({'target':this[_0x5b0de9(0x1f3)][_0x5b0de9(0x1d5)],'limiter':this[_0x5b0de9(0x1ee)](),'positions':So});}),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x1e4),()=>{const _0x1f0222=_0xbf0af2;this[_0x1f0222(0x1a7)][_0x1f0222(0x187)]&&this[_0x1f0222(0x1a7)][_0x1f0222(0x1c6)]({'target':this[_0x1f0222(0x1f3)][_0x1f0222(0x1d5)],'limiter':this[_0x1f0222(0x1ee)](),'positions':So});}),_0x52f1fd[_0xbf0af2(0x1c4)][_0xbf0af2(0x192)](this[_0xbf0af2(0x177)]);}[_0x84dda9(0x180)](_0xb4bb8f,_0xa505ac){const _0x95a5e4=_0x84dda9,_0x475a17=_0x95a5e4(0x19e)===_0xa505ac[_0x95a5e4(0x1f8)]?new SourcesBalloonButtonView(_0xb4bb8f):new _0x455f47(_0xb4bb8f);return _0x475a17[_0x95a5e4(0x19b)]({'label':_0xa505ac[_0x95a5e4(0x1d1)],'icon':_0xa505ac[_0x95a5e4(0x171)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x475a17;}[_0x84dda9(0x1f0)](){const _0x58b311=_0x84dda9;this[_0x58b311(0x17f)](),this[_0x58b311(0x1b6)]();}[_0x84dda9(0x1b6)](){const _0x22b652=_0x84dda9;_0x525405({'emitter':this[_0x22b652(0x1a7)],'contextElements':[this[_0x22b652(0x1a7)][_0x22b652(0x1d5)]],'callback':()=>{const _0x9e45b9=_0x22b652;this[_0x9e45b9(0x1e0)]();},'activator':()=>this[_0x22b652(0x1a7)][_0x22b652(0x187)]});}[_0x84dda9(0x1ef)](_0x2a0443){const _0x51149c=_0x84dda9,_0x435444=this[_0x51149c(0x1c8)];_0x435444[_0x51149c(0x1cc)][_0x51149c(0x1bb)]=_0x2a0443,_0x2a0443?_0x435444[_0x51149c(0x17d)][_0x51149c(0x1bc)]():_0x435444[_0x51149c(0x17d)][_0x51149c(0x178)]();}[_0x84dda9(0x17f)](){const _0x40a7f8=_0x84dda9,{balloonView:_0x1538a7,buttonView:_0xfef65c,hideMethod:_0x83463f}=this[_0x40a7f8(0x1c8)];_0x525405({'emitter':_0x1538a7,'contextElements':[_0x1538a7[_0x40a7f8(0x1d5)],_0xfef65c[_0x40a7f8(0x1d5)]],'callback':()=>{_0x83463f();},'activator':()=>_0xfef65c[_0x40a7f8(0x1bb)]&&!this[_0x40a7f8(0x1a7)][_0x40a7f8(0x187)]&&!this[_0x40a7f8(0x1ed)][_0x40a7f8(0x1df)]()});}[_0x84dda9(0x16c)](_0x8e107,_0x4a3cab,_0x31b697=!0x1,_0x51b4bc=!0x1){const _0x408fc3=_0x84dda9,_0x2655f9=_0x408fc3(0x1a8)===_0x4a3cab||!0x0===_0x8e107[_0x408fc3(0x1a1)],_0x43192f=new _0x7a8c6a(this[_0x408fc3(0x1f1)],_0x8e107,_0x2655f9,_0x31b697,_0x51b4bc);return _0x2655f9||_0x43192f['on'](_0x408fc3(0x1a0),()=>{const _0x57ad88=_0x408fc3;this[_0x57ad88(0x1e6)](_0x57ad88(0x1b9),_0x43192f['id']);}),_0x43192f;}[_0x84dda9(0x19d)](_0x30940f,_0x1f02df){const _0x5b0706=_0x84dda9;_0x1f02df[_0x5b0706(0x192)](_0x30940f,0x0);}[_0x84dda9(0x1e8)](_0x5bdd1a,_0x356c0b){const _0x262708=_0x84dda9,_0x1ed083=_0x356c0b[_0x262708(0x1e1)](_0x5e1df7=>_0x5e1df7['id']===_0x5bdd1a);_0x1ed083&&_0x356c0b[_0x262708(0x195)](_0x1ed083);}[_0x84dda9(0x1c1)](){const _0xe20e09=_0x84dda9;this[_0xe20e09(0x1f3)][_0xe20e09(0x1bb)]?this[_0xe20e09(0x1aa)]():(this[_0xe20e09(0x1ec)](),this[_0xe20e09(0x1ca)][_0xe20e09(0x1c6)]({'target':this[_0xe20e09(0x1f3)][_0xe20e09(0x1d5)],'limiter':this[_0xe20e09(0x1ee)](),'positions':So}));}[_0x84dda9(0x175)](_0x497943){const _0x1fc20b=_0x84dda9;this[_0x1fc20b(0x177)][_0x1fc20b(0x1ea)](),this[_0x1fc20b(0x1e0)](),this[_0x1fc20b(0x1e6)](_0x1fc20b(0x19f),_0x497943);}}export class SourcesBalloonButtonView extends _0x455f47{[_0x84dda9(0x1be)];constructor(_0xdec8bc){const _0x5676fa=_0x84dda9;super(_0xdec8bc),this[_0x5676fa(0x19b)]({'withText':!0x0,'role':_0x5676fa(0x185)}),this[_0x5676fa(0x1be)]=this[_0x5676fa(0x1f2)](),this[_0x5676fa(0x170)]({'attributes':{'class':[go]}});}[_0x84dda9(0x1e7)](){const _0x52f0c7=_0x84dda9;super[_0x52f0c7(0x1e7)](),this[_0x52f0c7(0x18b)][_0x52f0c7(0x192)](this[_0x52f0c7(0x1be)]);}[_0x84dda9(0x1f2)](){const _0x341aeb=_0x84dda9,_0x378998=new _0x435def();return _0x378998[_0x341aeb(0x1c4)]=_0x3ede3c,_0x378998[_0x341aeb(0x170)]({'attributes':{'class':go+_0x341aeb(0x190)}}),_0x378998;}}
23
+ const _0x15f2a2=_0x148d;(function(_0x264ac4,_0x5eb158){const _0x4ae073=_0x148d,_0x3e049e=_0x264ac4();while(!![]){try{const _0x55e29f=parseInt(_0x4ae073(0x103))/0x1*(-parseInt(_0x4ae073(0x7e))/0x2)+-parseInt(_0x4ae073(0xc1))/0x3*(parseInt(_0x4ae073(0xbd))/0x4)+-parseInt(_0x4ae073(0x94))/0x5+-parseInt(_0x4ae073(0xb8))/0x6*(parseInt(_0x4ae073(0x91))/0x7)+-parseInt(_0x4ae073(0xf7))/0x8+-parseInt(_0x4ae073(0xa8))/0x9+-parseInt(_0x4ae073(0xdf))/0xa*(-parseInt(_0x4ae073(0x8c))/0xb);if(_0x55e29f===_0x5eb158)break;else _0x3e049e['push'](_0x3e049e['shift']());}catch(_0x1ac0ba){_0x3e049e['push'](_0x3e049e['shift']());}}}(_0x50ce,0xeff07));import{BalloonPanelView as _0x59c6a5,ButtonView as _0x5af781,clickOutsideHandler as _0x245e77,FileDialogButtonView as _0x342ac6,IconView as _0x17fc9a,View as _0x32674c}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x5a5878,IconDocument as _0x410a4e,IconDocumentOutline as _0x1c3ead,IconDropdownArrow as _0x297e58,IconLink as _0x317191,IconPaperClip as _0x2ebee7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x23c1a8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x33610c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xb28182}from'./aichatchipsoverflowmanager.js';function _0x50ce(){const _0x4960eb=['AI_CHAT_CONTEXT_ADD_CONTEXT','urls','children','tooltip','content','10OyUQxG','ck-ai-chat-controls_context_show-more-button','_resourcesBalloonView','_removeContextFromCollection','clearConversationContextItems','ck-ai-chat-context-controls__balloon-button','execute','showUrlBalloonPanel','southArrowNorth','element','buttonView','overflowChips','_showSourceResourcesBalloon','find','9167246XttdZV','isReadOnly','showAddContextBalloonPanel','current','ck-ai-chat-context-controls__add-context-button','13986hiRRay','_urlInputView','arrowView','2054680VthCjK','northArrowSouthEast','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-chips-wrapper-balloon','_createArrowView','destroy','_setAddContextButtonEnabled','enabled','balloonView','removeContextItem','populateSourceResourceBalloon','northArrowSouth','label','_createAddContextBalloonPanelView','_handleAddContextButtonClick','document','removeContextItemChip','_createBalloonButton','_handleUrlSubmit','updateResourceState','4941396iCkBAr','createCollection','files','setContextItemLoading','closest','closeSourceResourceBalloon','ck-ai-chat-context-controls__url-balloon-panel','set','__arrow','_urlBalloonPanelView','defaultPositions','icon','show','ck-ai-chat','_overflowManager','refreshBalloon','4494RtIGGO','isHidden','sources','ck-ai-chat-context-controls','_setupTemplate','348KNUndr','loadSourceResources','northArrowSouthWest','isAnyResourceBalloonVisible','5571JLnduF','_conversationContextsChips','setAddContextOptions','render','type','isEnabled','body','_addUrlContent','addContextButtonView','ck-ai-chat-context-controls__add-context-balloon-panel','_bindEventHandlers','addDocumentToContext','_createContextButton','_setupUrlBalloonClickOutsideHandler','_createResourcesBalloonView','_addContextBalloonPanelView','pin','focus','fire','hide','addUrlToContext','_createUrlBalloonPanelView','submitUrl','_toggleAddContextBalloon','ck-reset_all-excluded','southArrowNorthWest','setTemplate','menuitem','reorganizeChips','hideAddContextBalloonPanel','70AHEzmF','locale','bind','extendTemplate','addFileToContext','div','_addContextToCollection','ck-ai-chat-controls-button','ck-ai-chat-context-controls__balloon-button-source','cancel','ck-ai-chat-context-controls__pending-contexts','setConversationContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createBaseBalloonPanel','clearCurrentContextItems','done','ck-ai-chat-context-controls__show-more-balloon-panel','remove','AI_CHAT_CONTEXT_FILE_LABEL','source','isOn','add','_addContextBalloonConfig','addContextItem','10497720ZujhaU','_currentContextsChips','_setupAllBalloonClickOutsideHandlers','isLoading','conversation','_getLimiterElement','_createAddContextButtonView','hideUrlBalloonPanel','bodyCollection','isVisible','addResourceToContext','AI_CHAT_CONTEXT_URL_LABEL','184131FXlYcM','showSourceResourcesBalloon','setContainerElement','clear','_setBalloonPanelContent','southArrowNorthEast'];_0x50ce=function(){return _0x4960eb;};return _0x50ce();}import{getTranslation as _0x1ad7b8}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x28db72}from'./resources/aichatresourcesballoonview.js';function _0x148d(_0x4092be,_0x399563){const _0x50cec=_0x50ce();return _0x148d=function(_0x148d95,_0x2ca270){_0x148d95=_0x148d95-0x76;let _0x4c29bf=_0x50cec[_0x148d95];return _0x4c29bf;},_0x148d(_0x4092be,_0x399563);}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x15f2a2(0xcc),_0x15f2a2(0xe3),_0x15f2a2(0xd5),_0x15f2a2(0x101),_0x15f2a2(0x9d),_0x15f2a2(0xbe)];const vo=_0x15f2a2(0xbb),go=_0x15f2a2(0xe9),Vo=_0x15f2a2(0xca),fo=_0x15f2a2(0x90),Io=_0x15f2a2(0xae),Po=_0x15f2a2(0x83),Ro=_0x15f2a2(0xe7),uo=_0x15f2a2(0xe6),So=_0x15f2a2(0x97),xo=_0x15f2a2(0x7f),mo=_0x15f2a2(0xef),Uo=_0x15f2a2(0xb5),Lo=[_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0xbf)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x9f)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x95)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0xda)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x86)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x78)]];export class AIChatContextPanelView extends _0x32674c{[_0x15f2a2(0xc9)];[_0x15f2a2(0xf8)]=this[_0x15f2a2(0xa9)]();[_0x15f2a2(0xc2)]=this[_0x15f2a2(0xa9)]();[_0x15f2a2(0xb6)];[_0x15f2a2(0xd0)];[_0x15f2a2(0xb1)];[_0x15f2a2(0x92)];[_0x15f2a2(0x80)];[_0x15f2a2(0xf5)];[_0x15f2a2(0xff)];constructor(_0x4ad397,_0x42e16b){const _0x5518f2=_0x15f2a2;super(_0x4ad397),this[_0x5518f2(0xff)]=_0x42e16b,this[_0x5518f2(0xf8)]=this[_0x5518f2(0xa9)](),this[_0x5518f2(0xc2)]=this[_0x5518f2(0xa9)](),this[_0x5518f2(0xc9)]=this[_0x5518f2(0xfd)](_0x4ad397),this[_0x5518f2(0xd0)]=this[_0x5518f2(0xa1)](_0x4ad397),this[_0x5518f2(0xb1)]=this[_0x5518f2(0xd6)](_0x4ad397),this[_0x5518f2(0x80)]=this[_0x5518f2(0xcf)](_0x4ad397,_0x42e16b);const _0x32602d={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':So,'controlsButton':uo}};this[_0x5518f2(0xb6)]=new _0xb28182(_0x4ad397,this[_0x5518f2(0xf8)],_0x32602d,this[_0x5518f2(0xff)],this),this[_0x5518f2(0xf5)]={'buttonView':this[_0x5518f2(0xc9)],'balloonView':this[_0x5518f2(0xd0)],'hideMethod':this[_0x5518f2(0xde)][_0x5518f2(0xe1)](this),'showMethod':this[_0x5518f2(0x8e)][_0x5518f2(0xe1)](this)},this[_0x5518f2(0xbc)](),this[_0x5518f2(0xcb)]();}[_0x15f2a2(0xc4)](){const _0x3c7191=_0x15f2a2;super[_0x3c7191(0xc4)](),this[_0x3c7191(0xf9)](),this[_0x3c7191(0xb6)][_0x3c7191(0x105)](this[_0x3c7191(0x87)]),this[_0x3c7191(0xb6)][_0x3c7191(0xdd)]();}[_0x15f2a2(0x99)](){const _0x32c9fa=_0x15f2a2;super[_0x32c9fa(0x99)](),this[_0x32c9fa(0xb6)][_0x32c9fa(0x99)](),this[_0x32c9fa(0x80)][_0x32c9fa(0x99)]();}[_0x15f2a2(0xf6)](_0x3ddb8c,_0x53054f){const _0x24a1d6=_0x15f2a2,_0x264e21=this[_0x24a1d6(0xcd)](_0x3ddb8c,_0x24a1d6(0x8f),!0x0,_0x53054f);this[_0x24a1d6(0xe5)](_0x264e21,this[_0x24a1d6(0xf8)]),this[_0x24a1d6(0xb6)][_0x24a1d6(0xdd)]();}[_0x15f2a2(0x9d)](_0x4e1d8){const _0x39e213=_0x15f2a2;this[_0x39e213(0x81)](_0x4e1d8,this[_0x39e213(0xf8)]),this[_0x39e213(0x81)](_0x4e1d8,this[_0x39e213(0xb6)][_0x39e213(0x89)]),this[_0x39e213(0xb6)][_0x39e213(0xdd)]();}[_0x15f2a2(0xab)](_0x2bb628,_0x29024d){const _0x186e06=_0x15f2a2;let _0x335ff5=this[_0x186e06(0xf8)][_0x186e06(0x8b)](_0x17d124=>_0x17d124['id']===_0x2bb628);_0x335ff5||(_0x335ff5=this[_0x186e06(0xb6)][_0x186e06(0x89)][_0x186e06(0x8b)](_0x64db18=>_0x64db18['id']===_0x2bb628)),_0x335ff5&&(_0x335ff5[_0x186e06(0xfa)]=_0x29024d);}[_0x15f2a2(0xea)](_0x2aadf5){const _0x3554f8=_0x15f2a2;this[_0x3554f8(0xc2)][_0x3554f8(0x76)]();for(const _0x33d24f of _0x2aadf5){const _0x32e79b=this[_0x3554f8(0xcd)](_0x33d24f,_0x3554f8(0xfb),!0x1,!0x1);this[_0x3554f8(0xe5)](_0x32e79b,this[_0x3554f8(0xc2)]);}}[_0x15f2a2(0xed)](){const _0x3d4649=_0x15f2a2;this[_0x3d4649(0xf8)][_0x3d4649(0x76)](),this[_0x3d4649(0xb6)][_0x3d4649(0x76)]();}[_0x15f2a2(0x82)](){const _0x2c299f=_0x15f2a2;this[_0x2c299f(0xc2)][_0x2c299f(0x76)]();}[_0x15f2a2(0xa7)](_0x5c8d5d,_0x3f5bdd,_0x40d52c){const _0x5ea233=_0x15f2a2;this[_0x5ea233(0x80)][_0x5ea233(0xa7)](_0x5c8d5d,_0x3f5bdd,_0x40d52c);}[_0x15f2a2(0xde)](){const _0x5644cc=_0x15f2a2;this[_0x5644cc(0xd8)](!0x1);}[_0x15f2a2(0x8e)](){const _0x4c1c6a=_0x15f2a2;this[_0x4c1c6a(0xd8)](!0x0);}[_0x15f2a2(0xfe)](){const _0x191970=_0x15f2a2;this[_0x191970(0xb1)][_0x191970(0xd4)](),this[_0x191970(0xc9)][_0x191970(0xf3)]=!0x1,this[_0x191970(0x92)]&&this[_0x191970(0x92)][_0x191970(0x76)]();}[_0x15f2a2(0x85)](){const _0x3289be=_0x15f2a2;this[_0x3289be(0xb1)][_0x3289be(0xb4)](),this[_0x3289be(0xc9)][_0x3289be(0xf3)]=!0x0;}[_0x15f2a2(0x8a)](_0x47e135){const _0x2a1ce3=_0x15f2a2;this[_0x2a1ce3(0x80)][_0x2a1ce3(0x104)](_0x47e135),this[_0x2a1ce3(0xc9)][_0x2a1ce3(0xf3)]=!0x0;}[_0x15f2a2(0x9e)](_0x596287,_0x13ad08,_0x1793aa,_0x4348db){const _0x393334=_0x15f2a2;this[_0x393334(0x80)][_0x393334(0x9e)](_0x596287,_0x1793aa,_0x4348db);}[_0x15f2a2(0xad)](_0x548664){const _0x538732=_0x15f2a2;this[_0x538732(0x80)][_0x538732(0xad)](_0x548664),this[_0x538732(0xc9)][_0x538732(0xf3)]=!0x1;}[_0x15f2a2(0xc3)](_0x3c9652){const _0x74aaca=_0x15f2a2;this[_0x74aaca(0x77)](this[_0x74aaca(0xd0)],this[_0x74aaca(0xe0)],_0x3c9652),this[_0x74aaca(0x9a)](_0x3c9652);}[_0x15f2a2(0x9a)](_0x2a87f3){const _0xd0ff46=_0x15f2a2,_0x413598=!_0x2a87f3[_0xd0ff46(0xa3)][_0xd0ff46(0xb9)]&&_0x2a87f3[_0xd0ff46(0xa3)][_0xd0ff46(0x9b)],_0x3ad2c3=_0x2a87f3[_0xd0ff46(0x7a)][_0xd0ff46(0x9b)],_0x3cc9f0=_0x2a87f3[_0xd0ff46(0xaa)][_0xd0ff46(0x9b)];this[_0xd0ff46(0xc9)][_0xd0ff46(0xc6)]=_0x413598||_0x3ad2c3||_0x3cc9f0;}[_0x15f2a2(0xbc)](){const _0x17a02e=_0x15f2a2;this[_0x17a02e(0xdb)]({'tag':_0x17a02e(0xe4),'attributes':{'class':[vo,_0x17a02e(0xd9)]},'children':[{'tag':_0x17a02e(0xe4),'attributes':{'class':go},'children':this[_0x17a02e(0xf8)]}]});}[_0x15f2a2(0xcb)](){const _0xcd7779=_0x15f2a2;this[_0xcd7779(0xc9)]['on'](_0xcd7779(0x84),()=>{const _0x16995a=_0xcd7779;this[_0x16995a(0xa2)]();});}[_0x15f2a2(0xfd)](_0x4348fc){const _0x4c066a=_0x15f2a2,_0x19e354=new _0x5af781(_0x4348fc);return _0x19e354[_0x4c066a(0xaf)]({'label':_0x1ad7b8(_0x4348fc,_0x4c066a(0x79)),'class':uo+'\x20'+fo,'icon':_0x2ebee7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x19e354;}[_0x15f2a2(0xa1)](_0xcabd25){const _0x5161aa=_0x15f2a2;return this[_0x5161aa(0xec)](_0xcabd25,Vo);}[_0x15f2a2(0xd6)](_0x26f613){const _0x272e53=_0x15f2a2,_0x137279=this[_0x272e53(0xec)](_0x26f613,Io);return this[_0x272e53(0xc8)](_0x137279,_0x26f613),_0x137279;}[_0x15f2a2(0xcf)](_0x7bd77b,_0x151f35){const _0x5bba66=_0x15f2a2;return new _0x28db72(_0x7bd77b,_0x151f35,{'onBackToContext':()=>{const _0x278e74=_0x148d;this[_0x278e74(0x8e)](),this[_0x278e74(0xd0)][_0x278e74(0xd1)]({'target':this[_0x278e74(0xc9)][_0x278e74(0x87)],'limiter':this[_0x278e74(0xfc)](),'positions':Lo});},'onResourceSelected':(_0x41edc8,_0x53d61c)=>{const _0x36fe8d=_0x148d;this[_0x36fe8d(0xd3)](_0x36fe8d(0x101),{'source':_0x41edc8,'resource':_0x53d61c});},'onLoadSourceResources':_0x372a9a=>{const _0x48b876=_0x148d;this[_0x48b876(0xd3)](_0x48b876(0xbe),_0x372a9a);},'onBalloonClosed':()=>{const _0x39076a=_0x148d;this[_0x39076a(0xc9)][_0x39076a(0xf3)]=!0x1;},'getLimiterElement':()=>this[_0x5bba66(0xfc)](),'getTargetElement':()=>this[_0x5bba66(0xc9)][_0x5bba66(0x87)]});}[_0x15f2a2(0xfc)](){const _0x200f91=_0x15f2a2;return this[_0x200f91(0x87)]?.[_0x200f91(0xac)]('.'+Uo)||document[_0x200f91(0xc7)];}[_0x15f2a2(0xec)](_0x40aedb,_0x4413b3){const _0xa4d77=_0x15f2a2,_0xefce88=new _0x59c6a5(_0x40aedb);return _0xefce88[_0xa4d77(0xe2)]({'attributes':{'class':_0x4413b3}}),this[_0xa4d77(0xff)][_0xa4d77(0xf4)](_0xefce88),_0xefce88;}[_0x15f2a2(0x77)](_0x539e8b,_0x556f7a,_0x170938){const _0x9ea024=_0x15f2a2;if(_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0x76)](),!_0x170938[_0x9ea024(0xa3)][_0x9ea024(0xb9)]&&_0x170938[_0x9ea024(0xa3)][_0x9ea024(0x9b)]){const _0x2e23f8=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0xeb)),'icon':_0x410a4e});_0x2e23f8['on'](_0x9ea024(0x84),()=>{const _0xc73a47=_0x9ea024;this[_0xc73a47(0xd3)](_0xc73a47(0xcc)),this[_0xc73a47(0xde)]();}),_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x2e23f8);}if(_0x170938[_0x9ea024(0x7a)][_0x9ea024(0x9b)]){const _0x2002b5=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0x102)),'icon':_0x317191});_0x2002b5['on'](_0x9ea024(0x84),()=>{const _0x125413=_0x9ea024;this[_0x125413(0xde)](),this[_0x125413(0x85)](),this[_0x125413(0xb1)][_0x125413(0xd1)]({'target':this[_0x125413(0xc9)][_0x125413(0x87)],'limiter':this[_0x125413(0xfc)](),'positions':Lo}),this[_0x125413(0x92)][_0x125413(0xd2)]();}),_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x2002b5);}if(_0x170938[_0x9ea024(0xaa)][_0x9ea024(0x9b)]){const _0x46d366=new _0x342ac6(_0x556f7a);_0x46d366[_0x9ea024(0xaf)]({'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0xf1)),'icon':_0x5a5878,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x46d366['on'](_0x9ea024(0xee),(_0x2146d6,_0x229038)=>{const _0x50659a=_0x9ea024;this[_0x50659a(0xd3)](_0x50659a(0xe3),_0x229038),this[_0x50659a(0xde)]();}),_0x46d366[_0x9ea024(0x7c)]=!0x0,_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x46d366);}for(const _0xe9ec1 of _0x170938[_0x9ea024(0xba)]){const _0x229793=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0xe9ec1[_0x9ea024(0xa0)],'icon':_0xe9ec1[_0x9ea024(0xb3)]||_0x1c3ead,'type':_0x9ea024(0xf2)});_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x229793),_0x229793['on'](_0x9ea024(0x84),()=>{const _0x5768d8=_0x9ea024;this[_0x5768d8(0xde)](),this[_0x5768d8(0x8a)](_0xe9ec1);});}}[_0x15f2a2(0xc8)](_0x3b169c,_0x34019e){const _0x9283b1=_0x15f2a2;this[_0x9283b1(0x92)]=new _0x33610c(_0x34019e),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xd7),(_0x4e4be0,_0x38453c)=>{const _0x266ee1=_0x9283b1;this[_0x266ee1(0xa6)](_0x38453c);}),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xe8),()=>{const _0x401706=_0x9283b1;this[_0x401706(0xfe)](),this[_0x401706(0x8e)](),this[_0x401706(0xd0)][_0x401706(0xd1)]({'target':this[_0x401706(0xc9)][_0x401706(0x87)],'limiter':this[_0x401706(0xfc)](),'positions':Lo});}),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xb7),()=>{const _0x3e8773=_0x9283b1;this[_0x3e8773(0xb1)][_0x3e8773(0x100)]&&this[_0x3e8773(0xb1)][_0x3e8773(0xd1)]({'target':this[_0x3e8773(0xc9)][_0x3e8773(0x87)],'limiter':this[_0x3e8773(0xfc)](),'positions':Lo});}),_0x3b169c[_0x9283b1(0x7d)][_0x9283b1(0xf4)](this[_0x9283b1(0x92)]);}[_0x15f2a2(0xa5)](_0x229fa1,_0x5c1957){const _0x48d752=_0x15f2a2,_0x4511ca=_0x48d752(0xf2)===_0x5c1957[_0x48d752(0xc5)]?new SourcesBalloonButtonView(_0x229fa1):new _0x5af781(_0x229fa1);return _0x4511ca[_0x48d752(0xaf)]({'label':_0x5c1957[_0x48d752(0xa0)],'icon':_0x5c1957[_0x48d752(0xb3)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x4511ca;}[_0x15f2a2(0xf9)](){const _0x6eeaf=_0x15f2a2;this[_0x6eeaf(0x96)](),this[_0x6eeaf(0xce)]();}[_0x15f2a2(0xce)](){const _0x143289=_0x15f2a2;_0x245e77({'emitter':this[_0x143289(0xb1)],'contextElements':[this[_0x143289(0xb1)][_0x143289(0x87)]],'callback':()=>{const _0x33b1a3=_0x143289;this[_0x33b1a3(0xfe)]();},'activator':()=>this[_0x143289(0xb1)][_0x143289(0x100)]});}[_0x15f2a2(0xd8)](_0x224dc6){const _0x3fc971=_0x15f2a2,_0x5a1b12=this[_0x3fc971(0xf5)];_0x5a1b12[_0x3fc971(0x88)][_0x3fc971(0xf3)]=_0x224dc6,_0x224dc6?_0x5a1b12[_0x3fc971(0x9c)][_0x3fc971(0xb4)]():_0x5a1b12[_0x3fc971(0x9c)][_0x3fc971(0xd4)]();}[_0x15f2a2(0x96)](){const _0x441631=_0x15f2a2,{balloonView:_0x33825b,buttonView:_0x391658,hideMethod:_0x192882}=this[_0x441631(0xf5)];_0x245e77({'emitter':_0x33825b,'contextElements':[_0x33825b[_0x441631(0x87)],_0x391658[_0x441631(0x87)]],'callback':()=>{_0x192882();},'activator':()=>_0x391658[_0x441631(0xf3)]&&!this[_0x441631(0xb1)][_0x441631(0x100)]&&!this[_0x441631(0x80)][_0x441631(0xc0)]()});}[_0x15f2a2(0xcd)](_0x3cff13,_0x24b6ec,_0xea3699=!0x1,_0x2a42c4=!0x1){const _0x3975b1=_0x15f2a2,_0x3cc04d=_0x3975b1(0xfb)===_0x24b6ec||!0x0===_0x3cff13[_0x3975b1(0x8d)],_0x4848ba=new _0x23c1a8(this[_0x3975b1(0xe0)],_0x3cff13,_0x3cc04d,_0xea3699,_0x2a42c4);return _0x3cc04d||_0x4848ba['on'](_0x3975b1(0xa4),()=>{const _0x5a9555=_0x3975b1;this[_0x5a9555(0xd3)](_0x5a9555(0x9d),_0x4848ba['id']);}),_0x4848ba;}[_0x15f2a2(0xe5)](_0xe6b779,_0x3261c7){const _0x221c67=_0x15f2a2;_0x3261c7[_0x221c67(0xf4)](_0xe6b779,0x0);}[_0x15f2a2(0x81)](_0xc0b9a4,_0x299d8d){const _0xf2d37b=_0x15f2a2,_0x2561f3=_0x299d8d[_0xf2d37b(0x8b)](_0xb54317=>_0xb54317['id']===_0xc0b9a4);_0x2561f3&&_0x299d8d[_0xf2d37b(0xf0)](_0x2561f3);}[_0x15f2a2(0xa2)](){const _0x5b0f36=_0x15f2a2;this[_0x5b0f36(0xc9)][_0x5b0f36(0xf3)]?this[_0x5b0f36(0xde)]():(this[_0x5b0f36(0x8e)](),this[_0x5b0f36(0xd0)][_0x5b0f36(0xd1)]({'target':this[_0x5b0f36(0xc9)][_0x5b0f36(0x87)],'limiter':this[_0x5b0f36(0xfc)](),'positions':Lo}));}[_0x15f2a2(0xa6)](_0x1b2c4e){const _0x288d95=_0x15f2a2;this[_0x288d95(0x92)][_0x288d95(0x76)](),this[_0x288d95(0xfe)](),this[_0x288d95(0xd3)](_0x288d95(0xd5),_0x1b2c4e);}}export class SourcesBalloonButtonView extends _0x5af781{[_0x15f2a2(0x93)];constructor(_0x1482d3){const _0x302137=_0x15f2a2;super(_0x1482d3),this[_0x302137(0xaf)]({'withText':!0x0,'role':_0x302137(0xdc)}),this[_0x302137(0x93)]=this[_0x302137(0x98)](),this[_0x302137(0xe2)]({'attributes':{'class':[Ro]}});}[_0x15f2a2(0xc4)](){const _0x9e396f=_0x15f2a2;super[_0x9e396f(0xc4)](),this[_0x9e396f(0x7b)][_0x9e396f(0xf4)](this[_0x9e396f(0x93)]);}[_0x15f2a2(0x98)](){const _0x504e00=_0x15f2a2,_0x599528=new _0x17fc9a();return _0x599528[_0x504e00(0x7d)]=_0x297e58,_0x599528[_0x504e00(0xe2)]({'attributes':{'class':Ro+_0x504e00(0xb0)}}),_0x599528;}}