@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.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 (293) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aicore/aiconnector.js +1 -1
  221. package/src/aicore/aiediting.js +1 -1
  222. package/src/aicore/model/aicapabilities.js +1 -1
  223. package/src/aicore/model/aicontext.js +1 -1
  224. package/src/aicore/model/aiinteraction.js +1 -1
  225. package/src/aicore/model/aimodels.js +1 -1
  226. package/src/aicore/model/aireply.js +1 -1
  227. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  228. package/src/aicore/pipeline/airesponseparser.js +2 -2
  229. package/src/aicore/ui/aidisclaimerview.js +1 -1
  230. package/src/aicore/ui/aiskeleton.js +1 -1
  231. package/src/aicore/ui/aispinner.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  237. package/src/aicore/utils/common-translations.js +1 -1
  238. package/src/aicore/utils/createresizebutton.js +1 -1
  239. package/src/aicore/utils/documentposition.js +1 -1
  240. package/src/aicore/utils/documentrange.js +1 -1
  241. package/src/aicore/utils/eventnames.js +1 -1
  242. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  243. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  244. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  245. package/src/aicore/utils/htmlparser.js +1 -1
  246. package/src/aicore/utils/htmlstreamer.js +1 -1
  247. package/src/aicore/utils/scrollmanager.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  259. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  260. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  261. package/src/aireviewmode/aireviewmode.js +1 -1
  262. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  263. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  264. package/src/aireviewmode/aireviewmodeui.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  267. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  272. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  273. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  286. package/src/aitabs/aitabs.js +1 -1
  287. package/src/aitabs/aitabsmainview.js +1 -1
  288. package/src/aitabs/tabs/aitabsview.js +1 -1
  289. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  290. package/src/aitabs/tabs/tabpanelview.js +1 -1
  291. package/src/errors.js +1 -1
  292. package/src/errorsmap.js +1 -1
  293. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11cfdc=_0x3e3d;(function(_0x5c6965,_0x24e59b){const _0x54f152=_0x3e3d,_0x16ae01=_0x5c6965();while(!![]){try{const _0xc561ae=-parseInt(_0x54f152(0x222))/0x1+-parseInt(_0x54f152(0x226))/0x2*(-parseInt(_0x54f152(0x21a))/0x3)+-parseInt(_0x54f152(0x23b))/0x4*(-parseInt(_0x54f152(0x1fc))/0x5)+parseInt(_0x54f152(0x231))/0x6+-parseInt(_0x54f152(0x214))/0x7*(parseInt(_0x54f152(0x21d))/0x8)+parseInt(_0x54f152(0x206))/0x9*(parseInt(_0x54f152(0x1f5))/0xa)+parseInt(_0x54f152(0x23f))/0xb*(-parseInt(_0x54f152(0x234))/0xc);if(_0xc561ae===_0x24e59b)break;else _0x16ae01['push'](_0x16ae01['shift']());}catch(_0x2707f5){_0x16ae01['push'](_0x16ae01['shift']());}}}(_0x16db,0xced34));import{ButtonView as _0xd9109a,clickOutsideHandler as _0x2c66d8,View as _0x14eb0a}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x16040d}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x48a531}from'./controls/aichatpromptcapabilitiesview.js';function _0x3e3d(_0xa75c70,_0x3e9fb0){const _0x16db1e=_0x16db();return _0x3e3d=function(_0x3e3dc9,_0x63c7b1){_0x3e3dc9=_0x3e3dc9-0x1f0;let _0x1b0166=_0x16db1e[_0x3e3dc9];return _0x1b0166;},_0x3e3d(_0xa75c70,_0x3e9fb0);}import{AIChatContextPanelView as _0x55b026,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x2bbba8}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0xe4620c}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x565a30}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x14eb0a{[_0x11cfdc(0x23a)]=[];[_0x11cfdc(0x1fe)];[_0x11cfdc(0x236)];[_0x11cfdc(0x23d)];[_0x11cfdc(0x1f9)];[_0x11cfdc(0x217)];[_0x11cfdc(0x202)];constructor(_0x2e4f0d,_0x3e739c){const _0x46065e=_0x11cfdc;super(_0x2e4f0d),this[_0x46065e(0x1fe)]=this[_0x46065e(0x22a)](_0x2e4f0d,{'bodyCollection':_0x3e739c[_0x46065e(0x200)],'searchInputVisibleFrom':_0x3e739c[_0x46065e(0x215)]}),this[_0x46065e(0x236)]=this[_0x46065e(0x225)](_0x2e4f0d),this[_0x46065e(0x23d)]=this[_0x46065e(0x210)](_0x2e4f0d),this[_0x46065e(0x1f9)]=this[_0x46065e(0x216)](_0x2e4f0d),this[_0x46065e(0x217)]=this[_0x46065e(0x219)](_0x2e4f0d),this[_0x46065e(0x202)]=!0x1,this[_0x46065e(0x236)][_0x46065e(0x20e)](_0x46065e(0x212))['to'](this),this[_0x46065e(0x1f9)][_0x46065e(0x20e)](_0x46065e(0x213))['to'](this),this[_0x46065e(0x23d)][_0x46065e(0x20e)](_0x46065e(0x1f6))['to'](this),this[_0x46065e(0x23d)][_0x46065e(0x20e)](_0x46065e(0x22c))['to'](this),this[_0x46065e(0x23d)][_0x46065e(0x20e)](_0x46065e(0x233))['to'](this),this[_0x46065e(0x1fe)][_0x46065e(0x20e)](..._0x2bbba8)['to'](this),this[_0x46065e(0x218)](_0x46065e(0x238),!0x0),this[_0x46065e(0x218)](_0x46065e(0x20f),!0x1);const _0x36408b=this[_0x46065e(0x241)];this[_0x46065e(0x1ff)]({'tag':_0x46065e(0x203),'attributes':{'class':['ck',_0x46065e(0x20b),_0x36408b['if'](_0x46065e(0x20f),_0x46065e(0x22f))]},'children':[{'tag':_0x46065e(0x201),'attributes':{'class':[_0x36408b['if'](_0x46065e(0x239),_0x46065e(0x242),_0x4a798a=>_0x4a798a||!this[_0x46065e(0x238)]),_0x36408b['if'](_0x46065e(0x238),_0x46065e(0x242),_0x1aa932=>!_0x1aa932||this[_0x46065e(0x239)])]},'children':[this[_0x46065e(0x1fe)],this[_0x46065e(0x236)],this[_0x46065e(0x23d)]]},{'tag':_0x46065e(0x201),'attributes':{'class':[_0x36408b['if'](_0x46065e(0x239),_0x46065e(0x242),_0x4ff876=>!_0x4ff876)]},'children':[this[_0x46065e(0x1f9)]]},{'tag':_0x46065e(0x201),'attributes':{'class':[_0x36408b['if'](_0x46065e(0x238),_0x46065e(0x242),_0xaa0cea=>_0xaa0cea)]},'children':[this[_0x46065e(0x217)]]}]}),_0x2c66d8({'emitter':this[_0x46065e(0x236)],'activator':()=>this[_0x46065e(0x239)],'contextElements':()=>[this[_0x46065e(0x1f1)]],'callback':()=>{const _0x76163a=_0x46065e;this[_0x76163a(0x202)]=!0x1;}}),this['on'](_0x46065e(0x20d),this[_0x46065e(0x232)],{'priority':_0x46065e(0x1f0)});}[_0x11cfdc(0x22a)](_0x525e7f,_0x5a26ab){return new _0x55b026(_0x525e7f,_0x5a26ab);}[_0x11cfdc(0x225)](_0x558bab){const _0x5e0c70=_0x11cfdc;return new _0x16040d(_0x558bab,this[_0x5e0c70(0x1fe)][_0x5e0c70(0x23e)]);}[_0x11cfdc(0x210)](_0x581779){return new _0x48a531(_0x581779);}[_0x11cfdc(0x216)](_0x11dad1){return new _0xe4620c(_0x11dad1);}[_0x11cfdc(0x219)](_0x46aa36){const _0x4366f9=_0x11cfdc,_0x594066=new hs(_0x46aa36);return _0x594066[_0x4366f9(0x20e)](_0x4366f9(0x224))['to'](this),_0x594066;}[_0x11cfdc(0x232)](_0x31745e,_0x109d80,_0xf74295){const _0x23951d=_0x11cfdc;_0xf74295?this[_0x23951d(0x202)]=!0x0:this[_0x23951d(0x202)]&&this[_0x23951d(0x236)][_0x23951d(0x1f2)]();}[_0x11cfdc(0x1f8)](_0x5dbf5c,_0x323354){const _0x4ab135=_0x11cfdc;this[_0x4ab135(0x1fe)][_0x4ab135(0x1f8)](_0x5dbf5c,_0x323354);}[_0x11cfdc(0x21f)](_0x369e80){const _0x3cc19=_0x11cfdc;this[_0x3cc19(0x1fe)][_0x3cc19(0x21f)](_0x369e80);}[_0x11cfdc(0x229)](_0x3666e4,_0x47183a){const _0x479512=_0x11cfdc;this[_0x479512(0x1fe)][_0x479512(0x229)](_0x3666e4,_0x47183a);}[_0x11cfdc(0x21b)](_0x5b81bb){const _0x345305=_0x11cfdc;this[_0x345305(0x236)][_0x345305(0x21b)](_0x5b81bb);}[_0x11cfdc(0x221)](_0x1c9e08){const _0x487aa6=_0x11cfdc;this[_0x487aa6(0x1fe)][_0x487aa6(0x221)](_0x1c9e08);}[_0x11cfdc(0x230)](){const _0x5df757=_0x11cfdc;this[_0x5df757(0x1fe)][_0x5df757(0x20a)]();}[_0x11cfdc(0x237)](){const _0x104a9f=_0x11cfdc;this[_0x104a9f(0x1fe)][_0x104a9f(0x22b)]();}[_0x11cfdc(0x211)](_0x4f1a70,_0x51b00b,_0x1aebe6){const _0x2a8bcf=_0x11cfdc;this[_0x2a8bcf(0x1fe)][_0x2a8bcf(0x211)](_0x4f1a70,_0x51b00b,_0x1aebe6);}[_0x11cfdc(0x23c)](_0x83a90d){const _0x3ff433=_0x11cfdc;this[_0x3ff433(0x23d)][_0x3ff433(0x23c)](_0x83a90d);}[_0x11cfdc(0x207)](_0x24fa8a){const _0x27c336=_0x11cfdc;this[_0x27c336(0x23d)][_0x27c336(0x207)](_0x24fa8a);}[_0x11cfdc(0x223)](){const _0x1f5884=_0x11cfdc;this[_0x1f5884(0x236)][_0x1f5884(0x228)]();}[_0x11cfdc(0x21e)](_0x1d5e12){const _0xaff337=_0x11cfdc;this[_0xaff337(0x1fe)][_0xaff337(0x21e)](_0x1d5e12);}[_0x11cfdc(0x220)](_0x623d84){const _0x21b1bf=_0x11cfdc;this[_0x21b1bf(0x236)][_0x21b1bf(0x209)](_0x623d84);}[_0x11cfdc(0x205)](_0x52a623,_0x1f4b20){const _0x296ab6=_0x11cfdc;this[_0x296ab6(0x23a)]=_0x52a623,this[_0x296ab6(0x23d)][_0x296ab6(0x205)](_0x52a623,_0x1f4b20);}[_0x11cfdc(0x21c)](_0x4d39de){const _0x187784=_0x11cfdc;(_0x4d39de?this[_0x187784(0x23a)][_0x187784(0x1f4)](_0x6eaf78=>_0x6eaf78['id']===_0x4d39de['id']):null)?(this[_0x187784(0x238)]=!0x0,this[_0x187784(0x23d)][_0x187784(0x21c)](_0x4d39de)):_0x4d39de?.['id'][_0x187784(0x235)](_0x187784(0x22e))?(this[_0x187784(0x238)]=!0x0,this[_0x187784(0x23d)][_0x187784(0x21c)](this[_0x187784(0x23a)][0x0])):this[_0x187784(0x238)]=!0x1;}[_0x11cfdc(0x20c)](){const _0x2b6d93=_0x11cfdc;this[_0x2b6d93(0x23d)][_0x2b6d93(0x20c)]();}[_0x11cfdc(0x208)](_0x332926){const _0x22e652=_0x11cfdc;this[_0x22e652(0x23d)][_0x22e652(0x208)](_0x332926);}[_0x11cfdc(0x1f3)](_0x1d1ab4,_0x12a8c0,_0x52bc00,_0x5c9b34){const _0x34dbb1=_0x11cfdc;this[_0x34dbb1(0x1fe)][_0x34dbb1(0x1f3)](_0x1d1ab4,_0x12a8c0,_0x52bc00,_0x5c9b34);}[_0x11cfdc(0x1fd)](_0x3abf07){const _0x10270b=_0x11cfdc;this[_0x10270b(0x1fe)][_0x10270b(0x1fd)](_0x3abf07);}[_0x11cfdc(0x227)](){const _0x16b73=_0x11cfdc;this[_0x16b73(0x236)][_0x16b73(0x1f2)]();}}class hs extends _0x14eb0a{constructor(_0x510607){const _0x133ba3=_0x11cfdc;super(_0x510607);const _0xdd2b74=new _0xd9109a(_0x510607);_0xdd2b74[_0x133ba3(0x218)]({'label':_0x565a30(this[_0x133ba3(0x1f7)],_0x133ba3(0x204)),'withText':!0x0,'class':[_0x133ba3(0x1fb)],'tooltip':''}),_0xdd2b74[_0x133ba3(0x20e)](_0x133ba3(0x1fa))['to'](this,_0x133ba3(0x224)),this[_0x133ba3(0x1ff)]({'tag':_0x133ba3(0x201),'attributes':{'class':['ck',_0x133ba3(0x240)]},'children':[{'tag':'p','children':[{'text':_0x565a30(this[_0x133ba3(0x1f7)],_0x133ba3(0x22d))+'\x20'},_0xdd2b74]}]});}}function _0x16db(){const _0x10cf3c=['setPlaceholderText','clearCurrentContextItems','ck-ai-chat-controls','enableModelSelector','change:isLoading','delegate','isDisabled','_createPromptCapabilitiesView','updateResourceState','sendUserMessage','abortPromptStream','7RCiIqA','contextResourcesSearchInputVisibleFrom','_createLoaderView','_modelUnavailableMessageView','set','_createModelUnavailableMessageView','3zJKmqK','setIsUploadInProgress','setModel','8507736anaeIe','setAddContextOptions','removeContextItem','setInputPlaceholder','setConversationContext','28432tKveRb','resetMessageInput','startConversation','_createPromptInputView','3360082fgXkFW','focusPromptInput','reset','setContextItemLoading','_createContextPanelView','clearConversationContextItems','toggleReasoning','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','agent','ck-ai-chat-controls-disabled','clearPendingContextUI','9253740FrcXKY','_handlePromptInputFocus','selectModel','20838228FeKxDo','startsWith','_promptInputView','clearConversationContextUI','isModelAvailable','isLoading','_displayedModels','4qFumaR','setWebSearch','_promptCapabilitiesView','addContextButtonView','22MkJSHv','ck-ai-chat-controls-model-unavailable-message','bindTemplate','ck-hidden','low','element','focus','populateSourceResourceBalloon','find','15928210NilEpY','toggleWebSearch','locale','addContextItem','_loaderView','execute','ck-ai-chat-controls__start-new-chat-button','2984705iMmGDf','closeSourceResourceBalloon','_contextPanelView','setTemplate','bodyCollection','div','_shouldRestorePromptInputFocus','form','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setModelList','9QQsUKe','setReasoning','disableModelSelector'];_0x16db=function(){return _0x10cf3c;};return _0x16db();}
23
+ const _0x30fe85=_0x50e4;(function(_0x19966a,_0x21a84b){const _0x2cb883=_0x50e4,_0x80ff84=_0x19966a();while(!![]){try{const _0x17f17d=parseInt(_0x2cb883(0xd0))/0x1+parseInt(_0x2cb883(0xd9))/0x2*(-parseInt(_0x2cb883(0xb5))/0x3)+parseInt(_0x2cb883(0x96))/0x4+parseInt(_0x2cb883(0x90))/0x5*(parseInt(_0x2cb883(0xb6))/0x6)+-parseInt(_0x2cb883(0xc5))/0x7*(parseInt(_0x2cb883(0xc2))/0x8)+-parseInt(_0x2cb883(0x9b))/0x9*(-parseInt(_0x2cb883(0xd6))/0xa)+-parseInt(_0x2cb883(0xb4))/0xb;if(_0x17f17d===_0x21a84b)break;else _0x80ff84['push'](_0x80ff84['shift']());}catch(_0x2f8d96){_0x80ff84['push'](_0x80ff84['shift']());}}}(_0x4ed5,0x43e38));import{ButtonView as _0x5233a4,clickOutsideHandler as _0x5db31a,View as _0x4c1c6d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x54d4ad}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x52fa6f}from'./controls/aichatpromptcapabilitiesview.js';function _0x4ed5(){const _0x4be345=['low','toggleReasoning','startConversation','_createPromptCapabilitiesView','8893577eatdXN','3eUAZkJ','171954ynmjMA','selectModel','focus','resetMessageInput','ck-hidden','clearConversationContextItems','ck-ai-chat-controls__start-new-chat-button','_shouldRestorePromptInputFocus','setContextItemLoading','bodyCollection','setTemplate','isLoading','1388008fmpBYF','updateResourceState','setReasoning','7iXXtqa','_promptCapabilitiesView','form','enableModelSelector','startsWith','setWebSearch','execute','toggleWebSearch','sendUserMessage','setPlaceholderText','clearConversationContextUI','507747ZcYCmM','_createModelUnavailableMessageView','_createContextPanelView','addContextItem','setInputPlaceholder','reset','20690vxtQhH','element','_displayedModels','555692WuTgKs','change:isLoading','div','set','populateSourceResourceBalloon','_createPromptInputView','_handlePromptInputFocus','setAddContextOptions','_modelUnavailableMessageView','95DNbloo','setModelList','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','delegate','abortPromptStream','1851596flCwBh','ck-ai-chat-controls-model-unavailable-message','isDisabled','ck-ai-chat-controls-disabled','agent','99kkmmyG','isModelAvailable','clearCurrentContextItems','setConversationContext','setIsUploadInProgress','find','closeSourceResourceBalloon','removeContextItem','clearPendingContextUI','contextResourcesSearchInputVisibleFrom','addContextButtonView','disableModelSelector','setModel','_contextPanelView','_createLoaderView','_promptInputView','_loaderView','ck-ai-chat-controls','focusPromptInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','locale'];_0x4ed5=function(){return _0x4be345;};return _0x4ed5();}import{AIChatContextPanelView as _0x1fb689,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x251d49}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2b5585}from'./controls/aichatcontrolsloaderview.js';function _0x50e4(_0x2ae07c,_0x504b11){const _0x4ed505=_0x4ed5();return _0x50e4=function(_0x50e48f,_0xecc28f){_0x50e48f=_0x50e48f-0x8b;let _0x2d9b15=_0x4ed505[_0x50e48f];return _0x2d9b15;},_0x50e4(_0x2ae07c,_0x504b11);}import{getTranslation as _0x1bf560}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x4c1c6d{[_0x30fe85(0xd8)]=[];[_0x30fe85(0xa8)];[_0x30fe85(0xaa)];[_0x30fe85(0xc6)];[_0x30fe85(0xab)];[_0x30fe85(0x8f)];[_0x30fe85(0xbd)];constructor(_0x544a60,_0x5d4a7b){const _0x84189=_0x30fe85;super(_0x544a60),this[_0x84189(0xa8)]=this[_0x84189(0xd2)](_0x544a60,{'bodyCollection':_0x5d4a7b[_0x84189(0xbf)],'searchInputVisibleFrom':_0x5d4a7b[_0x84189(0xa4)]}),this[_0x84189(0xaa)]=this[_0x84189(0x8c)](_0x544a60),this[_0x84189(0xc6)]=this[_0x84189(0xb3)](_0x544a60),this[_0x84189(0xab)]=this[_0x84189(0xa9)](_0x544a60),this[_0x84189(0x8f)]=this[_0x84189(0xd1)](_0x544a60),this[_0x84189(0xbd)]=!0x1,this[_0x84189(0xaa)][_0x84189(0x94)](_0x84189(0xcd))['to'](this),this[_0x84189(0xab)][_0x84189(0x94)](_0x84189(0x95))['to'](this),this[_0x84189(0xc6)][_0x84189(0x94)](_0x84189(0xcc))['to'](this),this[_0x84189(0xc6)][_0x84189(0x94)](_0x84189(0xb1))['to'](this),this[_0x84189(0xc6)][_0x84189(0x94)](_0x84189(0xb7))['to'](this),this[_0x84189(0xa8)][_0x84189(0x94)](..._0x251d49)['to'](this),this[_0x84189(0xdc)](_0x84189(0x9c),!0x0),this[_0x84189(0xdc)](_0x84189(0x98),!0x1);const _0x7efd0d=this[_0x84189(0x92)];this[_0x84189(0xc0)]({'tag':_0x84189(0xc7),'attributes':{'class':['ck',_0x84189(0xac),_0x7efd0d['if'](_0x84189(0x98),_0x84189(0x99))]},'children':[{'tag':_0x84189(0xdb),'attributes':{'class':[_0x7efd0d['if'](_0x84189(0xc1),_0x84189(0xba),_0x56dc8f=>_0x56dc8f||!this[_0x84189(0x9c)]),_0x7efd0d['if'](_0x84189(0x9c),_0x84189(0xba),_0x44b785=>!_0x44b785||this[_0x84189(0xc1)])]},'children':[this[_0x84189(0xa8)],this[_0x84189(0xaa)],this[_0x84189(0xc6)]]},{'tag':_0x84189(0xdb),'attributes':{'class':[_0x7efd0d['if'](_0x84189(0xc1),_0x84189(0xba),_0x207049=>!_0x207049)]},'children':[this[_0x84189(0xab)]]},{'tag':_0x84189(0xdb),'attributes':{'class':[_0x7efd0d['if'](_0x84189(0x9c),_0x84189(0xba),_0x341a58=>_0x341a58)]},'children':[this[_0x84189(0x8f)]]}]}),_0x5db31a({'emitter':this[_0x84189(0xaa)],'activator':()=>this[_0x84189(0xc1)],'contextElements':()=>[this[_0x84189(0xd7)]],'callback':()=>{const _0x543982=_0x84189;this[_0x543982(0xbd)]=!0x1;}}),this['on'](_0x84189(0xda),this[_0x84189(0x8d)],{'priority':_0x84189(0xb0)});}[_0x30fe85(0xd2)](_0x57328b,_0x5e5d50){return new _0x1fb689(_0x57328b,_0x5e5d50);}[_0x30fe85(0x8c)](_0x5ae00c){const _0x2517d1=_0x30fe85;return new _0x54d4ad(_0x5ae00c,this[_0x2517d1(0xa8)][_0x2517d1(0xa5)]);}[_0x30fe85(0xb3)](_0x59ae0b){return new _0x52fa6f(_0x59ae0b);}[_0x30fe85(0xa9)](_0x2269ab){return new _0x2b5585(_0x2269ab);}[_0x30fe85(0xd1)](_0x40f322){const _0x2a29ec=_0x30fe85,_0x599576=new _s(_0x40f322);return _0x599576[_0x2a29ec(0x94)](_0x2a29ec(0xb2))['to'](this),_0x599576;}[_0x30fe85(0x8d)](_0x509d8d,_0x63910c,_0x58a92f){const _0xc76096=_0x30fe85;_0x58a92f?this[_0xc76096(0xbd)]=!0x0:this[_0xc76096(0xbd)]&&this[_0xc76096(0xaa)][_0xc76096(0xb8)]();}[_0x30fe85(0xd3)](_0x51e1a8,_0x5f4872){const _0x35d8fa=_0x30fe85;this[_0x35d8fa(0xa8)][_0x35d8fa(0xd3)](_0x51e1a8,_0x5f4872);}[_0x30fe85(0xa2)](_0x546142){const _0x41f968=_0x30fe85;this[_0x41f968(0xa8)][_0x41f968(0xa2)](_0x546142);}[_0x30fe85(0xbe)](_0x304ce4,_0x56505f){const _0x5920f7=_0x30fe85;this[_0x5920f7(0xa8)][_0x5920f7(0xbe)](_0x304ce4,_0x56505f);}[_0x30fe85(0x9f)](_0x4ae4b3){const _0x2290fb=_0x30fe85;this[_0x2290fb(0xaa)][_0x2290fb(0x9f)](_0x4ae4b3);}[_0x30fe85(0x9e)](_0x37460b){const _0x38fded=_0x30fe85;this[_0x38fded(0xa8)][_0x38fded(0x9e)](_0x37460b);}[_0x30fe85(0xa3)](){const _0xb0db3f=_0x30fe85;this[_0xb0db3f(0xa8)][_0xb0db3f(0x9d)]();}[_0x30fe85(0xcf)](){const _0x34aa3b=_0x30fe85;this[_0x34aa3b(0xa8)][_0x34aa3b(0xbb)]();}[_0x30fe85(0xc3)](_0x4f7433,_0x1d6185,_0x4bc61e){const _0xb2f72e=_0x30fe85;this[_0xb2f72e(0xa8)][_0xb2f72e(0xc3)](_0x4f7433,_0x1d6185,_0x4bc61e);}[_0x30fe85(0xca)](_0x225bcd){const _0x38742c=_0x30fe85;this[_0x38742c(0xc6)][_0x38742c(0xca)](_0x225bcd);}[_0x30fe85(0xc4)](_0x67dbe6){const _0x4ab9fe=_0x30fe85;this[_0x4ab9fe(0xc6)][_0x4ab9fe(0xc4)](_0x67dbe6);}[_0x30fe85(0xb9)](){const _0x54f906=_0x30fe85;this[_0x54f906(0xaa)][_0x54f906(0xd5)]();}[_0x30fe85(0x8e)](_0x35f2f8){const _0x3fc992=_0x30fe85;this[_0x3fc992(0xa8)][_0x3fc992(0x8e)](_0x35f2f8);}[_0x30fe85(0xd4)](_0x56cd57){const _0x1f43f2=_0x30fe85;this[_0x1f43f2(0xaa)][_0x1f43f2(0xce)](_0x56cd57);}[_0x30fe85(0x91)](_0x2bbaa6,_0x1bd542){const _0x1f509c=_0x30fe85;this[_0x1f509c(0xd8)]=_0x2bbaa6,this[_0x1f509c(0xc6)][_0x1f509c(0x91)](_0x2bbaa6,_0x1bd542);}[_0x30fe85(0xa7)](_0x362f5e){const _0x214bd2=_0x30fe85;(_0x362f5e?this[_0x214bd2(0xd8)][_0x214bd2(0xa0)](_0x101d3b=>_0x101d3b['id']===_0x362f5e['id']):null)?(this[_0x214bd2(0x9c)]=!0x0,this[_0x214bd2(0xc6)][_0x214bd2(0xa7)](_0x362f5e)):_0x362f5e?.['id'][_0x214bd2(0xc9)](_0x214bd2(0x9a))?(this[_0x214bd2(0x9c)]=!0x0,this[_0x214bd2(0xc6)][_0x214bd2(0xa7)](this[_0x214bd2(0xd8)][0x0])):this[_0x214bd2(0x9c)]=!0x1;}[_0x30fe85(0xc8)](){const _0x4a2efc=_0x30fe85;this[_0x4a2efc(0xc6)][_0x4a2efc(0xc8)]();}[_0x30fe85(0xa6)](_0x507561){const _0x46579a=_0x30fe85;this[_0x46579a(0xc6)][_0x46579a(0xa6)](_0x507561);}[_0x30fe85(0x8b)](_0x8013f5,_0x49f051,_0xd9239e,_0x1bea84){const _0x2053ed=_0x30fe85;this[_0x2053ed(0xa8)][_0x2053ed(0x8b)](_0x8013f5,_0x49f051,_0xd9239e,_0x1bea84);}[_0x30fe85(0xa1)](_0x44e3b7){const _0x4fb716=_0x30fe85;this[_0x4fb716(0xa8)][_0x4fb716(0xa1)](_0x44e3b7);}[_0x30fe85(0xad)](){const _0x38cd37=_0x30fe85;this[_0x38cd37(0xaa)][_0x38cd37(0xb8)]();}}class _s extends _0x4c1c6d{constructor(_0x41eb41){const _0x3705be=_0x30fe85;super(_0x41eb41);const _0x9cc918=new _0x5233a4(_0x41eb41);_0x9cc918[_0x3705be(0xdc)]({'label':_0x1bf560(this[_0x3705be(0xaf)],_0x3705be(0x93)),'withText':!0x0,'class':[_0x3705be(0xbc)],'tooltip':''}),_0x9cc918[_0x3705be(0x94)](_0x3705be(0xcb))['to'](this,_0x3705be(0xb2)),this[_0x3705be(0xc0)]({'tag':_0x3705be(0xdb),'attributes':{'class':['ck',_0x3705be(0x97)]},'children':[{'tag':'p','children':[{'text':_0x1bf560(this[_0x3705be(0xaf)],_0x3705be(0xae))+'\x20'},_0x9cc918]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1302d4=_0x309a;(function(_0x46643a,_0x3b28f1){const _0x213d4a=_0x309a,_0x28155a=_0x46643a();while(!![]){try{const _0x2bc32a=-parseInt(_0x213d4a(0x211))/0x1*(parseInt(_0x213d4a(0x1ed))/0x2)+parseInt(_0x213d4a(0x20c))/0x3+parseInt(_0x213d4a(0x207))/0x4+-parseInt(_0x213d4a(0x1e2))/0x5+-parseInt(_0x213d4a(0x1e0))/0x6*(parseInt(_0x213d4a(0x21a))/0x7)+parseInt(_0x213d4a(0x204))/0x8+parseInt(_0x213d4a(0x210))/0x9*(parseInt(_0x213d4a(0x1ee))/0xa);if(_0x2bc32a===_0x3b28f1)break;else _0x28155a['push'](_0x28155a['shift']());}catch(_0x477d0c){_0x28155a['push'](_0x28155a['shift']());}}}(_0x2b62,0x454e3));import{CKEditorError as _0xae049a,logWarning as _0x43e66e,scrollViewportToShowTarget as _0x201039}from'ckeditor5/src/utils.js';function _0x2b62(){const _0x5f1e97=['find','isPending','removeItem','scrollToSuggestion','bindTemplate','getPartView','children','1070682wPgdEs','_createLoaderChildren','2489025JrOvbj','isTrackChangesOn','delegate','ai-chat-feed-view-item-not-a-suggestion-item','createCollection','markAsDone','bind','stopAutoScroll','start','render','getItemIds','1382sCHqmi','1286470JrQqiO','includes','set','isLoadingSkeletonVisible','ck-hidden','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','div','addItem','ck-ai-chat__loader-text','updateSuggestionItem','_createFeedLoader','_createSkeletonLoader','setLoadingMessage','updateContent','setTemplate','getItemById','locale','ck-ai-chat__loader','aiFeed','updateReplyItem','element','ai-chat-feed-view-item-not-a-reply-item','191616ukuZBx','ai-chat-feed-view-item-not-found','interaction-header','701788NAcITT','_createTemplateChildren','remove','ck-ai-chat__feed__items','map','853419sxGkpb','add','updateSuggestionPartState','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','63yQJUhl','614tPoPzr','span','_setupTemplate','scrollManager','updateSources','toggleLoadingSkeleton','ai-reply','_bodyCollection','loadingMessage','7HUhhKG','isVisible','stop','markItemAsDone','user-message','options','startAutoScroll','ai-suggestion-reply','updateWebSources','clear','_createFeedItems','destroy','updatePartState','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','extendTemplate','ck-ai-chat__feed'];_0x2b62=function(){return _0x5f1e97;};return _0x2b62();}import{View as _0x4231f9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x29c5f5}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x46db64}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x27e83c}from'./feed/aichatfeedreplyitemview.js';function _0x309a(_0x263caa,_0x2364d1){const _0x2b62cd=_0x2b62();return _0x309a=function(_0x309a66,_0x3f3585){_0x309a66=_0x309a66-0x1df;let _0x3445b2=_0x2b62cd[_0x309a66];return _0x3445b2;},_0x309a(_0x263caa,_0x2364d1);}import{AIChatFeedUserMessageItemView as _0x2e575f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x2cb9ce}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4c540c}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4ee529}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x12a82d,SKELETON_DEFINITIONS as _0x526356}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4c2d9c}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4231f9{[_0x1302d4(0x1df)];[_0x1302d4(0x214)];[_0x1302d4(0x218)];constructor(_0x8430cf,_0x332cbc){const _0x57396a=_0x1302d4;super(_0x8430cf),this[_0x57396a(0x218)]=_0x332cbc,this[_0x57396a(0x1f0)](_0x57396a(0x22b),!0x1),this[_0x57396a(0x1f0)](_0x57396a(0x219),''),this[_0x57396a(0x1f0)](_0x57396a(0x1f1),!0x1),this[_0x57396a(0x1f0)](_0x57396a(0x1e3),!0x1),this[_0x57396a(0x1df)]=this[_0x57396a(0x1e6)](),this[_0x57396a(0x1df)][_0x57396a(0x1e4)](..._0x29c5f5)['to'](this),this[_0x57396a(0x213)]();}[_0x1302d4(0x1eb)](){const _0x4032c2=_0x1302d4;super[_0x4032c2(0x1eb)](),this[_0x4032c2(0x214)]=new _0x4ee529(this[_0x4032c2(0x202)]);}[_0x1302d4(0x225)](){const _0x5603e2=_0x1302d4;super[_0x5603e2(0x225)](),this[_0x5603e2(0x214)][_0x5603e2(0x225)]();}[_0x1302d4(0x223)](){const _0x449d97=_0x1302d4;this[_0x449d97(0x1df)][_0x449d97(0x223)]();}[_0x1302d4(0x1f5)](_0x190e48,_0x2d7693){const _0x1024b6=_0x1302d4;let _0x261b2c;_0x1024b6(0x217)===_0x190e48?_0x261b2c=new _0x27e83c(this[_0x1024b6(0x1fe)],_0x2d7693):_0x1024b6(0x221)===_0x190e48?(_0x261b2c=new _0x46db64(this[_0x1024b6(0x1fe)],_0x2d7693),_0x261b2c[_0x1024b6(0x1e8)](_0x1024b6(0x1e3))['to'](this,_0x1024b6(0x1e3))):_0x261b2c=_0x1024b6(0x21e)===_0x190e48?new _0x2e575f(this[_0x1024b6(0x1fe)],_0x2d7693,this[_0x1024b6(0x218)]):_0x1024b6(0x206)===_0x190e48?new _0x4c540c(this[_0x1024b6(0x1fe)],_0x2d7693):new _0x2cb9ce(_0x2d7693),this[_0x1024b6(0x1df)][_0x1024b6(0x20d)](_0x261b2c);}async[_0x1302d4(0x201)]({id:_0x299d8b,parsedContent:_0x473a2b,renderingStrategy:_0x1d9ee1,abortSignal:_0x5e9996}){const _0x62d621=_0x1302d4,_0x28d745=this[_0x62d621(0x1fd)](_0x299d8b);if(!(_0x28d745 instanceof _0x27e83c))throw new _0xae049a(_0x62d621(0x203),null,{'itemView':_0x28d745,'id':_0x299d8b,'parsedContent':_0x473a2b});await _0x28d745[_0x62d621(0x1fb)]({'parsedContent':_0x473a2b,'renderingStrategy':_0x1d9ee1,'abortSignal':_0x5e9996});}async[_0x1302d4(0x222)](_0x401d70,_0x1c9610){const _0x2b30e8=_0x1302d4,_0x5c6ba8=this[_0x2b30e8(0x1fd)](_0x401d70);if(_0x5c6ba8 instanceof _0x46db64)_0x5c6ba8[_0x2b30e8(0x215)](_0x1c9610);else{if(!(_0x5c6ba8 instanceof _0x27e83c))throw new _0xae049a(_0x2b30e8(0x227),null,{'itemView':_0x5c6ba8,'id':_0x401d70,'sources':_0x1c9610});_0x5c6ba8[_0x2b30e8(0x215)](_0x1c9610);}}async[_0x1302d4(0x1f7)]({id:_0xdac6df,parts:_0x3072e6,renderingStrategy:_0x326322,abortSignal:_0x100fad}){const _0x4f1885=_0x1302d4,_0x24a305=this[_0x4f1885(0x1fd)](_0xdac6df);if(!(_0x24a305 instanceof _0x46db64))throw new _0xae049a(_0x4f1885(0x1e5),null,{'itemView':_0x24a305,'id':_0xdac6df,'parts':_0x3072e6});await _0x24a305[_0x4f1885(0x1fb)]({'parts':_0x3072e6,'renderingStrategy':_0x326322,'abortSignal':_0x100fad});}[_0x1302d4(0x20e)]({id:_0x3ed6b5,index:_0x3596e4,state:_0x306f0e}){const _0x576cae=_0x1302d4,_0x4ae507=this[_0x576cae(0x1fd)](_0x3ed6b5);if(!(_0x4ae507 instanceof _0x46db64))throw new _0xae049a(_0x576cae(0x1e5),this,{'id':_0x3ed6b5});_0x4ae507[_0x576cae(0x226)](_0x3596e4,_0x306f0e);}[_0x1302d4(0x21d)](_0x3bca6b){const _0x492e05=_0x1302d4;this[_0x492e05(0x1fd)](_0x3bca6b)[_0x492e05(0x1e7)]();}[_0x1302d4(0x1ec)](){const _0x379b11=_0x1302d4;return this[_0x379b11(0x1df)][_0x379b11(0x20b)](_0x5e645e=>_0x5e645e[_0x379b11(0x21f)]['id']);}[_0x1302d4(0x22c)](_0x1f9204){const _0x45ecd4=_0x1302d4;this[_0x45ecd4(0x1df)][_0x45ecd4(0x209)](this[_0x45ecd4(0x1fd)](_0x1f9204));}[_0x1302d4(0x22d)](_0x197091,_0x55716a){const _0x13a25a=_0x1302d4,_0x3f8729=this[_0x13a25a(0x1fd)](_0x197091);if(!(_0x3f8729 instanceof _0x46db64))return void _0x43e66e(_0x13a25a(0x20f),{'replyId':_0x197091,'partIndex':_0x55716a});const _0x2a4066=_0x3f8729[_0x13a25a(0x22f)](_0x55716a);_0x2a4066?_0x201039({'target':_0x2a4066[_0x13a25a(0x202)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x43e66e(_0x13a25a(0x1f3),{'replyId':_0x197091,'partIndex':_0x55716a});}[_0x1302d4(0x213)](){const _0x3299a6=_0x1302d4;this[_0x3299a6(0x1fc)]({'tag':_0x3299a6(0x1f4),'attributes':{'class':['ck',_0x3299a6(0x229)]},'children':this[_0x3299a6(0x208)]()});}[_0x1302d4(0x208)](){const _0xd6f644=_0x1302d4,_0x24625d=this[_0xd6f644(0x1f9)]();return[this[_0xd6f644(0x224)](),_0x24625d,this[_0xd6f644(0x1f8)]()];}[_0x1302d4(0x1f9)](){const _0x17de83=_0x1302d4,_0x28b1ca=new _0x12a82d(this[_0x17de83(0x1fe)],_0x526356[_0x17de83(0x200)]);return _0x28b1ca[_0x17de83(0x228)]({'attributes':{'class':[this[_0x17de83(0x22e)]['if'](_0x17de83(0x1f1),_0x17de83(0x1f2),_0x3da9cd=>!_0x3da9cd)]}}),_0x28b1ca;}[_0x1302d4(0x224)](){const _0x3912bb=_0x1302d4,_0x3fba15=new _0x4231f9(this[_0x3912bb(0x1fe)]);return _0x3fba15[_0x3912bb(0x1fc)]({'tag':_0x3912bb(0x1f4),'attributes':{'class':['ck',_0x3912bb(0x20a),this[_0x3912bb(0x22e)]['if'](_0x3912bb(0x1f1),_0x3912bb(0x1f2))]},'children':this[_0x3912bb(0x1df)]}),_0x3fba15;}[_0x1302d4(0x1f8)](){const _0x1f5175=_0x1302d4,_0x4f3896=new _0x4231f9(this[_0x1f5175(0x1fe)]);return _0x4f3896[_0x1f5175(0x1fc)]({'tag':_0x1f5175(0x1f4),'attributes':{'class':['ck',_0x1f5175(0x1ff),this[_0x1f5175(0x22e)]['if'](_0x1f5175(0x22b),_0x1f5175(0x1f2),_0x411f07=>!_0x411f07)]},'children':this[_0x1f5175(0x1e1)]()}),_0x4f3896;}[_0x1302d4(0x1e1)](){const _0xa8176=_0x1302d4,_0x3a037f=new _0x4c2d9c();return _0x3a037f[_0xa8176(0x21b)]=!0x0,[_0x3a037f,{'tag':_0xa8176(0x212),'attributes':{'class':['ck',_0xa8176(0x1f6)]},'children':[{'text':this[_0xa8176(0x22e)]['to'](_0xa8176(0x219))}]}];}[_0x1302d4(0x1fd)](_0x3b1415){const _0x2cea5b=_0x1302d4,_0x242ded=this[_0x2cea5b(0x1df)][_0x2cea5b(0x22a)](_0x505b55=>_0x505b55[_0x2cea5b(0x21f)]['id'][_0x2cea5b(0x1ef)](_0x3b1415));if(!_0x242ded)throw new _0xae049a(_0x2cea5b(0x205),this,{'id':_0x3b1415});return _0x242ded;}[_0x1302d4(0x1fa)](_0x6b10d2){const _0x3190a2=_0x1302d4;this[_0x3190a2(0x1f0)](_0x3190a2(0x219),_0x6b10d2);}[_0x1302d4(0x216)](_0x304860){const _0x2da8eb=_0x1302d4;this[_0x2da8eb(0x1f0)](_0x2da8eb(0x1f1),_0x304860);}[_0x1302d4(0x220)](){const _0x2a4342=_0x1302d4;this[_0x2a4342(0x214)][_0x2a4342(0x1ea)]();}[_0x1302d4(0x1e9)](){const _0x4a06d9=_0x1302d4;this[_0x4a06d9(0x214)][_0x4a06d9(0x21c)]();}}
23
+ const _0x5045a7=_0x3bd9;function _0x3bd9(_0x2be9f0,_0x5928dd){const _0x466ebf=_0x466e();return _0x3bd9=function(_0x3bd987,_0x1fe83a){_0x3bd987=_0x3bd987-0xd9;let _0x460efd=_0x466ebf[_0x3bd987];return _0x460efd;},_0x3bd9(_0x2be9f0,_0x5928dd);}(function(_0x301e2e,_0x151491){const _0x555865=_0x3bd9,_0x11cd56=_0x301e2e();while(!![]){try{const _0x3079c5=parseInt(_0x555865(0xed))/0x1*(parseInt(_0x555865(0xf3))/0x2)+parseInt(_0x555865(0xde))/0x3*(parseInt(_0x555865(0xda))/0x4)+parseInt(_0x555865(0x10b))/0x5*(parseInt(_0x555865(0x121))/0x6)+-parseInt(_0x555865(0xfe))/0x7*(-parseInt(_0x555865(0x125))/0x8)+parseInt(_0x555865(0xe6))/0x9+parseInt(_0x555865(0xdc))/0xa*(parseInt(_0x555865(0x101))/0xb)+-parseInt(_0x555865(0xfc))/0xc*(parseInt(_0x555865(0x11c))/0xd);if(_0x3079c5===_0x151491)break;else _0x11cd56['push'](_0x11cd56['shift']());}catch(_0x387dfa){_0x11cd56['push'](_0x11cd56['shift']());}}}(_0x466e,0xe16f2));import{CKEditorError as _0x11d7d7,logWarning as _0x35f803,scrollViewportToShowTarget as _0x57ad91}from'ckeditor5/src/utils.js';import{View as _0x46e5ff}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x12b6ac}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x24b556}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3ff82a}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x807c26}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5583cc}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x46c838}from'./feed/aichatfeedinteractionheaderview.js';function _0x466e(){const _0x517ce5=['isPending','div','locale','startAutoScroll','updateSources','isVisible','find','12696GlIBFW','ai-chat-feed-view-item-not-a-suggestion-item','7YTQesl','toggleLoadingSkeleton','addItem','242PjbHbi','updateContent','scrollToSuggestion','updateReplyItem','removeItem','ai-reply','ck-ai-chat__loader-text','interaction-header','loadingMessage','_createLoaderChildren','5xVjdVC','ck-ai-chat__feed__items','getItemIds','setTemplate','_createFeedItems','map','ai-suggestion-reply','updatePartState','updateSuggestionPartState','isTrackChangesOn','getPartView','options','ai-chat-feed-view-item-not-found','_setupTemplate','_createSkeletonLoader','bind','getItemById','72059oaYUmC','updateWebSources','add','stop','ck-ai-chat__feed','9616806bfMKcl','scrollManager','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','2703112dXAWiH','stopAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__loader','user-message','ck-hidden','clear','remove','markItemAsDone','4evvOPR','_bodyCollection','366450VbJvfX','updateSuggestionItem','4168935CQqeqt','span','destroy','setLoadingMessage','markAsDone','isLoadingSkeletonVisible','children','_createFeedLoader','11129040XUHcNY','render','ai-chat-feed-view-item-not-a-reply-item','extendTemplate','aiFeed','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','createCollection','1414787KpxJVh','includes','element','bindTemplate','_createTemplateChildren','start','2NukYbb','delegate'];_0x466e=function(){return _0x517ce5;};return _0x466e();}import{ScrollManager as _0xe77619}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x1a2dcc,SKELETON_DEFINITIONS as _0x1cc8da}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x44d0d8}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x46e5ff{[_0x5045a7(0xe4)];[_0x5045a7(0x122)];[_0x5045a7(0xdb)];constructor(_0x20d1e7,_0x560c4b){const _0x15bb8b=_0x5045a7;super(_0x20d1e7),this[_0x15bb8b(0xdb)]=_0x560c4b,this[_0x15bb8b(0x123)](_0x15bb8b(0xf5),!0x1),this[_0x15bb8b(0x123)](_0x15bb8b(0x109),''),this[_0x15bb8b(0x123)](_0x15bb8b(0xe3),!0x1),this[_0x15bb8b(0x123)](_0x15bb8b(0x114),!0x1),this[_0x15bb8b(0xe4)]=this[_0x15bb8b(0xec)](),this[_0x15bb8b(0xe4)][_0x15bb8b(0xf4)](..._0x12b6ac)['to'](this),this[_0x15bb8b(0x118)]();}[_0x5045a7(0xe7)](){const _0x37dc56=_0x5045a7;super[_0x37dc56(0xe7)](),this[_0x37dc56(0x122)]=new _0xe77619(this[_0x37dc56(0xef)]);}[_0x5045a7(0xe0)](){const _0x5b2c82=_0x5045a7;super[_0x5b2c82(0xe0)](),this[_0x5b2c82(0x122)][_0x5b2c82(0xe0)]();}[_0x5045a7(0x12b)](){const _0x1185eb=_0x5045a7;this[_0x1185eb(0xe4)][_0x1185eb(0x12b)]();}[_0x5045a7(0x100)](_0x39c680,_0x5e33a2){const _0x5567de=_0x5045a7;let _0x1917e0;_0x5567de(0x106)===_0x39c680?_0x1917e0=new _0x3ff82a(this[_0x5567de(0xf7)],_0x5e33a2):_0x5567de(0x111)===_0x39c680?(_0x1917e0=new _0x24b556(this[_0x5567de(0xf7)],_0x5e33a2),_0x1917e0[_0x5567de(0x11a)](_0x5567de(0x114))['to'](this,_0x5567de(0x114))):_0x1917e0=_0x5567de(0x129)===_0x39c680?new _0x807c26(this[_0x5567de(0xf7)],_0x5e33a2,this[_0x5567de(0xdb)]):_0x5567de(0x108)===_0x39c680?new _0x46c838(this[_0x5567de(0xf7)],_0x5e33a2):new _0x5583cc(_0x5e33a2),this[_0x5567de(0xe4)][_0x5567de(0x11e)](_0x1917e0);}async[_0x5045a7(0x104)]({id:_0x3be74d,parsedContent:_0x6a287c,renderingStrategy:_0x4e0d6b,abortSignal:_0x121212}){const _0x209dc1=_0x5045a7,_0x4ab3c3=this[_0x209dc1(0x11b)](_0x3be74d);if(!(_0x4ab3c3 instanceof _0x3ff82a))throw new _0x11d7d7(_0x209dc1(0xe8),null,{'itemView':_0x4ab3c3,'id':_0x3be74d,'parsedContent':_0x6a287c});await _0x4ab3c3[_0x209dc1(0x102)]({'parsedContent':_0x6a287c,'renderingStrategy':_0x4e0d6b,'abortSignal':_0x121212});}async[_0x5045a7(0x11d)](_0x116b6b,_0x2bec7a){const _0x2be4f4=_0x5045a7,_0x15e373=this[_0x2be4f4(0x11b)](_0x116b6b);if(_0x15e373 instanceof _0x24b556)_0x15e373[_0x2be4f4(0xf9)](_0x2bec7a);else{if(!(_0x15e373 instanceof _0x3ff82a))throw new _0x11d7d7(_0x2be4f4(0xeb),null,{'itemView':_0x15e373,'id':_0x116b6b,'sources':_0x2bec7a});_0x15e373[_0x2be4f4(0xf9)](_0x2bec7a);}}async[_0x5045a7(0xdd)]({id:_0x356401,parts:_0x44b461,renderingStrategy:_0x17421b,abortSignal:_0x58a020}){const _0x704faa=_0x5045a7,_0x59ae47=this[_0x704faa(0x11b)](_0x356401);if(!(_0x59ae47 instanceof _0x24b556))throw new _0x11d7d7(_0x704faa(0xfd),null,{'itemView':_0x59ae47,'id':_0x356401,'parts':_0x44b461});await _0x59ae47[_0x704faa(0x102)]({'parts':_0x44b461,'renderingStrategy':_0x17421b,'abortSignal':_0x58a020});}[_0x5045a7(0x113)]({id:_0x38c83d,index:_0x4f9124,state:_0xd779aa}){const _0x572db5=_0x5045a7,_0x28f17d=this[_0x572db5(0x11b)](_0x38c83d);if(!(_0x28f17d instanceof _0x24b556))throw new _0x11d7d7(_0x572db5(0xfd),this,{'id':_0x38c83d});_0x28f17d[_0x572db5(0x112)](_0x4f9124,_0xd779aa);}[_0x5045a7(0xd9)](_0xe7acc1){const _0x406610=_0x5045a7;this[_0x406610(0x11b)](_0xe7acc1)[_0x406610(0xe2)]();}[_0x5045a7(0x10d)](){const _0x4672e9=_0x5045a7;return this[_0x4672e9(0xe4)][_0x4672e9(0x110)](_0x5c376f=>_0x5c376f[_0x4672e9(0x116)]['id']);}[_0x5045a7(0x105)](_0x58e7a1){const _0x52a8d4=_0x5045a7;this[_0x52a8d4(0xe4)][_0x52a8d4(0x12c)](this[_0x52a8d4(0x11b)](_0x58e7a1));}[_0x5045a7(0x103)](_0x3d3ec6,_0xf16a2b){const _0x2d9096=_0x5045a7,_0x5e796e=this[_0x2d9096(0x11b)](_0x3d3ec6);if(!(_0x5e796e instanceof _0x24b556))return void _0x35f803(_0x2d9096(0x124),{'replyId':_0x3d3ec6,'partIndex':_0xf16a2b});const _0x30a9e4=_0x5e796e[_0x2d9096(0x115)](_0xf16a2b);_0x30a9e4?_0x57ad91({'target':_0x30a9e4[_0x2d9096(0xef)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x35f803(_0x2d9096(0x127),{'replyId':_0x3d3ec6,'partIndex':_0xf16a2b});}[_0x5045a7(0x118)](){const _0x3d72ce=_0x5045a7;this[_0x3d72ce(0x10e)]({'tag':_0x3d72ce(0xf6),'attributes':{'class':['ck',_0x3d72ce(0x120)]},'children':this[_0x3d72ce(0xf1)]()});}[_0x5045a7(0xf1)](){const _0x381c74=_0x5045a7,_0x361b3e=this[_0x381c74(0x119)]();return[this[_0x381c74(0x10f)](),_0x361b3e,this[_0x381c74(0xe5)]()];}[_0x5045a7(0x119)](){const _0xa4cff4=_0x5045a7,_0x416f80=new _0x1a2dcc(this[_0xa4cff4(0xf7)],_0x1cc8da[_0xa4cff4(0xea)]);return _0x416f80[_0xa4cff4(0xe9)]({'attributes':{'class':[this[_0xa4cff4(0xf0)]['if'](_0xa4cff4(0xe3),_0xa4cff4(0x12a),_0x37fed2=>!_0x37fed2)]}}),_0x416f80;}[_0x5045a7(0x10f)](){const _0x1cb63f=_0x5045a7,_0x63a768=new _0x46e5ff(this[_0x1cb63f(0xf7)]);return _0x63a768[_0x1cb63f(0x10e)]({'tag':_0x1cb63f(0xf6),'attributes':{'class':['ck',_0x1cb63f(0x10c),this[_0x1cb63f(0xf0)]['if'](_0x1cb63f(0xe3),_0x1cb63f(0x12a))]},'children':this[_0x1cb63f(0xe4)]}),_0x63a768;}[_0x5045a7(0xe5)](){const _0x196375=_0x5045a7,_0x4aadcb=new _0x46e5ff(this[_0x196375(0xf7)]);return _0x4aadcb[_0x196375(0x10e)]({'tag':_0x196375(0xf6),'attributes':{'class':['ck',_0x196375(0x128),this[_0x196375(0xf0)]['if'](_0x196375(0xf5),_0x196375(0x12a),_0xd7554f=>!_0xd7554f)]},'children':this[_0x196375(0x10a)]()}),_0x4aadcb;}[_0x5045a7(0x10a)](){const _0x1ab614=_0x5045a7,_0x551d76=new _0x44d0d8();return _0x551d76[_0x1ab614(0xfa)]=!0x0,[_0x551d76,{'tag':_0x1ab614(0xdf),'attributes':{'class':['ck',_0x1ab614(0x107)]},'children':[{'text':this[_0x1ab614(0xf0)]['to'](_0x1ab614(0x109))}]}];}[_0x5045a7(0x11b)](_0x370e04){const _0x491115=_0x5045a7,_0x6cf797=this[_0x491115(0xe4)][_0x491115(0xfb)](_0x41aa95=>_0x41aa95[_0x491115(0x116)]['id'][_0x491115(0xee)](_0x370e04));if(!_0x6cf797)throw new _0x11d7d7(_0x491115(0x117),this,{'id':_0x370e04});return _0x6cf797;}[_0x5045a7(0xe1)](_0x98a351){const _0x20aae7=_0x5045a7;this[_0x20aae7(0x123)](_0x20aae7(0x109),_0x98a351);}[_0x5045a7(0xff)](_0x27ee34){const _0x27141d=_0x5045a7;this[_0x27141d(0x123)](_0x27141d(0xe3),_0x27ee34);}[_0x5045a7(0xf8)](){const _0x5b71b1=_0x5045a7;this[_0x5b71b1(0x122)][_0x5b71b1(0xf2)]();}[_0x5045a7(0x126)](){const _0x48e98e=_0x5045a7;this[_0x48e98e(0x122)][_0x48e98e(0x11f)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e7d5e=_0x556e;function _0x556e(_0x123051,_0x273cba){const _0x2b5813=_0x2b58();return _0x556e=function(_0x556e6b,_0x2dd1f6){_0x556e6b=_0x556e6b-0x1bd;let _0x3d4570=_0x2b5813[_0x556e6b];return _0x3d4570;},_0x556e(_0x123051,_0x273cba);}(function(_0x14e5f2,_0x339451){const _0x3a2288=_0x556e,_0x43e14f=_0x14e5f2();while(!![]){try{const _0x4c56ec=parseInt(_0x3a2288(0x1c5))/0x1+-parseInt(_0x3a2288(0x1ca))/0x2*(-parseInt(_0x3a2288(0x1c7))/0x3)+-parseInt(_0x3a2288(0x1ce))/0x4+parseInt(_0x3a2288(0x1bf))/0x5+-parseInt(_0x3a2288(0x1c2))/0x6+-parseInt(_0x3a2288(0x1c1))/0x7*(-parseInt(_0x3a2288(0x1c4))/0x8)+-parseInt(_0x3a2288(0x1cb))/0x9;if(_0x4c56ec===_0x339451)break;else _0x43e14f['push'](_0x43e14f['shift']());}catch(_0x470695){_0x43e14f['push'](_0x43e14f['shift']());}}}(_0x2b58,0x2e827));import{ButtonView as _0x2e6c18,FormHeaderView as _0x1c76bb}from'ckeditor5/src/ui.js';import{IconPlus as _0x47f1b9,IconAIChat as _0x5d11c8}from'ckeditor5/src/icons.js';import{getTranslation as _0x26a3a3}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x103614}from'../../aicore/utils/createresizebutton.js';function _0x2b58(){const _0x2cf959=['isMaximized','locale','set','92560MSaEcJ','ck-ai-header\x20ck-ai-header_chat','663250hbsihs','2173566bESoIJ','_createStartConversationButton','8ioWSBg','333757ZoZXRY','resizeButton','19020Oqoppd','AI_CHAT_LABEL_NEW_CHAT','execute','64goznRy','312678ZOhcRA','startConversation','add','249572UvBzLq','fire','conversationStartButton','ck-ai-chat__start-conversation','AI_CHAT_HEADING','children'];_0x2b58=function(){return _0x2cf959;};return _0x2b58();}export class AIChatHeaderView extends _0x1c76bb{[_0x5e7d5e(0x1d0)];[_0x5e7d5e(0x1c6)];constructor(_0x306f01,_0x49c131){const _0x8a371e=_0x5e7d5e;super(_0x306f01,{'label':_0x26a3a3(_0x306f01,_0x8a371e(0x1d2)),'class':_0x8a371e(0x1c0),'icon':_0x5d11c8}),this[_0x8a371e(0x1be)](_0x8a371e(0x1d4),!0x1),this[_0x8a371e(0x1d0)]=this[_0x8a371e(0x1c3)](_0x306f01),this[_0x8a371e(0x1d3)][_0x8a371e(0x1cd)](this[_0x8a371e(0x1d0)]),_0x49c131&&(this[_0x8a371e(0x1c6)]=_0x103614(_0x306f01,this),this[_0x8a371e(0x1d3)][_0x8a371e(0x1cd)](this[_0x8a371e(0x1c6)]));}[_0x5e7d5e(0x1c3)](_0x6af18a){const _0x420dc0=_0x5e7d5e,_0x39dc0c=new _0x2e6c18(_0x6af18a);return _0x39dc0c[_0x420dc0(0x1be)]({'label':_0x26a3a3(this[_0x420dc0(0x1bd)],_0x420dc0(0x1c8)),'withText':!0x0,'icon':_0x47f1b9,'class':_0x420dc0(0x1d1)}),_0x39dc0c['on'](_0x420dc0(0x1c9),()=>{const _0x15b65f=_0x420dc0;this[_0x15b65f(0x1cf)](_0x15b65f(0x1cc));}),_0x39dc0c;}}
23
+ const _0x179692=_0x2e30;function _0xa4af(){const _0x2c1383=['ck-ai-chat__start-conversation','1712193zeJwbB','set','conversationStartButton','isMaximized','AI_CHAT_LABEL_NEW_CHAT','ck-ai-header\x20ck-ai-header_chat','startConversation','fire','4EkIipD','10HQaXIE','505vNYSTa','AI_CHAT_HEADING','_createStartConversationButton','children','locale','resizeButton','71006ZeEWvA','7858737ZYTtza','11313390DGTzRg','2299213VkfNBK','66504DAYxbF','3318776orwWMC','add','execute','4WrubsM'];_0xa4af=function(){return _0x2c1383;};return _0xa4af();}(function(_0x257fe5,_0x1f1a2b){const _0x187ce6=_0x2e30,_0x4bfe60=_0x257fe5();while(!![]){try{const _0x17db15=parseInt(_0x187ce6(0x169))/0x1*(-parseInt(_0x187ce6(0x171))/0x2)+-parseInt(_0x187ce6(0x17b))/0x3*(parseInt(_0x187ce6(0x179))/0x4)+parseInt(_0x187ce6(0x16b))/0x5*(parseInt(_0x187ce6(0x175))/0x6)+-parseInt(_0x187ce6(0x174))/0x7+parseInt(_0x187ce6(0x176))/0x8+-parseInt(_0x187ce6(0x172))/0x9*(parseInt(_0x187ce6(0x16a))/0xa)+parseInt(_0x187ce6(0x173))/0xb;if(_0x17db15===_0x1f1a2b)break;else _0x4bfe60['push'](_0x4bfe60['shift']());}catch(_0x2b21d2){_0x4bfe60['push'](_0x4bfe60['shift']());}}}(_0xa4af,0x9e4ea));import{ButtonView as _0x578e85,FormHeaderView as _0x4d2f6f}from'ckeditor5/src/ui.js';function _0x2e30(_0x17e519,_0x3e447e){const _0xa4aff6=_0xa4af();return _0x2e30=function(_0x2e3023,_0x2d7e48){_0x2e3023=_0x2e3023-0x167;let _0x207103=_0xa4aff6[_0x2e3023];return _0x207103;},_0x2e30(_0x17e519,_0x3e447e);}import{IconPlus as _0x291b2a,IconAIChat as _0x46684d}from'ckeditor5/src/icons.js';import{getTranslation as _0x19a6af}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x499818}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x4d2f6f{[_0x179692(0x17d)];[_0x179692(0x170)];constructor(_0x2e332b,_0x5d5934){const _0x3ca333=_0x179692;super(_0x2e332b,{'label':_0x19a6af(_0x2e332b,_0x3ca333(0x16c)),'class':_0x3ca333(0x180),'icon':_0x46684d}),this[_0x3ca333(0x17c)](_0x3ca333(0x17e),!0x1),this[_0x3ca333(0x17d)]=this[_0x3ca333(0x16d)](_0x2e332b),this[_0x3ca333(0x16e)][_0x3ca333(0x177)](this[_0x3ca333(0x17d)]),_0x5d5934&&(this[_0x3ca333(0x170)]=_0x499818(_0x2e332b,this),this[_0x3ca333(0x16e)][_0x3ca333(0x177)](this[_0x3ca333(0x170)]));}[_0x179692(0x16d)](_0x4721b4){const _0x12bc0d=_0x179692,_0x39418d=new _0x578e85(_0x4721b4);return _0x39418d[_0x12bc0d(0x17c)]({'label':_0x19a6af(this[_0x12bc0d(0x16f)],_0x12bc0d(0x17f)),'withText':!0x0,'icon':_0x291b2a,'class':_0x12bc0d(0x17a)}),_0x39418d['on'](_0x12bc0d(0x178),()=>{const _0x51067d=_0x12bc0d;this[_0x51067d(0x168)](_0x51067d(0x167));}),_0x39418d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x22c027=_0x3f2e;function _0x3f2e(_0xd63c,_0x274eea){var _0x4b57be=_0x4b57();return _0x3f2e=function(_0x3f2e44,_0x9b3bf7){_0x3f2e44=_0x3f2e44-0x19d;var _0x4c632e=_0x4b57be[_0x3f2e44];return _0x4c632e;},_0x3f2e(_0xd63c,_0x274eea);}(function(_0xcf73e7,_0x1c245c){var _0x4a911c=_0x3f2e,_0x5e594d=_0xcf73e7();while(!![]){try{var _0x558a4b=-parseInt(_0x4a911c(0x1aa))/0x1+-parseInt(_0x4a911c(0x1b8))/0x2*(-parseInt(_0x4a911c(0x1a5))/0x3)+parseInt(_0x4a911c(0x1ab))/0x4+-parseInt(_0x4a911c(0x1b9))/0x5*(-parseInt(_0x4a911c(0x19d))/0x6)+parseInt(_0x4a911c(0x1ac))/0x7*(parseInt(_0x4a911c(0x1a6))/0x8)+-parseInt(_0x4a911c(0x1b1))/0x9*(parseInt(_0x4a911c(0x19f))/0xa)+-parseInt(_0x4a911c(0x1b4))/0xb;if(_0x558a4b===_0x1c245c)break;else _0x5e594d['push'](_0x5e594d['shift']());}catch(_0x16f74b){_0x5e594d['push'](_0x5e594d['shift']());}}}(_0x4b57,0x556d6));import{View as _0x36664f,BodyCollection as _0x1cc260}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2b299e}from'../utils/eventnames.js';import{AIChatFeedView as _0x5e004f}from'./aichatfeedview.js';import{AIChatControlsView as _0x410d48}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x52abf3}from'./aichatheaderview.js';function _0x4b57(){var _0x1e3501=['contextResourcesSearchInputVisibleFrom','setTemplate','populateSourceResourceBalloon','69670mpxmzO','96910aeKzkC','delegate','6LRmXmO','chatHeader','91220wfJIfQ','chatFeed','chatControls','ck-ai-chat','detachFromDom','destroy','60ezODQC','1459664HaHnoY','uiLanguageDirection','attachToDom','ck-reset_all','81765FrvMLt','10728tXcWhv','7boNoca','div','showResizeButton','chatDisclaimer','closeSourceResourceBalloon','198WMENwK','_bodyCollection','ck-rounded-corners','2957493dadDPP'];_0x4b57=function(){return _0x1e3501;};return _0x4b57();}import{AIDisclaimerView as _0x12f2e1}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x36664f{[_0x22c027(0x19e)];[_0x22c027(0x1a0)];[_0x22c027(0x1a1)];[_0x22c027(0x1af)];[_0x22c027(0x1b2)];constructor(_0x2e3fa2,_0x4deb63){var _0x2aeaa8=_0x22c027;super(_0x2e3fa2),this[_0x2aeaa8(0x1b2)]=new _0x1cc260(_0x2e3fa2),this[_0x2aeaa8(0x1b2)][_0x2aeaa8(0x1a8)](),this[_0x2aeaa8(0x19e)]=new _0x52abf3(_0x2e3fa2,_0x4deb63[_0x2aeaa8(0x1ae)]),this[_0x2aeaa8(0x19e)][_0x2aeaa8(0x1ba)](..._0x2b299e)['to'](this),this[_0x2aeaa8(0x1a0)]=new _0x5e004f(_0x2e3fa2,this[_0x2aeaa8(0x1b2)]),this[_0x2aeaa8(0x1a0)][_0x2aeaa8(0x1ba)](..._0x2b299e)['to'](this),this[_0x2aeaa8(0x1a1)]=new _0x410d48(_0x2e3fa2,{'bodyCollection':this[_0x2aeaa8(0x1b2)],'contextResourcesSearchInputVisibleFrom':_0x4deb63[_0x2aeaa8(0x1b5)]}),this[_0x2aeaa8(0x1a1)][_0x2aeaa8(0x1ba)](..._0x2b299e)['to'](this),this[_0x2aeaa8(0x1af)]=new _0x12f2e1(_0x2e3fa2),this[_0x2aeaa8(0x1b6)]({'tag':_0x2aeaa8(0x1ad),'attributes':{'class':['ck',_0x2aeaa8(0x1a9),_0x2aeaa8(0x1a2),_0x2aeaa8(0x1b3)],'dir':_0x2e3fa2[_0x2aeaa8(0x1a7)]},'children':[this[_0x2aeaa8(0x19e)],this[_0x2aeaa8(0x1a0)],this[_0x2aeaa8(0x1a1)],this[_0x2aeaa8(0x1af)]]});}[_0x22c027(0x1b7)](_0x951eec,_0x2ac0fc,_0x5396fc,_0x2b6a8f){var _0x5f448e=_0x22c027;this[_0x5f448e(0x1a1)][_0x5f448e(0x1b7)](_0x951eec,_0x2ac0fc,_0x5396fc,_0x2b6a8f);}[_0x22c027(0x1b0)](_0x72a2c7){var _0x33fdb4=_0x22c027;this[_0x33fdb4(0x1a1)][_0x33fdb4(0x1b0)](_0x72a2c7);}[_0x22c027(0x1a4)](){var _0x4a13da=_0x22c027;this[_0x4a13da(0x1b2)][_0x4a13da(0x1a3)](),super[_0x4a13da(0x1a4)]();}}
23
+ var _0x3245a6=_0x5f81;(function(_0x41eccc,_0x5d716b){var _0x152ece=_0x5f81,_0x210219=_0x41eccc();while(!![]){try{var _0x1042d3=parseInt(_0x152ece(0x153))/0x1+parseInt(_0x152ece(0x15b))/0x2*(parseInt(_0x152ece(0x15d))/0x3)+parseInt(_0x152ece(0x155))/0x4+parseInt(_0x152ece(0x15c))/0x5+parseInt(_0x152ece(0x154))/0x6*(-parseInt(_0x152ece(0x14b))/0x7)+parseInt(_0x152ece(0x148))/0x8+parseInt(_0x152ece(0x150))/0x9*(-parseInt(_0x152ece(0x15f))/0xa);if(_0x1042d3===_0x5d716b)break;else _0x210219['push'](_0x210219['shift']());}catch(_0x806e5a){_0x210219['push'](_0x210219['shift']());}}}(_0x3aa7,0x8bb51));import{View as _0x1588f5,BodyCollection as _0x4b1036}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xee3f2}from'../utils/eventnames.js';function _0x3aa7(){var _0x312b07=['detachFromDom','ck-reset_all','setTemplate','closeSourceResourceBalloon','div','481456ZAWBgh','delegate','chatFeed','1787681VgTRXa','ck-rounded-corners','chatHeader','contextResourcesSearchInputVisibleFrom','_bodyCollection','4977NxwMxk','uiLanguageDirection','showResizeButton','730480kUUlEu','12bjfspw','1278160XtkldX','populateSourceResourceBalloon','chatControls','ck-ai-chat','chatDisclaimer','attachToDom','112JFWBdE','353465NaWQMA','58983HgnwpE','destroy','21680rcixcJ'];_0x3aa7=function(){return _0x312b07;};return _0x3aa7();}import{AIChatFeedView as _0x4b4654}from'./aichatfeedview.js';import{AIChatControlsView as _0x122649}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x4c50a8}from'./aichatheaderview.js';import{AIDisclaimerView as _0x284f08}from'../../aicore/ui/aidisclaimerview.js';function _0x5f81(_0x195a09,_0x370c4d){var _0x3aa73f=_0x3aa7();return _0x5f81=function(_0x5f8126,_0x4b4c9a){_0x5f8126=_0x5f8126-0x144;var _0x4357bf=_0x3aa73f[_0x5f8126];return _0x4357bf;},_0x5f81(_0x195a09,_0x370c4d);}export class AIChatView extends _0x1588f5{[_0x3245a6(0x14d)];[_0x3245a6(0x14a)];[_0x3245a6(0x157)];[_0x3245a6(0x159)];[_0x3245a6(0x14f)];constructor(_0x29f66e,_0x520693){var _0x4bf9f3=_0x3245a6;super(_0x29f66e),this[_0x4bf9f3(0x14f)]=new _0x4b1036(_0x29f66e),this[_0x4bf9f3(0x14f)][_0x4bf9f3(0x15a)](),this[_0x4bf9f3(0x14d)]=new _0x4c50a8(_0x29f66e,_0x520693[_0x4bf9f3(0x152)]),this[_0x4bf9f3(0x14d)][_0x4bf9f3(0x149)](..._0xee3f2)['to'](this),this[_0x4bf9f3(0x14a)]=new _0x4b4654(_0x29f66e,this[_0x4bf9f3(0x14f)]),this[_0x4bf9f3(0x14a)][_0x4bf9f3(0x149)](..._0xee3f2)['to'](this),this[_0x4bf9f3(0x157)]=new _0x122649(_0x29f66e,{'bodyCollection':this[_0x4bf9f3(0x14f)],'contextResourcesSearchInputVisibleFrom':_0x520693[_0x4bf9f3(0x14e)]}),this[_0x4bf9f3(0x157)][_0x4bf9f3(0x149)](..._0xee3f2)['to'](this),this[_0x4bf9f3(0x159)]=new _0x284f08(_0x29f66e),this[_0x4bf9f3(0x145)]({'tag':_0x4bf9f3(0x147),'attributes':{'class':['ck',_0x4bf9f3(0x144),_0x4bf9f3(0x158),_0x4bf9f3(0x14c)],'dir':_0x29f66e[_0x4bf9f3(0x151)]},'children':[this[_0x4bf9f3(0x14d)],this[_0x4bf9f3(0x14a)],this[_0x4bf9f3(0x157)],this[_0x4bf9f3(0x159)]]});}[_0x3245a6(0x156)](_0x9d6372,_0x1e937c,_0x49c698,_0xd3b75c){var _0x597921=_0x3245a6;this[_0x597921(0x157)][_0x597921(0x156)](_0x9d6372,_0x1e937c,_0x49c698,_0xd3b75c);}[_0x3245a6(0x146)](_0x47dbf4){var _0x4846d2=_0x3245a6;this[_0x4846d2(0x157)][_0x4846d2(0x146)](_0x47dbf4);}[_0x3245a6(0x15e)](){var _0x628fde=_0x3245a6;this[_0x628fde(0x14f)][_0x628fde(0x160)](),super[_0x628fde(0x15e)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x150268=_0x5725;(function(_0x54367a,_0x4b8914){const _0x5696fb=_0x5725,_0x41127b=_0x54367a();while(!![]){try{const _0x4e94ee=parseInt(_0x5696fb(0x116))/0x1+parseInt(_0x5696fb(0xc4))/0x2+-parseInt(_0x5696fb(0xbb))/0x3+parseInt(_0x5696fb(0xa4))/0x4*(parseInt(_0x5696fb(0xbd))/0x5)+-parseInt(_0x5696fb(0xf2))/0x6+-parseInt(_0x5696fb(0x100))/0x7*(parseInt(_0x5696fb(0xd4))/0x8)+-parseInt(_0x5696fb(0xd0))/0x9*(-parseInt(_0x5696fb(0xe7))/0xa);if(_0x4e94ee===_0x4b8914)break;else _0x41127b['push'](_0x41127b['shift']());}catch(_0x284646){_0x41127b['push'](_0x41127b['shift']());}}}(_0x44dd,0x58904));import{View as _0x39eaab,BalloonPanelView as _0x163201,ButtonView as _0x23f99f,clickOutsideHandler as _0x3a9117}from'ckeditor5/src/ui.js';function _0x44dd(){const _0x2e8ded=['hidden','showMoreButton','execute','50px','opacity','length','maxVisibleRows','includes','isConnected','4GyIfHC','_createShowMoreButtonView','getBoundingClientRect','zIndex','top','calculationContainer','visible','_targetContainer','rowDetectionTolerance','_createCalculationContainer','_makeAncestorsVisible','_isContainerVisible','documentElement','textContent','_visibleChips','_overflowChips','showMoreLabelPrefix','visibility','_updateOverflowUI','destroy','from','offsetWidth','bottom','1297239JTGMuO','overflowChips','2677885YDbFMS','none','_handleShowMoreButtonClick','_checkAndHandleOverflow','classList','setTemplate','height','608700ptHPMe','pointerEvents','_showMoreButtonView','cloneNode','abs','label','isIntersecting','style','.ck-ai-chat','visible\x20!important','div','_createContainerElements','9OaCwZQ','tagName','hide','_applyOverflowResults','968264ginuBv','overflowContainer','ck-calculation-container','_distributeChips','show','appendChild','_showMoreBalloonPanelView','_calculateOverflowInContainer','className','pop','render','_pendingCalculation','_parentView','_bodyCollection','observe','_containerElement','content','+\x201','_locale','903340qCUjnM','_createMockButton','_repinBalloonPanel','some','block','block\x20!important','position','reorganizeChips','toLowerCase','_intersectionObserver','-9999px','3060972mkkegU','controlsButton','remove','innerWidth','hideBalloonPanel','_calculateContainerWidth','showMoreButtonView','0px','createElement','element','clear','_ancestorsToRestore','button','_restoreAncestorVisibility','7gxTbbQ','cssClasses','body','filter','_config','showMoreBalloon','_applyCalculationStyles','_createShowMoreButton','undefined','innerHeight','parentElement','clientWidth','isOn','clientHeight','isVisible','setContainerElement','width','_updateShowMoreButtonVisibility','add','_createShowMoreBalloonPanelView','forEach','set','496103VoQXPY','border-box','left','300px','querySelector','_updateBalloonContent','extendTemplate','auto','absolute','_renderChipsAndCountRows','_testButtonFit','disableAnimationOnEnter','children','display','showBalloonPanel','_setupVisibilityObserver','push','pin','right','slice','boxSizing','_findTargetContainer','innerHTML','disconnect','getComputedStyle'];_0x44dd=function(){return _0x2e8ded;};return _0x44dd();}function _0x5725(_0xd4f308,_0x3a0a2b){const _0x44dd6f=_0x44dd();return _0x5725=function(_0x57253c,_0x4ac6c5){_0x57253c=_0x57253c-0xa0;let _0x5c5a69=_0x44dd6f[_0x57253c];return _0x5c5a69;},_0x5725(_0xd4f308,_0x3a0a2b);}import{Collection as _0x3eb3ff}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x150268(0x119);export class AIChatChipsOverflowManager{[_0x150268(0xe6)];[_0x150268(0x104)];[_0x150268(0xb2)];[_0x150268(0xb3)];[_0x150268(0xc6)]=null;[_0x150268(0xda)]=null;[_0x150268(0xe3)]=null;[_0x150268(0xe1)];[_0x150268(0xe0)]=null;[_0x150268(0xf0)]=null;[_0x150268(0xdf)]=!0x1;constructor(_0x2de664,_0x3b3f16,_0x5f0c21,_0x33663b,_0x2317f2){const _0x382e6e=_0x150268;this[_0x382e6e(0xe6)]=_0x2de664,this[_0x382e6e(0xb2)]=_0x3b3f16,this[_0x382e6e(0x104)]={...hn,..._0x5f0c21,'cssClasses':{'controlsButton':'','calculationContainer':_0x382e6e(0xd6),..._0x5f0c21[_0x382e6e(0x101)]}},this[_0x382e6e(0xb3)]=new _0x3eb3ff(),this[_0x382e6e(0xe1)]=_0x33663b,this[_0x382e6e(0xe0)]=_0x2317f2||null;}[_0x150268(0x10f)](_0xc595a){const _0x257fe7=_0x150268;this[_0x257fe7(0xf0)]&&(this[_0x257fe7(0xf0)][_0x257fe7(0x12d)](),this[_0x257fe7(0xf0)]=null),this[_0x257fe7(0xe3)]=_0xc595a,this[_0x257fe7(0x125)]();}get[_0x150268(0xf8)](){const _0x5559ca=_0x150268;return this[_0x5559ca(0xc6)];}get[_0x150268(0xbc)](){const _0x2e449a=_0x150268;return this[_0x2e449a(0xb3)];}[_0x150268(0xee)](){requestAnimationFrame(()=>{const _0x56d9f3=_0x5725;this[_0x56d9f3(0xc0)]();});}[_0x150268(0x124)](){const _0x3248b6=_0x150268;this[_0x3248b6(0xc6)]&&this[_0x3248b6(0xda)]&&(this[_0x3248b6(0x11b)](),this[_0x3248b6(0xc6)][_0x3248b6(0x10c)]=!0x0,this[_0x3248b6(0xda)][_0x3248b6(0xd8)](),this[_0x3248b6(0xda)][_0x3248b6(0x127)]({'target':this[_0x3248b6(0xc6)][_0x3248b6(0xfb)],'limiter':document[_0x3248b6(0x11a)](_0x3248b6(0xcc))}));}[_0x150268(0xf6)](){const _0x1e2962=_0x150268;this[_0x1e2962(0xc6)]&&this[_0x1e2962(0xda)]&&(this[_0x1e2962(0xc6)][_0x1e2962(0x10c)]=!0x1,this[_0x1e2962(0xda)][_0x1e2962(0xd2)]());}[_0x150268(0xfc)](){const _0x1a0231=_0x150268;this[_0x1a0231(0xb3)][_0x1a0231(0xfc)](),this[_0x1a0231(0xf6)](),this[_0x1a0231(0x111)](),this[_0x1a0231(0xc6)]&&(this[_0x1a0231(0xc6)][_0x1a0231(0xc9)]=''),this[_0x1a0231(0xda)]&&this[_0x1a0231(0xda)][_0x1a0231(0xe4)][_0x1a0231(0xfc)]();}[_0x150268(0xb7)](){const _0xc05413=_0x150268;this[_0xc05413(0xf0)]&&(this[_0xc05413(0xf0)][_0xc05413(0x12d)](),this[_0xc05413(0xf0)]=null),this[_0xc05413(0xc6)]&&(this[_0xc05413(0xc6)][_0xc05413(0xb7)](),this[_0xc05413(0xc6)]=null),this[_0xc05413(0xda)]&&(this[_0xc05413(0xda)][_0xc05413(0xb7)](),this[_0xc05413(0xda)]=null);}[_0x150268(0xc0)](){const _0x5de3cf=_0x150268;if(!this[_0x5de3cf(0xe3)])return;if(!this[_0x5de3cf(0xaf)]())return void(this[_0x5de3cf(0xdf)]=!0x0);this[_0x5de3cf(0xdf)]=!0x1;const _0x5e726e=[...this[_0x5de3cf(0xb2)],...this[_0x5de3cf(0xb3)]],_0x4c4a15=this[_0x5de3cf(0xad)](),_0x14a189=this[_0x5de3cf(0xdb)](_0x4c4a15,_0x5e726e),_0x2e165d=_0x4c4a15[_0x5de3cf(0xfd)];_0x2e165d&&this[_0x5de3cf(0xff)](_0x2e165d),_0x4c4a15[_0x5de3cf(0xf4)](),this[_0x5de3cf(0xd3)](_0x5e726e,_0x14a189);}[_0x150268(0x107)](){const _0x277957=_0x150268;this[_0x277957(0xc6)]=this[_0x277957(0xa5)](),this[_0x277957(0xda)]=this[_0x277957(0x113)](),this[_0x277957(0xc6)][_0x277957(0xde)](),this[_0x277957(0xe3)][_0x277957(0xd9)](this[_0x277957(0xc6)][_0x277957(0xfb)]),this[_0x277957(0xc6)]['on'](_0x277957(0x131),()=>{const _0x3a5bef=_0x277957;this[_0x3a5bef(0xbf)]();}),_0x3a9117({'emitter':this[_0x277957(0xda)],'contextElements':[this[_0x277957(0xda)][_0x277957(0xfb)],this[_0x277957(0xc6)][_0x277957(0xfb)]],'callback':()=>this[_0x277957(0xf6)](),'activator':()=>this[_0x277957(0xc6)][_0x277957(0x10c)]});}[_0x150268(0xa5)](){const _0xc109cf=_0x150268,_0x4089e9=new _0x23f99f(this[_0xc109cf(0xe6)]);_0x4089e9[_0xc109cf(0x115)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x18b2e2=[this[_0xc109cf(0x104)][_0xc109cf(0x101)][_0xc109cf(0x130)]];return this[_0xc109cf(0x104)][_0xc109cf(0x101)][_0xc109cf(0xf3)]&&_0x18b2e2[_0xc109cf(0x126)](this[_0xc109cf(0x104)][_0xc109cf(0x101)][_0xc109cf(0xf3)]),_0x4089e9[_0xc109cf(0x11c)]({'attributes':{'class':_0x18b2e2}}),_0x4089e9;}[_0x150268(0x113)](){const _0x4e9c57=_0x150268,_0x2e71be=new _0x163201(this[_0x4e9c57(0xe6)]);return _0x2e71be[_0x4e9c57(0x11c)]({'attributes':{'class':this[_0x4e9c57(0x104)][_0x4e9c57(0x101)][_0x4e9c57(0x105)]}}),this[_0x4e9c57(0xe1)][_0x4e9c57(0x112)](_0x2e71be),_0x2e71be;}[_0x150268(0x11b)](){const _0x7292b5=_0x150268;if(this[_0x7292b5(0xda)]&&(this[_0x7292b5(0xda)][_0x7292b5(0xe4)][_0x7292b5(0xfc)](),this[_0x7292b5(0xb3)][_0x7292b5(0xa0)]>0x0)){this[_0x7292b5(0xb3)][_0x7292b5(0x114)](_0x2d1047=>{const _0x13a1be=_0x7292b5;_0x2d1047[_0x13a1be(0x121)]();});const _0x40f64f=new _0x39eaab(this[_0x7292b5(0xe6)]);_0x40f64f[_0x7292b5(0xc2)]({'tag':_0x7292b5(0xce),'attributes':{'class':this[_0x7292b5(0x104)][_0x7292b5(0x101)][_0x7292b5(0xd5)]},'children':this[_0x7292b5(0xb3)]}),this[_0x7292b5(0xda)][_0x7292b5(0xe4)][_0x7292b5(0x112)](_0x40f64f);}}[_0x150268(0xbf)](){const _0xe47329=_0x150268;this[_0xe47329(0xc6)][_0xe47329(0x10c)]?this[_0xe47329(0xf6)]():this[_0xe47329(0x124)]();}[_0x150268(0x111)](){const _0x3b0dfe=_0x150268,_0x1a70a2=this[_0x3b0dfe(0xb3)][_0x3b0dfe(0xa0)]>0x0;this[_0x3b0dfe(0xc6)]?.[_0x3b0dfe(0xfb)]&&(this[_0x3b0dfe(0xc6)][_0x3b0dfe(0xfb)][_0x3b0dfe(0xcb)][_0x3b0dfe(0x123)]=_0x1a70a2?'':_0x3b0dfe(0xbe));}[_0x150268(0xe9)](){const _0x481501=_0x150268;this[_0x481501(0xc6)]?.[_0x481501(0x10c)]&&this[_0x481501(0xda)]?.[_0x481501(0x10e)]&&this[_0x481501(0xc6)][_0x481501(0xfb)]&&this[_0x481501(0xda)][_0x481501(0x127)]({'target':this[_0x481501(0xc6)][_0x481501(0xfb)],'limiter':document[_0x481501(0x11a)](_0x481501(0xcc))});}[_0x150268(0x12b)](_0x36c620){const _0x52eeb9=_0x150268,_0xad80dd=this[_0x52eeb9(0xe3)]?.[_0x52eeb9(0xd1)][_0x52eeb9(0xef)]()||_0x52eeb9(0xce),_0x3c5a8e=this[_0x52eeb9(0xe3)]?.[_0x52eeb9(0xc1)];if(_0x3c5a8e){const _0x4bbe7a=_0x3c5a8e[0x0]||'',_0x52ce91=_0x36c620[_0x52eeb9(0x11a)]('.'+_0x4bbe7a),_0x2599e2=_0x36c620[_0x52eeb9(0x11a)](_0xad80dd);return _0x52ce91||_0x2599e2||_0x36c620;}return _0x36c620[_0x52eeb9(0x11a)](_0xad80dd)||_0x36c620;}[_0x150268(0xf7)](){const _0x505b8f=_0x150268,_0x4e8af6=this[_0x505b8f(0xe0)]?.[_0x505b8f(0xfb)]||this[_0x505b8f(0xe3)];if(!_0x4e8af6)return an;const _0x53b602=window[_0x505b8f(0x12e)](_0x4e8af6)[_0x505b8f(0x110)];if(_0x505b8f(0x11d)===_0x53b602||_0x505b8f(0xf9)===_0x53b602||!_0x53b602){const _0xf36e11=_0x4e8af6[_0x505b8f(0x10a)];if(_0xf36e11){const _0x5512f4=window[_0x505b8f(0x12e)](_0xf36e11);return _0x505b8f(0x11d)!==_0x5512f4[_0x505b8f(0x110)]?_0x5512f4[_0x505b8f(0x110)]:an;}return an;}return _0x53b602;}[_0x150268(0x106)](_0x1ae852,_0x28c11c){const _0x5e1107=_0x150268;this[_0x5e1107(0x104)][_0x5e1107(0x101)][_0x5e1107(0xa9)]&&_0x1ae852[_0x5e1107(0xc1)][_0x5e1107(0x112)](this[_0x5e1107(0x104)][_0x5e1107(0x101)][_0x5e1107(0xa9)]),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x110)]=_0x28c11c,_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xed)]=_0x5e1107(0x11e),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xa8)]=_0x5e1107(0xf1),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x118)]=_0x5e1107(0xf1),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x133)]='0',_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xc5)]=_0x5e1107(0xbe),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xa7)]='-1',_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xb5)]=_0x5e1107(0xcd),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x123)]=_0x5e1107(0xec),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x12a)]=_0x5e1107(0x117);}[_0x150268(0xff)](_0x104c20){const _0x332f6d=_0x150268;_0x104c20[_0x332f6d(0x114)](({element:_0x324079,originalDisplay:_0x264422,originalVisibility:_0x42272f})=>{const _0x2c5723=_0x332f6d;_0x324079[_0x2c5723(0xcb)][_0x2c5723(0x123)]=_0x264422,_0x324079[_0x2c5723(0xcb)][_0x2c5723(0xb5)]=_0x42272f;});}[_0x150268(0xae)](_0x4ecd7b){const _0x523e44=_0x150268,_0x1c0c18=[];let _0x522bff=_0x4ecd7b;for(;_0x522bff&&_0x522bff!==document[_0x523e44(0x102)];){const _0x4701f6=window[_0x523e44(0x12e)](_0x522bff);_0x523e44(0xbe)!==_0x4701f6[_0x523e44(0x123)]&&_0x523e44(0x12f)!==_0x4701f6[_0x523e44(0xb5)]||(_0x1c0c18[_0x523e44(0x126)]({'element':_0x522bff,'originalDisplay':_0x522bff[_0x523e44(0xcb)][_0x523e44(0x123)],'originalVisibility':_0x522bff[_0x523e44(0xcb)][_0x523e44(0xb5)]}),_0x522bff[_0x523e44(0xcb)][_0x523e44(0x123)]=_0x523e44(0xeb),_0x522bff[_0x523e44(0xcb)][_0x523e44(0xb5)]=_0x523e44(0xaa)),_0x522bff=_0x522bff[_0x523e44(0x10a)];}return _0x1c0c18;}[_0x150268(0xcf)](){const _0xb46e00=_0x150268;let _0x504d4f,_0x396447;return this[_0xb46e00(0xe0)]?.[_0xb46e00(0xfb)]?(_0x504d4f=this[_0xb46e00(0xe0)][_0xb46e00(0xfb)][_0xb46e00(0xc7)](!0x0),_0x396447=this[_0xb46e00(0x12b)](_0x504d4f)):(_0x504d4f=document[_0xb46e00(0xfa)](_0xb46e00(0xce)),_0x396447=_0x504d4f),{'calculationContainer':_0x504d4f,'targetContainer':_0x396447};}[_0x150268(0xad)](){const _0x1c42cc=_0x150268,{calculationContainer:_0x45730d,targetContainer:_0x2a208b}=this[_0x1c42cc(0xcf)](),_0xdf0989=this[_0x1c42cc(0xf7)]();this[_0x1c42cc(0x106)](_0x45730d,_0xdf0989);const _0x1ec086=this[_0x1c42cc(0xe0)]?.[_0x1c42cc(0xfb)]||this[_0x1c42cc(0xe3)],_0x526b4a=_0x1ec086?.[_0x1c42cc(0x10a)];_0x526b4a?_0x526b4a[_0x1c42cc(0xd9)](_0x45730d):document[_0x1c42cc(0x102)][_0x1c42cc(0xd9)](_0x45730d),_0x45730d[_0x1c42cc(0xab)]=_0x2a208b;const _0x50ddf9=this[_0x1c42cc(0xae)](_0x526b4a||null);return _0x45730d[_0x1c42cc(0xb9)],_0x45730d[_0x1c42cc(0xfd)]=_0x50ddf9,_0x45730d;}[_0x150268(0xdb)](_0x4c52ef,_0x3a6f3b){const _0x58d477=_0x150268,_0x30deec=_0x4c52ef[_0x58d477(0xab)]||_0x4c52ef,_0x3bcac8=[],{rowCount:_0x270283}=this[_0x58d477(0x11f)](_0x30deec,_0x3a6f3b);if(_0x270283<=this[_0x58d477(0x104)][_0x58d477(0xa1)])return _0x3bcac8;const _0x4a21bf=_0x3a6f3b[_0x58d477(0x129)]();for(;_0x4a21bf[_0x58d477(0xa0)]>0x0;){if(this[_0x58d477(0x120)](_0x4c52ef,_0x30deec,_0x4a21bf)){const _0xea88cb=_0x3a6f3b[_0x58d477(0x103)](_0x3f4449=>!_0x4a21bf[_0x58d477(0xa2)](_0x3f4449));_0x3bcac8[_0x58d477(0x126)](..._0xea88cb);break;}if(!_0x4a21bf[_0x58d477(0xdd)]())break;}return _0x3bcac8;}[_0x150268(0x11f)](_0x2c07a9,_0x58d405){const _0x191ef1=_0x150268;_0x2c07a9[_0x191ef1(0x12c)]='',_0x58d405[_0x191ef1(0x114)](_0xf2bf20=>{const _0x1c144e=_0x191ef1;if(_0xf2bf20[_0x1c144e(0xfb)]){const _0x8543cc=_0xf2bf20[_0x1c144e(0xfb)][_0x1c144e(0xc7)](!0x0);_0x2c07a9[_0x1c144e(0xd9)](_0x8543cc);}}),_0x2c07a9[_0x191ef1(0xb9)];const _0x5e2231=_0x2c07a9[_0x191ef1(0x122)],_0x44c57a=[];return Array[_0x191ef1(0xb8)](_0x5e2231)[_0x191ef1(0x114)](_0xc3d289=>{const _0x51500b=_0x191ef1,_0x437b30=_0xc3d289[_0x51500b(0xa6)]()[_0x51500b(0xa8)];_0x44c57a[_0x51500b(0xea)](_0x176e64=>Math[_0x51500b(0xc8)](_0x176e64-_0x437b30)<this[_0x51500b(0x104)][_0x51500b(0xac)])||_0x44c57a[_0x51500b(0x126)](_0x437b30);}),{'rowCount':_0x44c57a[_0x191ef1(0xa0)]};}[_0x150268(0xe8)](){const _0x3e6d4f=_0x150268,_0x253d92=document[_0x3e6d4f(0xfa)](_0x3e6d4f(0xfe));return _0x253d92[_0x3e6d4f(0xdc)]=this[_0x3e6d4f(0x104)][_0x3e6d4f(0x101)][_0x3e6d4f(0x130)],this[_0x3e6d4f(0x104)][_0x3e6d4f(0x101)][_0x3e6d4f(0xf3)]&&_0x253d92[_0x3e6d4f(0xc1)][_0x3e6d4f(0x112)](this[_0x3e6d4f(0x104)][_0x3e6d4f(0x101)][_0x3e6d4f(0xf3)]),_0x253d92[_0x3e6d4f(0xb1)]=_0x3e6d4f(0xe5),_0x253d92;}[_0x150268(0x120)](_0xd9b0bd,_0x6cf49b,_0x4efbb3){const _0x1c0837=_0x150268;this[_0x1c0837(0x11f)](_0x6cf49b,_0x4efbb3);const _0x417862=this[_0x1c0837(0xe8)]();_0xd9b0bd[_0x1c0837(0xd9)](_0x417862),_0xd9b0bd[_0x1c0837(0xb9)];const _0xfa00a1=[..._0x6cf49b[_0x1c0837(0x122)],_0x417862],_0x22aaf5=[];_0xfa00a1[_0x1c0837(0x114)](_0x5b6227=>{const _0x9e68f7=_0x1c0837,_0x12cbbf=_0x5b6227[_0x9e68f7(0xa6)]()[_0x9e68f7(0xa8)];_0x22aaf5[_0x9e68f7(0xea)](_0x44c9d3=>Math[_0x9e68f7(0xc8)](_0x44c9d3-_0x12cbbf)<this[_0x9e68f7(0x104)][_0x9e68f7(0xac)])||_0x22aaf5[_0x9e68f7(0x126)](_0x12cbbf);});const _0x3bfe38=_0x22aaf5[_0x1c0837(0xa0)];return _0x417862[_0x1c0837(0xf4)](),_0x3bfe38<=this[_0x1c0837(0x104)][_0x1c0837(0xa1)];}[_0x150268(0xd7)](_0x31d11a,_0x368d68){const _0x5bdad7=_0x150268;this[_0x5bdad7(0xb2)][_0x5bdad7(0xfc)](),this[_0x5bdad7(0xb3)][_0x5bdad7(0xfc)](),_0x31d11a[_0x5bdad7(0x114)](_0x48aeea=>{const _0x24f9f7=_0x5bdad7;_0x368d68[_0x24f9f7(0xa2)](_0x48aeea)?this[_0x24f9f7(0xb3)][_0x24f9f7(0x112)](_0x48aeea):this[_0x24f9f7(0xb2)][_0x24f9f7(0x112)](_0x48aeea);});}[_0x150268(0xb6)](_0x41b694){const _0x4c6d99=_0x150268;if(_0x41b694>0x0&&!this[_0x4c6d99(0xc6)]&&this[_0x4c6d99(0x107)](),_0x41b694>0x0&&this[_0x4c6d99(0xc6)]){const _0x3e87ea=''+this[_0x4c6d99(0x104)][_0x4c6d99(0xb4)]+(_0x41b694<0x63?_0x41b694:'99');this[_0x4c6d99(0xc6)][_0x4c6d99(0xc9)]=_0x3e87ea;}this[_0x4c6d99(0x11b)](),this[_0x4c6d99(0x111)](),this[_0x4c6d99(0xe9)]();}[_0x150268(0xd3)](_0x3d9b2a,_0x2e28c6){const _0x39f868=_0x150268;this[_0x39f868(0xd7)](_0x3d9b2a,_0x2e28c6),this[_0x39f868(0xb6)](_0x2e28c6[_0x39f868(0xa0)]);}[_0x150268(0x125)](){const _0x305d28=_0x150268;this[_0x305d28(0xe3)]&&_0x305d28(0x108)!=typeof IntersectionObserver&&(this[_0x305d28(0xf0)]=new IntersectionObserver(_0x4acc68=>{const _0x5e04ca=_0x305d28;_0x4acc68[0x0][_0x5e04ca(0xca)]&&this[_0x5e04ca(0xdf)]&&requestAnimationFrame(()=>{const _0x5d955e=_0x5e04ca;this[_0x5d955e(0xc0)]();});},{'threshold':0.01,'rootMargin':_0x305d28(0x132)}),this[_0x305d28(0xf0)][_0x305d28(0xe2)](this[_0x305d28(0xe3)]));}[_0x150268(0xaf)](){const _0x5c15e3=_0x150268;if(!this[_0x5c15e3(0xe3)])return!0x1;if(!this[_0x5c15e3(0xe3)][_0x5c15e3(0xa3)])return!0x1;const _0x304c11=this[_0x5c15e3(0xe3)][_0x5c15e3(0xa6)]();if(0x0===_0x304c11[_0x5c15e3(0x110)]||0x0===_0x304c11[_0x5c15e3(0xc3)])return!0x1;const _0x4e748f=window[_0x5c15e3(0x109)]||document[_0x5c15e3(0xb0)][_0x5c15e3(0x10d)],_0x306c44=window[_0x5c15e3(0xf5)]||document[_0x5c15e3(0xb0)][_0x5c15e3(0x10b)],_0x324312=0xc8;return _0x304c11[_0x5c15e3(0xba)]>=-0xc8&&_0x304c11[_0x5c15e3(0xa8)]<=_0x4e748f+_0x324312&&_0x304c11[_0x5c15e3(0x128)]>=-0xc8&&_0x304c11[_0x5c15e3(0x118)]<=_0x306c44+_0x324312;}}
23
+ const _0x836b3=_0x934d;(function(_0x4f039a,_0x20dfcc){const _0x313fb7=_0x934d,_0x2baf39=_0x4f039a();while(!![]){try{const _0xa433be=-parseInt(_0x313fb7(0xb0))/0x1*(parseInt(_0x313fb7(0xf4))/0x2)+-parseInt(_0x313fb7(0xe4))/0x3+parseInt(_0x313fb7(0xf3))/0x4+-parseInt(_0x313fb7(0x92))/0x5+parseInt(_0x313fb7(0x6f))/0x6*(parseInt(_0x313fb7(0xe0))/0x7)+-parseInt(_0x313fb7(0x94))/0x8+parseInt(_0x313fb7(0xc8))/0x9;if(_0xa433be===_0x20dfcc)break;else _0x2baf39['push'](_0x2baf39['shift']());}catch(_0x4c09a0){_0x2baf39['push'](_0x2baf39['shift']());}}}(_0x40c8,0xa2a84));import{View as _0x5d657d,BalloonPanelView as _0x3e644b,ButtonView as _0x1787cf,clickOutsideHandler as _0x126de1}from'ckeditor5/src/ui.js';import{Collection as _0xde7a8f}from'ckeditor5/src/utils.js';function _0x40c8(){const _0x45cd33=['block','7iPFBny','width','_makeAncestorsVisible','_applyCalculationStyles','1467858MpfEAc','add','border-box','left','_calculateOverflowInContainer','isOn','clear','content','textContent','cssClasses','offsetWidth','showBalloonPanel','visibility','_bodyCollection','length','3677800hzZOyF','2QIndfv','300px','_restoreAncestorVisibility','_isContainerVisible','hidden','+\x201','includes','getBoundingClientRect','destroy','_renderChipsAndCountRows','div','_setupVisibilityObserver','_updateOverflowUI','_createShowMoreBalloonPanelView','7915962BUkMtY','undefined','createElement','disconnect','pin','classList','appendChild','setTemplate','clientWidth','_visibleChips','right','innerWidth','filter','showMoreButtonView','element','bottom','_showMoreButtonView','opacity','visible\x20!important','pop','_calculateContainerWidth','_parentView','_createShowMoreButton','observe','slice','isIntersecting','display','-9999px','remove','position','showMoreButton','_targetContainer','rowDetectionTolerance','pointerEvents','block\x20!important','5203925NIMAUV','_pendingCalculation','9850160BlxwiT','innerHeight','_intersectionObserver','showMoreBalloon','cloneNode','forEach','getComputedStyle','_testButtonFit','isVisible','_checkAndHandleOverflow','.ck-ai-chat','push','controlsButton','_containerElement','calculationContainer','height','from','_handleShowMoreButtonClick','_findTargetContainer','reorganizeChips','body','_overflowChips','ck-calculation-container','auto','_ancestorsToRestore','visible','none','_createMockButton','140729xIJiGi','render','maxVisibleRows','top','some','isConnected','_locale','set','showMoreLabelPrefix','_createShowMoreButtonView','hideBalloonPanel','className','abs','overflowContainer','style','zIndex','extendTemplate','_distributeChips','0px','clientHeight','button','querySelector','_updateBalloonContent','children','11965833UtQpxF','label','disableAnimationOnEnter','execute','_createCalculationContainer','absolute','_showMoreBalloonPanelView','documentElement','_repinBalloonPanel','_config','hide','overflowChips','_updateShowMoreButtonVisibility','parentElement','innerHTML','tagName','50px','toLowerCase','boxSizing','_createContainerElements','_applyOverflowResults','setContainerElement','show'];_0x40c8=function(){return _0x45cd33;};return _0x40c8();}function _0x934d(_0x1472d5,_0x5933ac){const _0x40c85a=_0x40c8();return _0x934d=function(_0x934d44,_0x23c050){_0x934d44=_0x934d44-0x6a;let _0x7b53b8=_0x40c85a[_0x934d44];return _0x7b53b8;},_0x934d(_0x1472d5,_0x5933ac);}const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x836b3(0xf5);export class AIChatChipsOverflowManager{[_0x836b3(0xb6)];[_0x836b3(0xd1)];[_0x836b3(0x78)];[_0x836b3(0xa9)];[_0x836b3(0x7f)]=null;[_0x836b3(0xce)]=null;[_0x836b3(0xa1)]=null;[_0x836b3(0xf1)];[_0x836b3(0x84)]=null;[_0x836b3(0x96)]=null;[_0x836b3(0x93)]=!0x1;constructor(_0xa4207b,_0x4c643b,_0x3fe2fd,_0x17cc90,_0x136c8c){const _0x3ce28b=_0x836b3;this[_0x3ce28b(0xb6)]=_0xa4207b,this[_0x3ce28b(0x78)]=_0x4c643b,this[_0x3ce28b(0xd1)]={...wn,..._0x3fe2fd,'cssClasses':{'controlsButton':'','calculationContainer':_0x3ce28b(0xaa),..._0x3fe2fd[_0x3ce28b(0xed)]}},this[_0x3ce28b(0xa9)]=new _0xde7a8f(),this[_0x3ce28b(0xf1)]=_0x17cc90,this[_0x3ce28b(0x84)]=_0x136c8c||null;}[_0x836b3(0xdd)](_0x340d11){const _0x4dd507=_0x836b3;this[_0x4dd507(0x96)]&&(this[_0x4dd507(0x96)][_0x4dd507(0x72)](),this[_0x4dd507(0x96)]=null),this[_0x4dd507(0xa1)]=_0x340d11,this[_0x4dd507(0x6c)]();}get[_0x836b3(0x7c)](){const _0x44dd1a=_0x836b3;return this[_0x44dd1a(0x7f)];}get[_0x836b3(0xd3)](){const _0xff18f0=_0x836b3;return this[_0xff18f0(0xa9)];}[_0x836b3(0xa7)](){requestAnimationFrame(()=>{const _0x3ba1fe=_0x934d;this[_0x3ba1fe(0x9d)]();});}[_0x836b3(0xef)](){const _0x279f91=_0x836b3;this[_0x279f91(0x7f)]&&this[_0x279f91(0xce)]&&(this[_0x279f91(0xc6)](),this[_0x279f91(0x7f)][_0x279f91(0xe9)]=!0x0,this[_0x279f91(0xce)][_0x279f91(0xde)](),this[_0x279f91(0xce)][_0x279f91(0x73)]({'target':this[_0x279f91(0x7f)][_0x279f91(0x7d)],'limiter':document[_0x279f91(0xc5)](_0x279f91(0x9e))}));}[_0x836b3(0xba)](){const _0x16695e=_0x836b3;this[_0x16695e(0x7f)]&&this[_0x16695e(0xce)]&&(this[_0x16695e(0x7f)][_0x16695e(0xe9)]=!0x1,this[_0x16695e(0xce)][_0x16695e(0xd2)]());}[_0x836b3(0xea)](){const _0x3db2dc=_0x836b3;this[_0x3db2dc(0xa9)][_0x3db2dc(0xea)](),this[_0x3db2dc(0xba)](),this[_0x3db2dc(0xd4)](),this[_0x3db2dc(0x7f)]&&(this[_0x3db2dc(0x7f)][_0x3db2dc(0xc9)]=''),this[_0x3db2dc(0xce)]&&this[_0x3db2dc(0xce)][_0x3db2dc(0xeb)][_0x3db2dc(0xea)]();}[_0x836b3(0xfc)](){const _0x28cbc7=_0x836b3;this[_0x28cbc7(0x96)]&&(this[_0x28cbc7(0x96)][_0x28cbc7(0x72)](),this[_0x28cbc7(0x96)]=null),this[_0x28cbc7(0x7f)]&&(this[_0x28cbc7(0x7f)][_0x28cbc7(0xfc)](),this[_0x28cbc7(0x7f)]=null),this[_0x28cbc7(0xce)]&&(this[_0x28cbc7(0xce)][_0x28cbc7(0xfc)](),this[_0x28cbc7(0xce)]=null);}[_0x836b3(0x9d)](){const _0x487220=_0x836b3;if(!this[_0x487220(0xa1)])return;if(!this[_0x487220(0xf7)]())return void(this[_0x487220(0x93)]=!0x0);this[_0x487220(0x93)]=!0x1;const _0x2172a0=[...this[_0x487220(0x78)],...this[_0x487220(0xa9)]],_0x2d6f8c=this[_0x487220(0xcc)](),_0x5e8104=this[_0x487220(0xe8)](_0x2d6f8c,_0x2172a0),_0x8ff5a4=_0x2d6f8c[_0x487220(0xac)];_0x8ff5a4&&this[_0x487220(0xf6)](_0x8ff5a4),_0x2d6f8c[_0x487220(0x8b)](),this[_0x487220(0xdc)](_0x2172a0,_0x5e8104);}[_0x836b3(0x85)](){const _0x3887f8=_0x836b3;this[_0x3887f8(0x7f)]=this[_0x3887f8(0xb9)](),this[_0x3887f8(0xce)]=this[_0x3887f8(0x6e)](),this[_0x3887f8(0x7f)][_0x3887f8(0xb1)](),this[_0x3887f8(0xa1)][_0x3887f8(0x75)](this[_0x3887f8(0x7f)][_0x3887f8(0x7d)]),this[_0x3887f8(0x7f)]['on'](_0x3887f8(0xcb),()=>{const _0x370066=_0x3887f8;this[_0x370066(0xa5)]();}),_0x126de1({'emitter':this[_0x3887f8(0xce)],'contextElements':[this[_0x3887f8(0xce)][_0x3887f8(0x7d)],this[_0x3887f8(0x7f)][_0x3887f8(0x7d)]],'callback':()=>this[_0x3887f8(0xba)](),'activator':()=>this[_0x3887f8(0x7f)][_0x3887f8(0xe9)]});}[_0x836b3(0xb9)](){const _0x115d6d=_0x836b3,_0x4cd16c=new _0x1787cf(this[_0x115d6d(0xb6)]);_0x4cd16c[_0x115d6d(0xb7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x772b77=[this[_0x115d6d(0xd1)][_0x115d6d(0xed)][_0x115d6d(0x8d)]];return this[_0x115d6d(0xd1)][_0x115d6d(0xed)][_0x115d6d(0xa0)]&&_0x772b77[_0x115d6d(0x9f)](this[_0x115d6d(0xd1)][_0x115d6d(0xed)][_0x115d6d(0xa0)]),_0x4cd16c[_0x115d6d(0xc0)]({'attributes':{'class':_0x772b77}}),_0x4cd16c;}[_0x836b3(0x6e)](){const _0x39cdf4=_0x836b3,_0x441f80=new _0x3e644b(this[_0x39cdf4(0xb6)]);return _0x441f80[_0x39cdf4(0xc0)]({'attributes':{'class':this[_0x39cdf4(0xd1)][_0x39cdf4(0xed)][_0x39cdf4(0x97)]}}),this[_0x39cdf4(0xf1)][_0x39cdf4(0xe5)](_0x441f80),_0x441f80;}[_0x836b3(0xc6)](){const _0x446f11=_0x836b3;if(this[_0x446f11(0xce)]&&(this[_0x446f11(0xce)][_0x446f11(0xeb)][_0x446f11(0xea)](),this[_0x446f11(0xa9)][_0x446f11(0xf2)]>0x0)){this[_0x446f11(0xa9)][_0x446f11(0x99)](_0x4ab8b1=>{const _0x5980d5=_0x446f11;_0x4ab8b1[_0x5980d5(0xca)]();});const _0x2869a7=new _0x5d657d(this[_0x446f11(0xb6)]);_0x2869a7[_0x446f11(0x76)]({'tag':_0x446f11(0x6b),'attributes':{'class':this[_0x446f11(0xd1)][_0x446f11(0xed)][_0x446f11(0xbd)]},'children':this[_0x446f11(0xa9)]}),this[_0x446f11(0xce)][_0x446f11(0xeb)][_0x446f11(0xe5)](_0x2869a7);}}[_0x836b3(0xa5)](){const _0x4e0a66=_0x836b3;this[_0x4e0a66(0x7f)][_0x4e0a66(0xe9)]?this[_0x4e0a66(0xba)]():this[_0x4e0a66(0xef)]();}[_0x836b3(0xd4)](){const _0x5d67f2=_0x836b3,_0x11c1b2=this[_0x5d67f2(0xa9)][_0x5d67f2(0xf2)]>0x0;this[_0x5d67f2(0x7f)]?.[_0x5d67f2(0x7d)]&&(this[_0x5d67f2(0x7f)][_0x5d67f2(0x7d)][_0x5d67f2(0xbe)][_0x5d67f2(0x89)]=_0x11c1b2?'':_0x5d67f2(0xae));}[_0x836b3(0xd0)](){const _0x4c2b08=_0x836b3;this[_0x4c2b08(0x7f)]?.[_0x4c2b08(0xe9)]&&this[_0x4c2b08(0xce)]?.[_0x4c2b08(0x9c)]&&this[_0x4c2b08(0x7f)][_0x4c2b08(0x7d)]&&this[_0x4c2b08(0xce)][_0x4c2b08(0x73)]({'target':this[_0x4c2b08(0x7f)][_0x4c2b08(0x7d)],'limiter':document[_0x4c2b08(0xc5)](_0x4c2b08(0x9e))});}[_0x836b3(0xa6)](_0x5d50ea){const _0x13f229=_0x836b3,_0x3d6846=this[_0x13f229(0xa1)]?.[_0x13f229(0xd7)][_0x13f229(0xd9)]()||_0x13f229(0x6b),_0xcd2015=this[_0x13f229(0xa1)]?.[_0x13f229(0x74)];if(_0xcd2015){const _0x1a2422=_0xcd2015[0x0]||'',_0x4a9c41=_0x5d50ea[_0x13f229(0xc5)]('.'+_0x1a2422),_0x202044=_0x5d50ea[_0x13f229(0xc5)](_0x3d6846);return _0x4a9c41||_0x202044||_0x5d50ea;}return _0x5d50ea[_0x13f229(0xc5)](_0x3d6846)||_0x5d50ea;}[_0x836b3(0x83)](){const _0x53a807=_0x836b3,_0x1110fd=this[_0x53a807(0x84)]?.[_0x53a807(0x7d)]||this[_0x53a807(0xa1)];if(!_0x1110fd)return dn;const _0x1da4f5=window[_0x53a807(0x9a)](_0x1110fd)[_0x53a807(0xe1)];if(_0x53a807(0xab)===_0x1da4f5||_0x53a807(0xc2)===_0x1da4f5||!_0x1da4f5){const _0x3fd885=_0x1110fd[_0x53a807(0xd5)];if(_0x3fd885){const _0x4dca06=window[_0x53a807(0x9a)](_0x3fd885);return _0x53a807(0xab)!==_0x4dca06[_0x53a807(0xe1)]?_0x4dca06[_0x53a807(0xe1)]:dn;}return dn;}return _0x1da4f5;}[_0x836b3(0xe3)](_0x398103,_0x41697f){const _0x2fcaec=_0x836b3;this[_0x2fcaec(0xd1)][_0x2fcaec(0xed)][_0x2fcaec(0xa2)]&&_0x398103[_0x2fcaec(0x74)][_0x2fcaec(0xe5)](this[_0x2fcaec(0xd1)][_0x2fcaec(0xed)][_0x2fcaec(0xa2)]),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xe1)]=_0x41697f,_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x8c)]=_0x2fcaec(0xcd),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xb3)]=_0x2fcaec(0x8a),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xe7)]=_0x2fcaec(0x8a),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x80)]='0',_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x90)]=_0x2fcaec(0xae),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xbf)]='-1',_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xf0)]=_0x2fcaec(0x81),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x89)]=_0x2fcaec(0x91),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xda)]=_0x2fcaec(0xe6);}[_0x836b3(0xf6)](_0x59a445){const _0x3eac10=_0x836b3;_0x59a445[_0x3eac10(0x99)](({element:_0x60f729,originalDisplay:_0x310312,originalVisibility:_0x365a78})=>{const _0x450c22=_0x3eac10;_0x60f729[_0x450c22(0xbe)][_0x450c22(0x89)]=_0x310312,_0x60f729[_0x450c22(0xbe)][_0x450c22(0xf0)]=_0x365a78;});}[_0x836b3(0xe2)](_0x17d90d){const _0x266874=_0x836b3,_0x2087e6=[];let _0x212877=_0x17d90d;for(;_0x212877&&_0x212877!==document[_0x266874(0xa8)];){const _0xb93dc1=window[_0x266874(0x9a)](_0x212877);_0x266874(0xae)!==_0xb93dc1[_0x266874(0x89)]&&_0x266874(0xf8)!==_0xb93dc1[_0x266874(0xf0)]||(_0x2087e6[_0x266874(0x9f)]({'element':_0x212877,'originalDisplay':_0x212877[_0x266874(0xbe)][_0x266874(0x89)],'originalVisibility':_0x212877[_0x266874(0xbe)][_0x266874(0xf0)]}),_0x212877[_0x266874(0xbe)][_0x266874(0x89)]=_0x266874(0xdf),_0x212877[_0x266874(0xbe)][_0x266874(0xf0)]=_0x266874(0xad)),_0x212877=_0x212877[_0x266874(0xd5)];}return _0x2087e6;}[_0x836b3(0xdb)](){const _0x185566=_0x836b3;let _0x37fefb,_0xbc0bbd;return this[_0x185566(0x84)]?.[_0x185566(0x7d)]?(_0x37fefb=this[_0x185566(0x84)][_0x185566(0x7d)][_0x185566(0x98)](!0x0),_0xbc0bbd=this[_0x185566(0xa6)](_0x37fefb)):(_0x37fefb=document[_0x185566(0x71)](_0x185566(0x6b)),_0xbc0bbd=_0x37fefb),{'calculationContainer':_0x37fefb,'targetContainer':_0xbc0bbd};}[_0x836b3(0xcc)](){const _0x1bd521=_0x836b3,{calculationContainer:_0x4f9e31,targetContainer:_0x743d27}=this[_0x1bd521(0xdb)](),_0x34fc11=this[_0x1bd521(0x83)]();this[_0x1bd521(0xe3)](_0x4f9e31,_0x34fc11);const _0x252b03=this[_0x1bd521(0x84)]?.[_0x1bd521(0x7d)]||this[_0x1bd521(0xa1)],_0x49a382=_0x252b03?.[_0x1bd521(0xd5)];_0x49a382?_0x49a382[_0x1bd521(0x75)](_0x4f9e31):document[_0x1bd521(0xa8)][_0x1bd521(0x75)](_0x4f9e31),_0x4f9e31[_0x1bd521(0x8e)]=_0x743d27;const _0x3aa235=this[_0x1bd521(0xe2)](_0x49a382||null);return _0x4f9e31[_0x1bd521(0xee)],_0x4f9e31[_0x1bd521(0xac)]=_0x3aa235,_0x4f9e31;}[_0x836b3(0xe8)](_0x128641,_0x2f8d57){const _0x27b25d=_0x836b3,_0x1859f8=_0x128641[_0x27b25d(0x8e)]||_0x128641,_0x35b4b8=[],{rowCount:_0x3dff84}=this[_0x27b25d(0x6a)](_0x1859f8,_0x2f8d57);if(_0x3dff84<=this[_0x27b25d(0xd1)][_0x27b25d(0xb2)])return _0x35b4b8;const _0x53178b=_0x2f8d57[_0x27b25d(0x87)]();for(;_0x53178b[_0x27b25d(0xf2)]>0x0;){if(this[_0x27b25d(0x9b)](_0x128641,_0x1859f8,_0x53178b)){const _0x249873=_0x2f8d57[_0x27b25d(0x7b)](_0x522f40=>!_0x53178b[_0x27b25d(0xfa)](_0x522f40));_0x35b4b8[_0x27b25d(0x9f)](..._0x249873);break;}if(!_0x53178b[_0x27b25d(0x82)]())break;}return _0x35b4b8;}[_0x836b3(0x6a)](_0x1b2f7f,_0x3bbca4){const _0x49a3df=_0x836b3;_0x1b2f7f[_0x49a3df(0xd6)]='',_0x3bbca4[_0x49a3df(0x99)](_0x43e6b4=>{const _0x2f3307=_0x49a3df;if(_0x43e6b4[_0x2f3307(0x7d)]){const _0x3600f5=_0x43e6b4[_0x2f3307(0x7d)][_0x2f3307(0x98)](!0x0);_0x1b2f7f[_0x2f3307(0x75)](_0x3600f5);}}),_0x1b2f7f[_0x49a3df(0xee)];const _0x29f9c3=_0x1b2f7f[_0x49a3df(0xc7)],_0x4c0b87=[];return Array[_0x49a3df(0xa4)](_0x29f9c3)[_0x49a3df(0x99)](_0x30735f=>{const _0x82fc30=_0x49a3df,_0x1d579f=_0x30735f[_0x82fc30(0xfb)]()[_0x82fc30(0xb3)];_0x4c0b87[_0x82fc30(0xb4)](_0x19652c=>Math[_0x82fc30(0xbc)](_0x19652c-_0x1d579f)<this[_0x82fc30(0xd1)][_0x82fc30(0x8f)])||_0x4c0b87[_0x82fc30(0x9f)](_0x1d579f);}),{'rowCount':_0x4c0b87[_0x49a3df(0xf2)]};}[_0x836b3(0xaf)](){const _0x4a39d2=_0x836b3,_0x3ad88b=document[_0x4a39d2(0x71)](_0x4a39d2(0xc4));return _0x3ad88b[_0x4a39d2(0xbb)]=this[_0x4a39d2(0xd1)][_0x4a39d2(0xed)][_0x4a39d2(0x8d)],this[_0x4a39d2(0xd1)][_0x4a39d2(0xed)][_0x4a39d2(0xa0)]&&_0x3ad88b[_0x4a39d2(0x74)][_0x4a39d2(0xe5)](this[_0x4a39d2(0xd1)][_0x4a39d2(0xed)][_0x4a39d2(0xa0)]),_0x3ad88b[_0x4a39d2(0xec)]=_0x4a39d2(0xf9),_0x3ad88b;}[_0x836b3(0x9b)](_0x36b713,_0x5446f4,_0x3b967c){const _0x2c15ec=_0x836b3;this[_0x2c15ec(0x6a)](_0x5446f4,_0x3b967c);const _0x5a26c8=this[_0x2c15ec(0xaf)]();_0x36b713[_0x2c15ec(0x75)](_0x5a26c8),_0x36b713[_0x2c15ec(0xee)];const _0x353c3c=[..._0x5446f4[_0x2c15ec(0xc7)],_0x5a26c8],_0x1089fc=[];_0x353c3c[_0x2c15ec(0x99)](_0x153c64=>{const _0x22c630=_0x2c15ec,_0x56f87d=_0x153c64[_0x22c630(0xfb)]()[_0x22c630(0xb3)];_0x1089fc[_0x22c630(0xb4)](_0x3cb322=>Math[_0x22c630(0xbc)](_0x3cb322-_0x56f87d)<this[_0x22c630(0xd1)][_0x22c630(0x8f)])||_0x1089fc[_0x22c630(0x9f)](_0x56f87d);});const _0x112a2a=_0x1089fc[_0x2c15ec(0xf2)];return _0x5a26c8[_0x2c15ec(0x8b)](),_0x112a2a<=this[_0x2c15ec(0xd1)][_0x2c15ec(0xb2)];}[_0x836b3(0xc1)](_0x83c0fc,_0x2f0f87){const _0x48862a=_0x836b3;this[_0x48862a(0x78)][_0x48862a(0xea)](),this[_0x48862a(0xa9)][_0x48862a(0xea)](),_0x83c0fc[_0x48862a(0x99)](_0xd18f40=>{const _0x1be81a=_0x48862a;_0x2f0f87[_0x1be81a(0xfa)](_0xd18f40)?this[_0x1be81a(0xa9)][_0x1be81a(0xe5)](_0xd18f40):this[_0x1be81a(0x78)][_0x1be81a(0xe5)](_0xd18f40);});}[_0x836b3(0x6d)](_0x2f8382){const _0x58c5da=_0x836b3;if(_0x2f8382>0x0&&!this[_0x58c5da(0x7f)]&&this[_0x58c5da(0x85)](),_0x2f8382>0x0&&this[_0x58c5da(0x7f)]){const _0x5068a6=''+this[_0x58c5da(0xd1)][_0x58c5da(0xb8)]+(_0x2f8382<0x63?_0x2f8382:'99');this[_0x58c5da(0x7f)][_0x58c5da(0xc9)]=_0x5068a6;}this[_0x58c5da(0xc6)](),this[_0x58c5da(0xd4)](),this[_0x58c5da(0xd0)]();}[_0x836b3(0xdc)](_0x59fbc0,_0x31f007){const _0x28e5aa=_0x836b3;this[_0x28e5aa(0xc1)](_0x59fbc0,_0x31f007),this[_0x28e5aa(0x6d)](_0x31f007[_0x28e5aa(0xf2)]);}[_0x836b3(0x6c)](){const _0x53491d=_0x836b3;this[_0x53491d(0xa1)]&&_0x53491d(0x70)!=typeof IntersectionObserver&&(this[_0x53491d(0x96)]=new IntersectionObserver(_0x1e3a36=>{const _0x3cb98e=_0x53491d;_0x1e3a36[0x0][_0x3cb98e(0x88)]&&this[_0x3cb98e(0x93)]&&requestAnimationFrame(()=>{const _0x443ef5=_0x3cb98e;this[_0x443ef5(0x9d)]();});},{'threshold':0.01,'rootMargin':_0x53491d(0xd8)}),this[_0x53491d(0x96)][_0x53491d(0x86)](this[_0x53491d(0xa1)]));}[_0x836b3(0xf7)](){const _0x451679=_0x836b3;if(!this[_0x451679(0xa1)])return!0x1;if(!this[_0x451679(0xa1)][_0x451679(0xb5)])return!0x1;const _0x326637=this[_0x451679(0xa1)][_0x451679(0xfb)]();if(0x0===_0x326637[_0x451679(0xe1)]||0x0===_0x326637[_0x451679(0xa3)])return!0x1;const _0x4bf1a8=window[_0x451679(0x95)]||document[_0x451679(0xcf)][_0x451679(0xc3)],_0x2596e1=window[_0x451679(0x7a)]||document[_0x451679(0xcf)][_0x451679(0x77)],_0x544db5=0xc8;return _0x326637[_0x451679(0x7e)]>=-0xc8&&_0x326637[_0x451679(0xb3)]<=_0x4bf1a8+_0x544db5&&_0x326637[_0x451679(0x79)]>=-0xc8&&_0x326637[_0x451679(0xe7)]<=_0x2596e1+_0x544db5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2628ff=_0x431e;function _0x57d3(){const _0xb54f6f=['3059077fEBvvo','ck-ai-chat-context-chip__type-icon','setTemplate','isVisible','_createLabelElement','fire','set','animationend','bindTemplate','10ycZxCm','ck-ai-chat-context-chip_document','5eMVhTu','bind','execute','label','_createTemplateAttributes','ck-ai-chat-context-chip__label','_setupTemplate','itemType','9229672zTVBXO','5359020Mffezr','_createTemplateChildren','addEventListener','document','_createLoaderIcon','ck-ai-chat-context-chip_wide','classList','ck-ai-chat-context-chip','webkitAnimationEnd','_createRemoveButton','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip_new-chip','div','readonly','lastIndexOf','extendTemplate','disableAnimationOnEnter','length','15043932glOJpt','isLoading','9oSNyFm','slice','removeContextItemChip','span','66957WTOnEN','1182VtlAfU','_setupRemoveButtonEvent','remove','add','_createIconView','small','_handleAnimationEndOnce','selection','ck-hidden','removeEventListener','tooltip','_initializeProperties','content','_isAnimationOnEnterEnabled','uiId','1288498zVOBRT','6228BfWaGG','6FzeLua','type','ck-ai-chat-context-controls__chip-tooltip','render','locale','element'];_0x57d3=function(){return _0xb54f6f;};return _0x57d3();}(function(_0x2ea284,_0x1cd5db){const _0x3c615d=_0x431e,_0x36c2f3=_0x2ea284();while(!![]){try{const _0x46de01=parseInt(_0x3c615d(0x19b))/0x1+-parseInt(_0x3c615d(0x19c))/0x2*(-parseInt(_0x3c615d(0x1d0))/0x3)+-parseInt(_0x3c615d(0x1b7))/0x4*(parseInt(_0x3c615d(0x1ae))/0x5)+parseInt(_0x3c615d(0x19d))/0x6*(-parseInt(_0x3c615d(0x1a3))/0x7)+parseInt(_0x3c615d(0x1b6))/0x8*(-parseInt(_0x3c615d(0x1cb))/0x9)+-parseInt(_0x3c615d(0x1ac))/0xa*(parseInt(_0x3c615d(0x1cf))/0xb)+parseInt(_0x3c615d(0x1c9))/0xc;if(_0x46de01===_0x1cd5db)break;else _0x36c2f3['push'](_0x36c2f3['shift']());}catch(_0x294f9a){_0x36c2f3['push'](_0x36c2f3['shift']());}}}(_0x57d3,0xcb401));function _0x431e(_0x394204,_0x42eba2){const _0x57d379=_0x57d3();return _0x431e=function(_0x431e8e,_0x14e7aa){_0x431e8e=_0x431e8e-0x191;let _0xea8b78=_0x57d379[_0x431e8e];return _0xea8b78;},_0x431e(_0x394204,_0x42eba2);}import{ButtonView as _0x52de99,IconView as _0x119f46}from'ckeditor5/src/ui.js';import{IconClose as _0x15999c,IconDocument as _0x1ee63c,IconFileUpload as _0x472f47,IconLink as _0x5c01dc,IconSelection as _0x4ae262}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x42a705}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x11407c}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x472f47,'document':_0x1ee63c,'web-resource':_0x5c01dc,'text':_0x472f47,'selection':_0x4ae262},bn=_0x2628ff(0x1be),wn=_0x2628ff(0x1bc),Tn=_0x2628ff(0x1ad),En=_0x2628ff(0x1b3),fn=_0x2628ff(0x1a4),An=_0x2628ff(0x19f),Cn='n';export class AIChatContextItemButtonView extends _0x52de99{constructor(_0x4e7e58,_0x22630c,_0x1cb83b,_0x2312ba,_0x184c3f=!0x1){const _0x1a604e=_0x2628ff;super(_0x4e7e58),this[_0x1a604e(0x199)]=_0x2312ba,this[_0x1a604e(0x197)](_0x22630c,_0x1cb83b,_0x184c3f),this[_0x1a604e(0x1b4)]();}[_0x2628ff(0x1a0)](){const _0x2b2a37=_0x2628ff;super[_0x2b2a37(0x1a0)](),this[_0x2b2a37(0x199)]&&this[_0x2b2a37(0x1a2)]&&(this[_0x2b2a37(0x1a2)][_0x2b2a37(0x1bd)][_0x2b2a37(0x1d3)](_0x2b2a37(0x1c2)),this[_0x2b2a37(0x192)](this[_0x2b2a37(0x1a2)],()=>{const _0x11ff6e=_0x2b2a37;this[_0x11ff6e(0x1a2)]&&this[_0x11ff6e(0x1a2)][_0x11ff6e(0x1bd)][_0x11ff6e(0x1d2)](_0x11ff6e(0x1c2));}));}[_0x2628ff(0x1c7)](){const _0x53952b=_0x2628ff;this[_0x53952b(0x199)]=!0x1,this[_0x53952b(0x1a2)]&&this[_0x53952b(0x1a2)][_0x53952b(0x1bd)][_0x53952b(0x1d2)](_0x53952b(0x1c2));}[_0x2628ff(0x197)](_0x1f9305,_0xa7db2e,_0x27ee76){const _0x48acac=_0x2628ff;this[_0x48acac(0x1a9)](_0x48acac(0x1b1),_0x1f9305[_0x48acac(0x1b1)]),this[_0x48acac(0x1a9)](_0x48acac(0x196),!0x0),this[_0x48acac(0x1a9)](_0x48acac(0x1b5),_0x1f9305[_0x48acac(0x19e)]),this[_0x48acac(0x1a9)]('id',_0x1f9305[_0x48acac(0x19a)]),this[_0x48acac(0x1a9)](_0x48acac(0x1c4),_0xa7db2e),this[_0x48acac(0x1a9)](_0x48acac(0x1ca),_0x27ee76);}[_0x2628ff(0x1b4)](){const _0x3f888f=_0x2628ff,_0x28c5bc=this[_0x3f888f(0x1d4)](),_0x4773c7=this[_0x3f888f(0x1c0)](),_0x4bbf59=this[_0x3f888f(0x1ab)];this[_0x3f888f(0x1a5)]({'tag':_0x3f888f(0x1c3),'attributes':this[_0x3f888f(0x1b2)](_0x4bbf59),'children':this[_0x3f888f(0x1b8)](_0x28c5bc,_0x4773c7,_0x4bbf59)});}[_0x2628ff(0x1b2)](_0x1d36c0){const _0x43463a=_0x2628ff;return{'class':[bn,_0x1d36c0['if'](_0x43463a(0x1b5),Tn,_0x5f64=>_0x43463a(0x1ba)==_0x5f64),_0x1d36c0['if'](_0x43463a(0x1b5),wn,_0x5403fa=>_0x43463a(0x193)==_0x5403fa)],'data-cke-tooltip-text':_0x1d36c0['to'](_0x43463a(0x1b1),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2628ff(0x1b8)](_0x1d9413,_0x1ee6df,_0x328ab2){const _0x2fc4b6=_0x2628ff,_0x4eec9f=this[_0x2fc4b6(0x1a7)](_0x328ab2),_0x12f3f1=this[_0x2fc4b6(0x1bb)]();return this[_0x2fc4b6(0x1c4)]?[_0x1d9413,_0x4eec9f]:[_0x1d9413,_0x12f3f1,_0x4eec9f,_0x1ee6df];}[_0x2628ff(0x1a7)](_0xd2b37a){const _0x3b3b0c=_0x2628ff;return{'tag':_0x3b3b0c(0x1ce),'attributes':{'class':En},'children':[{'text':_0xd2b37a['to'](_0x3b3b0c(0x1b1))}]};}[_0x2628ff(0x1c0)](){const _0x39a09f=_0x2628ff,_0x518869=new _0x52de99(this[_0x39a09f(0x1a1)]);return _0x518869[_0x39a09f(0x1a9)]({'label':_0x42a705(this[_0x39a09f(0x1a1)],_0x39a09f(0x1c1)),'icon':_0x15999c}),this[_0x39a09f(0x1d1)](_0x518869),_0x518869;}[_0x2628ff(0x1d1)](_0xb007a1){const _0x4ea6b3=_0x2628ff;_0xb007a1['on'](_0x4ea6b3(0x1b0),()=>{const _0x5ad434=_0x4ea6b3;this[_0x5ad434(0x1a8)](_0x5ad434(0x1cd),this['id']);});}[_0x2628ff(0x1d4)](){const _0x407c25=_0x2628ff,_0x2cd302=this[_0x407c25(0x1ab)],_0x561989=new _0x119f46();return _0x561989[_0x407c25(0x198)]=xn[this[_0x407c25(0x1b5)]],_0x561989[_0x407c25(0x1c6)]({'attributes':{'class':[fn,_0x2cd302['if'](_0x407c25(0x1ca),_0x407c25(0x194),_0x567dfa=>_0x567dfa)]}}),_0x561989;}[_0x2628ff(0x192)](_0x12c6be,_0x196aa3){const _0x673bff=_0x2628ff;if(!_0x12c6be)return;const _0x42a49e=()=>{const _0x17d277=_0x431e;_0x196aa3(),_0x12c6be[_0x17d277(0x195)](_0x17d277(0x1aa),_0x42a49e),_0x12c6be[_0x17d277(0x195)](_0x17d277(0x1bf),_0x42a49e);};_0x12c6be[_0x673bff(0x1b9)](_0x673bff(0x1aa),_0x42a49e),_0x12c6be[_0x673bff(0x1b9)](_0x673bff(0x1bf),_0x42a49e);}[_0x2628ff(0x1bb)](){const _0x3d9ae9=_0x2628ff,_0x472697=new _0x11407c(_0x3d9ae9(0x191));return _0x472697[_0x3d9ae9(0x1af)](_0x3d9ae9(0x1a6))['to'](this,_0x3d9ae9(0x1ca),_0x1d6f48=>_0x1d6f48),_0x472697;}}function In(_0x6e3c86){const _0x3be143=_0x2628ff;if(!_0x6e3c86)return _0x6e3c86;if(_0x6e3c86[_0x3be143(0x1c8)]<=0x78)return _0x6e3c86;const _0x11f48f=_0x6e3c86[_0x3be143(0x1cc)](0x0,0x78),_0x46f0d2=_0x11f48f[_0x3be143(0x1c5)]('\x20');return(_0x46f0d2>0x0?_0x11f48f[_0x3be143(0x1cc)](0x0,_0x46f0d2):_0x11f48f)+'…';}
23
+ const _0x4ee9ba=_0x2d13;(function(_0x22dfc3,_0x16b3e3){const _0x3fa9ba=_0x2d13,_0x132da5=_0x22dfc3();while(!![]){try{const _0x303eb1=parseInt(_0x3fa9ba(0xe1))/0x1+parseInt(_0x3fa9ba(0xd6))/0x2*(-parseInt(_0x3fa9ba(0xf5))/0x3)+-parseInt(_0x3fa9ba(0xfe))/0x4*(parseInt(_0x3fa9ba(0xfb))/0x5)+parseInt(_0x3fa9ba(0xde))/0x6+-parseInt(_0x3fa9ba(0x104))/0x7+parseInt(_0x3fa9ba(0x10d))/0x8+parseInt(_0x3fa9ba(0xd1))/0x9*(parseInt(_0x3fa9ba(0x108))/0xa);if(_0x303eb1===_0x16b3e3)break;else _0x132da5['push'](_0x132da5['shift']());}catch(_0x42e4c1){_0x132da5['push'](_0x132da5['shift']());}}}(_0x1f92,0x385af));import{ButtonView as _0x419a0c,IconView as _0x10d238}from'ckeditor5/src/ui.js';import{IconClose as _0x154d53,IconDocument as _0x562a73,IconFileUpload as _0xcf4db1,IconLink as _0x1177a3,IconSelection as _0x2f777c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1653bd}from'../../../aicore/utils/common-translations.js';function _0x1f92(){const _0x5a3a79=['_handleAnimationEndOnce','_createTemplateAttributes','_createIconView','selection','_createLoaderIcon','306ulinnl','content','ck-ai-chat-context-chip_document','ck-ai-chat-context-chip','uiId','set','255ikGOJY','removeContextItemChip','bindTemplate','8348rxGpvk','removeEventListener','tooltip','type','ck-ai-chat-context-chip__label','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','3133368MhwQGe','small','_createRemoveButton','span','1630lvkaxy','ck-ai-chat-context-chip_wide','_isAnimationOnEnterEnabled','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','1299304UBxbJB','_initializeProperties','_setupTemplate','render','ck-ai-chat-context-chip_new-chip','readonly','18369NiFGJj','remove','add','lastIndexOf','locale','258uHFQIJ','div','setTemplate','itemType','document','webkitAnimationEnd','_createTemplateChildren','addEventListener','194418YeeXnu','ck-hidden','_createLabelElement','270551lOHDXV','execute','isLoading','bind','label','ck-ai-chat-context-chip__type-icon','isVisible','disableAnimationOnEnter','classList','length','animationend','element','extendTemplate','fire','slice'];_0x1f92=function(){return _0x5a3a79;};return _0x1f92();}import{AISpinnerView as _0x5b5884}from'../../../aicore/ui/aispinner.js';const fn={'file':_0xcf4db1,'document':_0x562a73,'web-resource':_0x1177a3,'text':_0xcf4db1,'selection':_0x2f777c},An=_0x4ee9ba(0xf8),Cn=_0x4ee9ba(0x109),On=_0x4ee9ba(0xf7),vn=_0x4ee9ba(0x102),yn=_0x4ee9ba(0xe6),Ln=_0x4ee9ba(0x10b),Rn='n';function _0x2d13(_0x3da449,_0x474f1c){const _0x1f920c=_0x1f92();return _0x2d13=function(_0x2d1382,_0xde6af9){_0x2d1382=_0x2d1382-0xcd;let _0x56c041=_0x1f920c[_0x2d1382];return _0x56c041;},_0x2d13(_0x3da449,_0x474f1c);}export class AIChatContextItemButtonView extends _0x419a0c{constructor(_0x32ff04,_0x3b2370,_0x362633,_0x58159a,_0x337bec=!0x1){const _0x378c03=_0x4ee9ba;super(_0x32ff04),this[_0x378c03(0x10a)]=_0x58159a,this[_0x378c03(0x10e)](_0x3b2370,_0x362633,_0x337bec),this[_0x378c03(0xcd)]();}[_0x4ee9ba(0xce)](){const _0x9519c7=_0x4ee9ba;super[_0x9519c7(0xce)](),this[_0x9519c7(0x10a)]&&this[_0x9519c7(0xec)]&&(this[_0x9519c7(0xec)][_0x9519c7(0xe9)][_0x9519c7(0xd3)](_0x9519c7(0xcf)),this[_0x9519c7(0xf0)](this[_0x9519c7(0xec)],()=>{const _0x1a64da=_0x9519c7;this[_0x1a64da(0xec)]&&this[_0x1a64da(0xec)][_0x1a64da(0xe9)][_0x1a64da(0xd2)](_0x1a64da(0xcf));}));}[_0x4ee9ba(0xe8)](){const _0x55ffd3=_0x4ee9ba;this[_0x55ffd3(0x10a)]=!0x1,this[_0x55ffd3(0xec)]&&this[_0x55ffd3(0xec)][_0x55ffd3(0xe9)][_0x55ffd3(0xd2)](_0x55ffd3(0xcf));}[_0x4ee9ba(0x10e)](_0x54eb23,_0x3f01c2,_0x12f59f){const _0x2cea16=_0x4ee9ba;this[_0x2cea16(0xfa)](_0x2cea16(0xe5),_0x54eb23[_0x2cea16(0xe5)]),this[_0x2cea16(0xfa)](_0x2cea16(0x100),!0x0),this[_0x2cea16(0xfa)](_0x2cea16(0xd9),_0x54eb23[_0x2cea16(0x101)]),this[_0x2cea16(0xfa)]('id',_0x54eb23[_0x2cea16(0xf9)]),this[_0x2cea16(0xfa)](_0x2cea16(0xd0),_0x3f01c2),this[_0x2cea16(0xfa)](_0x2cea16(0xe3),_0x12f59f);}[_0x4ee9ba(0xcd)](){const _0x424b52=_0x4ee9ba,_0x4dd26d=this[_0x424b52(0xf2)](),_0x412a23=this[_0x424b52(0x106)](),_0xceb2c2=this[_0x424b52(0xfd)];this[_0x424b52(0xd8)]({'tag':_0x424b52(0xd7),'attributes':this[_0x424b52(0xf1)](_0xceb2c2),'children':this[_0x424b52(0xdc)](_0x4dd26d,_0x412a23,_0xceb2c2)});}[_0x4ee9ba(0xf1)](_0x418c3e){const _0x1b9fc0=_0x4ee9ba;return{'class':[An,_0x418c3e['if'](_0x1b9fc0(0xd9),On,_0x4a0737=>_0x1b9fc0(0xda)==_0x4a0737),_0x418c3e['if'](_0x1b9fc0(0xd9),Cn,_0x425bcf=>_0x1b9fc0(0xf3)==_0x425bcf)],'data-cke-tooltip-text':_0x418c3e['to'](_0x1b9fc0(0xe5),Vn),'data-cke-tooltip-position':Rn,'data-cke-tooltip-class':Ln};}[_0x4ee9ba(0xdc)](_0x333235,_0x5f439a,_0x2c5696){const _0x24552f=_0x4ee9ba,_0x11c07d=this[_0x24552f(0xe0)](_0x2c5696),_0x482f8d=this[_0x24552f(0xf4)]();return this[_0x24552f(0xd0)]?[_0x333235,_0x11c07d]:[_0x333235,_0x482f8d,_0x11c07d,_0x5f439a];}[_0x4ee9ba(0xe0)](_0x2125d8){const _0x12c889=_0x4ee9ba;return{'tag':_0x12c889(0x107),'attributes':{'class':vn},'children':[{'text':_0x2125d8['to'](_0x12c889(0xe5))}]};}[_0x4ee9ba(0x106)](){const _0xa75937=_0x4ee9ba,_0x4044a1=new _0x419a0c(this[_0xa75937(0xd5)]);return _0x4044a1[_0xa75937(0xfa)]({'label':_0x1653bd(this[_0xa75937(0xd5)],_0xa75937(0x103)),'icon':_0x154d53}),this[_0xa75937(0x10c)](_0x4044a1),_0x4044a1;}[_0x4ee9ba(0x10c)](_0x1cfb5e){const _0x40d0bc=_0x4ee9ba;_0x1cfb5e['on'](_0x40d0bc(0xe2),()=>{const _0x4b05aa=_0x40d0bc;this[_0x4b05aa(0xee)](_0x4b05aa(0xfc),this['id']);});}[_0x4ee9ba(0xf2)](){const _0x4ae4c7=_0x4ee9ba,_0x1329af=this[_0x4ae4c7(0xfd)],_0x1f0130=new _0x10d238();return _0x1f0130[_0x4ae4c7(0xf6)]=fn[this[_0x4ae4c7(0xd9)]],_0x1f0130[_0x4ae4c7(0xed)]({'attributes':{'class':[yn,_0x1329af['if'](_0x4ae4c7(0xe3),_0x4ae4c7(0xdf),_0x189247=>_0x189247)]}}),_0x1f0130;}[_0x4ee9ba(0xf0)](_0x52cbdc,_0x566031){const _0x5d61c7=_0x4ee9ba;if(!_0x52cbdc)return;const _0x125a80=()=>{const _0x316298=_0x2d13;_0x566031(),_0x52cbdc[_0x316298(0xff)](_0x316298(0xeb),_0x125a80),_0x52cbdc[_0x316298(0xff)](_0x316298(0xdb),_0x125a80);};_0x52cbdc[_0x5d61c7(0xdd)](_0x5d61c7(0xeb),_0x125a80),_0x52cbdc[_0x5d61c7(0xdd)](_0x5d61c7(0xdb),_0x125a80);}[_0x4ee9ba(0xf4)](){const _0xaf7a4f=_0x4ee9ba,_0xfad33a=new _0x5b5884(_0xaf7a4f(0x105));return _0xfad33a[_0xaf7a4f(0xe4)](_0xaf7a4f(0xe7))['to'](this,_0xaf7a4f(0xe3),_0x307c59=>_0x307c59),_0xfad33a;}}function Vn(_0xdb60cc){const _0x230d54=_0x4ee9ba;if(!_0xdb60cc)return _0xdb60cc;if(_0xdb60cc[_0x230d54(0xea)]<=0x78)return _0xdb60cc;const _0x74615f=_0xdb60cc[_0x230d54(0xef)](0x0,0x78),_0x30285f=_0x74615f[_0x230d54(0xd4)]('\x20');return(_0x30285f>0x0?_0x74615f[_0x230d54(0xef)](0x0,_0x30285f):_0x74615f)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a9292=_0x28ec;(function(_0x3a6325,_0x5a0074){const _0x4e25d9=_0x28ec,_0x2db0d7=_0x3a6325();while(!![]){try{const _0x2d83f6=-parseInt(_0x4e25d9(0x1c5))/0x1+parseInt(_0x4e25d9(0x1cd))/0x2*(parseInt(_0x4e25d9(0x1c7))/0x3)+parseInt(_0x4e25d9(0x1d6))/0x4*(parseInt(_0x4e25d9(0x1d0))/0x5)+parseInt(_0x4e25d9(0x1f6))/0x6+-parseInt(_0x4e25d9(0x202))/0x7+-parseInt(_0x4e25d9(0x1f1))/0x8*(parseInt(_0x4e25d9(0x1dd))/0x9)+parseInt(_0x4e25d9(0x1fd))/0xa*(parseInt(_0x4e25d9(0x1c9))/0xb);if(_0x2d83f6===_0x5a0074)break;else _0x2db0d7['push'](_0x2db0d7['shift']());}catch(_0x73e66a){_0x2db0d7['push'](_0x2db0d7['shift']());}}}(_0x4dbb,0x450c5));import{FocusTracker as _0x1760cb,KeystrokeHandler as _0x91b70d}from'ckeditor5/src/utils.js';import{ButtonView as _0x3ec7f1,FocusCycler as _0x152dbd,LabeledFieldView as _0x12329c,View as _0x24ae6d,FormHeaderView as _0x22f17a,createLabeledInputText as _0x11f498,submitHandler as _0x4b8125}from'ckeditor5/src/ui.js';function _0x4dbb(){const _0x22f84c=['submit','execute','AI_CHAT_CONTEXT_URL_PLACEHOLDER','render','isEnabled','390314cTLaSu','length','676263ESSXQK','createCollection','22nCxxCr','_isValidUrl','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-chat-context-controls__url-form','2nMDWCo','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','add','35bYxhyZ','setTemplate','stop','div','submitUrl','fieldView','200588OXyoxk','AI_CHAT_CONTEXT_URL_INVALID_ERROR','fire','_setupEventHandlers','clearError','_createUrlInputField','getValue','185994zVQGsY','_updateConfirmButtonState','trim','input','focusCycler','focusTracker','destroy','focus','_setupKeystrokes','tab','ck-labeled-field-view_empty','errorText','forEach','cancel','esc','backButton','_focusables','confirmButton','_handleSubmit','clear','136QfAhds','shift+tab','value','element','_setupTemplate','594408mTspVI','form','keystrokes','_createConfirmButton','setError','ck-button-icon\x20ck-button-back','children','1754980lXjuHY','AI_CHAT_CONTEXT_URL_ADD_URL','ck-ai-chat-context-controls__url-input-section','ck-button-icon','set','14399aNzJLJ','_createBackButton','AI_CHAT_CONTEXT_URL_LABEL','locale','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','refreshBalloon','urlInputField','listenTo'];_0x4dbb=function(){return _0x22f84c;};return _0x4dbb();}import{IconCheck as _0x27b96c,IconPreviousArrow as _0x3a1da1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1f0bb0}from'../../../aicore/utils/common-translations.js';function _0x28ec(_0x554643,_0x5877ed){const _0x4dbb5f=_0x4dbb();return _0x28ec=function(_0x28ecdf,_0x16e975){_0x28ecdf=_0x28ecdf-0x1ba;let _0x8d92ad=_0x4dbb5f[_0x28ecdf];return _0x8d92ad;},_0x28ec(_0x554643,_0x5877ed);}const ch=_0x3a9292(0x1cc),nh=_0x3a9292(0x1ff);export class AIChatContextPanelUrlInputView extends _0x24ae6d{[_0x3a9292(0x1e2)];[_0x3a9292(0x1f8)];[_0x3a9292(0x1ed)];[_0x3a9292(0x1e1)];[_0x3a9292(0x1be)];[_0x3a9292(0x1ec)];[_0x3a9292(0x1ee)];constructor(_0x2782dc){const _0x1f2da3=_0x3a9292;super(_0x2782dc),this[_0x1f2da3(0x1e2)]=new _0x1760cb(),this[_0x1f2da3(0x1f8)]=new _0x91b70d(),this[_0x1f2da3(0x1ec)]=this[_0x1f2da3(0x203)](),this[_0x1f2da3(0x1be)]=this[_0x1f2da3(0x1db)](),this[_0x1f2da3(0x1ee)]=this[_0x1f2da3(0x1f9)](),this[_0x1f2da3(0x1ed)]=this[_0x1f2da3(0x1c8)]([this[_0x1f2da3(0x1ec)],this[_0x1f2da3(0x1be)],this[_0x1f2da3(0x1ee)]]),this[_0x1f2da3(0x1e1)]=new _0x152dbd({'focusables':this[_0x1f2da3(0x1ed)],'focusTracker':this[_0x1f2da3(0x1e2)],'keystrokeHandler':this[_0x1f2da3(0x1f8)],'actions':{'focusPrevious':_0x1f2da3(0x1f2),'focusNext':_0x1f2da3(0x1e6)}}),this[_0x1f2da3(0x1f5)](),this[_0x1f2da3(0x1d9)](),this[_0x1f2da3(0x1e5)]();}[_0x3a9292(0x1c3)](){const _0x453f9f=_0x3a9292;super[_0x453f9f(0x1c3)](),this[_0x453f9f(0x1ed)][_0x453f9f(0x1e9)](_0x715261=>{const _0x10b049=_0x453f9f;this[_0x10b049(0x1e2)][_0x10b049(0x1cf)](_0x715261[_0x10b049(0x1f4)]),this[_0x10b049(0x1f8)][_0x10b049(0x1bf)](_0x715261[_0x10b049(0x1f4)]);}),_0x4b8125({'view':this}),this[_0x453f9f(0x1e4)]();}[_0x3a9292(0x1e3)](){const _0x5cbf2b=_0x3a9292;super[_0x5cbf2b(0x1e3)](),this[_0x5cbf2b(0x1e2)][_0x5cbf2b(0x1e3)](),this[_0x5cbf2b(0x1f8)][_0x5cbf2b(0x1e3)]();}[_0x3a9292(0x1e4)](){const _0x27ab20=_0x3a9292;this[_0x27ab20(0x1be)][_0x27ab20(0x1e4)]();}[_0x3a9292(0x1dc)](){const _0x4f9cb2=_0x3a9292;return this[_0x4f9cb2(0x1be)][_0x4f9cb2(0x1d5)][_0x4f9cb2(0x1f4)]?.[_0x4f9cb2(0x1f3)]?.[_0x4f9cb2(0x1df)]()||'';}[_0x3a9292(0x1f0)](){const _0x45f0b8=_0x3a9292;this[_0x45f0b8(0x1be)][_0x45f0b8(0x1d5)][_0x45f0b8(0x1f4)][_0x45f0b8(0x1f3)]='',this[_0x45f0b8(0x1be)][_0x45f0b8(0x1e8)]=null,this[_0x45f0b8(0x1ee)][_0x45f0b8(0x1c4)]=!0x1;}[_0x3a9292(0x1fa)](_0x229226){const _0x549f89=_0x3a9292;this[_0x549f89(0x1be)][_0x549f89(0x1e8)]=_0x229226,this[_0x549f89(0x1de)](),this[_0x549f89(0x1d8)](_0x549f89(0x1bd));}[_0x3a9292(0x1da)](){const _0x14d702=_0x3a9292;this[_0x14d702(0x1be)][_0x14d702(0x1e8)]=null,this[_0x14d702(0x1de)]();}[_0x3a9292(0x203)](){const _0x3745b3=_0x3a9292,_0x2ab8d3=new _0x3ec7f1(this[_0x3745b3(0x1bb)]);return _0x2ab8d3[_0x3745b3(0x201)]({'icon':_0x3a1da1,'tooltip':_0x1f0bb0(this[_0x3745b3(0x1bb)],_0x3745b3(0x1cb)),'tooltipPosition':'n','class':_0x3745b3(0x1fb)}),_0x2ab8d3;}[_0x3a9292(0x1db)](){const _0x3dec95=_0x3a9292,_0x4a492a=new _0x12329c(this[_0x3dec95(0x1bb)],_0x11f498);return _0x4a492a[_0x3dec95(0x201)]({'label':_0x1f0bb0(this[_0x3dec95(0x1bb)],_0x3dec95(0x1ba)),'class':_0x3dec95(0x1e7)}),_0x4a492a[_0x3dec95(0x1d5)][_0x3dec95(0x201)]({'placeholder':_0x1f0bb0(this[_0x3dec95(0x1bb)],_0x3dec95(0x1c2))}),_0x4a492a;}[_0x3a9292(0x1f9)](){const _0x3aaacb=_0x3a9292,_0x2ae38d=new _0x3ec7f1(this[_0x3aaacb(0x1bb)]);return _0x2ae38d[_0x3aaacb(0x201)]({'icon':_0x27b96c,'tooltip':_0x1f0bb0(this[_0x3aaacb(0x1bb)],_0x3aaacb(0x1fe)),'tooltipPosition':'n','class':_0x3aaacb(0x200),'type':_0x3aaacb(0x1c0),'isEnabled':!0x1}),_0x2ae38d;}[_0x3a9292(0x1f5)](){const _0x150f28=_0x3a9292,_0x23bf9a=new _0x22f17a(this[_0x150f28(0x1bb)],{'label':_0x1f0bb0(this[_0x150f28(0x1bb)],_0x150f28(0x1fe)),'class':_0x150f28(0x1ce)});_0x23bf9a[_0x150f28(0x1fc)][_0x150f28(0x1cf)](this[_0x150f28(0x1ec)],0x0),this[_0x150f28(0x1d1)]({'tag':_0x150f28(0x1f7),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x23bf9a,{'tag':_0x150f28(0x1d3),'attributes':{'class':nh},'children':[this[_0x150f28(0x1be)],this[_0x150f28(0x1ee)]]}]});}[_0x3a9292(0x1d9)](){const _0x2a97e9=_0x3a9292;this[_0x2a97e9(0x1ec)]['on'](_0x2a97e9(0x1c1),()=>{const _0x3a0ffc=_0x2a97e9;this[_0x3a0ffc(0x1f0)](),this[_0x3a0ffc(0x1d8)](_0x3a0ffc(0x1ea));}),this[_0x2a97e9(0x1be)][_0x2a97e9(0x1d5)]['on'](_0x2a97e9(0x1e0),()=>{const _0x45a2ca=_0x2a97e9;this[_0x45a2ca(0x1da)](),this[_0x45a2ca(0x1de)](),this[_0x45a2ca(0x1d8)](_0x45a2ca(0x1bd));}),this['on'](_0x2a97e9(0x1c0),_0x280919=>{const _0x510617=_0x2a97e9;_0x280919[_0x510617(0x1d2)](),this[_0x510617(0x1ef)]();});}[_0x3a9292(0x1e5)](){const _0x1fdaf4=_0x3a9292;this[_0x1fdaf4(0x1f8)][_0x1fdaf4(0x201)](_0x1fdaf4(0x1eb),(_0x54d32a,_0x1eafd2)=>{const _0x751382=_0x1fdaf4;this[_0x751382(0x1f0)](),this[_0x751382(0x1d8)](_0x751382(0x1ea)),_0x1eafd2();});}[_0x3a9292(0x1ef)](){const _0x1514bc=_0x3a9292,_0x515966=this[_0x1514bc(0x1dc)]()[_0x1514bc(0x1df)]();_0x515966?this[_0x1514bc(0x1ca)](_0x515966)?(this[_0x1514bc(0x1da)](),this[_0x1514bc(0x1d8)](_0x1514bc(0x1d4),_0x515966)):this[_0x1514bc(0x1fa)](_0x1f0bb0(this[_0x1514bc(0x1bb)],_0x1514bc(0x1d7))):this[_0x1514bc(0x1fa)](_0x1f0bb0(this[_0x1514bc(0x1bb)],_0x1514bc(0x1bc)));}[_0x3a9292(0x1de)](){const _0x2c53bb=_0x3a9292,_0x147f5f=this[_0x2c53bb(0x1dc)]()[_0x2c53bb(0x1df)](),_0x317b9c=!!this[_0x2c53bb(0x1be)][_0x2c53bb(0x1e8)];this[_0x2c53bb(0x1ee)][_0x2c53bb(0x1c4)]=_0x147f5f[_0x2c53bb(0x1c6)]>0x0&&!_0x317b9c;}[_0x3a9292(0x1ca)](_0x571360){try{return!!new URL(_0x571360);}catch{return!0x1;}}}
23
+ const _0x1e60d1=_0x4b8e;function _0x111b(){const _0x5209d8=['AI_CHAT_CONTEXT_URL_INVALID_ERROR','_createConfirmButton','children','submit','getValue','form','_createBackButton','4lrHjOv','1171706kBCLsb','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','refreshBalloon','keystrokes','setTemplate','_setupEventHandlers','element','destroy','cancel','_createUrlInputField','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','1543434vlydGj','_updateConfirmButtonState','_isValidUrl','div','forEach','ck-ai-chat-context-controls__url-form','stop','_setupTemplate','fieldView','esc','errorText','set','focus','18767zGneCD','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','AI_CHAT_CONTEXT_URL_PLACEHOLDER','37584OOIkTH','setError','AI_CHAT_CONTEXT_URL_ADD_URL','1iGpsSD','534vNQDNP','clear','input','5239605vdQKkG','locale','trim','isEnabled','342qLUbDp','_focusables','confirmButton','tab','shift+tab','focusTracker','execute','AI_CHAT_CONTEXT_URL_LABEL','value','add','fire','focusCycler','createCollection','ck-labeled-field-view_empty','809540wZhLGL','ck-button-icon\x20ck-button-back','urlInputField','clearError','listenTo','ck-button-icon','submitUrl','2154350CLxOZz','_setupKeystrokes','render','length','ck-ai-chat-context-controls__url-input-section','_handleSubmit','backButton'];_0x111b=function(){return _0x5209d8;};return _0x111b();}(function(_0xbb1559,_0x20d766){const _0x455d30=_0x4b8e,_0x5a3c00=_0xbb1559();while(!![]){try{const _0x4efacb=parseInt(_0x455d30(0x1d5))/0x1*(parseInt(_0x455d30(0x1b7))/0x2)+parseInt(_0x455d30(0x1c2))/0x3*(-parseInt(_0x455d30(0x1b6))/0x4)+parseInt(_0x455d30(0x1d9))/0x5+parseInt(_0x455d30(0x1d6))/0x6*(-parseInt(_0x455d30(0x1cf))/0x7)+-parseInt(_0x455d30(0x1d2))/0x8*(parseInt(_0x455d30(0x193))/0x9)+parseInt(_0x455d30(0x1a1))/0xa+-parseInt(_0x455d30(0x1a8))/0xb;if(_0x4efacb===_0x20d766)break;else _0x5a3c00['push'](_0x5a3c00['shift']());}catch(_0x5c6a69){_0x5a3c00['push'](_0x5a3c00['shift']());}}}(_0x111b,0x8f603));function _0x4b8e(_0x151299,_0x4af8c8){const _0x111b1e=_0x111b();return _0x4b8e=function(_0x4b8e1e,_0x212a3a){_0x4b8e1e=_0x4b8e1e-0x190;let _0x1fd1e6=_0x111b1e[_0x4b8e1e];return _0x1fd1e6;},_0x4b8e(_0x151299,_0x4af8c8);}import{FocusTracker as _0x2ec5b1,KeystrokeHandler as _0x420275}from'ckeditor5/src/utils.js';import{ButtonView as _0x21ad0f,FocusCycler as _0x1935d7,LabeledFieldView as _0x2dffcc,View as _0x124d52,FormHeaderView as _0x4c6876,createLabeledInputText as _0x485fe1,submitHandler as _0x3d2a90}from'ckeditor5/src/ui.js';import{IconCheck as _0x12166a,IconPreviousArrow as _0x3420c8}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x504f2d}from'../../../aicore/utils/common-translations.js';const ch=_0x1e60d1(0x1c7),lh=_0x1e60d1(0x1ac);export class AIChatContextPanelUrlInputView extends _0x124d52{[_0x1e60d1(0x198)];[_0x1e60d1(0x1ba)];[_0x1e60d1(0x194)];[_0x1e60d1(0x19e)];[_0x1e60d1(0x1a3)];[_0x1e60d1(0x1ae)];[_0x1e60d1(0x195)];constructor(_0x54e707){const _0x3dc841=_0x1e60d1;super(_0x54e707),this[_0x3dc841(0x198)]=new _0x2ec5b1(),this[_0x3dc841(0x1ba)]=new _0x420275(),this[_0x3dc841(0x1ae)]=this[_0x3dc841(0x1b5)](),this[_0x3dc841(0x1a3)]=this[_0x3dc841(0x1c0)](),this[_0x3dc841(0x195)]=this[_0x3dc841(0x1b0)](),this[_0x3dc841(0x194)]=this[_0x3dc841(0x19f)]([this[_0x3dc841(0x1ae)],this[_0x3dc841(0x1a3)],this[_0x3dc841(0x195)]]),this[_0x3dc841(0x19e)]=new _0x1935d7({'focusables':this[_0x3dc841(0x194)],'focusTracker':this[_0x3dc841(0x198)],'keystrokeHandler':this[_0x3dc841(0x1ba)],'actions':{'focusPrevious':_0x3dc841(0x197),'focusNext':_0x3dc841(0x196)}}),this[_0x3dc841(0x1c9)](),this[_0x3dc841(0x1bc)](),this[_0x3dc841(0x1a9)]();}[_0x1e60d1(0x1aa)](){const _0x1422db=_0x1e60d1;super[_0x1422db(0x1aa)](),this[_0x1422db(0x194)][_0x1422db(0x1c6)](_0x24d159=>{const _0x440b14=_0x1422db;this[_0x440b14(0x198)][_0x440b14(0x19c)](_0x24d159[_0x440b14(0x1bd)]),this[_0x440b14(0x1ba)][_0x440b14(0x1a5)](_0x24d159[_0x440b14(0x1bd)]);}),_0x3d2a90({'view':this}),this[_0x1422db(0x1ce)]();}[_0x1e60d1(0x1be)](){const _0x4aae76=_0x1e60d1;super[_0x4aae76(0x1be)](),this[_0x4aae76(0x198)][_0x4aae76(0x1be)](),this[_0x4aae76(0x1ba)][_0x4aae76(0x1be)]();}[_0x1e60d1(0x1ce)](){const _0x9434a0=_0x1e60d1;this[_0x9434a0(0x1a3)][_0x9434a0(0x1ce)]();}[_0x1e60d1(0x1b3)](){const _0x54f0dc=_0x1e60d1;return this[_0x54f0dc(0x1a3)][_0x54f0dc(0x1ca)][_0x54f0dc(0x1bd)]?.[_0x54f0dc(0x19b)]?.[_0x54f0dc(0x191)]()||'';}[_0x1e60d1(0x1d7)](){const _0x2c2dd6=_0x1e60d1;this[_0x2c2dd6(0x1a3)][_0x2c2dd6(0x1ca)][_0x2c2dd6(0x1bd)][_0x2c2dd6(0x19b)]='',this[_0x2c2dd6(0x1a3)][_0x2c2dd6(0x1cc)]=null,this[_0x2c2dd6(0x195)][_0x2c2dd6(0x192)]=!0x1;}[_0x1e60d1(0x1d3)](_0x3a77ff){const _0x5698ac=_0x1e60d1;this[_0x5698ac(0x1a3)][_0x5698ac(0x1cc)]=_0x3a77ff,this[_0x5698ac(0x1c3)](),this[_0x5698ac(0x19d)](_0x5698ac(0x1b9));}[_0x1e60d1(0x1a4)](){const _0x15709d=_0x1e60d1;this[_0x15709d(0x1a3)][_0x15709d(0x1cc)]=null,this[_0x15709d(0x1c3)]();}[_0x1e60d1(0x1b5)](){const _0x2a8f79=_0x1e60d1,_0x165399=new _0x21ad0f(this[_0x2a8f79(0x190)]);return _0x165399[_0x2a8f79(0x1cd)]({'icon':_0x3420c8,'tooltip':_0x504f2d(this[_0x2a8f79(0x190)],_0x2a8f79(0x1c1)),'tooltipPosition':'n','class':_0x2a8f79(0x1a2)}),_0x165399;}[_0x1e60d1(0x1c0)](){const _0x35900d=_0x1e60d1,_0x111424=new _0x2dffcc(this[_0x35900d(0x190)],_0x485fe1);return _0x111424[_0x35900d(0x1cd)]({'label':_0x504f2d(this[_0x35900d(0x190)],_0x35900d(0x19a)),'class':_0x35900d(0x1a0)}),_0x111424[_0x35900d(0x1ca)][_0x35900d(0x1cd)]({'placeholder':_0x504f2d(this[_0x35900d(0x190)],_0x35900d(0x1d1))}),_0x111424;}[_0x1e60d1(0x1b0)](){const _0x3731b9=_0x1e60d1,_0x5dd681=new _0x21ad0f(this[_0x3731b9(0x190)]);return _0x5dd681[_0x3731b9(0x1cd)]({'icon':_0x12166a,'tooltip':_0x504f2d(this[_0x3731b9(0x190)],_0x3731b9(0x1d4)),'tooltipPosition':'n','class':_0x3731b9(0x1a6),'type':_0x3731b9(0x1b2),'isEnabled':!0x1}),_0x5dd681;}[_0x1e60d1(0x1c9)](){const _0x1cd357=_0x1e60d1,_0x2c827f=new _0x4c6876(this[_0x1cd357(0x190)],{'label':_0x504f2d(this[_0x1cd357(0x190)],_0x1cd357(0x1d4)),'class':_0x1cd357(0x1b8)});_0x2c827f[_0x1cd357(0x1b1)][_0x1cd357(0x19c)](this[_0x1cd357(0x1ae)],0x0),this[_0x1cd357(0x1bb)]({'tag':_0x1cd357(0x1b4),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x2c827f,{'tag':_0x1cd357(0x1c5),'attributes':{'class':lh},'children':[this[_0x1cd357(0x1a3)],this[_0x1cd357(0x195)]]}]});}[_0x1e60d1(0x1bc)](){const _0x2ba086=_0x1e60d1;this[_0x2ba086(0x1ae)]['on'](_0x2ba086(0x199),()=>{const _0x13756d=_0x2ba086;this[_0x13756d(0x1d7)](),this[_0x13756d(0x19d)](_0x13756d(0x1bf));}),this[_0x2ba086(0x1a3)][_0x2ba086(0x1ca)]['on'](_0x2ba086(0x1d8),()=>{const _0x57c800=_0x2ba086;this[_0x57c800(0x1a4)](),this[_0x57c800(0x1c3)](),this[_0x57c800(0x19d)](_0x57c800(0x1b9));}),this['on'](_0x2ba086(0x1b2),_0x43a821=>{const _0x4e17d9=_0x2ba086;_0x43a821[_0x4e17d9(0x1c8)](),this[_0x4e17d9(0x1ad)]();});}[_0x1e60d1(0x1a9)](){const _0x345c49=_0x1e60d1;this[_0x345c49(0x1ba)][_0x345c49(0x1cd)](_0x345c49(0x1cb),(_0x3d1eab,_0xd4e89c)=>{const _0x424630=_0x345c49;this[_0x424630(0x1d7)](),this[_0x424630(0x19d)](_0x424630(0x1bf)),_0xd4e89c();});}[_0x1e60d1(0x1ad)](){const _0x2bd3e4=_0x1e60d1,_0x38cffe=this[_0x2bd3e4(0x1b3)]()[_0x2bd3e4(0x191)]();_0x38cffe?this[_0x2bd3e4(0x1c4)](_0x38cffe)?(this[_0x2bd3e4(0x1a4)](),this[_0x2bd3e4(0x19d)](_0x2bd3e4(0x1a7),_0x38cffe)):this[_0x2bd3e4(0x1d3)](_0x504f2d(this[_0x2bd3e4(0x190)],_0x2bd3e4(0x1af))):this[_0x2bd3e4(0x1d3)](_0x504f2d(this[_0x2bd3e4(0x190)],_0x2bd3e4(0x1d0)));}[_0x1e60d1(0x1c3)](){const _0x5128d3=_0x1e60d1,_0xd49c10=this[_0x5128d3(0x1b3)]()[_0x5128d3(0x191)](),_0x290160=!!this[_0x5128d3(0x1a3)][_0x5128d3(0x1cc)];this[_0x5128d3(0x195)][_0x5128d3(0x192)]=_0xd49c10[_0x5128d3(0x1ab)]>0x0&&!_0x290160;}[_0x1e60d1(0x1c4)](_0x4f9828){try{return!!new URL(_0x4f9828);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x330758=_0x52b3;(function(_0x424286,_0x42cf82){const _0x5427aa=_0x52b3,_0x1b2bf3=_0x424286();while(!![]){try{const _0x358ec7=parseInt(_0x5427aa(0xf8))/0x1+-parseInt(_0x5427aa(0xad))/0x2*(parseInt(_0x5427aa(0x11b))/0x3)+-parseInt(_0x5427aa(0x10f))/0x4*(-parseInt(_0x5427aa(0xb1))/0x5)+-parseInt(_0x5427aa(0xcf))/0x6*(parseInt(_0x5427aa(0x10e))/0x7)+-parseInt(_0x5427aa(0xe8))/0x8*(-parseInt(_0x5427aa(0x11e))/0x9)+-parseInt(_0x5427aa(0xfe))/0xa+parseInt(_0x5427aa(0xd0))/0xb;if(_0x358ec7===_0x42cf82)break;else _0x1b2bf3['push'](_0x1b2bf3['shift']());}catch(_0x2e577a){_0x1b2bf3['push'](_0x1b2bf3['shift']());}}}(_0x476e,0xddc57));import{BalloonPanelView as _0x40138b,ButtonView as _0x4f1412,clickOutsideHandler as _0x85bbe,FileDialogButtonView as _0x1f6764,IconView as _0x455a0d,View as _0x370baf}from'ckeditor5/src/ui.js';function _0x52b3(_0xad0def,_0x1c6095){const _0x476e53=_0x476e();return _0x52b3=function(_0x52b31a,_0xab4453){_0x52b31a=_0x52b31a-0xa5;let _0x10bc35=_0x476e53[_0x52b31a];return _0x10bc35;},_0x52b3(_0xad0def,_0x1c6095);}function _0x476e(){const _0xff964e=['document','AI_CHAT_CONTEXT_URL_LABEL','menuitem','ck-ai-chat-context-chips-wrapper-balloon','_urlInputView','type','setContextItemLoading','ck-ai-chat-context-controls__add-context-balloon-panel','focus','arrowView','southArrowNorthEast','addContextItem','_setupTemplate','isLoading','hide','tooltip','add','setTemplate','2iejOWE','ck-ai-chat-context-controls__add-context-button','div','setConversationContext','68555btYRry','_setAddContextButtonEnabled','southArrowNorth','addUrlToContext','done','northArrowSouthWest','showSourceResourcesBalloon','closest','_createArrowView','source','ck-ai-chat-controls_context_show-more-button','locale','ck-ai-chat-context-controls__url-balloon-panel','searchInputVisibleFrom','_bindEventHandlers','conversation','remove','hideAddContextBalloonPanel','showUrlBalloonPanel','northArrowSouthEast','bind','populateSourceResourceBalloon','_toggleAddContextBalloon','ck-ai-chat-context-controls','closeSourceResourceBalloon','render','current','bodyCollection','_createResourcesBalloonView','_addContextToCollection','6677784aAnIMq','32988175cKkKOX','_createAddContextButtonView','_handleAddContextButtonClick','show','execute','destroy','_createContextButton','createCollection','set','isEnabled','isOn','urls','AI_CHAT_CONTEXT_FILE_LABEL','isReadOnly','_getLimiterElement','hideUrlBalloonPanel','children','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','fire','AI_CHAT_CONTEXT_ADD_CONTEXT','_setupAddContextBalloonClickOutsideHandler','_setBalloonPanelContent','extendTemplate','setContainerElement','7619736jzDQgA','ck-reset_all-excluded','ck-ai-chat-context-controls__pending-contexts','_resourcesBalloonView','_createBalloonButton','sources','ck-ai-chat-controls-button','find','_showSourceResourcesBalloon','pin','_overflowManager','_createUrlBalloonPanelView','body','label','_removeContextFromCollection','content','957353NiiwGP','northArrowSouth','ck-ai-chat-context-controls__balloon-button','clearConversationContextItems','clearCurrentContextItems','isHidden','17180650CLqKIs','removeContextItem','balloonView','icon','reorganizeChips','overflowChips','_handleUrlSubmit','buttonView','cancel','_addUrlContent','addDocumentToContext','loadSourceResources','files','isVisible','showAddContextBalloonPanel','ck-ai-chat-context-controls__show-more-balloon-panel','7ogjafM','40gcEOlZ','defaultPositions','setAddContextOptions','enabled','addFileToContext','_urlBalloonPanelView','refreshBalloon','_createBaseBalloonPanel','removeContextItemChip','southArrowNorthWest','element','addContextButtonView','3919353trhtLR','isAnyResourceBalloonVisible','_setupUrlBalloonClickOutsideHandler','9rCAhVP','_addContextBalloonPanelView','__arrow','submitUrl','_addContextBalloonConfig','_createAddContextBalloonPanelView','ck-ai-chat','clear','addResourceToContext','ck-ai-chat-context-controls__balloon-button-source','_currentContextsChips','_setupAllBalloonClickOutsideHandlers','updateResourceState','_conversationContextsChips'];_0x476e=function(){return _0xff964e;};return _0x476e();}import{IconBrowseFiles as _0xfacc5d,IconDocument as _0x114fc7,IconDocumentOutline as _0x670049,IconDropdownArrow as _0x405a20,IconLink as _0x33b2c0,IconPaperClip as _0x288576}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x185cbf}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xa6e7a4}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x59a94e}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1ca2c8}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x32d3b4}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x330758(0x108),_0x330758(0x113),_0x330758(0xb4),_0x330758(0x126),_0x330758(0xff),_0x330758(0x109)];const po=_0x330758(0xc8),Bo=_0x330758(0xea),bo=_0x330758(0x133),To=_0x330758(0xae),Ao=_0x330758(0xbd),ko=_0x330758(0xfa),Eo=_0x330758(0x127),vo=_0x330758(0xee),Vo=_0x330758(0x12f),fo=_0x330758(0xbb),Io=_0x330758(0x10d),Po=_0x330758(0x124),Ro=[_0x40138b[_0x330758(0x110)][_0x330758(0xb6)],_0x40138b[_0x330758(0x110)][_0x330758(0xf9)],_0x40138b[_0x330758(0x110)][_0x330758(0xc4)],_0x40138b[_0x330758(0x110)][_0x330758(0x118)],_0x40138b[_0x330758(0x110)][_0x330758(0xb3)],_0x40138b[_0x330758(0x110)][_0x330758(0xa5)]];export class AIChatContextPanelView extends _0x370baf{[_0x330758(0x11a)];[_0x330758(0x128)]=this[_0x330758(0xd7)]();[_0x330758(0x12b)]=this[_0x330758(0xd7)]();[_0x330758(0xf2)];[_0x330758(0x11f)];[_0x330758(0x114)];[_0x330758(0x130)];[_0x330758(0xeb)];[_0x330758(0x122)];[_0x330758(0xcc)];constructor(_0x372a5c,_0x1655dd){const _0x526454=_0x330758;super(_0x372a5c),this[_0x526454(0xcc)]=_0x1655dd[_0x526454(0xcc)],this[_0x526454(0x128)]=this[_0x526454(0xd7)](),this[_0x526454(0x12b)]=this[_0x526454(0xd7)](),this[_0x526454(0x11a)]=this[_0x526454(0xd1)](_0x372a5c),this[_0x526454(0x11f)]=this[_0x526454(0x123)](_0x372a5c),this[_0x526454(0x114)]=this[_0x526454(0xf3)](_0x372a5c),this[_0x526454(0xeb)]=this[_0x526454(0xcd)](_0x372a5c,_0x1655dd);const _0x225fa5={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':vo}};this[_0x526454(0xf2)]=new _0x59a94e(_0x372a5c,this[_0x526454(0x128)],_0x225fa5,this[_0x526454(0xcc)],this),this[_0x526454(0x122)]={'buttonView':this[_0x526454(0x11a)],'balloonView':this[_0x526454(0x11f)],'hideMethod':this[_0x526454(0xc2)][_0x526454(0xc5)](this),'showMethod':this[_0x526454(0x10c)][_0x526454(0xc5)](this)},this[_0x526454(0xa7)](),this[_0x526454(0xbf)]();}[_0x330758(0xca)](){const _0x36e52a=_0x330758;super[_0x36e52a(0xca)](),this[_0x36e52a(0x129)](),this[_0x36e52a(0xf2)][_0x36e52a(0xe7)](this[_0x36e52a(0x119)]),this[_0x36e52a(0xf2)][_0x36e52a(0x102)]();}[_0x330758(0xd5)](){const _0x4365fe=_0x330758;super[_0x4365fe(0xd5)](),this[_0x4365fe(0xf2)][_0x4365fe(0xd5)](),this[_0x4365fe(0xeb)][_0x4365fe(0xd5)]();}[_0x330758(0xa6)](_0xc5990d,_0x515dc2){const _0x182613=_0x330758,_0x265fc4=this[_0x182613(0xd6)](_0xc5990d,_0x182613(0xcb),!0x0,_0x515dc2);this[_0x182613(0xce)](_0x265fc4,this[_0x182613(0x128)]),this[_0x182613(0xf2)][_0x182613(0x102)]();}[_0x330758(0xff)](_0xb5c87b){const _0x1c8ad0=_0x330758;this[_0x1c8ad0(0xf6)](_0xb5c87b,this[_0x1c8ad0(0x128)]),this[_0x1c8ad0(0xf6)](_0xb5c87b,this[_0x1c8ad0(0xf2)][_0x1c8ad0(0x103)]),this[_0x1c8ad0(0xf2)][_0x1c8ad0(0x102)]();}[_0x330758(0x132)](_0xa75f8c,_0x3805d6){const _0x388c8e=_0x330758;let _0x561718=this[_0x388c8e(0x128)][_0x388c8e(0xef)](_0x185bcf=>_0x185bcf['id']===_0xa75f8c);_0x561718||(_0x561718=this[_0x388c8e(0xf2)][_0x388c8e(0x103)][_0x388c8e(0xef)](_0x48dd35=>_0x48dd35['id']===_0xa75f8c)),_0x561718&&(_0x561718[_0x388c8e(0xa8)]=_0x3805d6);}[_0x330758(0xb0)](_0x2653c9){const _0x6836c9=_0x330758;this[_0x6836c9(0x12b)][_0x6836c9(0x125)]();for(const _0x5998ec of _0x2653c9){const _0x5a01ea=this[_0x6836c9(0xd6)](_0x5998ec,_0x6836c9(0xc0),!0x1,!0x1);this[_0x6836c9(0xce)](_0x5a01ea,this[_0x6836c9(0x12b)]);}}[_0x330758(0xfc)](){const _0xee7055=_0x330758;this[_0xee7055(0x128)][_0xee7055(0x125)](),this[_0xee7055(0xf2)][_0xee7055(0x125)]();}[_0x330758(0xfb)](){const _0x35011d=_0x330758;this[_0x35011d(0x12b)][_0x35011d(0x125)]();}[_0x330758(0x12a)](_0x58845a,_0x4f60d1,_0x1ceefe){const _0x4470a6=_0x330758;this[_0x4470a6(0xeb)][_0x4470a6(0x12a)](_0x58845a,_0x4f60d1,_0x1ceefe);}[_0x330758(0xc2)](){const _0x3a39ea=_0x330758;this[_0x3a39ea(0xc7)](!0x1);}[_0x330758(0x10c)](){const _0x36a60c=_0x330758;this[_0x36a60c(0xc7)](!0x0);}[_0x330758(0xdf)](){const _0x5ec06a=_0x330758;this[_0x5ec06a(0x114)][_0x5ec06a(0xa9)](),this[_0x5ec06a(0x11a)][_0x5ec06a(0xda)]=!0x1,this[_0x5ec06a(0x130)]&&this[_0x5ec06a(0x130)][_0x5ec06a(0x125)]();}[_0x330758(0xc3)](){const _0x586615=_0x330758;this[_0x586615(0x114)][_0x586615(0xd3)](),this[_0x586615(0x11a)][_0x586615(0xda)]=!0x0;}[_0x330758(0xf0)](_0xaf15aa){const _0x3fb2b0=_0x330758;this[_0x3fb2b0(0xeb)][_0x3fb2b0(0xb7)](_0xaf15aa),this[_0x3fb2b0(0x11a)][_0x3fb2b0(0xda)]=!0x0;}[_0x330758(0xc6)](_0x324028,_0x4da5c5,_0x1b8a70,_0x3849eb){const _0x2a1c44=_0x330758;this[_0x2a1c44(0xeb)][_0x2a1c44(0xc6)](_0x324028,_0x1b8a70,_0x3849eb);}[_0x330758(0xc9)](_0x5d2ff3){const _0x225673=_0x330758;this[_0x225673(0xeb)][_0x225673(0xc9)](_0x5d2ff3),this[_0x225673(0x11a)][_0x225673(0xda)]=!0x1;}[_0x330758(0x111)](_0x359670){const _0x1bebf2=_0x330758;this[_0x1bebf2(0xe5)](this[_0x1bebf2(0x11f)],this[_0x1bebf2(0xbc)],_0x359670),this[_0x1bebf2(0xb2)](_0x359670);}[_0x330758(0xb2)](_0x28717c){const _0x3fa018=_0x330758,_0x42ac21=!_0x28717c[_0x3fa018(0x12c)][_0x3fa018(0xfd)]&&_0x28717c[_0x3fa018(0x12c)][_0x3fa018(0x112)],_0xa79205=_0x28717c[_0x3fa018(0xdb)][_0x3fa018(0x112)],_0x416af0=_0x28717c[_0x3fa018(0x10a)][_0x3fa018(0x112)];this[_0x3fa018(0x11a)][_0x3fa018(0xd9)]=_0x42ac21||_0xa79205||_0x416af0;}[_0x330758(0xa7)](){const _0x34e541=_0x330758;this[_0x34e541(0xac)]({'tag':_0x34e541(0xaf),'attributes':{'class':[po,_0x34e541(0xe9)]},'children':[{'tag':_0x34e541(0xaf),'attributes':{'class':Bo},'children':this[_0x34e541(0x128)]}]});}[_0x330758(0xbf)](){const _0x5ea643=_0x330758;this[_0x5ea643(0x11a)]['on'](_0x5ea643(0xd4),()=>{const _0x1b91b=_0x5ea643;this[_0x1b91b(0xd2)]();});}[_0x330758(0xd1)](_0x14cb20){const _0x234ad7=_0x330758,_0x205be2=new _0x4f1412(_0x14cb20);return _0x205be2[_0x234ad7(0xd8)]({'label':_0x1ca2c8(_0x14cb20,_0x234ad7(0xe3)),'class':vo+'\x20'+To,'icon':_0x288576,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x205be2;}[_0x330758(0x123)](_0xe5257b){const _0x5ccca6=_0x330758;return this[_0x5ccca6(0x116)](_0xe5257b,bo);}[_0x330758(0xf3)](_0x504df2){const _0x26f010=_0x330758,_0x5dbd92=this[_0x26f010(0x116)](_0x504df2,Ao);return this[_0x26f010(0x107)](_0x5dbd92,_0x504df2),_0x5dbd92;}[_0x330758(0xcd)](_0x48f692,_0x11b56d){const _0x3d151e=_0x330758,_0x5344d8={'searchInputVisibleFrom':_0x11b56d[_0x3d151e(0xbe)],'onBackToContext':()=>{const _0x40cff4=_0x3d151e;this[_0x40cff4(0x10c)](),this[_0x40cff4(0x11f)][_0x40cff4(0xf1)]({'target':this[_0x40cff4(0x11a)][_0x40cff4(0x119)],'limiter':this[_0x40cff4(0xde)](),'positions':Ro});},'onResourceSelected':(_0x430643,_0xc33be8)=>{const _0x12f064=_0x3d151e;this[_0x12f064(0xe2)](_0x12f064(0x126),{'source':_0x430643,'resource':_0xc33be8});},'onLoadSourceResources':_0x34af4f=>{const _0x461539=_0x3d151e;this[_0x461539(0xe2)](_0x461539(0x109),_0x34af4f);},'onBalloonClosed':()=>{const _0x476705=_0x3d151e;this[_0x476705(0x11a)][_0x476705(0xda)]=!0x1;},'getLimiterElement':()=>this[_0x3d151e(0xde)](),'getTargetElement':()=>this[_0x3d151e(0x11a)][_0x3d151e(0x119)]};return new _0x32d3b4(_0x48f692,_0x11b56d[_0x3d151e(0xcc)],_0x5344d8);}[_0x330758(0xde)](){const _0x2c368a=_0x330758;return this[_0x2c368a(0x119)]?.[_0x2c368a(0xb8)]('.'+Po)||document[_0x2c368a(0xf4)];}[_0x330758(0x116)](_0x1acfe8,_0x368108){const _0x260e70=_0x330758,_0xa5c304=new _0x40138b(_0x1acfe8);return _0xa5c304[_0x260e70(0xe6)]({'attributes':{'class':_0x368108}}),this[_0x260e70(0xcc)][_0x260e70(0xab)](_0xa5c304),_0xa5c304;}[_0x330758(0xe5)](_0x700d7d,_0x3bb825,_0x1158b7){const _0x17194e=_0x330758;if(_0x700d7d[_0x17194e(0xf7)][_0x17194e(0x125)](),!_0x1158b7[_0x17194e(0x12c)][_0x17194e(0xfd)]&&_0x1158b7[_0x17194e(0x12c)][_0x17194e(0x112)]){const _0x684692=this[_0x17194e(0xec)](_0x3bb825,{'label':_0x1ca2c8(_0x3bb825,_0x17194e(0xe1)),'icon':_0x114fc7});_0x684692['on'](_0x17194e(0xd4),()=>{const _0x3f5276=_0x17194e;this[_0x3f5276(0xe2)](_0x3f5276(0x108)),this[_0x3f5276(0xc2)]();}),_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x684692);}if(_0x1158b7[_0x17194e(0xdb)][_0x17194e(0x112)]){const _0x19af16=this[_0x17194e(0xec)](_0x3bb825,{'label':_0x1ca2c8(_0x3bb825,_0x17194e(0x12d)),'icon':_0x33b2c0});_0x19af16['on'](_0x17194e(0xd4),()=>{const _0x4d8511=_0x17194e;this[_0x4d8511(0xc2)](),this[_0x4d8511(0xc3)](),this[_0x4d8511(0x114)][_0x4d8511(0xf1)]({'target':this[_0x4d8511(0x11a)][_0x4d8511(0x119)],'limiter':this[_0x4d8511(0xde)](),'positions':Ro}),this[_0x4d8511(0x130)][_0x4d8511(0x134)]();}),_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x19af16);}if(_0x1158b7[_0x17194e(0x10a)][_0x17194e(0x112)]){const _0x420e39=new _0x1f6764(_0x3bb825);_0x420e39[_0x17194e(0xd8)]({'label':_0x1ca2c8(_0x3bb825,_0x17194e(0xdc)),'icon':_0xfacc5d,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x420e39['on'](_0x17194e(0xb5),(_0x43e5df,_0x138322)=>{const _0x13d3e0=_0x17194e;this[_0x13d3e0(0xe2)](_0x13d3e0(0x113),_0x138322),this[_0x13d3e0(0xc2)]();}),_0x420e39[_0x17194e(0xaa)]=!0x0,_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x420e39);}for(const _0x3fe163 of _0x1158b7[_0x17194e(0xed)]){const _0x51d784=this[_0x17194e(0xec)](_0x3bb825,{'label':_0x3fe163[_0x17194e(0xf5)],'icon':_0x3fe163[_0x17194e(0x101)]||_0x670049,'type':_0x17194e(0xba)});_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x51d784),_0x51d784['on'](_0x17194e(0xd4),()=>{const _0x25e758=_0x17194e;this[_0x25e758(0xc2)](),this[_0x25e758(0xf0)](_0x3fe163);});}}[_0x330758(0x107)](_0x29fc48,_0x4f95ef){const _0x44d7ec=_0x330758;this[_0x44d7ec(0x130)]=new _0xa6e7a4(_0x4f95ef),this[_0x44d7ec(0x130)]['on'](_0x44d7ec(0x121),(_0x26867c,_0x129fef)=>{const _0x34f52f=_0x44d7ec;this[_0x34f52f(0x104)](_0x129fef);}),this[_0x44d7ec(0x130)]['on'](_0x44d7ec(0x106),()=>{const _0x2b7606=_0x44d7ec;this[_0x2b7606(0xdf)](),this[_0x2b7606(0x10c)](),this[_0x2b7606(0x11f)][_0x2b7606(0xf1)]({'target':this[_0x2b7606(0x11a)][_0x2b7606(0x119)],'limiter':this[_0x2b7606(0xde)](),'positions':Ro});}),this[_0x44d7ec(0x130)]['on'](_0x44d7ec(0x115),()=>{const _0x274f54=_0x44d7ec;this[_0x274f54(0x114)][_0x274f54(0x10b)]&&this[_0x274f54(0x114)][_0x274f54(0xf1)]({'target':this[_0x274f54(0x11a)][_0x274f54(0x119)],'limiter':this[_0x274f54(0xde)](),'positions':Ro});}),_0x29fc48[_0x44d7ec(0xf7)][_0x44d7ec(0xab)](this[_0x44d7ec(0x130)]);}[_0x330758(0xec)](_0x9ee67c,_0x5c6abe){const _0x44ba89=_0x330758,_0x28d41c=_0x44ba89(0xba)===_0x5c6abe[_0x44ba89(0x131)]?new SourcesBalloonButtonView(_0x9ee67c):new _0x4f1412(_0x9ee67c);return _0x28d41c[_0x44ba89(0xd8)]({'label':_0x5c6abe[_0x44ba89(0xf5)],'icon':_0x5c6abe[_0x44ba89(0x101)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x28d41c;}[_0x330758(0x129)](){const _0x2fc6ac=_0x330758;this[_0x2fc6ac(0xe4)](),this[_0x2fc6ac(0x11d)]();}[_0x330758(0x11d)](){const _0x8d86d6=_0x330758;_0x85bbe({'emitter':this[_0x8d86d6(0x114)],'contextElements':[this[_0x8d86d6(0x114)][_0x8d86d6(0x119)]],'callback':()=>{const _0x56af2d=_0x8d86d6;this[_0x56af2d(0xdf)]();},'activator':()=>this[_0x8d86d6(0x114)][_0x8d86d6(0x10b)]});}[_0x330758(0xc7)](_0x2a9eac){const _0x455183=_0x330758,_0x3b4e43=this[_0x455183(0x122)];_0x3b4e43[_0x455183(0x105)][_0x455183(0xda)]=_0x2a9eac,_0x2a9eac?_0x3b4e43[_0x455183(0x100)][_0x455183(0xd3)]():_0x3b4e43[_0x455183(0x100)][_0x455183(0xa9)]();}[_0x330758(0xe4)](){const _0x39e67c=_0x330758,{balloonView:_0x19a508,buttonView:_0x18335e,hideMethod:_0x966b5d}=this[_0x39e67c(0x122)];_0x85bbe({'emitter':_0x19a508,'contextElements':[_0x19a508[_0x39e67c(0x119)],_0x18335e[_0x39e67c(0x119)]],'callback':()=>{_0x966b5d();},'activator':()=>_0x18335e[_0x39e67c(0xda)]&&!this[_0x39e67c(0x114)][_0x39e67c(0x10b)]&&!this[_0x39e67c(0xeb)][_0x39e67c(0x11c)]()});}[_0x330758(0xd6)](_0x4d48a0,_0x106172,_0x402ead=!0x1,_0x139a2f=!0x1){const _0x5aa89f=_0x330758,_0x47a983=_0x5aa89f(0xc0)===_0x106172||!0x0===_0x4d48a0[_0x5aa89f(0xdd)],_0x1da2fd=new _0x185cbf(this[_0x5aa89f(0xbc)],_0x4d48a0,_0x47a983,_0x402ead,_0x139a2f);return _0x47a983||_0x1da2fd['on'](_0x5aa89f(0x117),()=>{const _0x21c0ab=_0x5aa89f;this[_0x21c0ab(0xe2)](_0x21c0ab(0xff),_0x1da2fd['id']);}),_0x1da2fd;}[_0x330758(0xce)](_0x342a8d,_0x1b3349){const _0x42f9c6=_0x330758;_0x1b3349[_0x42f9c6(0xab)](_0x342a8d,0x0);}[_0x330758(0xf6)](_0x513e8e,_0x4f6be5){const _0x330d70=_0x330758,_0x5713c4=_0x4f6be5[_0x330d70(0xef)](_0x5becbe=>_0x5becbe['id']===_0x513e8e);_0x5713c4&&_0x4f6be5[_0x330d70(0xc1)](_0x5713c4);}[_0x330758(0xd2)](){const _0x411f97=_0x330758;this[_0x411f97(0x11a)][_0x411f97(0xda)]?this[_0x411f97(0xc2)]():(this[_0x411f97(0x10c)](),this[_0x411f97(0x11f)][_0x411f97(0xf1)]({'target':this[_0x411f97(0x11a)][_0x411f97(0x119)],'limiter':this[_0x411f97(0xde)](),'positions':Ro}));}[_0x330758(0x104)](_0x172d70){const _0x221820=_0x330758;this[_0x221820(0x130)][_0x221820(0x125)](),this[_0x221820(0xdf)](),this[_0x221820(0xe2)](_0x221820(0xb4),_0x172d70);}}export class SourcesBalloonButtonView extends _0x4f1412{[_0x330758(0x135)];constructor(_0x1bc549){const _0x2e9830=_0x330758;super(_0x1bc549),this[_0x2e9830(0xd8)]({'withText':!0x0,'role':_0x2e9830(0x12e)}),this[_0x2e9830(0x135)]=this[_0x2e9830(0xb9)](),this[_0x2e9830(0xe6)]({'attributes':{'class':[Eo]}});}[_0x330758(0xca)](){const _0x3468e9=_0x330758;super[_0x3468e9(0xca)](),this[_0x3468e9(0xe0)][_0x3468e9(0xab)](this[_0x3468e9(0x135)]);}[_0x330758(0xb9)](){const _0x4ba2aa=_0x330758,_0xe453c6=new _0x455a0d();return _0xe453c6[_0x4ba2aa(0xf7)]=_0x405a20,_0xe453c6[_0x4ba2aa(0xe6)]({'attributes':{'class':Eo+_0x4ba2aa(0x120)}}),_0xe453c6;}}
23
+ function _0x24d9(_0x454858,_0x4360f1){const _0x4adc95=_0x4adc();return _0x24d9=function(_0x24d961,_0xfa4d0b){_0x24d961=_0x24d961-0x1d0;let _0x489bed=_0x4adc95[_0x24d961];return _0x489bed;},_0x24d9(_0x454858,_0x4360f1);}const _0x1b294a=_0x24d9;(function(_0x402a09,_0x300083){const _0x1c5eab=_0x24d9,_0xd77907=_0x402a09();while(!![]){try{const _0x46b0ce=-parseInt(_0x1c5eab(0x261))/0x1*(-parseInt(_0x1c5eab(0x24e))/0x2)+-parseInt(_0x1c5eab(0x238))/0x3*(-parseInt(_0x1c5eab(0x228))/0x4)+-parseInt(_0x1c5eab(0x217))/0x5*(parseInt(_0x1c5eab(0x23d))/0x6)+-parseInt(_0x1c5eab(0x23e))/0x7*(-parseInt(_0x1c5eab(0x208))/0x8)+parseInt(_0x1c5eab(0x1f8))/0x9+parseInt(_0x1c5eab(0x1e3))/0xa*(-parseInt(_0x1c5eab(0x25d))/0xb)+-parseInt(_0x1c5eab(0x24b))/0xc;if(_0x46b0ce===_0x300083)break;else _0xd77907['push'](_0xd77907['shift']());}catch(_0x416a64){_0xd77907['push'](_0xd77907['shift']());}}}(_0x4adc,0x6b2d9));import{BalloonPanelView as _0x70fcb2,ButtonView as _0x1d78a3,clickOutsideHandler as _0x236d5d,FileDialogButtonView as _0x570aca,IconView as _0x5590e3,View as _0x130c3f}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x158680,IconDocument as _0x1aa855,IconDocumentOutline as _0x4213dc,IconDropdownArrow as _0x2acf06,IconLink as _0x50e3a5,IconPaperClip as _0x577500}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x264106}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3b6efd}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x3d31e7}from'./aichatchipsoverflowmanager.js';function _0x4adc(){const _0x510720=['showSourceResourcesBalloon','setConversationContext','_addContextBalloonConfig','setTemplate','cancel','showUrlBalloonPanel','updateResourceState','_addContextToCollection','ck-ai-chat-context-controls__balloon-button-source','overflowChips','__arrow','done','isReadOnly','fire','11rxwZUY','ck-ai-chat-controls-button','_createAddContextButtonView','files','2041pxJUgL','_createArrowView','_setAddContextButtonEnabled','addContextItem','isVisible','reorganizeChips','addFileToContext','conversation','populateSourceResourceBalloon','isHidden','execute','addResourceToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','_handleAddContextButtonClick','showAddContextBalloonPanel','addContextButtonView','northArrowSouthEast','div','balloonView','6563660QLJKIM','defaultPositions','menuitem','setAddContextOptions','sources','isLoading','_setupUrlBalloonClickOutsideHandler','_createUrlBalloonPanelView','loadSourceResources','setContextItemLoading','isEnabled','clearCurrentContextItems','ck-ai-chat-controls_context_show-more-button','northArrowSouth','submitUrl','render','hideAddContextBalloonPanel','urls','arrowView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','hide','1236213ZjeBng','_createBalloonButton','_setupTemplate','closeSourceResourceBalloon','searchInputVisibleFrom','body','ck-ai-chat-context-controls__add-context-balloon-panel','_toggleAddContextBalloon','clearConversationContextItems','isOn','content','_setupAllBalloonClickOutsideHandlers','ck-ai-chat-context-chips-wrapper-balloon','_overflowManager','source','_createBaseBalloonPanel','15328ZJNmQY','southArrowNorth','_resourcesBalloonView','southArrowNorthEast','_setBalloonPanelContent','hideUrlBalloonPanel','_currentContextsChips','_createAddContextBalloonPanelView','AI_CHAT_CONTEXT_ADD_CONTEXT','icon','AI_CHAT_CONTEXT_FILE_LABEL','buttonView','focus','ck-ai-chat-context-controls__pending-contexts','set','868435TawxoW','createCollection','addUrlToContext','_createResourcesBalloonView','_urlBalloonPanelView','ck-reset_all-excluded','tooltip','_removeContextFromCollection','ck-ai-chat','closest','_conversationContextsChips','label','_createContextButton','bodyCollection','_setupAddContextBalloonClickOutsideHandler','type','ck-ai-chat-context-controls','261176umwYwv','ck-ai-chat-context-controls__add-context-button','remove','setContainerElement','isAnyResourceBalloonVisible','AI_CHAT_CONTEXT_URL_LABEL','locale','extendTemplate','addDocumentToContext','clear','southArrowNorthWest','enabled','add','bind','_addContextBalloonPanelView','_addUrlContent','39rfUxmZ','destroy','_handleUrlSubmit','refreshBalloon','pin','30HCumzt','2569GUFRdP','_urlInputView','element','_bindEventHandlers','removeContextItemChip','ck-ai-chat-context-controls__url-balloon-panel','northArrowSouthWest','current','show','document','find','_getLimiterElement','ck-ai-chat-context-controls__balloon-button','1653972EwmWFi','removeContextItem','children','404kFIMcM'];_0x4adc=function(){return _0x510720;};return _0x4adc();}import{getTranslation as _0x224cf3}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5ebf0f}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x1b294a(0x230),_0x1b294a(0x1d5),_0x1b294a(0x219),_0x1b294a(0x1da),_0x1b294a(0x24c),_0x1b294a(0x1eb)];const Po=_0x1b294a(0x227),Ro=_0x1b294a(0x215),Uo=_0x1b294a(0x1fe),Lo=_0x1b294a(0x229),No=_0x1b294a(0x243),Oo=_0x1b294a(0x24a),Mo=_0x1b294a(0x257),bo=_0x1b294a(0x25e),Ho=_0x1b294a(0x204),vo=_0x1b294a(0x1ef),jo=_0x1b294a(0x1dc),Fo=_0x1b294a(0x21f),Xo=[_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x244)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x1f0)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x1e0)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x232)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x209)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x20b)]];export class AIChatContextPanelView extends _0x130c3f{[_0x1b294a(0x1df)];[_0x1b294a(0x20e)]=this[_0x1b294a(0x218)]();[_0x1b294a(0x221)]=this[_0x1b294a(0x218)]();[_0x1b294a(0x205)];[_0x1b294a(0x236)];[_0x1b294a(0x21b)];[_0x1b294a(0x23f)];[_0x1b294a(0x20a)];[_0x1b294a(0x251)];[_0x1b294a(0x224)];constructor(_0x5ddb11,_0xa0209d){const _0x4b2481=_0x1b294a;super(_0x5ddb11),this[_0x4b2481(0x224)]=_0xa0209d[_0x4b2481(0x224)],this[_0x4b2481(0x20e)]=this[_0x4b2481(0x218)](),this[_0x4b2481(0x221)]=this[_0x4b2481(0x218)](),this[_0x4b2481(0x1df)]=this[_0x4b2481(0x25f)](_0x5ddb11),this[_0x4b2481(0x236)]=this[_0x4b2481(0x20f)](_0x5ddb11),this[_0x4b2481(0x21b)]=this[_0x4b2481(0x1ea)](_0x5ddb11),this[_0x4b2481(0x20a)]=this[_0x4b2481(0x21a)](_0x5ddb11,_0xa0209d);const _0x4b2b5d={'cssClasses':{'showMoreButton':vo,'showMoreBalloon':jo,'overflowContainer':Ho,'controlsButton':bo}};this[_0x4b2481(0x205)]=new _0x3d31e7(_0x5ddb11,this[_0x4b2481(0x20e)],_0x4b2b5d,this[_0x4b2481(0x224)],this),this[_0x4b2481(0x251)]={'buttonView':this[_0x4b2481(0x1df)],'balloonView':this[_0x4b2481(0x236)],'hideMethod':this[_0x4b2481(0x1f3)][_0x4b2481(0x235)](this),'showMethod':this[_0x4b2481(0x1de)][_0x4b2481(0x235)](this)},this[_0x4b2481(0x1fa)](),this[_0x4b2481(0x241)]();}[_0x1b294a(0x1f2)](){const _0x3eac90=_0x1b294a;super[_0x3eac90(0x1f2)](),this[_0x3eac90(0x203)](),this[_0x3eac90(0x205)][_0x3eac90(0x22b)](this[_0x3eac90(0x240)]),this[_0x3eac90(0x205)][_0x3eac90(0x1d4)]();}[_0x1b294a(0x239)](){const _0xbe021e=_0x1b294a;super[_0xbe021e(0x239)](),this[_0xbe021e(0x205)][_0xbe021e(0x239)](),this[_0xbe021e(0x20a)][_0xbe021e(0x239)]();}[_0x1b294a(0x1d2)](_0x31ec36,_0x3747b6){const _0x385245=_0x1b294a,_0x2ddcda=this[_0x385245(0x223)](_0x31ec36,_0x385245(0x245),!0x0,_0x3747b6);this[_0x385245(0x256)](_0x2ddcda,this[_0x385245(0x20e)]),this[_0x385245(0x205)][_0x385245(0x1d4)]();}[_0x1b294a(0x24c)](_0x47b2cf){const _0x3e584d=_0x1b294a;this[_0x3e584d(0x21e)](_0x47b2cf,this[_0x3e584d(0x20e)]),this[_0x3e584d(0x21e)](_0x47b2cf,this[_0x3e584d(0x205)][_0x3e584d(0x258)]),this[_0x3e584d(0x205)][_0x3e584d(0x1d4)]();}[_0x1b294a(0x1ec)](_0x5219c9,_0x2f92e6){const _0xb45ded=_0x1b294a;let _0x423291=this[_0xb45ded(0x20e)][_0xb45ded(0x248)](_0x20145b=>_0x20145b['id']===_0x5219c9);_0x423291||(_0x423291=this[_0xb45ded(0x205)][_0xb45ded(0x258)][_0xb45ded(0x248)](_0x230fd0=>_0x230fd0['id']===_0x5219c9)),_0x423291&&(_0x423291[_0xb45ded(0x1e8)]=_0x2f92e6);}[_0x1b294a(0x250)](_0x282fde){const _0x51c192=_0x1b294a;this[_0x51c192(0x221)][_0x51c192(0x231)]();for(const _0x4efe24 of _0x282fde){const _0x45db9f=this[_0x51c192(0x223)](_0x4efe24,_0x51c192(0x1d6),!0x1,!0x1);this[_0x51c192(0x256)](_0x45db9f,this[_0x51c192(0x221)]);}}[_0x1b294a(0x1ee)](){const _0x5c91b0=_0x1b294a;this[_0x5c91b0(0x20e)][_0x5c91b0(0x231)](),this[_0x5c91b0(0x205)][_0x5c91b0(0x231)]();}[_0x1b294a(0x200)](){const _0x148e6a=_0x1b294a;this[_0x148e6a(0x221)][_0x148e6a(0x231)]();}[_0x1b294a(0x255)](_0x1c7a37,_0x596176,_0x1dcfdb){const _0x4ba7d0=_0x1b294a;this[_0x4ba7d0(0x20a)][_0x4ba7d0(0x255)](_0x1c7a37,_0x596176,_0x1dcfdb);}[_0x1b294a(0x1f3)](){const _0x21e0b2=_0x1b294a;this[_0x21e0b2(0x1ff)](!0x1);}[_0x1b294a(0x1de)](){const _0x412460=_0x1b294a;this[_0x412460(0x1ff)](!0x0);}[_0x1b294a(0x20d)](){const _0x4c0440=_0x1b294a;this[_0x4c0440(0x21b)][_0x4c0440(0x1f7)](),this[_0x4c0440(0x1df)][_0x4c0440(0x201)]=!0x1,this[_0x4c0440(0x23f)]&&this[_0x4c0440(0x23f)][_0x4c0440(0x231)]();}[_0x1b294a(0x254)](){const _0x43bc8b=_0x1b294a;this[_0x43bc8b(0x21b)][_0x43bc8b(0x246)](),this[_0x43bc8b(0x1df)][_0x43bc8b(0x201)]=!0x0;}[_0x1b294a(0x1db)](_0x273834){const _0x1abdb5=_0x1b294a;this[_0x1abdb5(0x20a)][_0x1abdb5(0x24f)](_0x273834),this[_0x1abdb5(0x1df)][_0x1abdb5(0x201)]=!0x0;}[_0x1b294a(0x1d7)](_0xfc8449,_0x5aab99,_0x16e80d,_0xbc82f4){const _0x275602=_0x1b294a;this[_0x275602(0x20a)][_0x275602(0x1d7)](_0xfc8449,_0x16e80d,_0xbc82f4);}[_0x1b294a(0x1fb)](_0x11fdaa){const _0x4e651d=_0x1b294a;this[_0x4e651d(0x20a)][_0x4e651d(0x1fb)](_0x11fdaa),this[_0x4e651d(0x1df)][_0x4e651d(0x201)]=!0x1;}[_0x1b294a(0x1e6)](_0x56b0e6){const _0x1c39a4=_0x1b294a;this[_0x1c39a4(0x20c)](this[_0x1c39a4(0x236)],this[_0x1c39a4(0x22e)],_0x56b0e6),this[_0x1c39a4(0x1d1)](_0x56b0e6);}[_0x1b294a(0x1d1)](_0x4564e0){const _0x55e99d=_0x1b294a,_0x5c6d9d=!_0x4564e0[_0x55e99d(0x247)][_0x55e99d(0x1d8)]&&_0x4564e0[_0x55e99d(0x247)][_0x55e99d(0x233)],_0xd311f7=_0x4564e0[_0x55e99d(0x1f4)][_0x55e99d(0x233)],_0x4df923=_0x4564e0[_0x55e99d(0x260)][_0x55e99d(0x233)];this[_0x55e99d(0x1df)][_0x55e99d(0x1ed)]=_0x5c6d9d||_0xd311f7||_0x4df923;}[_0x1b294a(0x1fa)](){const _0x5ba627=_0x1b294a;this[_0x5ba627(0x252)]({'tag':_0x5ba627(0x1e1),'attributes':{'class':[Po,_0x5ba627(0x21c)]},'children':[{'tag':_0x5ba627(0x1e1),'attributes':{'class':Ro},'children':this[_0x5ba627(0x20e)]}]});}[_0x1b294a(0x241)](){const _0x43734e=_0x1b294a;this[_0x43734e(0x1df)]['on'](_0x43734e(0x1d9),()=>{const _0x5cbb78=_0x43734e;this[_0x5cbb78(0x1dd)]();});}[_0x1b294a(0x25f)](_0x43b2db){const _0x1af8bc=_0x1b294a,_0x3c3e9d=new _0x1d78a3(_0x43b2db);return _0x3c3e9d[_0x1af8bc(0x216)]({'label':_0x224cf3(_0x43b2db,_0x1af8bc(0x210)),'class':bo+'\x20'+Lo,'icon':_0x577500,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3c3e9d;}[_0x1b294a(0x20f)](_0xfb84e8){const _0x30f608=_0x1b294a;return this[_0x30f608(0x207)](_0xfb84e8,Uo);}[_0x1b294a(0x1ea)](_0x1f6728){const _0x1aed2b=_0x1b294a,_0x528397=this[_0x1aed2b(0x207)](_0x1f6728,No);return this[_0x1aed2b(0x237)](_0x528397,_0x1f6728),_0x528397;}[_0x1b294a(0x21a)](_0xee2fbf,_0x3f1f04){const _0x48fcce=_0x1b294a,_0x7668ad={'searchInputVisibleFrom':_0x3f1f04[_0x48fcce(0x1fc)],'onBackToContext':()=>{const _0x56fa56=_0x48fcce;this[_0x56fa56(0x1de)](),this[_0x56fa56(0x236)][_0x56fa56(0x23c)]({'target':this[_0x56fa56(0x1df)][_0x56fa56(0x240)],'limiter':this[_0x56fa56(0x249)](),'positions':Xo});},'onResourceSelected':(_0x317de8,_0xd3eb4e)=>{const _0x38cc6a=_0x48fcce;this[_0x38cc6a(0x25c)](_0x38cc6a(0x1da),{'source':_0x317de8,'resource':_0xd3eb4e});},'onLoadSourceResources':_0x183462=>{const _0x3a84e7=_0x48fcce;this[_0x3a84e7(0x25c)](_0x3a84e7(0x1eb),_0x183462);},'onBalloonClosed':()=>{const _0x4af6d7=_0x48fcce;this[_0x4af6d7(0x1df)][_0x4af6d7(0x201)]=!0x1;},'getLimiterElement':()=>this[_0x48fcce(0x249)](),'getTargetElement':()=>this[_0x48fcce(0x1df)][_0x48fcce(0x240)]};return new _0x5ebf0f(_0xee2fbf,_0x3f1f04[_0x48fcce(0x224)],_0x7668ad);}[_0x1b294a(0x249)](){const _0x37fe06=_0x1b294a;return this[_0x37fe06(0x240)]?.[_0x37fe06(0x220)]('.'+Fo)||document[_0x37fe06(0x1fd)];}[_0x1b294a(0x207)](_0x13202c,_0x2c7f1d){const _0x48f0c5=_0x1b294a,_0x35e28f=new _0x70fcb2(_0x13202c);return _0x35e28f[_0x48f0c5(0x22f)]({'attributes':{'class':_0x2c7f1d}}),this[_0x48f0c5(0x224)][_0x48f0c5(0x234)](_0x35e28f),_0x35e28f;}[_0x1b294a(0x20c)](_0x1b4a10,_0x1a1789,_0x3f076a){const _0x59a9b3=_0x1b294a;if(_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x231)](),!_0x3f076a[_0x59a9b3(0x247)][_0x59a9b3(0x1d8)]&&_0x3f076a[_0x59a9b3(0x247)][_0x59a9b3(0x233)]){const _0x1f0cbe=this[_0x59a9b3(0x1f9)](_0x1a1789,{'label':_0x224cf3(_0x1a1789,_0x59a9b3(0x1f6)),'icon':_0x1aa855});_0x1f0cbe['on'](_0x59a9b3(0x1d9),()=>{const _0x33ac0b=_0x59a9b3;this[_0x33ac0b(0x25c)](_0x33ac0b(0x230)),this[_0x33ac0b(0x1f3)]();}),_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x1f0cbe);}if(_0x3f076a[_0x59a9b3(0x1f4)][_0x59a9b3(0x233)]){const _0x2b5af1=this[_0x59a9b3(0x1f9)](_0x1a1789,{'label':_0x224cf3(_0x1a1789,_0x59a9b3(0x22d)),'icon':_0x50e3a5});_0x2b5af1['on'](_0x59a9b3(0x1d9),()=>{const _0x5b2dc8=_0x59a9b3;this[_0x5b2dc8(0x1f3)](),this[_0x5b2dc8(0x254)](),this[_0x5b2dc8(0x21b)][_0x5b2dc8(0x23c)]({'target':this[_0x5b2dc8(0x1df)][_0x5b2dc8(0x240)],'limiter':this[_0x5b2dc8(0x249)](),'positions':Xo}),this[_0x5b2dc8(0x23f)][_0x5b2dc8(0x214)]();}),_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x2b5af1);}if(_0x3f076a[_0x59a9b3(0x260)][_0x59a9b3(0x233)]){const _0x26dd60=new _0x570aca(_0x1a1789);_0x26dd60[_0x59a9b3(0x216)]({'label':_0x224cf3(_0x1a1789,_0x59a9b3(0x212)),'icon':_0x158680,'withText':!0x0,'tooltip':!0x0,'class':Oo,'allowMultipleFiles':!0x0}),_0x26dd60['on'](_0x59a9b3(0x25a),(_0x22cf66,_0x4b9a9a)=>{const _0x261ccc=_0x59a9b3;this[_0x261ccc(0x25c)](_0x261ccc(0x1d5),_0x4b9a9a),this[_0x261ccc(0x1f3)]();}),_0x26dd60[_0x59a9b3(0x21d)]=!0x0,_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x26dd60);}for(const _0x239fcf of _0x3f076a[_0x59a9b3(0x1e7)]){const _0x931a63=this[_0x59a9b3(0x1f9)](_0x1a1789,{'label':_0x239fcf[_0x59a9b3(0x222)],'icon':_0x239fcf[_0x59a9b3(0x211)]||_0x4213dc,'type':_0x59a9b3(0x206)});_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x931a63),_0x931a63['on'](_0x59a9b3(0x1d9),()=>{const _0x533f5f=_0x59a9b3;this[_0x533f5f(0x1f3)](),this[_0x533f5f(0x1db)](_0x239fcf);});}}[_0x1b294a(0x237)](_0x173efb,_0x316384){const _0x725ad6=_0x1b294a;this[_0x725ad6(0x23f)]=new _0x3b6efd(_0x316384),this[_0x725ad6(0x23f)]['on'](_0x725ad6(0x1f1),(_0x56117b,_0x5303d3)=>{const _0x58e79d=_0x725ad6;this[_0x58e79d(0x23a)](_0x5303d3);}),this[_0x725ad6(0x23f)]['on'](_0x725ad6(0x253),()=>{const _0x3f553c=_0x725ad6;this[_0x3f553c(0x20d)](),this[_0x3f553c(0x1de)](),this[_0x3f553c(0x236)][_0x3f553c(0x23c)]({'target':this[_0x3f553c(0x1df)][_0x3f553c(0x240)],'limiter':this[_0x3f553c(0x249)](),'positions':Xo});}),this[_0x725ad6(0x23f)]['on'](_0x725ad6(0x23b),()=>{const _0x205106=_0x725ad6;this[_0x205106(0x21b)][_0x205106(0x1d3)]&&this[_0x205106(0x21b)][_0x205106(0x23c)]({'target':this[_0x205106(0x1df)][_0x205106(0x240)],'limiter':this[_0x205106(0x249)](),'positions':Xo});}),_0x173efb[_0x725ad6(0x202)][_0x725ad6(0x234)](this[_0x725ad6(0x23f)]);}[_0x1b294a(0x1f9)](_0x191121,_0x535388){const _0xa507c4=_0x1b294a,_0xc2477=_0xa507c4(0x206)===_0x535388[_0xa507c4(0x226)]?new SourcesBalloonButtonView(_0x191121):new _0x1d78a3(_0x191121);return _0xc2477[_0xa507c4(0x216)]({'label':_0x535388[_0xa507c4(0x222)],'icon':_0x535388[_0xa507c4(0x211)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Oo}),_0xc2477;}[_0x1b294a(0x203)](){const _0x17beb2=_0x1b294a;this[_0x17beb2(0x225)](),this[_0x17beb2(0x1e9)]();}[_0x1b294a(0x1e9)](){const _0xa4057d=_0x1b294a;_0x236d5d({'emitter':this[_0xa4057d(0x21b)],'contextElements':[this[_0xa4057d(0x21b)][_0xa4057d(0x240)]],'callback':()=>{const _0x2b20d9=_0xa4057d;this[_0x2b20d9(0x20d)]();},'activator':()=>this[_0xa4057d(0x21b)][_0xa4057d(0x1d3)]});}[_0x1b294a(0x1ff)](_0x429160){const _0x145592=_0x1b294a,_0x1077d7=this[_0x145592(0x251)];_0x1077d7[_0x145592(0x213)][_0x145592(0x201)]=_0x429160,_0x429160?_0x1077d7[_0x145592(0x1e2)][_0x145592(0x246)]():_0x1077d7[_0x145592(0x1e2)][_0x145592(0x1f7)]();}[_0x1b294a(0x225)](){const _0x496568=_0x1b294a,{balloonView:_0x319d38,buttonView:_0x2dca5f,hideMethod:_0x3aa41a}=this[_0x496568(0x251)];_0x236d5d({'emitter':_0x319d38,'contextElements':[_0x319d38[_0x496568(0x240)],_0x2dca5f[_0x496568(0x240)]],'callback':()=>{_0x3aa41a();},'activator':()=>_0x2dca5f[_0x496568(0x201)]&&!this[_0x496568(0x21b)][_0x496568(0x1d3)]&&!this[_0x496568(0x20a)][_0x496568(0x22c)]()});}[_0x1b294a(0x223)](_0x315429,_0x3c3bbd,_0x3e9d1e=!0x1,_0x50425f=!0x1){const _0x19763c=_0x1b294a,_0x35692f=_0x19763c(0x1d6)===_0x3c3bbd||!0x0===_0x315429[_0x19763c(0x25b)],_0x32d063=new _0x264106(this[_0x19763c(0x22e)],_0x315429,_0x35692f,_0x3e9d1e,_0x50425f);return _0x35692f||_0x32d063['on'](_0x19763c(0x242),()=>{const _0x15baf9=_0x19763c;this[_0x15baf9(0x25c)](_0x15baf9(0x24c),_0x32d063['id']);}),_0x32d063;}[_0x1b294a(0x256)](_0x16111f,_0x2111a1){const _0x78eeae=_0x1b294a;_0x2111a1[_0x78eeae(0x234)](_0x16111f,0x0);}[_0x1b294a(0x21e)](_0x2b21e8,_0x12606c){const _0x49763e=_0x1b294a,_0x2182e1=_0x12606c[_0x49763e(0x248)](_0x508265=>_0x508265['id']===_0x2b21e8);_0x2182e1&&_0x12606c[_0x49763e(0x22a)](_0x2182e1);}[_0x1b294a(0x1dd)](){const _0x41ee8f=_0x1b294a;this[_0x41ee8f(0x1df)][_0x41ee8f(0x201)]?this[_0x41ee8f(0x1f3)]():(this[_0x41ee8f(0x1de)](),this[_0x41ee8f(0x236)][_0x41ee8f(0x23c)]({'target':this[_0x41ee8f(0x1df)][_0x41ee8f(0x240)],'limiter':this[_0x41ee8f(0x249)](),'positions':Xo}));}[_0x1b294a(0x23a)](_0x108b68){const _0x155b1f=_0x1b294a;this[_0x155b1f(0x23f)][_0x155b1f(0x231)](),this[_0x155b1f(0x20d)](),this[_0x155b1f(0x25c)](_0x155b1f(0x219),_0x108b68);}}export class SourcesBalloonButtonView extends _0x1d78a3{[_0x1b294a(0x1f5)];constructor(_0x2c4747){const _0x5e14b6=_0x1b294a;super(_0x2c4747),this[_0x5e14b6(0x216)]({'withText':!0x0,'role':_0x5e14b6(0x1e5)}),this[_0x5e14b6(0x1f5)]=this[_0x5e14b6(0x1d0)](),this[_0x5e14b6(0x22f)]({'attributes':{'class':[Mo]}});}[_0x1b294a(0x1f2)](){const _0x417011=_0x1b294a;super[_0x417011(0x1f2)](),this[_0x417011(0x24d)][_0x417011(0x234)](this[_0x417011(0x1f5)]);}[_0x1b294a(0x1d0)](){const _0x6bfdca=_0x1b294a,_0x3881c4=new _0x5590e3();return _0x3881c4[_0x6bfdca(0x202)]=_0x2acf06,_0x3881c4[_0x6bfdca(0x22f)]({'attributes':{'class':Mo+_0x6bfdca(0x259)}}),_0x3881c4;}}