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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (402) hide show
  1. package/build/ai.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index-editor.css +59 -38
  41. package/dist/index.css +77 -39
  42. package/dist/index.js +4 -4
  43. package/dist/translations/af.js +1 -1
  44. package/dist/translations/af.umd.js +1 -1
  45. package/dist/translations/ar.js +1 -1
  46. package/dist/translations/ar.umd.js +1 -1
  47. package/dist/translations/ast.js +1 -1
  48. package/dist/translations/ast.umd.js +1 -1
  49. package/dist/translations/az.js +1 -1
  50. package/dist/translations/az.umd.js +1 -1
  51. package/dist/translations/be.js +1 -1
  52. package/dist/translations/be.umd.js +1 -1
  53. package/dist/translations/bg.js +1 -1
  54. package/dist/translations/bg.umd.js +1 -1
  55. package/dist/translations/bn.js +1 -1
  56. package/dist/translations/bn.umd.js +1 -1
  57. package/dist/translations/bs.js +1 -1
  58. package/dist/translations/bs.umd.js +1 -1
  59. package/dist/translations/ca.js +1 -1
  60. package/dist/translations/ca.umd.js +1 -1
  61. package/dist/translations/cs.js +1 -1
  62. package/dist/translations/cs.umd.js +1 -1
  63. package/dist/translations/da.js +1 -1
  64. package/dist/translations/da.umd.js +1 -1
  65. package/dist/translations/de-ch.js +1 -1
  66. package/dist/translations/de-ch.umd.js +1 -1
  67. package/dist/translations/de.js +1 -1
  68. package/dist/translations/de.umd.js +1 -1
  69. package/dist/translations/el.js +1 -1
  70. package/dist/translations/el.umd.js +1 -1
  71. package/dist/translations/en-au.js +1 -1
  72. package/dist/translations/en-au.umd.js +1 -1
  73. package/dist/translations/en-gb.js +1 -1
  74. package/dist/translations/en-gb.umd.js +1 -1
  75. package/dist/translations/en.js +1 -1
  76. package/dist/translations/en.umd.js +1 -1
  77. package/dist/translations/eo.js +1 -1
  78. package/dist/translations/eo.umd.js +1 -1
  79. package/dist/translations/es-co.js +1 -1
  80. package/dist/translations/es-co.umd.js +1 -1
  81. package/dist/translations/es.js +1 -1
  82. package/dist/translations/es.umd.js +1 -1
  83. package/dist/translations/et.js +1 -1
  84. package/dist/translations/et.umd.js +1 -1
  85. package/dist/translations/eu.js +1 -1
  86. package/dist/translations/eu.umd.js +1 -1
  87. package/dist/translations/fa.js +1 -1
  88. package/dist/translations/fa.umd.js +1 -1
  89. package/dist/translations/fi.js +1 -1
  90. package/dist/translations/fi.umd.js +1 -1
  91. package/dist/translations/fr.js +1 -1
  92. package/dist/translations/fr.umd.js +1 -1
  93. package/dist/translations/gl.js +1 -1
  94. package/dist/translations/gl.umd.js +1 -1
  95. package/dist/translations/gu.js +1 -1
  96. package/dist/translations/gu.umd.js +1 -1
  97. package/dist/translations/he.js +1 -1
  98. package/dist/translations/he.umd.js +1 -1
  99. package/dist/translations/hi.js +1 -1
  100. package/dist/translations/hi.umd.js +1 -1
  101. package/dist/translations/hr.js +1 -1
  102. package/dist/translations/hr.umd.js +1 -1
  103. package/dist/translations/hu.js +1 -1
  104. package/dist/translations/hu.umd.js +1 -1
  105. package/dist/translations/hy.js +1 -1
  106. package/dist/translations/hy.umd.js +1 -1
  107. package/dist/translations/id.js +1 -1
  108. package/dist/translations/id.umd.js +1 -1
  109. package/dist/translations/it.js +1 -1
  110. package/dist/translations/it.umd.js +1 -1
  111. package/dist/translations/ja.js +1 -1
  112. package/dist/translations/ja.umd.js +1 -1
  113. package/dist/translations/jv.js +1 -1
  114. package/dist/translations/jv.umd.js +1 -1
  115. package/dist/translations/kk.js +1 -1
  116. package/dist/translations/kk.umd.js +1 -1
  117. package/dist/translations/km.js +1 -1
  118. package/dist/translations/km.umd.js +1 -1
  119. package/dist/translations/kn.js +1 -1
  120. package/dist/translations/kn.umd.js +1 -1
  121. package/dist/translations/ko.js +1 -1
  122. package/dist/translations/ko.umd.js +1 -1
  123. package/dist/translations/ku.js +1 -1
  124. package/dist/translations/ku.umd.js +1 -1
  125. package/dist/translations/lt.js +1 -1
  126. package/dist/translations/lt.umd.js +1 -1
  127. package/dist/translations/lv.js +1 -1
  128. package/dist/translations/lv.umd.js +1 -1
  129. package/dist/translations/ms.js +1 -1
  130. package/dist/translations/ms.umd.js +1 -1
  131. package/dist/translations/nb.js +1 -1
  132. package/dist/translations/nb.umd.js +1 -1
  133. package/dist/translations/ne.js +1 -1
  134. package/dist/translations/ne.umd.js +1 -1
  135. package/dist/translations/nl.js +1 -1
  136. package/dist/translations/nl.umd.js +1 -1
  137. package/dist/translations/no.js +1 -1
  138. package/dist/translations/no.umd.js +1 -1
  139. package/dist/translations/oc.js +1 -1
  140. package/dist/translations/oc.umd.js +1 -1
  141. package/dist/translations/pl.js +1 -1
  142. package/dist/translations/pl.umd.js +1 -1
  143. package/dist/translations/pt-br.js +1 -1
  144. package/dist/translations/pt-br.umd.js +1 -1
  145. package/dist/translations/pt.js +1 -1
  146. package/dist/translations/pt.umd.js +1 -1
  147. package/dist/translations/ro.js +1 -1
  148. package/dist/translations/ro.umd.js +1 -1
  149. package/dist/translations/ru.js +1 -1
  150. package/dist/translations/ru.umd.js +1 -1
  151. package/dist/translations/si.js +1 -1
  152. package/dist/translations/si.umd.js +1 -1
  153. package/dist/translations/sk.js +1 -1
  154. package/dist/translations/sk.umd.js +1 -1
  155. package/dist/translations/sl.js +1 -1
  156. package/dist/translations/sl.umd.js +1 -1
  157. package/dist/translations/sq.js +1 -1
  158. package/dist/translations/sq.umd.js +1 -1
  159. package/dist/translations/sr-latn.js +1 -1
  160. package/dist/translations/sr-latn.umd.js +1 -1
  161. package/dist/translations/sr.js +1 -1
  162. package/dist/translations/sr.umd.js +1 -1
  163. package/dist/translations/sv.js +1 -1
  164. package/dist/translations/sv.umd.js +1 -1
  165. package/dist/translations/th.js +1 -1
  166. package/dist/translations/th.umd.js +1 -1
  167. package/dist/translations/ti.js +1 -1
  168. package/dist/translations/ti.umd.js +1 -1
  169. package/dist/translations/tk.js +1 -1
  170. package/dist/translations/tk.umd.js +1 -1
  171. package/dist/translations/tr.js +1 -1
  172. package/dist/translations/tr.umd.js +1 -1
  173. package/dist/translations/tt.js +1 -1
  174. package/dist/translations/tt.umd.js +1 -1
  175. package/dist/translations/ug.js +1 -1
  176. package/dist/translations/ug.umd.js +1 -1
  177. package/dist/translations/uk.js +1 -1
  178. package/dist/translations/uk.umd.js +1 -1
  179. package/dist/translations/ur.js +1 -1
  180. package/dist/translations/ur.umd.js +1 -1
  181. package/dist/translations/uz.js +1 -1
  182. package/dist/translations/uz.umd.js +1 -1
  183. package/dist/translations/vi.js +1 -1
  184. package/dist/translations/vi.umd.js +1 -1
  185. package/dist/translations/zh-cn.js +1 -1
  186. package/dist/translations/zh-cn.umd.js +1 -1
  187. package/dist/translations/zh.js +1 -1
  188. package/dist/translations/zh.umd.js +1 -1
  189. package/lang/contexts.json +40 -1
  190. package/lang/translations/ar.po +171 -171
  191. package/lang/translations/bg.po +155 -155
  192. package/lang/translations/bn.po +155 -155
  193. package/lang/translations/ca.po +155 -155
  194. package/lang/translations/cs.po +159 -159
  195. package/lang/translations/da.po +155 -155
  196. package/lang/translations/de.po +155 -155
  197. package/lang/translations/el.po +155 -155
  198. package/lang/translations/es.po +155 -155
  199. package/lang/translations/et.po +155 -155
  200. package/lang/translations/fi.po +155 -155
  201. package/lang/translations/fr.po +155 -155
  202. package/lang/translations/he.po +155 -155
  203. package/lang/translations/hi.po +155 -155
  204. package/lang/translations/hu.po +155 -155
  205. package/lang/translations/id.po +151 -151
  206. package/lang/translations/it.po +155 -155
  207. package/lang/translations/ja.po +151 -151
  208. package/lang/translations/ko.po +151 -151
  209. package/lang/translations/lt.po +159 -159
  210. package/lang/translations/lv.po +159 -159
  211. package/lang/translations/ms.po +151 -151
  212. package/lang/translations/nl.po +155 -155
  213. package/lang/translations/no.po +155 -155
  214. package/lang/translations/pl.po +159 -159
  215. package/lang/translations/pt-br.po +155 -155
  216. package/lang/translations/pt.po +155 -155
  217. package/lang/translations/ro.po +159 -159
  218. package/lang/translations/ru.po +159 -159
  219. package/lang/translations/sk.po +159 -159
  220. package/lang/translations/sr.po +159 -159
  221. package/lang/translations/sv.po +155 -155
  222. package/lang/translations/th.po +151 -151
  223. package/lang/translations/tr.po +155 -155
  224. package/lang/translations/uk.po +159 -159
  225. package/lang/translations/vi.po +151 -151
  226. package/lang/translations/zh-cn.po +151 -151
  227. package/lang/translations/zh.po +151 -151
  228. package/package.json +16 -15
  229. package/src/aiactions/aiactions.js +1 -1
  230. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  231. package/src/aiactions/model/aiactionsreply.d.ts +2 -1
  232. package/src/aiactions/model/aiactionsreply.js +1 -1
  233. package/src/aiassistant/adapters/aiadapter.js +1 -1
  234. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  235. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  236. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  237. package/src/aiassistant/aiassistant.js +1 -1
  238. package/src/aiassistant/aiassistantediting.js +1 -1
  239. package/src/aiassistant/aiassistantui.js +1 -1
  240. package/src/aiassistant/legacyerrors.js +1 -1
  241. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  242. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  243. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  244. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  245. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  246. package/src/aiassistant/ui/form/aiformview.js +1 -1
  247. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  248. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  249. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  250. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  251. package/src/aiassistant/utils/common-translations.js +1 -1
  252. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  253. package/src/aiballoon/aiballoon.js +1 -1
  254. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  255. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  256. package/src/aiballoon/ui/aiballoonview.js +1 -1
  257. package/src/aichat/aichat.js +1 -1
  258. package/src/aichat/aichatcontroller.js +1 -1
  259. package/src/aichat/aichatui.js +1 -1
  260. package/src/aichat/model/aichatcontext.js +1 -1
  261. package/src/aichat/model/aichatconversation.js +1 -1
  262. package/src/aichat/model/aichatinteraction.js +1 -1
  263. package/src/aichat/model/aichatmodels.js +1 -1
  264. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  265. package/src/aichat/ui/aichatfeedview.js +1 -1
  266. package/src/aichat/ui/aichatheaderview.js +1 -1
  267. package/src/aichat/ui/aichatview.js +1 -1
  268. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  269. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  270. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  271. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  272. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  273. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  274. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  275. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  276. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  277. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  278. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  279. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  280. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  281. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  282. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  283. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  284. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  285. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +2 -1
  286. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  287. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  288. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  289. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  290. package/src/aichat/utils/eventnames.js +1 -1
  291. package/src/aichat/utils/promisequeue.js +1 -1
  292. package/src/aichat/utils/scrollmanager.js +1 -1
  293. package/src/aichathistory/aichathistory.js +1 -1
  294. package/src/aichathistory/aichathistorycontroller.js +1 -1
  295. package/src/aichathistory/aichathistoryui.js +1 -1
  296. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  297. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  298. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  299. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  300. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  301. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  302. package/src/aiconfig.d.ts +5 -0
  303. package/src/aicore/aiconnector.js +1 -1
  304. package/src/aicore/aiediting.js +1 -1
  305. package/src/aicore/model/aicapabilities.js +1 -1
  306. package/src/aicore/model/aicontext.js +1 -1
  307. package/src/aicore/model/aiinteraction.js +1 -1
  308. package/src/aicore/model/aireply.js +1 -1
  309. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  310. package/src/aicore/pipeline/airesponseparser.js +2 -2
  311. package/src/aicore/ui/aidisclaimerview.js +1 -1
  312. package/src/aicore/ui/aiskeleton.js +1 -1
  313. package/src/aicore/ui/aispinner.js +1 -1
  314. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  315. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +2 -1
  316. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  317. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +2 -1
  318. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  319. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +2 -1
  320. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  321. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  322. package/src/aicore/utils/common-translations.js +1 -1
  323. package/src/aicore/utils/createresizebutton.js +1 -1
  324. package/src/aicore/utils/documentposition.js +1 -1
  325. package/src/aicore/utils/documentrange.js +1 -1
  326. package/src/aicore/utils/eventnames.js +1 -1
  327. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  328. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  329. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +2 -1
  330. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  331. package/src/aicore/utils/htmlparser.js +1 -1
  332. package/src/aicore/utils/htmlstreamer.js +1 -1
  333. package/src/aiquickactions/aiquickactions.js +1 -1
  334. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  335. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  336. package/src/aiquickactions/aiquickactionsui.js +1 -1
  337. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  338. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  339. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  340. package/src/aiquickactions/utils/common-translations.js +1 -1
  341. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +31 -0
  342. package/src/aireviewmode/aireviewcheckdefinitions.js +23 -0
  343. package/src/aireviewmode/aireviewmode.d.ts +37 -0
  344. package/src/aireviewmode/aireviewmode.js +1 -1
  345. package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
  346. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  347. package/src/aireviewmode/aireviewmodeediting.d.ts +24 -8
  348. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  349. package/src/aireviewmode/aireviewmodeui.d.ts +12 -1
  350. package/src/aireviewmode/aireviewmodeui.js +1 -1
  351. package/src/aireviewmode/model/aireviewcheck.d.ts +2 -19
  352. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  353. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  354. package/src/aireviewmode/model/aireviewchecklist.d.ts +2 -5
  355. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  356. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  357. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  358. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  359. package/src/aireviewmode/model/aireviewcheckrun.d.ts +24 -2
  360. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  361. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +4 -0
  362. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  363. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  364. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +4 -0
  365. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  366. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  367. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +30 -0
  368. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +23 -0
  369. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +12 -2
  370. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  371. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  372. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  373. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -0
  374. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  375. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -0
  376. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  377. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +4 -0
  378. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  379. package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -0
  380. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  381. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +1 -1
  382. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  383. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  384. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  385. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +1 -1
  386. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  387. package/src/aitabs/aitabs.js +1 -1
  388. package/src/aitabs/aitabsmainview.js +1 -1
  389. package/src/aitabs/tabs/aitabsview.js +1 -1
  390. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  391. package/src/aitabs/tabs/tabpanelview.js +1 -1
  392. package/src/index.d.ts +3 -2
  393. package/src/index.js +1 -1
  394. package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
  395. package/theme/aichat/aichat-controls.css +4 -0
  396. package/theme/aichat/aichatfeed.css +10 -2
  397. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +19 -0
  398. package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
  399. package/theme/aireviewmode/aireviewmode-check-run.css +0 -35
  400. package/theme/aitabs/tabs/tabbuttonview.css +1 -0
  401. package/src/aireviewmode/utils/common-translations.d.ts +0 -9
  402. package/src/aireviewmode/utils/common-translations.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x132e(_0xc9655c,_0x4145e4){const _0x413b78=_0x413b();return _0x132e=function(_0x132e78,_0x2bb0ab){_0x132e78=_0x132e78-0x1b4;let _0x7aab8b=_0x413b78[_0x132e78];return _0x7aab8b;},_0x132e(_0xc9655c,_0x4145e4);}const _0x4f094f=_0x132e;function _0x413b(){const _0x399253=['sendUserMessage','28507790bWUFbU','32LAsTGL','addContextButtonView','_createLoaderView','_createPromptCapabilitiesView','focusPromptInput','321211ZywmXr','disableModelSelector','closeSourceResourceBalloon','setWebSearch','form','focus','setContextItemLoading','element','_promptCapabilitiesView','clearPendingContextUI','clearConversationContextItems','enableModelSelector','210Rnmolr','bindTemplate','toggleReasoning','setReasoning','addContextItem','div','setInputPlaceholder','removeContextItem','_handlePromptInputFocus','_createPromptInputView','ck-hidden','isLoading','selectModel','populateSourceResourceBalloon','low','setTemplate','5143869ANRxHV','52IlJXZn','1234280oNTYVA','692258XaSmSL','clearConversationContextUI','_promptInputView','toggleWebSearch','resetMessageInput','_contextPanelView','clearCurrentContextItems','setModelList','_shouldRestorePromptInputFocus','updateResourceState','setPlaceholderText','setIsUploadInProgress','setConversationContext','delegate','105333sAIukS','setModel','_createContextPanelView','94135hlNdKf','change:isLoading','abortPromptStream','_loaderView','ck-ai-chat-controls','reset','setAddContextOptions'];_0x413b=function(){return _0x399253;};return _0x413b();}(function(_0x357682,_0x3018fb){const _0x30e859=_0x132e,_0x12547b=_0x357682();while(!![]){try{const _0x529af3=-parseInt(_0x30e859(0x1ce))/0x1+-parseInt(_0x30e859(0x1eb))/0x2*(parseInt(_0x30e859(0x1bd))/0x3)+-parseInt(_0x30e859(0x1ec))/0x4+parseInt(_0x30e859(0x1c0))/0x5*(-parseInt(_0x30e859(0x1da))/0x6)+-parseInt(_0x30e859(0x1ed))/0x7*(-parseInt(_0x30e859(0x1c9))/0x8)+-parseInt(_0x30e859(0x1ea))/0x9+parseInt(_0x30e859(0x1c8))/0xa;if(_0x529af3===_0x3018fb)break;else _0x12547b['push'](_0x12547b['shift']());}catch(_0xfd041a){_0x12547b['push'](_0x12547b['shift']());}}}(_0x413b,0x73872));import{clickOutsideHandler as _0x4d27e3,View as _0x41dc7d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2e9817}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x483a44}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3f94c5,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x37e228}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x1e7103}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0x41dc7d{[_0x4f094f(0x1b4)];[_0x4f094f(0x1ef)];[_0x4f094f(0x1d6)];[_0x4f094f(0x1c3)];[_0x4f094f(0x1b7)];constructor(_0x134c51,_0x5dee83){const _0x54d1bc=_0x4f094f;super(_0x134c51),this[_0x54d1bc(0x1b4)]=this[_0x54d1bc(0x1bf)](_0x134c51,_0x5dee83),this[_0x54d1bc(0x1ef)]=this[_0x54d1bc(0x1e3)](_0x134c51),this[_0x54d1bc(0x1d6)]=this[_0x54d1bc(0x1cc)](_0x134c51),this[_0x54d1bc(0x1c3)]=this[_0x54d1bc(0x1cb)](_0x134c51),this[_0x54d1bc(0x1b7)]=!0x1,this[_0x54d1bc(0x1ef)][_0x54d1bc(0x1bc)](_0x54d1bc(0x1c7))['to'](this),this[_0x54d1bc(0x1c3)][_0x54d1bc(0x1bc)](_0x54d1bc(0x1c2))['to'](this),this[_0x54d1bc(0x1d6)][_0x54d1bc(0x1bc)](_0x54d1bc(0x1f0))['to'](this),this[_0x54d1bc(0x1d6)][_0x54d1bc(0x1bc)](_0x54d1bc(0x1dc))['to'](this),this[_0x54d1bc(0x1d6)][_0x54d1bc(0x1bc)](_0x54d1bc(0x1e6))['to'](this),this[_0x54d1bc(0x1b4)][_0x54d1bc(0x1bc)](..._0x37e228)['to'](this);const _0x67b693=this[_0x54d1bc(0x1db)];this[_0x54d1bc(0x1e9)]({'tag':_0x54d1bc(0x1d2),'attributes':{'class':['ck',_0x54d1bc(0x1c4)]},'children':[{'tag':_0x54d1bc(0x1df),'attributes':{'class':[_0x67b693['if'](_0x54d1bc(0x1e5),_0x54d1bc(0x1e4))]},'children':[this[_0x54d1bc(0x1b4)],this[_0x54d1bc(0x1ef)],this[_0x54d1bc(0x1d6)]]},{'tag':_0x54d1bc(0x1df),'attributes':{'class':[_0x67b693['if'](_0x54d1bc(0x1e5),_0x54d1bc(0x1e4),_0x300b72=>!_0x300b72)]},'children':[this[_0x54d1bc(0x1c3)]]}]}),_0x4d27e3({'emitter':this[_0x54d1bc(0x1ef)],'activator':()=>this[_0x54d1bc(0x1e5)],'contextElements':()=>[this[_0x54d1bc(0x1d5)]],'callback':()=>{const _0x3eeeda=_0x54d1bc;this[_0x3eeeda(0x1b7)]=!0x1;}}),this['on'](_0x54d1bc(0x1c1),this[_0x54d1bc(0x1e2)],{'priority':_0x54d1bc(0x1e8)});}[_0x4f094f(0x1bf)](_0x2e934d,_0x91c8d0){return new _0x3f94c5(_0x2e934d,_0x91c8d0);}[_0x4f094f(0x1e3)](_0x4b142b){const _0xff6e28=_0x4f094f;return new _0x2e9817(_0x4b142b,this[_0xff6e28(0x1b4)][_0xff6e28(0x1ca)]);}[_0x4f094f(0x1cc)](_0x2810f5){return new _0x483a44(_0x2810f5);}[_0x4f094f(0x1cb)](_0x5a18bf){return new _0x1e7103(_0x5a18bf);}[_0x4f094f(0x1e2)](_0x174db0,_0x2e1d3a,_0x2f73b9){const _0x5a0176=_0x4f094f;_0x2f73b9?this[_0x5a0176(0x1b7)]=!0x0:this[_0x5a0176(0x1b7)]&&this[_0x5a0176(0x1ef)][_0x5a0176(0x1d3)]();}[_0x4f094f(0x1de)](_0x3e69f4,_0x67570e){const _0x52a676=_0x4f094f;this[_0x52a676(0x1b4)][_0x52a676(0x1de)](_0x3e69f4,_0x67570e);}[_0x4f094f(0x1e1)](_0x264170){const _0x16dbd9=_0x4f094f;this[_0x16dbd9(0x1b4)][_0x16dbd9(0x1e1)](_0x264170);}[_0x4f094f(0x1d4)](_0x1d75e2,_0xd7b540){const _0x2a09d3=_0x4f094f;this[_0x2a09d3(0x1b4)][_0x2a09d3(0x1d4)](_0x1d75e2,_0xd7b540);}[_0x4f094f(0x1ba)](_0x58579d){const _0x4c0e64=_0x4f094f;this[_0x4c0e64(0x1ef)][_0x4c0e64(0x1ba)](_0x58579d);}[_0x4f094f(0x1bb)](_0x4633fb){const _0x5ee38a=_0x4f094f;this[_0x5ee38a(0x1b4)][_0x5ee38a(0x1bb)](_0x4633fb);}[_0x4f094f(0x1d7)](){const _0x259350=_0x4f094f;this[_0x259350(0x1b4)][_0x259350(0x1b5)]();}[_0x4f094f(0x1ee)](){const _0x56476c=_0x4f094f;this[_0x56476c(0x1b4)][_0x56476c(0x1d8)]();}[_0x4f094f(0x1b8)](_0x59d502,_0x365a50,_0xf442ee){const _0x26d7d5=_0x4f094f;this[_0x26d7d5(0x1b4)][_0x26d7d5(0x1b8)](_0x59d502,_0x365a50,_0xf442ee);}[_0x4f094f(0x1d1)](_0x18eedc){const _0x35827f=_0x4f094f;this[_0x35827f(0x1d6)][_0x35827f(0x1d1)](_0x18eedc);}[_0x4f094f(0x1dd)](_0x49b4ef){const _0x3a67db=_0x4f094f;this[_0x3a67db(0x1d6)][_0x3a67db(0x1dd)](_0x49b4ef);}[_0x4f094f(0x1f1)](){const _0x4c9cfc=_0x4f094f;this[_0x4c9cfc(0x1ef)][_0x4c9cfc(0x1c5)]();}[_0x4f094f(0x1c6)](_0x417296){const _0x4bb37a=_0x4f094f;this[_0x4bb37a(0x1b4)][_0x4bb37a(0x1c6)](_0x417296);}[_0x4f094f(0x1e0)](_0x1ca5fc){const _0x40cfbe=_0x4f094f;this[_0x40cfbe(0x1ef)][_0x40cfbe(0x1b9)](_0x1ca5fc);}[_0x4f094f(0x1b6)](_0x3586f9,_0x10a564){const _0x2b8123=_0x4f094f;this[_0x2b8123(0x1d6)][_0x2b8123(0x1b6)](_0x3586f9,_0x10a564);}[_0x4f094f(0x1be)](_0x1988a1){const _0x52589e=_0x4f094f;this[_0x52589e(0x1d6)][_0x52589e(0x1be)](_0x1988a1);}[_0x4f094f(0x1d9)](){const _0x5380c9=_0x4f094f;this[_0x5380c9(0x1d6)][_0x5380c9(0x1d9)]();}[_0x4f094f(0x1cf)](_0x49f891){const _0x446687=_0x4f094f;this[_0x446687(0x1d6)][_0x446687(0x1cf)](_0x49f891);}[_0x4f094f(0x1e7)](_0x2733c1,_0x2e4962,_0xf746fb,_0x3f82c6){const _0xfe5f64=_0x4f094f;this[_0xfe5f64(0x1b4)][_0xfe5f64(0x1e7)](_0x2733c1,_0x2e4962,_0xf746fb,_0x3f82c6);}[_0x4f094f(0x1d0)](_0x2416f6){const _0x8fc1e3=_0x4f094f;this[_0x8fc1e3(0x1b4)][_0x8fc1e3(0x1d0)](_0x2416f6);}[_0x4f094f(0x1cd)](){const _0x4f9164=_0x4f094f;this[_0x4f9164(0x1ef)][_0x4f9164(0x1d3)]();}}
23
+ const _0x4cd946=_0x4dab;(function(_0x4c480d,_0x5564bc){const _0xa2d497=_0x4dab,_0x532b01=_0x4c480d();while(!![]){try{const _0x14af13=parseInt(_0xa2d497(0xd2))/0x1+parseInt(_0xa2d497(0xcd))/0x2+parseInt(_0xa2d497(0x101))/0x3+parseInt(_0xa2d497(0xc9))/0x4*(parseInt(_0xa2d497(0xf3))/0x5)+parseInt(_0xa2d497(0xf5))/0x6+-parseInt(_0xa2d497(0x100))/0x7+parseInt(_0xa2d497(0xc8))/0x8*(-parseInt(_0xa2d497(0xf6))/0x9);if(_0x14af13===_0x5564bc)break;else _0x532b01['push'](_0x532b01['shift']());}catch(_0x180351){_0x532b01['push'](_0x532b01['shift']());}}}(_0x4890,0xe0df0));function _0x4dab(_0x27b314,_0x555798){const _0x489085=_0x4890();return _0x4dab=function(_0x4daba0,_0x8a9107){_0x4daba0=_0x4daba0-0xc5;let _0x7944ed=_0x489085[_0x4daba0];return _0x7944ed;},_0x4dab(_0x27b314,_0x555798);}import{clickOutsideHandler as _0xd64d2f,View as _0x54cd72}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x11bcb8}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x23b854}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x570526,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1caa48}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2724f3}from'./controls/aichatcontrolsloaderview.js';function _0x4890(){const _0x55d881=['_handlePromptInputFocus','_createLoaderView','bindTemplate','clearConversationContextUI','sendUserMessage','clearPendingContextUI','setTemplate','change:isLoading','setReasoning','addContextItem','setModelList','resetMessageInput','disableModelSelector','setInputPlaceholder','setModel','toggleReasoning','enableModelSelector','updateResourceState','setWebSearch','addContextButtonView','_promptCapabilitiesView','19155oPYLwi','element','8154384tufBkF','603kopmSx','ck-ai-chat-controls','clearCurrentContextItems','isLoading','_shouldRestorePromptInputFocus','_loaderView','focusPromptInput','setContextItemLoading','_createContextPanelView','delegate','1087331zfJjHD','3961782NTNoNj','setConversationContext','closeSourceResourceBalloon','reset','681008vaSDJN','1424uDwZIB','_createPromptInputView','setPlaceholderText','removeContextItem','2250348kqDGlR','focus','_contextPanelView','low','clearConversationContextItems','1611179jRKyxe','abortPromptStream','div','form','populateSourceResourceBalloon','setIsUploadInProgress','_createPromptCapabilitiesView','selectModel','setAddContextOptions','ck-hidden','toggleWebSearch','_promptInputView'];_0x4890=function(){return _0x55d881;};return _0x4890();}export class AIChatControlsView extends _0x54cd72{[_0x4cd946(0xcf)];[_0x4cd946(0xdd)];[_0x4cd946(0xf2)];[_0x4cd946(0xfb)];[_0x4cd946(0xfa)];constructor(_0x382253,_0x215495){const _0x23a36c=_0x4cd946;super(_0x382253),this[_0x23a36c(0xcf)]=this[_0x23a36c(0xfe)](_0x382253,_0x215495),this[_0x23a36c(0xdd)]=this[_0x23a36c(0xca)](_0x382253),this[_0x23a36c(0xf2)]=this[_0x23a36c(0xd8)](_0x382253),this[_0x23a36c(0xfb)]=this[_0x23a36c(0xdf)](_0x382253),this[_0x23a36c(0xfa)]=!0x1,this[_0x23a36c(0xdd)][_0x23a36c(0xff)](_0x23a36c(0xe2))['to'](this),this[_0x23a36c(0xfb)][_0x23a36c(0xff)](_0x23a36c(0xd3))['to'](this),this[_0x23a36c(0xf2)][_0x23a36c(0xff)](_0x23a36c(0xdc))['to'](this),this[_0x23a36c(0xf2)][_0x23a36c(0xff)](_0x23a36c(0xed))['to'](this),this[_0x23a36c(0xf2)][_0x23a36c(0xff)](_0x23a36c(0xd9))['to'](this),this[_0x23a36c(0xcf)][_0x23a36c(0xff)](..._0x1caa48)['to'](this);const _0x36370b=this[_0x23a36c(0xe0)];this[_0x23a36c(0xe4)]({'tag':_0x23a36c(0xd5),'attributes':{'class':['ck',_0x23a36c(0xf7)]},'children':[{'tag':_0x23a36c(0xd4),'attributes':{'class':[_0x36370b['if'](_0x23a36c(0xf9),_0x23a36c(0xdb))]},'children':[this[_0x23a36c(0xcf)],this[_0x23a36c(0xdd)],this[_0x23a36c(0xf2)]]},{'tag':_0x23a36c(0xd4),'attributes':{'class':[_0x36370b['if'](_0x23a36c(0xf9),_0x23a36c(0xdb),_0x3a5640=>!_0x3a5640)]},'children':[this[_0x23a36c(0xfb)]]}]}),_0xd64d2f({'emitter':this[_0x23a36c(0xdd)],'activator':()=>this[_0x23a36c(0xf9)],'contextElements':()=>[this[_0x23a36c(0xf4)]],'callback':()=>{const _0x285d94=_0x23a36c;this[_0x285d94(0xfa)]=!0x1;}}),this['on'](_0x23a36c(0xe5),this[_0x23a36c(0xde)],{'priority':_0x23a36c(0xd0)});}[_0x4cd946(0xfe)](_0x2a4871,_0x469674){return new _0x570526(_0x2a4871,_0x469674);}[_0x4cd946(0xca)](_0x55f8ce){const _0xaa6cf=_0x4cd946;return new _0x11bcb8(_0x55f8ce,this[_0xaa6cf(0xcf)][_0xaa6cf(0xf1)]);}[_0x4cd946(0xd8)](_0x426138){return new _0x23b854(_0x426138);}[_0x4cd946(0xdf)](_0x14b6d6){return new _0x2724f3(_0x14b6d6);}[_0x4cd946(0xde)](_0x22031a,_0x19df87,_0x23fe33){const _0x51813d=_0x4cd946;_0x23fe33?this[_0x51813d(0xfa)]=!0x0:this[_0x51813d(0xfa)]&&this[_0x51813d(0xdd)][_0x51813d(0xce)]();}[_0x4cd946(0xe7)](_0x5a1bd9,_0x193c81){const _0x205846=_0x4cd946;this[_0x205846(0xcf)][_0x205846(0xe7)](_0x5a1bd9,_0x193c81);}[_0x4cd946(0xcc)](_0x4e5e02){const _0x1d5a60=_0x4cd946;this[_0x1d5a60(0xcf)][_0x1d5a60(0xcc)](_0x4e5e02);}[_0x4cd946(0xfd)](_0x315002,_0xc7d2a1){const _0x3b371c=_0x4cd946;this[_0x3b371c(0xcf)][_0x3b371c(0xfd)](_0x315002,_0xc7d2a1);}[_0x4cd946(0xd7)](_0x5ab09d){const _0x361d30=_0x4cd946;this[_0x361d30(0xdd)][_0x361d30(0xd7)](_0x5ab09d);}[_0x4cd946(0xc5)](_0x1ee60a){const _0x3e7ec7=_0x4cd946;this[_0x3e7ec7(0xcf)][_0x3e7ec7(0xc5)](_0x1ee60a);}[_0x4cd946(0xe3)](){const _0x7e8f85=_0x4cd946;this[_0x7e8f85(0xcf)][_0x7e8f85(0xf8)]();}[_0x4cd946(0xe1)](){const _0x39ccce=_0x4cd946;this[_0x39ccce(0xcf)][_0x39ccce(0xd1)]();}[_0x4cd946(0xef)](_0x11ec81,_0x149c73,_0x57d3d7){const _0x974e34=_0x4cd946;this[_0x974e34(0xcf)][_0x974e34(0xef)](_0x11ec81,_0x149c73,_0x57d3d7);}[_0x4cd946(0xf0)](_0x3d4f7b){const _0x27d538=_0x4cd946;this[_0x27d538(0xf2)][_0x27d538(0xf0)](_0x3d4f7b);}[_0x4cd946(0xe6)](_0x2a27a5){const _0x3d7eca=_0x4cd946;this[_0x3d7eca(0xf2)][_0x3d7eca(0xe6)](_0x2a27a5);}[_0x4cd946(0xe9)](){const _0x351df8=_0x4cd946;this[_0x351df8(0xdd)][_0x351df8(0xc7)]();}[_0x4cd946(0xda)](_0x2f192a){const _0x11eb9a=_0x4cd946;this[_0x11eb9a(0xcf)][_0x11eb9a(0xda)](_0x2f192a);}[_0x4cd946(0xeb)](_0x22b771){const _0x2af353=_0x4cd946;this[_0x2af353(0xdd)][_0x2af353(0xcb)](_0x22b771);}[_0x4cd946(0xe8)](_0x2b8098,_0x45340e){const _0x3666c7=_0x4cd946;this[_0x3666c7(0xf2)][_0x3666c7(0xe8)](_0x2b8098,_0x45340e);}[_0x4cd946(0xec)](_0x23f6e2){const _0x436814=_0x4cd946;this[_0x436814(0xf2)][_0x436814(0xec)](_0x23f6e2);}[_0x4cd946(0xee)](){const _0x1cafbc=_0x4cd946;this[_0x1cafbc(0xf2)][_0x1cafbc(0xee)]();}[_0x4cd946(0xea)](_0x9ad37d){const _0x3f1721=_0x4cd946;this[_0x3f1721(0xf2)][_0x3f1721(0xea)](_0x9ad37d);}[_0x4cd946(0xd6)](_0x579a0e,_0x527b27,_0x5ed004,_0xbdd39e){const _0x204e82=_0x4cd946;this[_0x204e82(0xcf)][_0x204e82(0xd6)](_0x579a0e,_0x527b27,_0x5ed004,_0xbdd39e);}[_0x4cd946(0xc6)](_0x12e0b4){const _0x43c1d9=_0x4cd946;this[_0x43c1d9(0xcf)][_0x43c1d9(0xc6)](_0x12e0b4);}[_0x4cd946(0xfc)](){const _0x584146=_0x4cd946;this[_0x584146(0xdd)][_0x584146(0xce)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4735fa=_0x8d8a;(function(_0x3715c8,_0x1968ab){const _0x456924=_0x8d8a,_0x3abe21=_0x3715c8();while(!![]){try{const _0x20a193=-parseInt(_0x456924(0xa7))/0x1*(parseInt(_0x456924(0xc6))/0x2)+-parseInt(_0x456924(0xd0))/0x3+-parseInt(_0x456924(0xd8))/0x4*(parseInt(_0x456924(0xde))/0x5)+-parseInt(_0x456924(0xb7))/0x6*(parseInt(_0x456924(0xd1))/0x7)+-parseInt(_0x456924(0xcb))/0x8+-parseInt(_0x456924(0xca))/0x9*(parseInt(_0x456924(0xe5))/0xa)+-parseInt(_0x456924(0xab))/0xb*(-parseInt(_0x456924(0xd2))/0xc);if(_0x20a193===_0x1968ab)break;else _0x3abe21['push'](_0x3abe21['shift']());}catch(_0x2133fb){_0x3abe21['push'](_0x3abe21['shift']());}}}(_0x49d1,0x41e41));import{CKEditorError as _0x2239e4,logWarning as _0x51f28f,scrollViewportToShowTarget as _0x3ee015}from'ckeditor5/src/utils.js';function _0x8d8a(_0x2b38c2,_0xe7eda6){const _0x49d1f7=_0x49d1();return _0x8d8a=function(_0x8d8ad1,_0x1de524){_0x8d8ad1=_0x8d8ad1-0xa2;let _0x4208fc=_0x49d1f7[_0x8d8ad1];return _0x4208fc;},_0x8d8a(_0x2b38c2,_0xe7eda6);}import{View as _0x99fc4d}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1b82df}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x53b9f4}from'./feed/aichatfeedsuggestionitemview.js';function _0x49d1(){const _0x566418=['isVisible','188170HdeIdm','ai-chat-feed-view-item-not-a-reply-item','startAutoScroll','getItemIds','_createTemplateChildren','ck-ai-chat__loader','bindTemplate','addItem','ai-suggestion-reply','span','_createLoaderChildren','setTemplate','start','locale','updateWebSources','scrollManager','stop','_createFeedItems','set','77SULhNd','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','loadingMessage','delegate','11806454cvDcLz','isPending','ai-reply','removeItem','_bodyCollection','getPartView','interaction-header','ai-chat-feed-view-item-not-a-suggestion-item','isLoadingSkeletonVisible','remove','children','_setupTemplate','6YvixoA','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','includes','ck-ai-chat__loader-text','updatePartState','options','getItemById','updateSuggestionPartState','extendTemplate','ck-ai-chat__feed__items','updateReplyItem','updateContent','ai-chat-feed-view-item-not-found','find','ck-hidden','394wCDrVD','toggleLoadingSkeleton','add','_createSkeletonLoader','9VJCRvs','2735192ruEtUa','markAsDone','updateSuggestionItem','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','aiFeed','317088KROAXj','2089178UybRsd','12idwNRc','clear','setLoadingMessage','stopAutoScroll','destroy','render','18712jeVZRp','scrollToSuggestion','div','ck-ai-chat__feed','map','createCollection','25FYFaUt','updateSources','user-message','markItemAsDone','element','_createFeedLoader'];_0x49d1=function(){return _0x566418;};return _0x49d1();}import{AIChatFeedReplyItemView as _0x509064}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3b59ca}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4f8506}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3966ea}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x388c35}from'../utils/scrollmanager.js';import{AISkeletonView as _0x280495,SKELETON_DEFINITIONS as _0x30469a}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4908e5}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x99fc4d{[_0x4735fa(0xb5)];[_0x4735fa(0xa3)];[_0x4735fa(0xaf)];constructor(_0x1e8e68,_0x7ff7b8){const _0x5f2f53=_0x4735fa;super(_0x1e8e68),this[_0x5f2f53(0xaf)]=_0x7ff7b8,this[_0x5f2f53(0xa6)](_0x5f2f53(0xac),!0x1),this[_0x5f2f53(0xa6)](_0x5f2f53(0xa9),''),this[_0x5f2f53(0xa6)](_0x5f2f53(0xb3),!0x1),this[_0x5f2f53(0xb5)]=this[_0x5f2f53(0xdd)](),this[_0x5f2f53(0xb5)][_0x5f2f53(0xaa)](..._0x1b82df)['to'](this),this[_0x5f2f53(0xb6)]();}[_0x4735fa(0xd7)](){const _0x4902e9=_0x4735fa;super[_0x4902e9(0xd7)](),this[_0x4902e9(0xa3)]=new _0x388c35(this[_0x4902e9(0xe2)]);}[_0x4735fa(0xd6)](){const _0x16fdce=_0x4735fa;super[_0x16fdce(0xd6)](),this[_0x16fdce(0xa3)][_0x16fdce(0xd6)]();}[_0x4735fa(0xd3)](){const _0x3ec6ab=_0x4735fa;this[_0x3ec6ab(0xb5)][_0x3ec6ab(0xd3)]();}[_0x4735fa(0xec)](_0x24fc4b,_0x8e7233){const _0xc987a4=_0x4735fa;let _0x589ce8;_0x589ce8=_0xc987a4(0xad)===_0x24fc4b?new _0x509064(_0x8e7233):_0xc987a4(0xed)===_0x24fc4b?new _0x53b9f4(this[_0xc987a4(0xf2)],_0x8e7233):_0xc987a4(0xe0)===_0x24fc4b?new _0x3b59ca(this[_0xc987a4(0xf2)],_0x8e7233,this[_0xc987a4(0xaf)]):_0xc987a4(0xb1)===_0x24fc4b?new _0x3966ea(this[_0xc987a4(0xf2)],_0x8e7233):new _0x4f8506(_0x8e7233),this[_0xc987a4(0xb5)][_0xc987a4(0xc8)](_0x589ce8);}async[_0x4735fa(0xc1)]({id:_0x2e306c,parsedContent:_0x20b4d,renderingStrategy:_0x54841a,abortSignal:_0x417879}){const _0x7e1c1a=_0x4735fa,_0x9fc2a0=this[_0x7e1c1a(0xbd)](_0x2e306c);if(!(_0x9fc2a0 instanceof _0x509064))throw new _0x2239e4(_0x7e1c1a(0xe6),null,{'itemView':_0x9fc2a0,'id':_0x2e306c,'parsedContent':_0x20b4d});await _0x9fc2a0[_0x7e1c1a(0xc2)]({'parsedContent':_0x20b4d,'renderingStrategy':_0x54841a,'abortSignal':_0x417879});}async[_0x4735fa(0xa2)](_0x4b3f5f,_0x3bfe1d){const _0x2d9b3b=_0x4735fa,_0x42d569=this[_0x2d9b3b(0xbd)](_0x4b3f5f);if(_0x42d569 instanceof _0x53b9f4)_0x42d569[_0x2d9b3b(0xdf)](_0x3bfe1d);else{if(!(_0x42d569 instanceof _0x509064))throw new _0x2239e4(_0x2d9b3b(0xce),null,{'itemView':_0x42d569,'id':_0x4b3f5f,'sources':_0x3bfe1d});_0x42d569[_0x2d9b3b(0xdf)](_0x3bfe1d);}}async[_0x4735fa(0xcd)]({id:_0x3ecabd,parts:_0x11bf8f,renderingStrategy:_0x381e0e,abortSignal:_0x4cb70b}){const _0x40688c=_0x4735fa,_0x5cfdcd=this[_0x40688c(0xbd)](_0x3ecabd);if(!(_0x5cfdcd instanceof _0x53b9f4))throw new _0x2239e4(_0x40688c(0xb2),null,{'itemView':_0x5cfdcd,'id':_0x3ecabd,'parts':_0x11bf8f});await _0x5cfdcd[_0x40688c(0xc2)]({'parts':_0x11bf8f,'renderingStrategy':_0x381e0e,'abortSignal':_0x4cb70b});}[_0x4735fa(0xbe)]({id:_0x91c5b5,index:_0x566a31,state:_0x3e1ce9}){const _0x5ea86e=_0x4735fa,_0x2f932a=this[_0x5ea86e(0xbd)](_0x91c5b5);if(!(_0x2f932a instanceof _0x53b9f4))throw new _0x2239e4(_0x5ea86e(0xb2),this,{'id':_0x91c5b5});_0x2f932a[_0x5ea86e(0xbb)](_0x566a31,_0x3e1ce9);}[_0x4735fa(0xe1)](_0x3c1e86){const _0x518770=_0x4735fa;this[_0x518770(0xbd)](_0x3c1e86)[_0x518770(0xcc)]();}[_0x4735fa(0xe8)](){const _0x5b4b37=_0x4735fa;return this[_0x5b4b37(0xb5)][_0x5b4b37(0xdc)](_0x32e6e1=>_0x32e6e1[_0x5b4b37(0xbc)]['id']);}[_0x4735fa(0xae)](_0x256d6e){const _0x5bfd5c=_0x4735fa;this[_0x5bfd5c(0xb5)][_0x5bfd5c(0xb4)](this[_0x5bfd5c(0xbd)](_0x256d6e));}[_0x4735fa(0xd9)](_0x2925b8,_0x8ce4df){const _0x58481e=_0x4735fa,_0x220c1a=this[_0x58481e(0xbd)](_0x2925b8);if(!(_0x220c1a instanceof _0x53b9f4))return void _0x51f28f(_0x58481e(0xa8),{'replyId':_0x2925b8,'partIndex':_0x8ce4df});const _0x108064=_0x220c1a[_0x58481e(0xb0)](_0x8ce4df);_0x108064?_0x3ee015({'target':_0x108064[_0x58481e(0xe2)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x51f28f(_0x58481e(0xb8),{'replyId':_0x2925b8,'partIndex':_0x8ce4df});}[_0x4735fa(0xb6)](){const _0x3707e4=_0x4735fa;this[_0x3707e4(0xf0)]({'tag':_0x3707e4(0xda),'attributes':{'class':['ck',_0x3707e4(0xdb)]},'children':this[_0x3707e4(0xe9)]()});}[_0x4735fa(0xe9)](){const _0x409159=_0x4735fa,_0x402540=this[_0x409159(0xc9)]();return[this[_0x409159(0xa5)](),_0x402540,this[_0x409159(0xe3)]()];}[_0x4735fa(0xc9)](){const _0x219446=_0x4735fa,_0x4efc56=new _0x280495(this[_0x219446(0xf2)],_0x30469a[_0x219446(0xcf)]);return _0x4efc56[_0x219446(0xbf)]({'attributes':{'class':[this[_0x219446(0xeb)]['if'](_0x219446(0xb3),_0x219446(0xc5),_0x309d1a=>!_0x309d1a)]}}),_0x4efc56;}[_0x4735fa(0xa5)](){const _0x308a7c=_0x4735fa,_0x39aba9=new _0x99fc4d(this[_0x308a7c(0xf2)]);return _0x39aba9[_0x308a7c(0xf0)]({'tag':_0x308a7c(0xda),'attributes':{'class':['ck',_0x308a7c(0xc0),this[_0x308a7c(0xeb)]['if'](_0x308a7c(0xb3),_0x308a7c(0xc5))]},'children':this[_0x308a7c(0xb5)]}),_0x39aba9;}[_0x4735fa(0xe3)](){const _0x5631bf=_0x4735fa,_0x3379c5=new _0x99fc4d(this[_0x5631bf(0xf2)]);return _0x3379c5[_0x5631bf(0xf0)]({'tag':_0x5631bf(0xda),'attributes':{'class':['ck',_0x5631bf(0xea),this[_0x5631bf(0xeb)]['if'](_0x5631bf(0xac),_0x5631bf(0xc5),_0x4b54e8=>!_0x4b54e8)]},'children':this[_0x5631bf(0xef)]()}),_0x3379c5;}[_0x4735fa(0xef)](){const _0x44a3c4=_0x4735fa,_0x5d05cd=new _0x4908e5();return _0x5d05cd[_0x44a3c4(0xe4)]=!0x0,[_0x5d05cd,{'tag':_0x44a3c4(0xee),'attributes':{'class':['ck',_0x44a3c4(0xba)]},'children':[{'text':this[_0x44a3c4(0xeb)]['to'](_0x44a3c4(0xa9))}]}];}[_0x4735fa(0xbd)](_0x561cbd){const _0x2c2854=_0x4735fa,_0x549fbb=this[_0x2c2854(0xb5)][_0x2c2854(0xc4)](_0xaf26cf=>_0xaf26cf[_0x2c2854(0xbc)]['id'][_0x2c2854(0xb9)](_0x561cbd));if(!_0x549fbb)throw new _0x2239e4(_0x2c2854(0xc3),this,{'id':_0x561cbd});return _0x549fbb;}[_0x4735fa(0xd4)](_0x353e50){const _0x14d2ba=_0x4735fa;this[_0x14d2ba(0xa6)](_0x14d2ba(0xa9),_0x353e50);}[_0x4735fa(0xc7)](_0x4a0f34){const _0x1802de=_0x4735fa;this[_0x1802de(0xa6)](_0x1802de(0xb3),_0x4a0f34);}[_0x4735fa(0xe7)](){const _0x52f617=_0x4735fa;this[_0x52f617(0xa3)][_0x52f617(0xf1)]();}[_0x4735fa(0xd5)](){const _0x587e65=_0x4735fa;this[_0x587e65(0xa3)][_0x587e65(0xa4)]();}}
23
+ const _0x2a64ae=_0x55db;(function(_0x32d7e3,_0x5c2d63){const _0x241abe=_0x55db,_0x4b0b52=_0x32d7e3();while(!![]){try{const _0x307351=-parseInt(_0x241abe(0x1da))/0x1*(-parseInt(_0x241abe(0x21a))/0x2)+-parseInt(_0x241abe(0x1d7))/0x3*(parseInt(_0x241abe(0x1fe))/0x4)+-parseInt(_0x241abe(0x211))/0x5+parseInt(_0x241abe(0x1fd))/0x6*(parseInt(_0x241abe(0x1ee))/0x7)+parseInt(_0x241abe(0x1f6))/0x8*(-parseInt(_0x241abe(0x20a))/0x9)+-parseInt(_0x241abe(0x1e5))/0xa+parseInt(_0x241abe(0x1d2))/0xb;if(_0x307351===_0x5c2d63)break;else _0x4b0b52['push'](_0x4b0b52['shift']());}catch(_0x1828e3){_0x4b0b52['push'](_0x4b0b52['shift']());}}}(_0x8fb3,0xe4e6a));import{CKEditorError as _0xcba86b,logWarning as _0x1e0ec,scrollViewportToShowTarget as _0x2a0c78}from'ckeditor5/src/utils.js';import{View as _0x2b438e}from'ckeditor5/src/ui.js';function _0x8fb3(){const _0x2744dc=['scrollManager','ai-chat-feed-view-item-not-found','set','map','_createLoaderChildren','children','380344WVLSWk','stop','startAutoScroll','extendTemplate','updateSuggestionItem','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__feed','clear','23548602jtDQHc','addItem','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','updatePartState','ck-ai-chat__loader','3cfTFeB','ai-suggestion-reply','_createTemplateChildren','6IRQrim','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','stopAutoScroll','aiFeed','markAsDone','ai-chat-feed-view-item-not-a-reply-item','removeItem','delegate','div','ai-reply','_createSkeletonLoader','2477680UUdrgz','user-message','locale','updateReplyItem','_createFeedLoader','updateSources','remove','ck-ai-chat__feed__items','isVisible','107695Zbvwto','updateWebSources','setLoadingMessage','element','markItemAsDone','_createFeedItems','isLoadingSkeletonVisible','updateSuggestionPartState','552corirI','options','updateContent','getItemIds','_setupTemplate','getPartView','ai-chat-feed-view-item-not-a-suggestion-item','438MezMQL','2150472vsyaJA','add','isPending','find','ck-ai-chat__loader-text','render','toggleLoadingSkeleton','bindTemplate','start','span','includes','_bodyCollection','237753CUvnrB','getItemById','interaction-header','destroy','ck-hidden','loadingMessage','setTemplate','4295910VRcRno','createCollection','scrollToSuggestion'];_0x8fb3=function(){return _0x2744dc;};return _0x8fb3();}function _0x55db(_0x1c54b0,_0x503cdc){const _0x8fb3d1=_0x8fb3();return _0x55db=function(_0x55dbae,_0x2acee2){_0x55dbae=_0x55dbae-0x1cd;let _0x1f47d3=_0x8fb3d1[_0x55dbae];return _0x1f47d3;},_0x55db(_0x1c54b0,_0x503cdc);}import{AI_CHAT_UI_EVENT_NAMES as _0x23a9c4}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x4cbcf7}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0xf52276}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x1c2247}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4ef967}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xe81511}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x12ccd6}from'../utils/scrollmanager.js';import{AISkeletonView as _0x26daf5,SKELETON_DEFINITIONS as _0x20a350}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2220a1}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x2b438e{[_0x2a64ae(0x219)];[_0x2a64ae(0x214)];[_0x2a64ae(0x209)];constructor(_0x1ab53a,_0x52c436){const _0x41462f=_0x2a64ae;super(_0x1ab53a),this[_0x41462f(0x209)]=_0x52c436,this[_0x41462f(0x216)](_0x41462f(0x200),!0x1),this[_0x41462f(0x216)](_0x41462f(0x20f),''),this[_0x41462f(0x216)](_0x41462f(0x1f4),!0x1),this[_0x41462f(0x219)]=this[_0x41462f(0x212)](),this[_0x41462f(0x219)][_0x41462f(0x1e1)](..._0x23a9c4)['to'](this),this[_0x41462f(0x1fa)]();}[_0x2a64ae(0x203)](){const _0xb00b10=_0x2a64ae;super[_0xb00b10(0x203)](),this[_0xb00b10(0x214)]=new _0x12ccd6(this[_0xb00b10(0x1f1)]);}[_0x2a64ae(0x20d)](){const _0x361057=_0x2a64ae;super[_0x361057(0x20d)](),this[_0x361057(0x214)][_0x361057(0x20d)]();}[_0x2a64ae(0x1d1)](){const _0xa58789=_0x2a64ae;this[_0xa58789(0x219)][_0xa58789(0x1d1)]();}[_0x2a64ae(0x1d3)](_0x4b4cf8,_0x1920e1){const _0x215021=_0x2a64ae;let _0x31b695;_0x31b695=_0x215021(0x1e3)===_0x4b4cf8?new _0xf52276(this[_0x215021(0x1e7)],_0x1920e1):_0x215021(0x1d8)===_0x4b4cf8?new _0x4cbcf7(this[_0x215021(0x1e7)],_0x1920e1):_0x215021(0x1e6)===_0x4b4cf8?new _0x1c2247(this[_0x215021(0x1e7)],_0x1920e1,this[_0x215021(0x209)]):_0x215021(0x20c)===_0x4b4cf8?new _0xe81511(this[_0x215021(0x1e7)],_0x1920e1):new _0x4ef967(_0x1920e1),this[_0x215021(0x219)][_0x215021(0x1ff)](_0x31b695);}async[_0x2a64ae(0x1e8)]({id:_0x11fa0e,parsedContent:_0x5c2426,renderingStrategy:_0x3e8ec3,abortSignal:_0x588be1}){const _0x1aeff5=_0x2a64ae,_0x2e2995=this[_0x1aeff5(0x20b)](_0x11fa0e);if(!(_0x2e2995 instanceof _0xf52276))throw new _0xcba86b(_0x1aeff5(0x1df),null,{'itemView':_0x2e2995,'id':_0x11fa0e,'parsedContent':_0x5c2426});await _0x2e2995[_0x1aeff5(0x1f8)]({'parsedContent':_0x5c2426,'renderingStrategy':_0x3e8ec3,'abortSignal':_0x588be1});}async[_0x2a64ae(0x1ef)](_0x238bae,_0x4808b9){const _0x216afd=_0x2a64ae,_0x498117=this[_0x216afd(0x20b)](_0x238bae);if(_0x498117 instanceof _0x4cbcf7)_0x498117[_0x216afd(0x1ea)](_0x4808b9);else{if(!(_0x498117 instanceof _0xf52276))throw new _0xcba86b(_0x216afd(0x1db),null,{'itemView':_0x498117,'id':_0x238bae,'sources':_0x4808b9});_0x498117[_0x216afd(0x1ea)](_0x4808b9);}}async[_0x2a64ae(0x1ce)]({id:_0x1719a8,parts:_0x425663,renderingStrategy:_0xea8256,abortSignal:_0x5e0504}){const _0x176de2=_0x2a64ae,_0x1a12a4=this[_0x176de2(0x20b)](_0x1719a8);if(!(_0x1a12a4 instanceof _0x4cbcf7))throw new _0xcba86b(_0x176de2(0x1fc),null,{'itemView':_0x1a12a4,'id':_0x1719a8,'parts':_0x425663});await _0x1a12a4[_0x176de2(0x1f8)]({'parts':_0x425663,'renderingStrategy':_0xea8256,'abortSignal':_0x5e0504});}[_0x2a64ae(0x1f5)]({id:_0x1ddade,index:_0x27b98f,state:_0x3689db}){const _0x618ebb=_0x2a64ae,_0x35952b=this[_0x618ebb(0x20b)](_0x1ddade);if(!(_0x35952b instanceof _0x4cbcf7))throw new _0xcba86b(_0x618ebb(0x1fc),this,{'id':_0x1ddade});_0x35952b[_0x618ebb(0x1d5)](_0x27b98f,_0x3689db);}[_0x2a64ae(0x1f2)](_0x2acf55){const _0x1199aa=_0x2a64ae;this[_0x1199aa(0x20b)](_0x2acf55)[_0x1199aa(0x1de)]();}[_0x2a64ae(0x1f9)](){const _0x115069=_0x2a64ae;return this[_0x115069(0x219)][_0x115069(0x217)](_0x34c1f4=>_0x34c1f4[_0x115069(0x1f7)]['id']);}[_0x2a64ae(0x1e0)](_0x15d0bc){const _0x426573=_0x2a64ae;this[_0x426573(0x219)][_0x426573(0x1eb)](this[_0x426573(0x20b)](_0x15d0bc));}[_0x2a64ae(0x213)](_0x14cdf2,_0x133431){const _0x71dc1d=_0x2a64ae,_0x3a38b3=this[_0x71dc1d(0x20b)](_0x14cdf2);if(!(_0x3a38b3 instanceof _0x4cbcf7))return void _0x1e0ec(_0x71dc1d(0x1d4),{'replyId':_0x14cdf2,'partIndex':_0x133431});const _0x3652c2=_0x3a38b3[_0x71dc1d(0x1fb)](_0x133431);_0x3652c2?_0x2a0c78({'target':_0x3652c2[_0x71dc1d(0x1f1)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1e0ec(_0x71dc1d(0x1cf),{'replyId':_0x14cdf2,'partIndex':_0x133431});}[_0x2a64ae(0x1fa)](){const _0x4b9c61=_0x2a64ae;this[_0x4b9c61(0x210)]({'tag':_0x4b9c61(0x1e2),'attributes':{'class':['ck',_0x4b9c61(0x1d0)]},'children':this[_0x4b9c61(0x1d9)]()});}[_0x2a64ae(0x1d9)](){const _0x2746e8=_0x2a64ae,_0x3165a7=this[_0x2746e8(0x1e4)]();return[this[_0x2746e8(0x1f3)](),_0x3165a7,this[_0x2746e8(0x1e9)]()];}[_0x2a64ae(0x1e4)](){const _0x366a6a=_0x2a64ae,_0xa17868=new _0x26daf5(this[_0x366a6a(0x1e7)],_0x20a350[_0x366a6a(0x1dd)]);return _0xa17868[_0x366a6a(0x1cd)]({'attributes':{'class':[this[_0x366a6a(0x205)]['if'](_0x366a6a(0x1f4),_0x366a6a(0x20e),_0x474395=>!_0x474395)]}}),_0xa17868;}[_0x2a64ae(0x1f3)](){const _0x504568=_0x2a64ae,_0xd6092b=new _0x2b438e(this[_0x504568(0x1e7)]);return _0xd6092b[_0x504568(0x210)]({'tag':_0x504568(0x1e2),'attributes':{'class':['ck',_0x504568(0x1ec),this[_0x504568(0x205)]['if'](_0x504568(0x1f4),_0x504568(0x20e))]},'children':this[_0x504568(0x219)]}),_0xd6092b;}[_0x2a64ae(0x1e9)](){const _0x5603e5=_0x2a64ae,_0xb15f76=new _0x2b438e(this[_0x5603e5(0x1e7)]);return _0xb15f76[_0x5603e5(0x210)]({'tag':_0x5603e5(0x1e2),'attributes':{'class':['ck',_0x5603e5(0x1d6),this[_0x5603e5(0x205)]['if'](_0x5603e5(0x200),_0x5603e5(0x20e),_0x801f15=>!_0x801f15)]},'children':this[_0x5603e5(0x218)]()}),_0xb15f76;}[_0x2a64ae(0x218)](){const _0x461435=_0x2a64ae,_0x50e555=new _0x2220a1();return _0x50e555[_0x461435(0x1ed)]=!0x0,[_0x50e555,{'tag':_0x461435(0x207),'attributes':{'class':['ck',_0x461435(0x202)]},'children':[{'text':this[_0x461435(0x205)]['to'](_0x461435(0x20f))}]}];}[_0x2a64ae(0x20b)](_0x3d6e1a){const _0x2b432c=_0x2a64ae,_0x2439bc=this[_0x2b432c(0x219)][_0x2b432c(0x201)](_0x51930f=>_0x51930f[_0x2b432c(0x1f7)]['id'][_0x2b432c(0x208)](_0x3d6e1a));if(!_0x2439bc)throw new _0xcba86b(_0x2b432c(0x215),this,{'id':_0x3d6e1a});return _0x2439bc;}[_0x2a64ae(0x1f0)](_0x518f8c){const _0x1026bf=_0x2a64ae;this[_0x1026bf(0x216)](_0x1026bf(0x20f),_0x518f8c);}[_0x2a64ae(0x204)](_0x4cc99e){const _0x3464ce=_0x2a64ae;this[_0x3464ce(0x216)](_0x3464ce(0x1f4),_0x4cc99e);}[_0x2a64ae(0x21c)](){const _0x280b78=_0x2a64ae;this[_0x280b78(0x214)][_0x280b78(0x206)]();}[_0x2a64ae(0x1dc)](){const _0x46dbeb=_0x2a64ae;this[_0x46dbeb(0x214)][_0x46dbeb(0x21b)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d9ebe=_0x168c;function _0x351c(){const _0x4a2416=['30jUfrcb','AI_CHAT_HEADING','ck-ai-header\x20ck-ai-header_chat','1773EsRBRJ','fire','1238784ObzNdk','startConversation','add','conversationStartButton','188596OUEDEB','24177caapnM','locale','_createStartConversationButton','120KIEiEg','isMaximized','ck-ai-chat__start-conversation','16AyLtXG','48IiOoSG','set','children','resizeButton','1658489XoPezg','execute','AI_CHAT_LABEL_NEW_CHAT','21950KOpmZK','430793Vjudpj','667645ssenhN'];_0x351c=function(){return _0x4a2416;};return _0x351c();}(function(_0x25ffd6,_0x5e0512){const _0x34729f=_0x168c,_0x59256c=_0x25ffd6();while(!![]){try{const _0x32d30d=-parseInt(_0x34729f(0x1be))/0x1+parseInt(_0x34729f(0x1b5))/0x2*(parseInt(_0x34729f(0x1c9))/0x3)+-parseInt(_0x34729f(0x1c8))/0x4*(parseInt(_0x34729f(0x1bf))/0x5)+-parseInt(_0x34729f(0x1c4))/0x6+-parseInt(_0x34729f(0x1b9))/0x7*(-parseInt(_0x34729f(0x1b4))/0x8)+parseInt(_0x34729f(0x1c2))/0x9*(parseInt(_0x34729f(0x1bc))/0xa)+parseInt(_0x34729f(0x1bd))/0xb*(parseInt(_0x34729f(0x1cc))/0xc);if(_0x32d30d===_0x5e0512)break;else _0x59256c['push'](_0x59256c['shift']());}catch(_0x409923){_0x59256c['push'](_0x59256c['shift']());}}}(_0x351c,0x519e8));import{ButtonView as _0x2f849b,FormHeaderView as _0x273e0e}from'ckeditor5/src/ui.js';import{IconPlus as _0x3fb06c,IconAIChat as _0x5a8eb0}from'ckeditor5/src/icons.js';import{getTranslation as _0x38b562}from'../../aicore/utils/common-translations.js';function _0x168c(_0x44432e,_0x437602){const _0x351c5f=_0x351c();return _0x168c=function(_0x168c67,_0x35bc42){_0x168c67=_0x168c67-0x1b3;let _0x2921a5=_0x351c5f[_0x168c67];return _0x2921a5;},_0x168c(_0x44432e,_0x437602);}import{createResizeButton as _0x3331c9}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x273e0e{[_0x4d9ebe(0x1c7)];[_0x4d9ebe(0x1b8)];constructor(_0x446619,_0x3fcd12){const _0x359ff6=_0x4d9ebe;super(_0x446619,{'label':_0x38b562(_0x446619,_0x359ff6(0x1c0)),'class':_0x359ff6(0x1c1),'icon':_0x5a8eb0}),this[_0x359ff6(0x1b6)](_0x359ff6(0x1cd),!0x1),this[_0x359ff6(0x1c7)]=this[_0x359ff6(0x1cb)](_0x446619),this[_0x359ff6(0x1b7)][_0x359ff6(0x1c6)](this[_0x359ff6(0x1c7)]),_0x3fcd12&&(this[_0x359ff6(0x1b8)]=_0x3331c9(_0x446619,this),this[_0x359ff6(0x1b7)][_0x359ff6(0x1c6)](this[_0x359ff6(0x1b8)]));}[_0x4d9ebe(0x1cb)](_0xc45d34){const _0x53a62f=_0x4d9ebe,_0x495edd=new _0x2f849b(_0xc45d34);return _0x495edd[_0x53a62f(0x1b6)]({'label':_0x38b562(this[_0x53a62f(0x1ca)],_0x53a62f(0x1bb)),'withText':!0x0,'icon':_0x3fb06c,'class':_0x53a62f(0x1b3)}),_0x495edd['on'](_0x53a62f(0x1ba),()=>{const _0x51a233=_0x53a62f;this[_0x51a233(0x1c3)](_0x51a233(0x1c5));}),_0x495edd;}}
23
+ const _0x4c32c7=_0x2824;function _0x2824(_0x165a1b,_0x176c56){const _0xbf1a0=_0xbf1a();return _0x2824=function(_0x282475,_0x190176){_0x282475=_0x282475-0x144;let _0x446f65=_0xbf1a0[_0x282475];return _0x446f65;},_0x2824(_0x165a1b,_0x176c56);}(function(_0x140cc8,_0x576b0d){const _0x5947b9=_0x2824,_0x5e9a60=_0x140cc8();while(!![]){try{const _0x2e9e59=-parseInt(_0x5947b9(0x14e))/0x1+parseInt(_0x5947b9(0x159))/0x2*(parseInt(_0x5947b9(0x14d))/0x3)+-parseInt(_0x5947b9(0x154))/0x4+parseInt(_0x5947b9(0x147))/0x5*(-parseInt(_0x5947b9(0x151))/0x6)+parseInt(_0x5947b9(0x149))/0x7*(-parseInt(_0x5947b9(0x158))/0x8)+parseInt(_0x5947b9(0x155))/0x9*(parseInt(_0x5947b9(0x14b))/0xa)+-parseInt(_0x5947b9(0x148))/0xb*(-parseInt(_0x5947b9(0x150))/0xc);if(_0x2e9e59===_0x576b0d)break;else _0x5e9a60['push'](_0x5e9a60['shift']());}catch(_0x157cca){_0x5e9a60['push'](_0x5e9a60['shift']());}}}(_0xbf1a,0x3866e));import{ButtonView as _0x9ffc28,FormHeaderView as _0x1f7d83}from'ckeditor5/src/ui.js';import{IconPlus as _0x31565c,IconAIChat as _0x5e50fa}from'ckeditor5/src/icons.js';import{getTranslation as _0x11d935}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x582b47}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x1f7d83{[_0x4c32c7(0x15b)];[_0x4c32c7(0x157)];constructor(_0x54fcb3,_0x4d9302){const _0x2daf0d=_0x4c32c7;super(_0x54fcb3,{'label':_0x11d935(_0x54fcb3,_0x2daf0d(0x15a)),'class':_0x2daf0d(0x15c),'icon':_0x5e50fa}),this[_0x2daf0d(0x153)](_0x2daf0d(0x144),!0x1),this[_0x2daf0d(0x15b)]=this[_0x2daf0d(0x156)](_0x54fcb3),this[_0x2daf0d(0x152)][_0x2daf0d(0x14a)](this[_0x2daf0d(0x15b)]),_0x4d9302&&(this[_0x2daf0d(0x157)]=_0x582b47(_0x54fcb3,this),this[_0x2daf0d(0x152)][_0x2daf0d(0x14a)](this[_0x2daf0d(0x157)]));}[_0x4c32c7(0x156)](_0x513503){const _0x115f48=_0x4c32c7,_0x210a25=new _0x9ffc28(_0x513503);return _0x210a25[_0x115f48(0x153)]({'label':_0x11d935(this[_0x115f48(0x14f)],_0x115f48(0x14c)),'withText':!0x0,'icon':_0x31565c,'class':_0x115f48(0x15e)}),_0x210a25['on'](_0x115f48(0x146),()=>{const _0x4f8697=_0x115f48;this[_0x4f8697(0x15d)](_0x4f8697(0x145));}),_0x210a25;}}function _0xbf1a(){const _0x15816e=['12wdvpIt','161166WQnEXD','children','set','49368lJDcqI','63UFUGUW','_createStartConversationButton','resizeButton','16tZLsCe','452fYiMCD','AI_CHAT_HEADING','conversationStartButton','ck-ai-header\x20ck-ai-header_chat','fire','ck-ai-chat__start-conversation','isMaximized','startConversation','execute','30yTDJQs','5952529yHpOri','1225574VZpmwo','add','294880yIqPSh','AI_CHAT_LABEL_NEW_CHAT','4497WsyCRY','331635vqUMkj','locale'];_0xbf1a=function(){return _0x15816e;};return _0xbf1a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5ed0(){var _0x106659=['_bodyCollection','1565139hFIcBU','detachFromDom','3304KzvXdF','div','setTemplate','closeSourceResourceBalloon','ck-rounded-corners','chatHeader','destroy','2DTofOH','ck-reset_all','chatFeed','120686NNPIsc','delegate','3364695GcEOIi','ck-ai-chat','194260BnqnGx','385KgrpSK','1147165GxiKWL','4353400FqNlGm','chatDisclaimer','chatControls','populateSourceResourceBalloon','8PLTMyx','attachToDom','uiLanguageDirection','3732FNKuLh'];_0x5ed0=function(){return _0x106659;};return _0x5ed0();}var _0x5971e0=_0x1ce6;(function(_0xab0ee9,_0x4e59ec){var _0x37bd09=_0x1ce6,_0x402590=_0xab0ee9();while(!![]){try{var _0x315b15=-parseInt(_0x37bd09(0x93))/0x1+-parseInt(_0x37bd09(0x90))/0x2*(-parseInt(_0x37bd09(0x87))/0x3)+parseInt(_0x37bd09(0x82))/0x4*(parseInt(_0x37bd09(0x7d))/0x5)+parseInt(_0x37bd09(0x85))/0x6*(-parseInt(_0x37bd09(0x89))/0x7)+-parseInt(_0x37bd09(0x7e))/0x8+-parseInt(_0x37bd09(0x95))/0x9+-parseInt(_0x37bd09(0x97))/0xa*(-parseInt(_0x37bd09(0x7c))/0xb);if(_0x315b15===_0x4e59ec)break;else _0x402590['push'](_0x402590['shift']());}catch(_0x15b38d){_0x402590['push'](_0x402590['shift']());}}}(_0x5ed0,0x501fd));import{View as _0x45f1ea,BodyCollection as _0x38e94c}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5d939e}from'../utils/eventnames.js';import{AIChatFeedView as _0x10fb45}from'./aichatfeedview.js';import{AIChatControlsView as _0x121c0b}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x24c51b}from'./aichatheaderview.js';import{AIDisclaimerView as _0x60b820}from'../../aicore/ui/aidisclaimerview.js';function _0x1ce6(_0x524898,_0x64d142){var _0x5ed0f8=_0x5ed0();return _0x1ce6=function(_0x1ce603,_0x45aee5){_0x1ce603=_0x1ce603-0x7c;var _0x136ed6=_0x5ed0f8[_0x1ce603];return _0x136ed6;},_0x1ce6(_0x524898,_0x64d142);}export class AIChatView extends _0x45f1ea{[_0x5971e0(0x8e)];[_0x5971e0(0x92)];[_0x5971e0(0x80)];[_0x5971e0(0x7f)];[_0x5971e0(0x86)];constructor(_0x3bfc75,_0x536452){var _0x46e439=_0x5971e0;super(_0x3bfc75),this[_0x46e439(0x86)]=new _0x38e94c(_0x3bfc75),this[_0x46e439(0x86)][_0x46e439(0x83)](),this[_0x46e439(0x8e)]=new _0x24c51b(_0x3bfc75,_0x536452),this[_0x46e439(0x8e)][_0x46e439(0x94)](..._0x5d939e)['to'](this),this[_0x46e439(0x92)]=new _0x10fb45(_0x3bfc75,this[_0x46e439(0x86)]),this[_0x46e439(0x92)][_0x46e439(0x94)](..._0x5d939e)['to'](this),this[_0x46e439(0x80)]=new _0x121c0b(_0x3bfc75,this[_0x46e439(0x86)]),this[_0x46e439(0x80)][_0x46e439(0x94)](..._0x5d939e)['to'](this),this[_0x46e439(0x7f)]=new _0x60b820(_0x3bfc75),this[_0x46e439(0x8b)]({'tag':_0x46e439(0x8a),'attributes':{'class':['ck',_0x46e439(0x91),_0x46e439(0x96),_0x46e439(0x8d)],'dir':_0x3bfc75[_0x46e439(0x84)]},'children':[this[_0x46e439(0x8e)],this[_0x46e439(0x92)],this[_0x46e439(0x80)],this[_0x46e439(0x7f)]]});}[_0x5971e0(0x81)](_0x2cf99b,_0x250b5f,_0x133b19,_0x404812){var _0x4eea96=_0x5971e0;this[_0x4eea96(0x80)][_0x4eea96(0x81)](_0x2cf99b,_0x250b5f,_0x133b19,_0x404812);}[_0x5971e0(0x8c)](_0x483dea){var _0x47c335=_0x5971e0;this[_0x47c335(0x80)][_0x47c335(0x8c)](_0x483dea);}[_0x5971e0(0x8f)](){var _0x4b552f=_0x5971e0;this[_0x4b552f(0x86)][_0x4b552f(0x88)](),super[_0x4b552f(0x8f)]();}}
23
+ var _0x2dd4b8=_0x20e4;(function(_0x3fd4fa,_0x1608d5){var _0x33c745=_0x20e4,_0x730b16=_0x3fd4fa();while(!![]){try{var _0x2fcacd=-parseInt(_0x33c745(0x17e))/0x1*(-parseInt(_0x33c745(0x16c))/0x2)+parseInt(_0x33c745(0x170))/0x3*(parseInt(_0x33c745(0x173))/0x4)+-parseInt(_0x33c745(0x17a))/0x5+parseInt(_0x33c745(0x183))/0x6*(-parseInt(_0x33c745(0x185))/0x7)+parseInt(_0x33c745(0x176))/0x8*(parseInt(_0x33c745(0x177))/0x9)+parseInt(_0x33c745(0x171))/0xa+parseInt(_0x33c745(0x169))/0xb*(-parseInt(_0x33c745(0x16f))/0xc);if(_0x2fcacd===_0x1608d5)break;else _0x730b16['push'](_0x730b16['shift']());}catch(_0x2947d8){_0x730b16['push'](_0x730b16['shift']());}}}(_0x3444,0x9834c));import{View as _0x1b9f12,BodyCollection as _0x4e41c0}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x121644}from'../utils/eventnames.js';function _0x3444(){var _0x944467=['4044qKzjLU','attachToDom','2142sizhhh','40799uugbgH','div','detachFromDom','42844TnVPZv','destroy','ck-reset_all','2208OJtCwm','426aPNGIX','6685480jOjYKP','ck-rounded-corners','6500zwpGaB','delegate','uiLanguageDirection','8BhsDvy','8136369ExgPPw','_bodyCollection','chatFeed','3276885hbdybR','closeSourceResourceBalloon','chatHeader','ck-ai-chat','17jnZoxI','chatDisclaimer','setTemplate','populateSourceResourceBalloon','chatControls'];_0x3444=function(){return _0x944467;};return _0x3444();}import{AIChatFeedView as _0x1fd2c8}from'./aichatfeedview.js';import{AIChatControlsView as _0x2cae1e}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x52ba12}from'./aichatheaderview.js';import{AIDisclaimerView as _0x2c4837}from'../../aicore/ui/aidisclaimerview.js';function _0x20e4(_0x530d3f,_0x113785){var _0x344412=_0x3444();return _0x20e4=function(_0x20e4dd,_0x5ad9ef){_0x20e4dd=_0x20e4dd-0x169;var _0xacd3a5=_0x344412[_0x20e4dd];return _0xacd3a5;},_0x20e4(_0x530d3f,_0x113785);}export class AIChatView extends _0x1b9f12{[_0x2dd4b8(0x17c)];[_0x2dd4b8(0x179)];[_0x2dd4b8(0x182)];[_0x2dd4b8(0x17f)];[_0x2dd4b8(0x178)];constructor(_0x3bf840,_0x306a37){var _0x4b2588=_0x2dd4b8;super(_0x3bf840),this[_0x4b2588(0x178)]=new _0x4e41c0(_0x3bf840),this[_0x4b2588(0x178)][_0x4b2588(0x184)](),this[_0x4b2588(0x17c)]=new _0x52ba12(_0x3bf840,_0x306a37),this[_0x4b2588(0x17c)][_0x4b2588(0x174)](..._0x121644)['to'](this),this[_0x4b2588(0x179)]=new _0x1fd2c8(_0x3bf840,this[_0x4b2588(0x178)]),this[_0x4b2588(0x179)][_0x4b2588(0x174)](..._0x121644)['to'](this),this[_0x4b2588(0x182)]=new _0x2cae1e(_0x3bf840,this[_0x4b2588(0x178)]),this[_0x4b2588(0x182)][_0x4b2588(0x174)](..._0x121644)['to'](this),this[_0x4b2588(0x17f)]=new _0x2c4837(_0x3bf840),this[_0x4b2588(0x180)]({'tag':_0x4b2588(0x16a),'attributes':{'class':['ck',_0x4b2588(0x16e),_0x4b2588(0x17d),_0x4b2588(0x172)],'dir':_0x3bf840[_0x4b2588(0x175)]},'children':[this[_0x4b2588(0x17c)],this[_0x4b2588(0x179)],this[_0x4b2588(0x182)],this[_0x4b2588(0x17f)]]});}[_0x2dd4b8(0x181)](_0x25f5f0,_0x43c1e4,_0x2f1831,_0x37685f){var _0x976784=_0x2dd4b8;this[_0x976784(0x182)][_0x976784(0x181)](_0x25f5f0,_0x43c1e4,_0x2f1831,_0x37685f);}[_0x2dd4b8(0x17b)](_0x44a5a9){var _0x4d1ec9=_0x2dd4b8;this[_0x4d1ec9(0x182)][_0x4d1ec9(0x17b)](_0x44a5a9);}[_0x2dd4b8(0x16d)](){var _0x3cd5ba=_0x2dd4b8;this[_0x3cd5ba(0x178)][_0x3cd5ba(0x16b)](),super[_0x3cd5ba(0x16d)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x172429=_0x7c74;function _0x7c74(_0x40661d,_0x16c7e3){const _0x168b3a=_0x168b();return _0x7c74=function(_0x7c7446,_0x5919b7){_0x7c7446=_0x7c7446-0x7f;let _0x1134a3=_0x168b3a[_0x7c7446];return _0x1134a3;},_0x7c74(_0x40661d,_0x16c7e3);}(function(_0x5d0e1e,_0x1a094f){const _0x3ec130=_0x7c74,_0x2d83e8=_0x5d0e1e();while(!![]){try{const _0x572872=parseInt(_0x3ec130(0x109))/0x1*(parseInt(_0x3ec130(0x102))/0x2)+parseInt(_0x3ec130(0xba))/0x3+parseInt(_0x3ec130(0xe4))/0x4+-parseInt(_0x3ec130(0xc3))/0x5+parseInt(_0x3ec130(0xa1))/0x6*(-parseInt(_0x3ec130(0xc5))/0x7)+-parseInt(_0x3ec130(0xee))/0x8+-parseInt(_0x3ec130(0xdd))/0x9;if(_0x572872===_0x1a094f)break;else _0x2d83e8['push'](_0x2d83e8['shift']());}catch(_0x337c7b){_0x2d83e8['push'](_0x2d83e8['shift']());}}}(_0x168b,0xf0a64));import{View as _0x42d6e2,BalloonPanelView as _0x34f352,ButtonView as _0x41e6de,clickOutsideHandler as _0x7fa681}from'ckeditor5/src/ui.js';import{Collection as _0x20b120}from'ckeditor5/src/utils.js';function _0x168b(){const _0x4275b8=['clear','height','setContainerElement','abs','cloneNode','_updateOverflowUI','innerWidth','_config','6613792PAhtyM','button','div','querySelector','extendTemplate','showMoreButtonView','_targetContainer','body','_restoreAncestorVisibility','_intersectionObserver','observe','slice','left','getBoundingClientRect','block\x20!important','from','_createContainerElements','opacity','isConnected','destroy','10130bhdaAK','bottom','parentElement','_containerElement','_createShowMoreButtonView','style','_renderChipsAndCountRows','289iGMqud','_overflowChips','push','_testButtonFit','_findTargetContainer','display','label','visible','_createShowMoreButton','_bodyCollection','50px','clientWidth','execute','pointerEvents','clientHeight','isVisible','showMoreButton','_showMoreBalloonPanelView','show','includes','overflowChips','_locale','_showMoreButtonView','disableAnimationOnEnter','position','pin','_calculateOverflowInContainer','_applyCalculationStyles','boxSizing','visibility','children','_pendingCalculation','visible\x20!important','isOn','innerHTML','_ancestorsToRestore','zIndex','undefined','_calculateContainerWidth','border-box','isIntersecting','classList','none','6WDTUId','0px','innerHeight','_updateShowMoreButtonVisibility','showMoreBalloon','disconnect','filter','absolute','toLowerCase','_visibleChips','_createCalculationContainer','_handleShowMoreButtonClick','.ck-ai-chat','_checkAndHandleOverflow','300px','_createShowMoreBalloonPanelView','some','forEach','showMoreLabelPrefix','maxVisibleRows','_isContainerVisible','appendChild','pop','hideBalloonPanel','_makeAncestorsVisible','5307621ZNPhaL','overflowContainer','_distributeChips','offsetWidth','set','block','-9999px','textContent','reorganizeChips','3221730FsMOXh','setTemplate','10298652HggtsX','rowDetectionTolerance','showBalloonPanel','_createMockButton','controlsButton','className','render','cssClasses','_parentView','content','top','add','documentElement','hidden','remove','auto','_repinBalloonPanel','createElement','tagName','width','right','calculationContainer','element','_updateBalloonContent','9653247IGopaQ','+\x201','getComputedStyle','hide','_setupVisibilityObserver','_applyOverflowResults','ck-calculation-container','7070388CDnuEv','length'];_0x168b=function(){return _0x4275b8;};return _0x168b();}const sn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},hn=_0x172429(0xaf);export class AIChatChipsOverflowManager{[_0x172429(0x8b)];[_0x172429(0xed)];[_0x172429(0xaa)];[_0x172429(0x10a)];[_0x172429(0x8c)]=null;[_0x172429(0x87)]=null;[_0x172429(0x105)]=null;[_0x172429(0x7f)];[_0x172429(0xcd)]=null;[_0x172429(0xf7)]=null;[_0x172429(0x95)]=!0x1;constructor(_0x178dff,_0x513c85,_0x3a4c7f,_0x95b876,_0x5b9844){const _0x142f59=_0x172429;this[_0x142f59(0x8b)]=_0x178dff,this[_0x142f59(0xaa)]=_0x513c85,this[_0x142f59(0xed)]={...sn,..._0x3a4c7f,'cssClasses':{'controlsButton':'','calculationContainer':_0x142f59(0xe3),..._0x3a4c7f[_0x142f59(0xcc)]}},this[_0x142f59(0x10a)]=new _0x20b120(),this[_0x142f59(0x7f)]=_0x95b876,this[_0x142f59(0xcd)]=_0x5b9844||null;}[_0x172429(0xe8)](_0x95c30f){const _0x10720e=_0x172429;this[_0x10720e(0xf7)]&&(this[_0x10720e(0xf7)][_0x10720e(0xa6)](),this[_0x10720e(0xf7)]=null),this[_0x10720e(0x105)]=_0x95c30f,this[_0x10720e(0xe1)]();}get[_0x172429(0xf3)](){const _0xf09d5b=_0x172429;return this[_0xf09d5b(0x8c)];}get[_0x172429(0x8a)](){const _0x539b45=_0x172429;return this[_0x539b45(0x10a)];}[_0x172429(0xc2)](){requestAnimationFrame(()=>{const _0x957568=_0x7c74;this[_0x957568(0xae)]();});}[_0x172429(0xc7)](){const _0x54de79=_0x172429;this[_0x54de79(0x8c)]&&this[_0x54de79(0x87)]&&(this[_0x54de79(0xdc)](),this[_0x54de79(0x8c)][_0x54de79(0x97)]=!0x0,this[_0x54de79(0x87)][_0x54de79(0x88)](),this[_0x54de79(0x87)][_0x54de79(0x8f)]({'target':this[_0x54de79(0x8c)][_0x54de79(0xdb)],'limiter':document[_0x54de79(0xf1)](_0x54de79(0xad))}));}[_0x172429(0xb8)](){const _0x2c4078=_0x172429;this[_0x2c4078(0x8c)]&&this[_0x2c4078(0x87)]&&(this[_0x2c4078(0x8c)][_0x2c4078(0x97)]=!0x1,this[_0x2c4078(0x87)][_0x2c4078(0xe0)]());}[_0x172429(0xe6)](){const _0x2e61e4=_0x172429;this[_0x2e61e4(0x10a)][_0x2e61e4(0xe6)](),this[_0x2e61e4(0xb8)](),this[_0x2e61e4(0xa4)](),this[_0x2e61e4(0x8c)]&&(this[_0x2e61e4(0x8c)][_0x2e61e4(0x10f)]=''),this[_0x2e61e4(0x87)]&&this[_0x2e61e4(0x87)][_0x2e61e4(0xce)][_0x2e61e4(0xe6)]();}[_0x172429(0x101)](){const _0x380f0d=_0x172429;this[_0x380f0d(0xf7)]&&(this[_0x380f0d(0xf7)][_0x380f0d(0xa6)](),this[_0x380f0d(0xf7)]=null),this[_0x380f0d(0x8c)]&&(this[_0x380f0d(0x8c)][_0x380f0d(0x101)](),this[_0x380f0d(0x8c)]=null),this[_0x380f0d(0x87)]&&(this[_0x380f0d(0x87)][_0x380f0d(0x101)](),this[_0x380f0d(0x87)]=null);}[_0x172429(0xae)](){const _0x3969ce=_0x172429;if(!this[_0x3969ce(0x105)])return;if(!this[_0x3969ce(0xb5)]())return void(this[_0x3969ce(0x95)]=!0x0);this[_0x3969ce(0x95)]=!0x1;const _0x5ccf26=[...this[_0x3969ce(0xaa)],...this[_0x3969ce(0x10a)]],_0x1b7fb3=this[_0x3969ce(0xab)](),_0x1e4857=this[_0x3969ce(0x90)](_0x1b7fb3,_0x5ccf26),_0xc910c6=_0x1b7fb3[_0x3969ce(0x99)];_0xc910c6&&this[_0x3969ce(0xf6)](_0xc910c6),_0x1b7fb3[_0x3969ce(0xd3)](),this[_0x3969ce(0xe2)](_0x5ccf26,_0x1e4857);}[_0x172429(0x111)](){const _0x540455=_0x172429;this[_0x540455(0x8c)]=this[_0x540455(0x106)](),this[_0x540455(0x87)]=this[_0x540455(0xb0)](),this[_0x540455(0x8c)][_0x540455(0xcb)](),this[_0x540455(0x105)][_0x540455(0xb6)](this[_0x540455(0x8c)][_0x540455(0xdb)]),this[_0x540455(0x8c)]['on'](_0x540455(0x82),()=>{const _0x34c5ad=_0x540455;this[_0x34c5ad(0xac)]();}),_0x7fa681({'emitter':this[_0x540455(0x87)],'contextElements':[this[_0x540455(0x87)][_0x540455(0xdb)],this[_0x540455(0x8c)][_0x540455(0xdb)]],'callback':()=>this[_0x540455(0xb8)](),'activator':()=>this[_0x540455(0x8c)][_0x540455(0x97)]});}[_0x172429(0x106)](){const _0x1e08e1=_0x172429,_0x249b16=new _0x41e6de(this[_0x1e08e1(0x8b)]);_0x249b16[_0x1e08e1(0xbe)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x497d4b=[this[_0x1e08e1(0xed)][_0x1e08e1(0xcc)][_0x1e08e1(0x86)]];return this[_0x1e08e1(0xed)][_0x1e08e1(0xcc)][_0x1e08e1(0xc9)]&&_0x497d4b[_0x1e08e1(0x10b)](this[_0x1e08e1(0xed)][_0x1e08e1(0xcc)][_0x1e08e1(0xc9)]),_0x249b16[_0x1e08e1(0xf2)]({'attributes':{'class':_0x497d4b}}),_0x249b16;}[_0x172429(0xb0)](){const _0x176720=_0x172429,_0x19d39c=new _0x34f352(this[_0x176720(0x8b)]);return _0x19d39c[_0x176720(0xf2)]({'attributes':{'class':this[_0x176720(0xed)][_0x176720(0xcc)][_0x176720(0xa5)]}}),this[_0x176720(0x7f)][_0x176720(0xd0)](_0x19d39c),_0x19d39c;}[_0x172429(0xdc)](){const _0x4e9aea=_0x172429;if(this[_0x4e9aea(0x87)]&&(this[_0x4e9aea(0x87)][_0x4e9aea(0xce)][_0x4e9aea(0xe6)](),this[_0x4e9aea(0x10a)][_0x4e9aea(0xe5)]>0x0)){this[_0x4e9aea(0x10a)][_0x4e9aea(0xb2)](_0x54b788=>{const _0x306408=_0x4e9aea;_0x54b788[_0x306408(0x8d)]();});const _0x4a3c6b=new _0x42d6e2(this[_0x4e9aea(0x8b)]);_0x4a3c6b[_0x4e9aea(0xc4)]({'tag':_0x4e9aea(0xf0),'attributes':{'class':this[_0x4e9aea(0xed)][_0x4e9aea(0xcc)][_0x4e9aea(0xbb)]},'children':this[_0x4e9aea(0x10a)]}),this[_0x4e9aea(0x87)][_0x4e9aea(0xce)][_0x4e9aea(0xd0)](_0x4a3c6b);}}[_0x172429(0xac)](){const _0x3a0f22=_0x172429;this[_0x3a0f22(0x8c)][_0x3a0f22(0x97)]?this[_0x3a0f22(0xb8)]():this[_0x3a0f22(0xc7)]();}[_0x172429(0xa4)](){const _0x2c1c1d=_0x172429,_0x336093=this[_0x2c1c1d(0x10a)][_0x2c1c1d(0xe5)]>0x0;this[_0x2c1c1d(0x8c)]?.[_0x2c1c1d(0xdb)]&&(this[_0x2c1c1d(0x8c)][_0x2c1c1d(0xdb)][_0x2c1c1d(0x107)][_0x2c1c1d(0x10e)]=_0x336093?'':_0x2c1c1d(0xa0));}[_0x172429(0xd5)](){const _0x27d917=_0x172429;this[_0x27d917(0x8c)]?.[_0x27d917(0x97)]&&this[_0x27d917(0x87)]?.[_0x27d917(0x85)]&&this[_0x27d917(0x8c)][_0x27d917(0xdb)]&&this[_0x27d917(0x87)][_0x27d917(0x8f)]({'target':this[_0x27d917(0x8c)][_0x27d917(0xdb)],'limiter':document[_0x27d917(0xf1)](_0x27d917(0xad))});}[_0x172429(0x10d)](_0x3decd2){const _0x322a8f=_0x172429,_0x3c3291=this[_0x322a8f(0x105)]?.[_0x322a8f(0xd7)][_0x322a8f(0xa9)]()||_0x322a8f(0xf0),_0x93454a=this[_0x322a8f(0x105)]?.[_0x322a8f(0x9f)];if(_0x93454a){const _0x3ca3dc=_0x93454a[0x0]||'',_0x2e39f0=_0x3decd2[_0x322a8f(0xf1)]('.'+_0x3ca3dc),_0x5bd241=_0x3decd2[_0x322a8f(0xf1)](_0x3c3291);return _0x2e39f0||_0x5bd241||_0x3decd2;}return _0x3decd2[_0x322a8f(0xf1)](_0x3c3291)||_0x3decd2;}[_0x172429(0x9c)](){const _0x94477d=_0x172429,_0x1e8f66=this[_0x94477d(0xcd)]?.[_0x94477d(0xdb)]||this[_0x94477d(0x105)];if(!_0x1e8f66)return hn;const _0x88f5f7=window[_0x94477d(0xdf)](_0x1e8f66)[_0x94477d(0xd8)];if(_0x94477d(0xd4)===_0x88f5f7||_0x94477d(0xa2)===_0x88f5f7||!_0x88f5f7){const _0x47b033=_0x1e8f66[_0x94477d(0x104)];if(_0x47b033){const _0x140d6e=window[_0x94477d(0xdf)](_0x47b033);return _0x94477d(0xd4)!==_0x140d6e[_0x94477d(0xd8)]?_0x140d6e[_0x94477d(0xd8)]:hn;}return hn;}return _0x88f5f7;}[_0x172429(0x91)](_0x35f4b0,_0x182ec6){const _0x5f4c25=_0x172429;this[_0x5f4c25(0xed)][_0x5f4c25(0xcc)][_0x5f4c25(0xda)]&&_0x35f4b0[_0x5f4c25(0x9f)][_0x5f4c25(0xd0)](this[_0x5f4c25(0xed)][_0x5f4c25(0xcc)][_0x5f4c25(0xda)]),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0xd8)]=_0x182ec6,_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x8e)]=_0x5f4c25(0xa8),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0xcf)]=_0x5f4c25(0xc0),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0xfa)]=_0x5f4c25(0xc0),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0xff)]='0',_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x83)]=_0x5f4c25(0xa0),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x9a)]='-1',_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x93)]=_0x5f4c25(0x96),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x10e)]=_0x5f4c25(0xfc),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x92)]=_0x5f4c25(0x9d);}[_0x172429(0xf6)](_0x4f9fc1){const _0x105e8c=_0x172429;_0x4f9fc1[_0x105e8c(0xb2)](({element:_0x1e95b1,originalDisplay:_0x20f814,originalVisibility:_0x58712f})=>{const _0x5398c7=_0x105e8c;_0x1e95b1[_0x5398c7(0x107)][_0x5398c7(0x10e)]=_0x20f814,_0x1e95b1[_0x5398c7(0x107)][_0x5398c7(0x93)]=_0x58712f;});}[_0x172429(0xb9)](_0x4b9b88){const _0x479425=_0x172429,_0x2ec8c7=[];let _0x2a0af2=_0x4b9b88;for(;_0x2a0af2&&_0x2a0af2!==document[_0x479425(0xf5)];){const _0x56f1a4=window[_0x479425(0xdf)](_0x2a0af2);_0x479425(0xa0)!==_0x56f1a4[_0x479425(0x10e)]&&_0x479425(0xd2)!==_0x56f1a4[_0x479425(0x93)]||(_0x2ec8c7[_0x479425(0x10b)]({'element':_0x2a0af2,'originalDisplay':_0x2a0af2[_0x479425(0x107)][_0x479425(0x10e)],'originalVisibility':_0x2a0af2[_0x479425(0x107)][_0x479425(0x93)]}),_0x2a0af2[_0x479425(0x107)][_0x479425(0x10e)]=_0x479425(0xbf),_0x2a0af2[_0x479425(0x107)][_0x479425(0x93)]=_0x479425(0x110)),_0x2a0af2=_0x2a0af2[_0x479425(0x104)];}return _0x2ec8c7;}[_0x172429(0xfe)](){const _0x589a11=_0x172429;let _0x3a21ce,_0x5c3d7d;return this[_0x589a11(0xcd)]?.[_0x589a11(0xdb)]?(_0x3a21ce=this[_0x589a11(0xcd)][_0x589a11(0xdb)][_0x589a11(0xea)](!0x0),_0x5c3d7d=this[_0x589a11(0x10d)](_0x3a21ce)):(_0x3a21ce=document[_0x589a11(0xd6)](_0x589a11(0xf0)),_0x5c3d7d=_0x3a21ce),{'calculationContainer':_0x3a21ce,'targetContainer':_0x5c3d7d};}[_0x172429(0xab)](){const _0x234b03=_0x172429,{calculationContainer:_0x1e3785,targetContainer:_0x476a1e}=this[_0x234b03(0xfe)](),_0x2302ff=this[_0x234b03(0x9c)]();this[_0x234b03(0x91)](_0x1e3785,_0x2302ff);const _0x2a69c8=this[_0x234b03(0xcd)]?.[_0x234b03(0xdb)]||this[_0x234b03(0x105)],_0x14c91f=_0x2a69c8?.[_0x234b03(0x104)];_0x14c91f?_0x14c91f[_0x234b03(0xb6)](_0x1e3785):document[_0x234b03(0xf5)][_0x234b03(0xb6)](_0x1e3785),_0x1e3785[_0x234b03(0xf4)]=_0x476a1e;const _0x29c030=this[_0x234b03(0xb9)](_0x14c91f||null);return _0x1e3785[_0x234b03(0xbd)],_0x1e3785[_0x234b03(0x99)]=_0x29c030,_0x1e3785;}[_0x172429(0x90)](_0x332cb2,_0x27c9d2){const _0xbd4c39=_0x172429,_0x128d14=_0x332cb2[_0xbd4c39(0xf4)]||_0x332cb2,_0x3bc2f8=[],{rowCount:_0x1bc93f}=this[_0xbd4c39(0x108)](_0x128d14,_0x27c9d2);if(_0x1bc93f<=this[_0xbd4c39(0xed)][_0xbd4c39(0xb4)])return _0x3bc2f8;const _0x372bd4=_0x27c9d2[_0xbd4c39(0xf9)]();for(;_0x372bd4[_0xbd4c39(0xe5)]>0x0;){if(this[_0xbd4c39(0x10c)](_0x332cb2,_0x128d14,_0x372bd4)){const _0x44e324=_0x27c9d2[_0xbd4c39(0xa7)](_0x13200b=>!_0x372bd4[_0xbd4c39(0x89)](_0x13200b));_0x3bc2f8[_0xbd4c39(0x10b)](..._0x44e324);break;}if(!_0x372bd4[_0xbd4c39(0xb7)]())break;}return _0x3bc2f8;}[_0x172429(0x108)](_0x418987,_0x4b4c2d){const _0x195ff4=_0x172429;_0x418987[_0x195ff4(0x98)]='',_0x4b4c2d[_0x195ff4(0xb2)](_0x10a2d9=>{const _0x32d01e=_0x195ff4;if(_0x10a2d9[_0x32d01e(0xdb)]){const _0x5e6942=_0x10a2d9[_0x32d01e(0xdb)][_0x32d01e(0xea)](!0x0);_0x418987[_0x32d01e(0xb6)](_0x5e6942);}}),_0x418987[_0x195ff4(0xbd)];const _0x175492=_0x418987[_0x195ff4(0x94)],_0x5e4110=[];return Array[_0x195ff4(0xfd)](_0x175492)[_0x195ff4(0xb2)](_0x2cf725=>{const _0xd42727=_0x195ff4,_0x507e8b=_0x2cf725[_0xd42727(0xfb)]()[_0xd42727(0xcf)];_0x5e4110[_0xd42727(0xb1)](_0x3d5102=>Math[_0xd42727(0xe9)](_0x3d5102-_0x507e8b)<this[_0xd42727(0xed)][_0xd42727(0xc6)])||_0x5e4110[_0xd42727(0x10b)](_0x507e8b);}),{'rowCount':_0x5e4110[_0x195ff4(0xe5)]};}[_0x172429(0xc8)](){const _0x2a42f6=_0x172429,_0x4b715b=document[_0x2a42f6(0xd6)](_0x2a42f6(0xef));return _0x4b715b[_0x2a42f6(0xca)]=this[_0x2a42f6(0xed)][_0x2a42f6(0xcc)][_0x2a42f6(0x86)],this[_0x2a42f6(0xed)][_0x2a42f6(0xcc)][_0x2a42f6(0xc9)]&&_0x4b715b[_0x2a42f6(0x9f)][_0x2a42f6(0xd0)](this[_0x2a42f6(0xed)][_0x2a42f6(0xcc)][_0x2a42f6(0xc9)]),_0x4b715b[_0x2a42f6(0xc1)]=_0x2a42f6(0xde),_0x4b715b;}[_0x172429(0x10c)](_0x52638f,_0x5c12b8,_0x49490c){const _0x281cdd=_0x172429;this[_0x281cdd(0x108)](_0x5c12b8,_0x49490c);const _0xb55bd9=this[_0x281cdd(0xc8)]();_0x52638f[_0x281cdd(0xb6)](_0xb55bd9),_0x52638f[_0x281cdd(0xbd)];const _0x24e662=[..._0x5c12b8[_0x281cdd(0x94)],_0xb55bd9],_0x3f4776=[];_0x24e662[_0x281cdd(0xb2)](_0x51cdd7=>{const _0x338374=_0x281cdd,_0x59a79c=_0x51cdd7[_0x338374(0xfb)]()[_0x338374(0xcf)];_0x3f4776[_0x338374(0xb1)](_0x4cd93a=>Math[_0x338374(0xe9)](_0x4cd93a-_0x59a79c)<this[_0x338374(0xed)][_0x338374(0xc6)])||_0x3f4776[_0x338374(0x10b)](_0x59a79c);});const _0x4d15bf=_0x3f4776[_0x281cdd(0xe5)];return _0xb55bd9[_0x281cdd(0xd3)](),_0x4d15bf<=this[_0x281cdd(0xed)][_0x281cdd(0xb4)];}[_0x172429(0xbc)](_0x2dd1d2,_0x314e00){const _0x11a7b2=_0x172429;this[_0x11a7b2(0xaa)][_0x11a7b2(0xe6)](),this[_0x11a7b2(0x10a)][_0x11a7b2(0xe6)](),_0x2dd1d2[_0x11a7b2(0xb2)](_0xad1a2f=>{const _0x43f1b5=_0x11a7b2;_0x314e00[_0x43f1b5(0x89)](_0xad1a2f)?this[_0x43f1b5(0x10a)][_0x43f1b5(0xd0)](_0xad1a2f):this[_0x43f1b5(0xaa)][_0x43f1b5(0xd0)](_0xad1a2f);});}[_0x172429(0xeb)](_0x52e639){const _0xbc6a6c=_0x172429;if(_0x52e639>0x0&&!this[_0xbc6a6c(0x8c)]&&this[_0xbc6a6c(0x111)](),_0x52e639>0x0&&this[_0xbc6a6c(0x8c)]){const _0x4ecb7a=''+this[_0xbc6a6c(0xed)][_0xbc6a6c(0xb3)]+(_0x52e639<0x63?_0x52e639:'99');this[_0xbc6a6c(0x8c)][_0xbc6a6c(0x10f)]=_0x4ecb7a;}this[_0xbc6a6c(0xdc)](),this[_0xbc6a6c(0xa4)](),this[_0xbc6a6c(0xd5)]();}[_0x172429(0xe2)](_0x3dc89c,_0x6f2e46){const _0x44f9ed=_0x172429;this[_0x44f9ed(0xbc)](_0x3dc89c,_0x6f2e46),this[_0x44f9ed(0xeb)](_0x6f2e46[_0x44f9ed(0xe5)]);}[_0x172429(0xe1)](){const _0x16d495=_0x172429;this[_0x16d495(0x105)]&&_0x16d495(0x9b)!=typeof IntersectionObserver&&(this[_0x16d495(0xf7)]=new IntersectionObserver(_0x44ffaf=>{const _0x302b67=_0x16d495;_0x44ffaf[0x0][_0x302b67(0x9e)]&&this[_0x302b67(0x95)]&&requestAnimationFrame(()=>{const _0x10fcc2=_0x302b67;this[_0x10fcc2(0xae)]();});},{'threshold':0.01,'rootMargin':_0x16d495(0x80)}),this[_0x16d495(0xf7)][_0x16d495(0xf8)](this[_0x16d495(0x105)]));}[_0x172429(0xb5)](){const _0x20bb23=_0x172429;if(!this[_0x20bb23(0x105)])return!0x1;if(!this[_0x20bb23(0x105)][_0x20bb23(0x100)])return!0x1;const _0x159b8d=this[_0x20bb23(0x105)][_0x20bb23(0xfb)]();if(0x0===_0x159b8d[_0x20bb23(0xd8)]||0x0===_0x159b8d[_0x20bb23(0xe7)])return!0x1;const _0xb1615f=window[_0x20bb23(0xa3)]||document[_0x20bb23(0xd1)][_0x20bb23(0x84)],_0x15ec08=window[_0x20bb23(0xec)]||document[_0x20bb23(0xd1)][_0x20bb23(0x81)],_0x1bb613=0xc8;return _0x159b8d[_0x20bb23(0x103)]>=-0xc8&&_0x159b8d[_0x20bb23(0xcf)]<=_0xb1615f+_0x1bb613&&_0x159b8d[_0x20bb23(0xd9)]>=-0xc8&&_0x159b8d[_0x20bb23(0xfa)]<=_0x15ec08+_0x1bb613;}}
23
+ const _0xf4227d=_0x1ce4;(function(_0x1b03c3,_0x2384d4){const _0x3077d2=_0x1ce4,_0x3b7901=_0x1b03c3();while(!![]){try{const _0x5d0adf=-parseInt(_0x3077d2(0x1ed))/0x1+parseInt(_0x3077d2(0x21d))/0x2*(parseInt(_0x3077d2(0x210))/0x3)+parseInt(_0x3077d2(0x1a7))/0x4+-parseInt(_0x3077d2(0x215))/0x5*(parseInt(_0x3077d2(0x1b7))/0x6)+parseInt(_0x3077d2(0x1ce))/0x7+-parseInt(_0x3077d2(0x1f4))/0x8*(parseInt(_0x3077d2(0x1da))/0x9)+parseInt(_0x3077d2(0x1b6))/0xa*(parseInt(_0x3077d2(0x1d1))/0xb);if(_0x5d0adf===_0x2384d4)break;else _0x3b7901['push'](_0x3b7901['shift']());}catch(_0x4f7fb0){_0x3b7901['push'](_0x3b7901['shift']());}}}(_0x36f5,0x3f710));import{View as _0x2abfae,BalloonPanelView as _0x23692d,ButtonView as _0x39eaf9,clickOutsideHandler as _0x421e92}from'ckeditor5/src/ui.js';import{Collection as _0x216c2a}from'ckeditor5/src/utils.js';function _0x36f5(){const _0x61d3a9=['querySelector','_updateOverflowUI','_calculateOverflowInContainer','_config','rowDetectionTolerance','slice','from','showMoreLabelPrefix','_makeAncestorsVisible','className','_restoreAncestorVisibility','visible','pop','134595jtKuqp','pin','forEach','isConnected','right','1066060kfoYFM','undefined','_locale','push','_intersectionObserver','block\x20!important','overflowChips','createElement','2FaxPhc','_handleShowMoreButtonClick','0px','div','_createMockButton','classList','50px','_updateShowMoreButtonVisibility','opacity','hideBalloonPanel','border-box','innerHTML','display','_targetContainer','isIntersecting','pointerEvents','element','innerWidth','innerHeight','reorganizeChips','_createCalculationContainer','documentElement','auto','calculationContainer','cloneNode','children','bottom','_bodyCollection','zIndex','clientWidth','includes','1569356bVIGoQ','appendChild','_updateBalloonContent','block','execute','_renderChipsAndCountRows','content','remove','show','textContent','clear','offsetWidth','isOn','position','showBalloonPanel','36870KuRNjE','6UrfhTt','add','300px','_showMoreButtonView','toLowerCase','button','disconnect','_containerElement','isVisible','_createShowMoreBalloonPanelView','_testButtonFit','controlsButton','absolute','showMoreButton','+\x201','_overflowChips','getComputedStyle','getBoundingClientRect','disableAnimationOnEnter','maxVisibleRows','hide','body','width','3430945aKfyie','_createShowMoreButtonView','parentElement','297AwHclX','_createShowMoreButton','.ck-ai-chat','cssClasses','set','tagName','setTemplate','-9999px','_findTargetContainer','548721COMMhy','style','top','showMoreButtonView','boxSizing','clientHeight','left','ck-calculation-container','_checkAndHandleOverflow','_parentView','hidden','label','_ancestorsToRestore','visible\x20!important','render','showMoreBalloon','_visibleChips','_pendingCalculation','_isContainerVisible','492851MEJZid','observe','height','extendTemplate','_distributeChips','length','some','8eQdOvn','destroy','visibility','_createContainerElements','_showMoreBalloonPanelView','_applyOverflowResults','abs','_setupVisibilityObserver','setContainerElement','overflowContainer','_repinBalloonPanel','_calculateContainerWidth','filter','_applyCalculationStyles','none'];_0x36f5=function(){return _0x61d3a9;};return _0x36f5();}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0xf4227d(0x1b9);function _0x1ce4(_0xf002c2,_0x3cdf6b){const _0x36f551=_0x36f5();return _0x1ce4=function(_0x1ce47c,_0x36a7d0){_0x1ce47c=_0x1ce47c-0x19a;let _0x1d1c00=_0x36f551[_0x1ce47c];return _0x1d1c00;},_0x1ce4(_0xf002c2,_0x3cdf6b);}export class AIChatChipsOverflowManager{[_0xf4227d(0x217)];[_0xf4227d(0x206)];[_0xf4227d(0x1ea)];[_0xf4227d(0x1c6)];[_0xf4227d(0x1ba)]=null;[_0xf4227d(0x1f8)]=null;[_0xf4227d(0x1be)]=null;[_0xf4227d(0x1a3)];[_0xf4227d(0x1e3)]=null;[_0xf4227d(0x219)]=null;[_0xf4227d(0x1eb)]=!0x1;constructor(_0x53e5ef,_0x185ea3,_0x46327f,_0x4c963c,_0x52f1a3){const _0x1f7d10=_0xf4227d;this[_0x1f7d10(0x217)]=_0x53e5ef,this[_0x1f7d10(0x1ea)]=_0x185ea3,this[_0x1f7d10(0x206)]={...hn,..._0x46327f,'cssClasses':{'controlsButton':'','calculationContainer':_0x1f7d10(0x1e1),..._0x46327f[_0x1f7d10(0x1d4)]}},this[_0x1f7d10(0x1c6)]=new _0x216c2a(),this[_0x1f7d10(0x1a3)]=_0x4c963c,this[_0x1f7d10(0x1e3)]=_0x52f1a3||null;}[_0xf4227d(0x1fc)](_0x1f3952){const _0x27c375=_0xf4227d;this[_0x27c375(0x219)]&&(this[_0x27c375(0x219)][_0x27c375(0x1bd)](),this[_0x27c375(0x219)]=null),this[_0x27c375(0x1be)]=_0x1f3952,this[_0x27c375(0x1fb)]();}get[_0xf4227d(0x1dd)](){const _0x558189=_0xf4227d;return this[_0x558189(0x1ba)];}get[_0xf4227d(0x21b)](){const _0x916a8d=_0xf4227d;return this[_0x916a8d(0x1c6)];}[_0xf4227d(0x19b)](){requestAnimationFrame(()=>{const _0x49ac2f=_0x1ce4;this[_0x49ac2f(0x1e2)]();});}[_0xf4227d(0x1b5)](){const _0xba0d2d=_0xf4227d;this[_0xba0d2d(0x1ba)]&&this[_0xba0d2d(0x1f8)]&&(this[_0xba0d2d(0x1a9)](),this[_0xba0d2d(0x1ba)][_0xba0d2d(0x1b3)]=!0x0,this[_0xba0d2d(0x1f8)][_0xba0d2d(0x1af)](),this[_0xba0d2d(0x1f8)][_0xba0d2d(0x211)]({'target':this[_0xba0d2d(0x1ba)][_0xba0d2d(0x22d)],'limiter':document[_0xba0d2d(0x203)](_0xba0d2d(0x1d3))}));}[_0xf4227d(0x226)](){const _0x866028=_0xf4227d;this[_0x866028(0x1ba)]&&this[_0x866028(0x1f8)]&&(this[_0x866028(0x1ba)][_0x866028(0x1b3)]=!0x1,this[_0x866028(0x1f8)][_0x866028(0x1cb)]());}[_0xf4227d(0x1b1)](){const _0x1f810a=_0xf4227d;this[_0x1f810a(0x1c6)][_0x1f810a(0x1b1)](),this[_0x1f810a(0x226)](),this[_0x1f810a(0x224)](),this[_0x1f810a(0x1ba)]&&(this[_0x1f810a(0x1ba)][_0x1f810a(0x1e5)]=''),this[_0x1f810a(0x1f8)]&&this[_0x1f810a(0x1f8)][_0x1f810a(0x1ad)][_0x1f810a(0x1b1)]();}[_0xf4227d(0x1f5)](){const _0x182965=_0xf4227d;this[_0x182965(0x219)]&&(this[_0x182965(0x219)][_0x182965(0x1bd)](),this[_0x182965(0x219)]=null),this[_0x182965(0x1ba)]&&(this[_0x182965(0x1ba)][_0x182965(0x1f5)](),this[_0x182965(0x1ba)]=null),this[_0x182965(0x1f8)]&&(this[_0x182965(0x1f8)][_0x182965(0x1f5)](),this[_0x182965(0x1f8)]=null);}[_0xf4227d(0x1e2)](){const _0x56a5bf=_0xf4227d;if(!this[_0x56a5bf(0x1be)])return;if(!this[_0x56a5bf(0x1ec)]())return void(this[_0x56a5bf(0x1eb)]=!0x0);this[_0x56a5bf(0x1eb)]=!0x1;const _0xbb5fe0=[...this[_0x56a5bf(0x1ea)],...this[_0x56a5bf(0x1c6)]],_0x30f1ae=this[_0x56a5bf(0x19c)](),_0x38128c=this[_0x56a5bf(0x205)](_0x30f1ae,_0xbb5fe0),_0x235ee4=_0x30f1ae[_0x56a5bf(0x1e6)];_0x235ee4&&this[_0x56a5bf(0x20d)](_0x235ee4),_0x30f1ae[_0x56a5bf(0x1ae)](),this[_0x56a5bf(0x1f9)](_0xbb5fe0,_0x38128c);}[_0xf4227d(0x1d2)](){const _0x2f9bf9=_0xf4227d;this[_0x2f9bf9(0x1ba)]=this[_0x2f9bf9(0x1cf)](),this[_0x2f9bf9(0x1f8)]=this[_0x2f9bf9(0x1c0)](),this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x1e8)](),this[_0x2f9bf9(0x1be)][_0x2f9bf9(0x1a8)](this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x22d)]),this[_0x2f9bf9(0x1ba)]['on'](_0x2f9bf9(0x1ab),()=>{const _0x1bed3=_0x2f9bf9;this[_0x1bed3(0x21e)]();}),_0x421e92({'emitter':this[_0x2f9bf9(0x1f8)],'contextElements':[this[_0x2f9bf9(0x1f8)][_0x2f9bf9(0x22d)],this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x22d)]],'callback':()=>this[_0x2f9bf9(0x226)](),'activator':()=>this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x1b3)]});}[_0xf4227d(0x1cf)](){const _0x2b8e79=_0xf4227d,_0x4f7fec=new _0x39eaf9(this[_0x2b8e79(0x217)]);_0x4f7fec[_0x2b8e79(0x1d5)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x326afc=[this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c4)]];return this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c2)]&&_0x326afc[_0x2b8e79(0x218)](this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c2)]),_0x4f7fec[_0x2b8e79(0x1f0)]({'attributes':{'class':_0x326afc}}),_0x4f7fec;}[_0xf4227d(0x1c0)](){const _0x5ce91b=_0xf4227d,_0x4b9357=new _0x23692d(this[_0x5ce91b(0x217)]);return _0x4b9357[_0x5ce91b(0x1f0)]({'attributes':{'class':this[_0x5ce91b(0x206)][_0x5ce91b(0x1d4)][_0x5ce91b(0x1e9)]}}),this[_0x5ce91b(0x1a3)][_0x5ce91b(0x1b8)](_0x4b9357),_0x4b9357;}[_0xf4227d(0x1a9)](){const _0x28b930=_0xf4227d;if(this[_0x28b930(0x1f8)]&&(this[_0x28b930(0x1f8)][_0x28b930(0x1ad)][_0x28b930(0x1b1)](),this[_0x28b930(0x1c6)][_0x28b930(0x1f2)]>0x0)){this[_0x28b930(0x1c6)][_0x28b930(0x212)](_0x20e5ca=>{const _0x508a95=_0x28b930;_0x20e5ca[_0x508a95(0x1c9)]();});const _0x45a584=new _0x2abfae(this[_0x28b930(0x217)]);_0x45a584[_0x28b930(0x1d7)]({'tag':_0x28b930(0x220),'attributes':{'class':this[_0x28b930(0x206)][_0x28b930(0x1d4)][_0x28b930(0x1fd)]},'children':this[_0x28b930(0x1c6)]}),this[_0x28b930(0x1f8)][_0x28b930(0x1ad)][_0x28b930(0x1b8)](_0x45a584);}}[_0xf4227d(0x21e)](){const _0x5c39b9=_0xf4227d;this[_0x5c39b9(0x1ba)][_0x5c39b9(0x1b3)]?this[_0x5c39b9(0x226)]():this[_0x5c39b9(0x1b5)]();}[_0xf4227d(0x224)](){const _0x88c65c=_0xf4227d,_0x4d4f00=this[_0x88c65c(0x1c6)][_0x88c65c(0x1f2)]>0x0;this[_0x88c65c(0x1ba)]?.[_0x88c65c(0x22d)]&&(this[_0x88c65c(0x1ba)][_0x88c65c(0x22d)][_0x88c65c(0x1db)][_0x88c65c(0x229)]=_0x4d4f00?'':_0x88c65c(0x202));}[_0xf4227d(0x1fe)](){const _0x5bb28a=_0xf4227d;this[_0x5bb28a(0x1ba)]?.[_0x5bb28a(0x1b3)]&&this[_0x5bb28a(0x1f8)]?.[_0x5bb28a(0x1bf)]&&this[_0x5bb28a(0x1ba)][_0x5bb28a(0x22d)]&&this[_0x5bb28a(0x1f8)][_0x5bb28a(0x211)]({'target':this[_0x5bb28a(0x1ba)][_0x5bb28a(0x22d)],'limiter':document[_0x5bb28a(0x203)](_0x5bb28a(0x1d3))});}[_0xf4227d(0x1d9)](_0x50dae9){const _0x4f9755=_0xf4227d,_0x1fe079=this[_0x4f9755(0x1be)]?.[_0x4f9755(0x1d6)][_0x4f9755(0x1bb)]()||_0x4f9755(0x220),_0x314a73=this[_0x4f9755(0x1be)]?.[_0x4f9755(0x222)];if(_0x314a73){const _0x27cfd0=_0x314a73[0x0]||'',_0x55845b=_0x50dae9[_0x4f9755(0x203)]('.'+_0x27cfd0),_0x35bdbf=_0x50dae9[_0x4f9755(0x203)](_0x1fe079);return _0x55845b||_0x35bdbf||_0x50dae9;}return _0x50dae9[_0x4f9755(0x203)](_0x1fe079)||_0x50dae9;}[_0xf4227d(0x1ff)](){const _0x1810f3=_0xf4227d,_0x170b6c=this[_0x1810f3(0x1e3)]?.[_0x1810f3(0x22d)]||this[_0x1810f3(0x1be)];if(!_0x170b6c)return ln;const _0x4d5783=window[_0x1810f3(0x1c7)](_0x170b6c)[_0x1810f3(0x1cd)];if(_0x1810f3(0x19e)===_0x4d5783||_0x1810f3(0x21f)===_0x4d5783||!_0x4d5783){const _0x57318f=_0x170b6c[_0x1810f3(0x1d0)];if(_0x57318f){const _0x286817=window[_0x1810f3(0x1c7)](_0x57318f);return _0x1810f3(0x19e)!==_0x286817[_0x1810f3(0x1cd)]?_0x286817[_0x1810f3(0x1cd)]:ln;}return ln;}return _0x4d5783;}[_0xf4227d(0x201)](_0x3e907e,_0x54af8a){const _0x1b6fe7=_0xf4227d;this[_0x1b6fe7(0x206)][_0x1b6fe7(0x1d4)][_0x1b6fe7(0x19f)]&&_0x3e907e[_0x1b6fe7(0x222)][_0x1b6fe7(0x1b8)](this[_0x1b6fe7(0x206)][_0x1b6fe7(0x1d4)][_0x1b6fe7(0x19f)]),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1cd)]=_0x54af8a,_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1b4)]=_0x1b6fe7(0x1c3),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1dc)]=_0x1b6fe7(0x1d8),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1e0)]=_0x1b6fe7(0x1d8),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x225)]='0',_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x22c)]=_0x1b6fe7(0x202),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1a4)]='-1',_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1f6)]=_0x1b6fe7(0x1e7),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x229)]=_0x1b6fe7(0x21a),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1de)]=_0x1b6fe7(0x227);}[_0xf4227d(0x20d)](_0x51e945){const _0x203242=_0xf4227d;_0x51e945[_0x203242(0x212)](({element:_0x1e0c57,originalDisplay:_0x284915,originalVisibility:_0x2d43ba})=>{const _0x4adf6c=_0x203242;_0x1e0c57[_0x4adf6c(0x1db)][_0x4adf6c(0x229)]=_0x284915,_0x1e0c57[_0x4adf6c(0x1db)][_0x4adf6c(0x1f6)]=_0x2d43ba;});}[_0xf4227d(0x20b)](_0x2db3f1){const _0x2a90e5=_0xf4227d,_0xb65ea=[];let _0x5f206f=_0x2db3f1;for(;_0x5f206f&&_0x5f206f!==document[_0x2a90e5(0x1cc)];){const _0x2a1034=window[_0x2a90e5(0x1c7)](_0x5f206f);_0x2a90e5(0x202)!==_0x2a1034[_0x2a90e5(0x229)]&&_0x2a90e5(0x1e4)!==_0x2a1034[_0x2a90e5(0x1f6)]||(_0xb65ea[_0x2a90e5(0x218)]({'element':_0x5f206f,'originalDisplay':_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x229)],'originalVisibility':_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x1f6)]}),_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x229)]=_0x2a90e5(0x1aa),_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x1f6)]=_0x2a90e5(0x20e)),_0x5f206f=_0x5f206f[_0x2a90e5(0x1d0)];}return _0xb65ea;}[_0xf4227d(0x1f7)](){const _0x21b46e=_0xf4227d;let _0x4289f6,_0x44441e;return this[_0x21b46e(0x1e3)]?.[_0x21b46e(0x22d)]?(_0x4289f6=this[_0x21b46e(0x1e3)][_0x21b46e(0x22d)][_0x21b46e(0x1a0)](!0x0),_0x44441e=this[_0x21b46e(0x1d9)](_0x4289f6)):(_0x4289f6=document[_0x21b46e(0x21c)](_0x21b46e(0x220)),_0x44441e=_0x4289f6),{'calculationContainer':_0x4289f6,'targetContainer':_0x44441e};}[_0xf4227d(0x19c)](){const _0xc462bd=_0xf4227d,{calculationContainer:_0x238794,targetContainer:_0x3d6595}=this[_0xc462bd(0x1f7)](),_0x394d66=this[_0xc462bd(0x1ff)]();this[_0xc462bd(0x201)](_0x238794,_0x394d66);const _0x16e1af=this[_0xc462bd(0x1e3)]?.[_0xc462bd(0x22d)]||this[_0xc462bd(0x1be)],_0x3adb15=_0x16e1af?.[_0xc462bd(0x1d0)];_0x3adb15?_0x3adb15[_0xc462bd(0x1a8)](_0x238794):document[_0xc462bd(0x1cc)][_0xc462bd(0x1a8)](_0x238794),_0x238794[_0xc462bd(0x22a)]=_0x3d6595;const _0x186699=this[_0xc462bd(0x20b)](_0x3adb15||null);return _0x238794[_0xc462bd(0x1b2)],_0x238794[_0xc462bd(0x1e6)]=_0x186699,_0x238794;}[_0xf4227d(0x205)](_0x114ee4,_0x281efb){const _0x462649=_0xf4227d,_0x1e79c3=_0x114ee4[_0x462649(0x22a)]||_0x114ee4,_0x44e52d=[],{rowCount:_0x5eb92c}=this[_0x462649(0x1ac)](_0x1e79c3,_0x281efb);if(_0x5eb92c<=this[_0x462649(0x206)][_0x462649(0x1ca)])return _0x44e52d;const _0x9048a2=_0x281efb[_0x462649(0x208)]();for(;_0x9048a2[_0x462649(0x1f2)]>0x0;){if(this[_0x462649(0x1c1)](_0x114ee4,_0x1e79c3,_0x9048a2)){const _0x4a31be=_0x281efb[_0x462649(0x200)](_0xd902b5=>!_0x9048a2[_0x462649(0x1a6)](_0xd902b5));_0x44e52d[_0x462649(0x218)](..._0x4a31be);break;}if(!_0x9048a2[_0x462649(0x20f)]())break;}return _0x44e52d;}[_0xf4227d(0x1ac)](_0x257a92,_0x158f0e){const _0x351d47=_0xf4227d;_0x257a92[_0x351d47(0x228)]='',_0x158f0e[_0x351d47(0x212)](_0x2db86e=>{const _0x47e5bd=_0x351d47;if(_0x2db86e[_0x47e5bd(0x22d)]){const _0x6930f9=_0x2db86e[_0x47e5bd(0x22d)][_0x47e5bd(0x1a0)](!0x0);_0x257a92[_0x47e5bd(0x1a8)](_0x6930f9);}}),_0x257a92[_0x351d47(0x1b2)];const _0x29afd7=_0x257a92[_0x351d47(0x1a1)],_0x4e8299=[];return Array[_0x351d47(0x209)](_0x29afd7)[_0x351d47(0x212)](_0x2356ff=>{const _0x30efaa=_0x351d47,_0x36ac13=_0x2356ff[_0x30efaa(0x1c8)]()[_0x30efaa(0x1dc)];_0x4e8299[_0x30efaa(0x1f3)](_0x2d46a9=>Math[_0x30efaa(0x1fa)](_0x2d46a9-_0x36ac13)<this[_0x30efaa(0x206)][_0x30efaa(0x207)])||_0x4e8299[_0x30efaa(0x218)](_0x36ac13);}),{'rowCount':_0x4e8299[_0x351d47(0x1f2)]};}[_0xf4227d(0x221)](){const _0x419dfa=_0xf4227d,_0xa19994=document[_0x419dfa(0x21c)](_0x419dfa(0x1bc));return _0xa19994[_0x419dfa(0x20c)]=this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c4)],this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c2)]&&_0xa19994[_0x419dfa(0x222)][_0x419dfa(0x1b8)](this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c2)]),_0xa19994[_0x419dfa(0x1b0)]=_0x419dfa(0x1c5),_0xa19994;}[_0xf4227d(0x1c1)](_0x15bca0,_0x3068a8,_0x58f833){const _0x5c4362=_0xf4227d;this[_0x5c4362(0x1ac)](_0x3068a8,_0x58f833);const _0x38fc09=this[_0x5c4362(0x221)]();_0x15bca0[_0x5c4362(0x1a8)](_0x38fc09),_0x15bca0[_0x5c4362(0x1b2)];const _0x2a97da=[..._0x3068a8[_0x5c4362(0x1a1)],_0x38fc09],_0x190a24=[];_0x2a97da[_0x5c4362(0x212)](_0x214ad6=>{const _0x417fd1=_0x5c4362,_0x2229a9=_0x214ad6[_0x417fd1(0x1c8)]()[_0x417fd1(0x1dc)];_0x190a24[_0x417fd1(0x1f3)](_0x24331a=>Math[_0x417fd1(0x1fa)](_0x24331a-_0x2229a9)<this[_0x417fd1(0x206)][_0x417fd1(0x207)])||_0x190a24[_0x417fd1(0x218)](_0x2229a9);});const _0x3604ec=_0x190a24[_0x5c4362(0x1f2)];return _0x38fc09[_0x5c4362(0x1ae)](),_0x3604ec<=this[_0x5c4362(0x206)][_0x5c4362(0x1ca)];}[_0xf4227d(0x1f1)](_0x4b623c,_0x226fe0){const _0x206741=_0xf4227d;this[_0x206741(0x1ea)][_0x206741(0x1b1)](),this[_0x206741(0x1c6)][_0x206741(0x1b1)](),_0x4b623c[_0x206741(0x212)](_0x47752c=>{const _0x310e8a=_0x206741;_0x226fe0[_0x310e8a(0x1a6)](_0x47752c)?this[_0x310e8a(0x1c6)][_0x310e8a(0x1b8)](_0x47752c):this[_0x310e8a(0x1ea)][_0x310e8a(0x1b8)](_0x47752c);});}[_0xf4227d(0x204)](_0x4bc346){const _0x2f0f0d=_0xf4227d;if(_0x4bc346>0x0&&!this[_0x2f0f0d(0x1ba)]&&this[_0x2f0f0d(0x1d2)](),_0x4bc346>0x0&&this[_0x2f0f0d(0x1ba)]){const _0x227330=''+this[_0x2f0f0d(0x206)][_0x2f0f0d(0x20a)]+(_0x4bc346<0x63?_0x4bc346:'99');this[_0x2f0f0d(0x1ba)][_0x2f0f0d(0x1e5)]=_0x227330;}this[_0x2f0f0d(0x1a9)](),this[_0x2f0f0d(0x224)](),this[_0x2f0f0d(0x1fe)]();}[_0xf4227d(0x1f9)](_0x8982f4,_0x46d988){const _0x2507d1=_0xf4227d;this[_0x2507d1(0x1f1)](_0x8982f4,_0x46d988),this[_0x2507d1(0x204)](_0x46d988[_0x2507d1(0x1f2)]);}[_0xf4227d(0x1fb)](){const _0x544d99=_0xf4227d;this[_0x544d99(0x1be)]&&_0x544d99(0x216)!=typeof IntersectionObserver&&(this[_0x544d99(0x219)]=new IntersectionObserver(_0x5a556b=>{const _0x64239a=_0x544d99;_0x5a556b[0x0][_0x64239a(0x22b)]&&this[_0x64239a(0x1eb)]&&requestAnimationFrame(()=>{const _0x5edf19=_0x64239a;this[_0x5edf19(0x1e2)]();});},{'threshold':0.01,'rootMargin':_0x544d99(0x223)}),this[_0x544d99(0x219)][_0x544d99(0x1ee)](this[_0x544d99(0x1be)]));}[_0xf4227d(0x1ec)](){const _0x37563a=_0xf4227d;if(!this[_0x37563a(0x1be)])return!0x1;if(!this[_0x37563a(0x1be)][_0x37563a(0x213)])return!0x1;const _0x48d8f0=this[_0x37563a(0x1be)][_0x37563a(0x1c8)]();if(0x0===_0x48d8f0[_0x37563a(0x1cd)]||0x0===_0x48d8f0[_0x37563a(0x1ef)])return!0x1;const _0x178d2e=window[_0x37563a(0x19a)]||document[_0x37563a(0x19d)][_0x37563a(0x1df)],_0x43e574=window[_0x37563a(0x22e)]||document[_0x37563a(0x19d)][_0x37563a(0x1a5)],_0x5f75a7=0xc8;return _0x48d8f0[_0x37563a(0x1a2)]>=-0xc8&&_0x48d8f0[_0x37563a(0x1dc)]<=_0x178d2e+_0x5f75a7&&_0x48d8f0[_0x37563a(0x214)]>=-0xc8&&_0x48d8f0[_0x37563a(0x1e0)]<=_0x43e574+_0x5f75a7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3328(_0x1c620d,_0x38b0a4){const _0x36ff93=_0x36ff();return _0x3328=function(_0x332807,_0x299905){_0x332807=_0x332807-0xee;let _0x235f60=_0x36ff93[_0x332807];return _0x235f60;},_0x3328(_0x1c620d,_0x38b0a4);}function _0x36ff(){const _0x399b31=['fire','ck-ai-chat-context-chip','itemType','div','disableAnimationOnEnter','small','removeEventListener','content','_createLabelElement','execute','span','5Qkyiap','_createIconView','addEventListener','ck-ai-chat-context-chip_wide','22131307irkiBw','uiId','extendTemplate','9UVubdt','945366ogxUDL','937308PUgRXf','type','_createLoaderIcon','_initializeProperties','_isAnimationOnEnterEnabled','locale','remove','576nYNBDz','render','tooltip','72140qsHsFo','setTemplate','selection','_createTemplateAttributes','_createTemplateChildren','ck-ai-chat-context-controls__chip-tooltip','webkitAnimationEnd','_setupTemplate','classList','_setupRemoveButtonEvent','slice','set','isVisible','ck-hidden','removeContextItemChip','element','1133100xtccZT','312956AFduMu','isLoading','ck-ai-chat-context-chip_document','_createRemoveButton','length','readonly','32hjvAgo','add','bind','lastIndexOf','ck-ai-chat-context-chip__label','ck-ai-chat-context-chip_new-chip','animationend','_handleAnimationEndOnce','label','bindTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','document','ck-ai-chat-context-chip__type-icon','607614uZATKB'];_0x36ff=function(){return _0x399b31;};return _0x36ff();}const _0x1c27ad=_0x3328;(function(_0x1ba482,_0x3c750f){const _0x21ed8=_0x3328,_0x569bdc=_0x1ba482();while(!![]){try{const _0x1cb8be=-parseInt(_0x21ed8(0x11e))/0x1+parseInt(_0x21ed8(0x10a))/0x2+parseInt(_0x21ed8(0xee))/0x3*(-parseInt(_0x21ed8(0xf0))/0x4)+parseInt(_0x21ed8(0x12a))/0x5*(-parseInt(_0x21ed8(0xef))/0x6)+parseInt(_0x21ed8(0x10b))/0x7*(-parseInt(_0x21ed8(0x111))/0x8)+-parseInt(_0x21ed8(0xf7))/0x9*(parseInt(_0x21ed8(0xfa))/0xa)+parseInt(_0x21ed8(0x12e))/0xb;if(_0x1cb8be===_0x3c750f)break;else _0x569bdc['push'](_0x569bdc['shift']());}catch(_0x490805){_0x569bdc['push'](_0x569bdc['shift']());}}}(_0x36ff,0x72b2b));import{ButtonView as _0x21b958,IconView as _0x4d9f35}from'ckeditor5/src/ui.js';import{IconClose as _0x42a547,IconDocument as _0x1799db,IconFileUpload as _0x26f933,IconLink as _0x1c4080,IconSelection as _0x1b0a13}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x26ac6f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x451ea4}from'../../../aicore/ui/aispinner.js';const mn={'file':_0x26f933,'document':_0x1799db,'web-resource':_0x1c4080,'text':_0x26f933,'selection':_0x1b0a13},dn=_0x1c27ad(0x120),un=_0x1c27ad(0x12d),_n=_0x1c27ad(0x10d),kn=_0x1c27ad(0x115),xn=_0x1c27ad(0x11d),bn=_0x1c27ad(0xff),wn='n';export class AIChatContextItemButtonView extends _0x21b958{constructor(_0xdf7226,_0x1ccb60,_0x541b72,_0xe92e22,_0x54fbe7=!0x1){const _0x581631=_0x1c27ad;super(_0xdf7226),this[_0x581631(0xf4)]=_0xe92e22,this[_0x581631(0xf3)](_0x1ccb60,_0x541b72,_0x54fbe7),this[_0x581631(0x101)]();}[_0x1c27ad(0xf8)](){const _0x3f6308=_0x1c27ad;super[_0x3f6308(0xf8)](),this[_0x3f6308(0xf4)]&&this[_0x3f6308(0x109)]&&(this[_0x3f6308(0x109)][_0x3f6308(0x102)][_0x3f6308(0x112)](_0x3f6308(0x116)),this[_0x3f6308(0x118)](this[_0x3f6308(0x109)],()=>{const _0x317644=_0x3f6308;this[_0x317644(0x109)]&&this[_0x317644(0x109)][_0x317644(0x102)][_0x317644(0xf6)](_0x317644(0x116));}));}[_0x1c27ad(0x123)](){const _0x3fdc29=_0x1c27ad;this[_0x3fdc29(0xf4)]=!0x1,this[_0x3fdc29(0x109)]&&this[_0x3fdc29(0x109)][_0x3fdc29(0x102)][_0x3fdc29(0xf6)](_0x3fdc29(0x116));}[_0x1c27ad(0xf3)](_0x4c8202,_0x2ab55b,_0x25b239){const _0x323afc=_0x1c27ad;this[_0x323afc(0x105)](_0x323afc(0x119),_0x4c8202[_0x323afc(0x119)]),this[_0x323afc(0x105)](_0x323afc(0xf9),!0x0),this[_0x323afc(0x105)](_0x323afc(0x121),_0x4c8202[_0x323afc(0xf1)]),this[_0x323afc(0x105)]('id',_0x4c8202[_0x323afc(0x12f)]),this[_0x323afc(0x105)](_0x323afc(0x110),_0x2ab55b),this[_0x323afc(0x105)](_0x323afc(0x10c),_0x25b239);}[_0x1c27ad(0x101)](){const _0x53039d=_0x1c27ad,_0x47cef4=this[_0x53039d(0x12b)](),_0x280344=this[_0x53039d(0x10e)](),_0x16deec=this[_0x53039d(0x11a)];this[_0x53039d(0xfb)]({'tag':_0x53039d(0x122),'attributes':this[_0x53039d(0xfd)](_0x16deec),'children':this[_0x53039d(0xfe)](_0x47cef4,_0x280344,_0x16deec)});}[_0x1c27ad(0xfd)](_0x76f0be){const _0x133d58=_0x1c27ad;return{'class':[dn,_0x76f0be['if'](_0x133d58(0x121),_n,_0x3f1500=>_0x133d58(0x11c)==_0x3f1500),_0x76f0be['if'](_0x133d58(0x121),un,_0x2b40e7=>_0x133d58(0xfc)==_0x2b40e7)],'data-cke-tooltip-text':_0x76f0be['to'](_0x133d58(0x119),Tn),'data-cke-tooltip-position':wn,'data-cke-tooltip-class':bn};}[_0x1c27ad(0xfe)](_0xa8ae59,_0x621f39,_0x10c5b5){const _0x309a9f=_0x1c27ad,_0x7e044e=this[_0x309a9f(0x127)](_0x10c5b5),_0xef0a94=this[_0x309a9f(0xf2)]();return this[_0x309a9f(0x110)]?[_0xa8ae59,_0x7e044e]:[_0xa8ae59,_0xef0a94,_0x7e044e,_0x621f39];}[_0x1c27ad(0x127)](_0x3a1469){const _0x3bf7a2=_0x1c27ad;return{'tag':_0x3bf7a2(0x129),'attributes':{'class':kn},'children':[{'text':_0x3a1469['to'](_0x3bf7a2(0x119))}]};}[_0x1c27ad(0x10e)](){const _0x5b7cd5=_0x1c27ad,_0x35f91a=new _0x21b958(this[_0x5b7cd5(0xf5)]);return _0x35f91a[_0x5b7cd5(0x105)]({'label':_0x26ac6f(this[_0x5b7cd5(0xf5)],_0x5b7cd5(0x11b)),'icon':_0x42a547}),this[_0x5b7cd5(0x103)](_0x35f91a),_0x35f91a;}[_0x1c27ad(0x103)](_0x57c213){const _0x2c6b7d=_0x1c27ad;_0x57c213['on'](_0x2c6b7d(0x128),()=>{const _0xc1dfdb=_0x2c6b7d;this[_0xc1dfdb(0x11f)](_0xc1dfdb(0x108),this['id']);});}[_0x1c27ad(0x12b)](){const _0x533bb4=_0x1c27ad,_0x3b7529=this[_0x533bb4(0x11a)],_0x4b3238=new _0x4d9f35();return _0x4b3238[_0x533bb4(0x126)]=mn[this[_0x533bb4(0x121)]],_0x4b3238[_0x533bb4(0x130)]({'attributes':{'class':[xn,_0x3b7529['if'](_0x533bb4(0x10c),_0x533bb4(0x107),_0x5d2fc7=>_0x5d2fc7)]}}),_0x4b3238;}[_0x1c27ad(0x118)](_0x4b463b,_0x48bf89){const _0xb3f53b=_0x1c27ad;if(!_0x4b463b)return;const _0x178fff=()=>{const _0x2578a4=_0x3328;_0x48bf89(),_0x4b463b[_0x2578a4(0x125)](_0x2578a4(0x117),_0x178fff),_0x4b463b[_0x2578a4(0x125)](_0x2578a4(0x100),_0x178fff);};_0x4b463b[_0xb3f53b(0x12c)](_0xb3f53b(0x117),_0x178fff),_0x4b463b[_0xb3f53b(0x12c)](_0xb3f53b(0x100),_0x178fff);}[_0x1c27ad(0xf2)](){const _0x5de3a5=_0x1c27ad,_0x593291=new _0x451ea4(_0x5de3a5(0x124));return _0x593291[_0x5de3a5(0x113)](_0x5de3a5(0x106))['to'](this,_0x5de3a5(0x10c),_0x46572e=>_0x46572e),_0x593291;}}function Tn(_0x149648){const _0x1374f3=_0x1c27ad;if(!_0x149648)return _0x149648;if(_0x149648[_0x1374f3(0x10f)]<=0x78)return _0x149648;const _0x383ff6=_0x149648[_0x1374f3(0x104)](0x0,0x78),_0x264e34=_0x383ff6[_0x1374f3(0x114)]('\x20');return(_0x264e34>0x0?_0x383ff6[_0x1374f3(0x104)](0x0,_0x264e34):_0x383ff6)+'…';}
23
+ const _0x2e038c=_0x40aa;(function(_0x12dd65,_0xbadf1){const _0x5bd752=_0x40aa,_0x318022=_0x12dd65();while(!![]){try{const _0x3f1c09=-parseInt(_0x5bd752(0xc5))/0x1+-parseInt(_0x5bd752(0xef))/0x2*(-parseInt(_0x5bd752(0x102))/0x3)+-parseInt(_0x5bd752(0xfc))/0x4+-parseInt(_0x5bd752(0xd9))/0x5*(parseInt(_0x5bd752(0xe6))/0x6)+-parseInt(_0x5bd752(0xed))/0x7*(parseInt(_0x5bd752(0x100))/0x8)+parseInt(_0x5bd752(0xf1))/0x9*(-parseInt(_0x5bd752(0xc7))/0xa)+parseInt(_0x5bd752(0xd6))/0xb*(parseInt(_0x5bd752(0xcd))/0xc);if(_0x3f1c09===_0xbadf1)break;else _0x318022['push'](_0x318022['shift']());}catch(_0xdf5cfd){_0x318022['push'](_0x318022['shift']());}}}(_0x12d8,0x7c74a));function _0x40aa(_0x56e591,_0x42cd44){const _0x12d851=_0x12d8();return _0x40aa=function(_0x40aab4,_0x496a59){_0x40aab4=_0x40aab4-0xc2;let _0x2dda2f=_0x12d851[_0x40aab4];return _0x2dda2f;},_0x40aa(_0x56e591,_0x42cd44);}import{ButtonView as _0x556218,IconView as _0x47f9ca}from'ckeditor5/src/ui.js';import{IconClose as _0x432abb,IconDocument as _0x2ce0d2,IconFileUpload as _0x1613bf,IconLink as _0x2c5b21,IconSelection as _0x4914d0}from'@ckeditor/ckeditor5-icons';function _0x12d8(){const _0x3de396=['bind','10TYFPjV','remove','small','_createLoaderIcon','disableAnimationOnEnter','extendTemplate','removeContextItemChip','tooltip','element','set','length','add','itemType','2425278wDoPlQ','document','execute','ck-ai-chat-context-chip__type-icon','isLoading','_createIconView','_isAnimationOnEnterEnabled','1676668xoigOr','lastIndexOf','30346HFshIo','setTemplate','2151549lZbLOB','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','selection','div','animationend','content','_createRemoveButton','label','span','webkitAnimationEnd','fire','2998644aVvrve','_setupRemoveButtonEvent','ck-ai-chat-context-chip','_handleAnimationEndOnce','8qztLTn','ck-ai-chat-context-controls__chip-tooltip','132NUmyLh','locale','ck-ai-chat-context-chip__label','render','_initializeProperties','uiId','ck-hidden','83309tnHzAw','_createTemplateAttributes','10zAsfES','bindTemplate','ck-ai-chat-context-chip_new-chip','addEventListener','removeEventListener','_createTemplateChildren','23545668gnxBUs','ck-ai-chat-context-chip_wide','_createLabelElement','classList','isVisible','readonly','slice','_setupTemplate','ck-ai-chat-context-chip_document','11krgVQA','type'];_0x12d8=function(){return _0x3de396;};return _0x12d8();}import{getTranslation as _0x57c993}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x16b3d5}from'../../../aicore/ui/aispinner.js';const kn={'file':_0x1613bf,'document':_0x2ce0d2,'web-resource':_0x2c5b21,'text':_0x1613bf,'selection':_0x4914d0},xn=_0x2e038c(0xfe),bn=_0x2e038c(0xce),wn=_0x2e038c(0xd5),Tn=_0x2e038c(0x104),En=_0x2e038c(0xe9),An=_0x2e038c(0x101),Cn='n';export class AIChatContextItemButtonView extends _0x556218{constructor(_0xa5d517,_0x4805b9,_0x5877ef,_0x23456a,_0x26f535=!0x1){const _0x9a4a6d=_0x2e038c;super(_0xa5d517),this[_0x9a4a6d(0xec)]=_0x23456a,this[_0x9a4a6d(0xc2)](_0x4805b9,_0x5877ef,_0x26f535),this[_0x9a4a6d(0xd4)]();}[_0x2e038c(0x105)](){const _0x3a6c9c=_0x2e038c;super[_0x3a6c9c(0x105)](),this[_0x3a6c9c(0xec)]&&this[_0x3a6c9c(0xe1)]&&(this[_0x3a6c9c(0xe1)][_0x3a6c9c(0xd0)][_0x3a6c9c(0xe4)](_0x3a6c9c(0xc9)),this[_0x3a6c9c(0xff)](this[_0x3a6c9c(0xe1)],()=>{const _0x68256=_0x3a6c9c;this[_0x68256(0xe1)]&&this[_0x68256(0xe1)][_0x68256(0xd0)][_0x68256(0xda)](_0x68256(0xc9));}));}[_0x2e038c(0xdd)](){const _0x4bd61d=_0x2e038c;this[_0x4bd61d(0xec)]=!0x1,this[_0x4bd61d(0xe1)]&&this[_0x4bd61d(0xe1)][_0x4bd61d(0xd0)][_0x4bd61d(0xda)](_0x4bd61d(0xc9));}[_0x2e038c(0xc2)](_0x51f215,_0x5104dc,_0x183fb8){const _0x58a28e=_0x2e038c;this[_0x58a28e(0xe2)](_0x58a28e(0xf8),_0x51f215[_0x58a28e(0xf8)]),this[_0x58a28e(0xe2)](_0x58a28e(0xe0),!0x0),this[_0x58a28e(0xe2)](_0x58a28e(0xe5),_0x51f215[_0x58a28e(0xd7)]),this[_0x58a28e(0xe2)]('id',_0x51f215[_0x58a28e(0xc3)]),this[_0x58a28e(0xe2)](_0x58a28e(0xd2),_0x5104dc),this[_0x58a28e(0xe2)](_0x58a28e(0xea),_0x183fb8);}[_0x2e038c(0xd4)](){const _0x1a6d96=_0x2e038c,_0x12ce41=this[_0x1a6d96(0xeb)](),_0x37696e=this[_0x1a6d96(0xf7)](),_0x43d0c9=this[_0x1a6d96(0xc8)];this[_0x1a6d96(0xf0)]({'tag':_0x1a6d96(0xf4),'attributes':this[_0x1a6d96(0xc6)](_0x43d0c9),'children':this[_0x1a6d96(0xcc)](_0x12ce41,_0x37696e,_0x43d0c9)});}[_0x2e038c(0xc6)](_0x3f7b4e){const _0x2301c1=_0x2e038c;return{'class':[xn,_0x3f7b4e['if'](_0x2301c1(0xe5),wn,_0x11dc5b=>_0x2301c1(0xe7)==_0x11dc5b),_0x3f7b4e['if'](_0x2301c1(0xe5),bn,_0x31bd7a=>_0x2301c1(0xf3)==_0x31bd7a)],'data-cke-tooltip-text':_0x3f7b4e['to'](_0x2301c1(0xf8),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2e038c(0xcc)](_0x81c2d8,_0x519d5b,_0x41cbc8){const _0x4dea50=_0x2e038c,_0x170916=this[_0x4dea50(0xcf)](_0x41cbc8),_0x44a966=this[_0x4dea50(0xdc)]();return this[_0x4dea50(0xd2)]?[_0x81c2d8,_0x170916]:[_0x81c2d8,_0x44a966,_0x170916,_0x519d5b];}[_0x2e038c(0xcf)](_0xb525c7){const _0x3409bd=_0x2e038c;return{'tag':_0x3409bd(0xf9),'attributes':{'class':Tn},'children':[{'text':_0xb525c7['to'](_0x3409bd(0xf8))}]};}[_0x2e038c(0xf7)](){const _0x721e2b=_0x2e038c,_0x29f38f=new _0x556218(this[_0x721e2b(0x103)]);return _0x29f38f[_0x721e2b(0xe2)]({'label':_0x57c993(this[_0x721e2b(0x103)],_0x721e2b(0xf2)),'icon':_0x432abb}),this[_0x721e2b(0xfd)](_0x29f38f),_0x29f38f;}[_0x2e038c(0xfd)](_0x4ed892){const _0xb8d64f=_0x2e038c;_0x4ed892['on'](_0xb8d64f(0xe8),()=>{const _0xb99ddd=_0xb8d64f;this[_0xb99ddd(0xfb)](_0xb99ddd(0xdf),this['id']);});}[_0x2e038c(0xeb)](){const _0x2c3bb3=_0x2e038c,_0x3f93ee=this[_0x2c3bb3(0xc8)],_0x1ffc09=new _0x47f9ca();return _0x1ffc09[_0x2c3bb3(0xf6)]=kn[this[_0x2c3bb3(0xe5)]],_0x1ffc09[_0x2c3bb3(0xde)]({'attributes':{'class':[En,_0x3f93ee['if'](_0x2c3bb3(0xea),_0x2c3bb3(0xc4),_0x10f320=>_0x10f320)]}}),_0x1ffc09;}[_0x2e038c(0xff)](_0x237113,_0x55b8d4){const _0xd96b3c=_0x2e038c;if(!_0x237113)return;const _0x27efa0=()=>{const _0x51710a=_0x40aa;_0x55b8d4(),_0x237113[_0x51710a(0xcb)](_0x51710a(0xf5),_0x27efa0),_0x237113[_0x51710a(0xcb)](_0x51710a(0xfa),_0x27efa0);};_0x237113[_0xd96b3c(0xca)](_0xd96b3c(0xf5),_0x27efa0),_0x237113[_0xd96b3c(0xca)](_0xd96b3c(0xfa),_0x27efa0);}[_0x2e038c(0xdc)](){const _0x1ef7bf=_0x2e038c,_0x481677=new _0x16b3d5(_0x1ef7bf(0xdb));return _0x481677[_0x1ef7bf(0xd8)](_0x1ef7bf(0xd1))['to'](this,_0x1ef7bf(0xea),_0x1cd911=>_0x1cd911),_0x481677;}}function In(_0x4add06){const _0x11bc25=_0x2e038c;if(!_0x4add06)return _0x4add06;if(_0x4add06[_0x11bc25(0xe3)]<=0x78)return _0x4add06;const _0x3b6066=_0x4add06[_0x11bc25(0xd3)](0x0,0x78),_0x3a9db2=_0x3b6066[_0x11bc25(0xee)]('\x20');return(_0x3a9db2>0x0?_0x3b6066[_0x11bc25(0xd3)](0x0,_0x3a9db2):_0x3b6066)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d020c=_0x5941;function _0x1f2a(){const _0x54108b=['form','ck-ai-chat-context-controls__url-input-section','errorText','_setupEventHandlers','302247GATVdt','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','input','submit','656fwKVJm','render','ck-labeled-field-view_empty','setTemplate','ck-button-icon\x20ck-button-back','backButton','2061635HZHkpU','keystrokes','fire','esc','focusTracker','_createUrlInputField','31503pbwbZF','refreshBalloon','forEach','91646zmwvPj','destroy','20cXTLiW','cancel','createCollection','_createBackButton','length','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','value','AI_CHAT_CONTEXT_URL_LABEL','add','ck-ai-chat-context-controls__url-form','children','clearError','5915cfkXVf','_handleSubmit','clear','AI_CHAT_CONTEXT_URL_INVALID_ERROR','focus','execute','shift+tab','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_focusables','element','submitUrl','AI_CHAT_CONTEXT_URL_ADD_URL','fieldView','isEnabled','stop','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_createConfirmButton','_updateConfirmButtonState','getValue','12WzozHL','locale','_setupKeystrokes','setError','4065831SmYPHk','trim','focusCycler','_isValidUrl','confirmButton','709482FxJALm','ck-button-icon','div','52OWlWCo','listenTo','tab','set','_setupTemplate','7dqRUil','urlInputField'];_0x1f2a=function(){return _0x54108b;};return _0x1f2a();}(function(_0x172373,_0x36cf3b){const _0x533b3a=_0x5941,_0x44ebad=_0x172373();while(!![]){try{const _0x5c3226=-parseInt(_0x533b3a(0x193))/0x1*(-parseInt(_0x533b3a(0x1ac))/0x2)+parseInt(_0x533b3a(0x1a9))/0x3*(-parseInt(_0x533b3a(0x18e))/0x4)+parseInt(_0x533b3a(0x1a3))/0x5+parseInt(_0x533b3a(0x18b))/0x6+-parseInt(_0x533b3a(0x16f))/0x7*(parseInt(_0x533b3a(0x19d))/0x8)+parseInt(_0x533b3a(0x199))/0x9*(-parseInt(_0x533b3a(0x1ae))/0xa)+-parseInt(_0x533b3a(0x186))/0xb*(parseInt(_0x533b3a(0x182))/0xc);if(_0x5c3226===_0x36cf3b)break;else _0x44ebad['push'](_0x44ebad['shift']());}catch(_0x4a8b91){_0x44ebad['push'](_0x44ebad['shift']());}}}(_0x1f2a,0x32f69));import{FocusTracker as _0xc3821,KeystrokeHandler as _0x46480c}from'ckeditor5/src/utils.js';import{ButtonView as _0x41bf67,FocusCycler as _0x365365,LabeledFieldView as _0xc6e266,View as _0x21d9e9,FormHeaderView as _0x143a69,createLabeledInputText as _0x497e38,submitHandler as _0x204621}from'ckeditor5/src/ui.js';import{IconCheck as _0x39c0f7,IconPreviousArrow as _0x57ec3a}from'@ckeditor/ckeditor5-icons';function _0x5941(_0xa72ae7,_0x11df94){const _0x1f2af1=_0x1f2a();return _0x5941=function(_0x5941a5,_0x2715e5){_0x5941a5=_0x5941a5-0x16a;let _0x2208f6=_0x1f2af1[_0x5941a5];return _0x2208f6;},_0x5941(_0xa72ae7,_0x11df94);}import{getTranslation as _0x21e79e}from'../../../aicore/utils/common-translations.js';const eh=_0x3d020c(0x16c),hh=_0x3d020c(0x196);export class AIChatContextPanelUrlInputView extends _0x21d9e9{[_0x3d020c(0x1a7)];[_0x3d020c(0x1a4)];[_0x3d020c(0x177)];[_0x3d020c(0x188)];[_0x3d020c(0x194)];[_0x3d020c(0x1a2)];[_0x3d020c(0x18a)];constructor(_0x1d9256){const _0x3c14fa=_0x3d020c;super(_0x1d9256),this[_0x3c14fa(0x1a7)]=new _0xc3821(),this[_0x3c14fa(0x1a4)]=new _0x46480c(),this[_0x3c14fa(0x1a2)]=this[_0x3c14fa(0x1b1)](),this[_0x3c14fa(0x194)]=this[_0x3c14fa(0x1a8)](),this[_0x3c14fa(0x18a)]=this[_0x3c14fa(0x17f)](),this[_0x3c14fa(0x177)]=this[_0x3c14fa(0x1b0)]([this[_0x3c14fa(0x1a2)],this[_0x3c14fa(0x194)],this[_0x3c14fa(0x18a)]]),this[_0x3c14fa(0x188)]=new _0x365365({'focusables':this[_0x3c14fa(0x177)],'focusTracker':this[_0x3c14fa(0x1a7)],'keystrokeHandler':this[_0x3c14fa(0x1a4)],'actions':{'focusPrevious':_0x3c14fa(0x175),'focusNext':_0x3c14fa(0x190)}}),this[_0x3c14fa(0x192)](),this[_0x3c14fa(0x198)](),this[_0x3c14fa(0x184)]();}[_0x3d020c(0x19e)](){const _0x32ff8f=_0x3d020c;super[_0x32ff8f(0x19e)](),this[_0x32ff8f(0x177)][_0x32ff8f(0x1ab)](_0xbb337e=>{const _0x3ed3a0=_0x32ff8f;this[_0x3ed3a0(0x1a7)][_0x3ed3a0(0x16b)](_0xbb337e[_0x3ed3a0(0x178)]),this[_0x3ed3a0(0x1a4)][_0x3ed3a0(0x18f)](_0xbb337e[_0x3ed3a0(0x178)]);}),_0x204621({'view':this}),this[_0x32ff8f(0x173)]();}[_0x3d020c(0x1ad)](){const _0xff83e0=_0x3d020c;super[_0xff83e0(0x1ad)](),this[_0xff83e0(0x1a7)][_0xff83e0(0x1ad)](),this[_0xff83e0(0x1a4)][_0xff83e0(0x1ad)]();}[_0x3d020c(0x173)](){const _0x1633e9=_0x3d020c;this[_0x1633e9(0x194)][_0x1633e9(0x173)]();}[_0x3d020c(0x181)](){const _0x3f9cbb=_0x3d020c;return this[_0x3f9cbb(0x194)][_0x3f9cbb(0x17b)][_0x3f9cbb(0x178)]?.[_0x3f9cbb(0x1b4)]?.[_0x3f9cbb(0x187)]()||'';}[_0x3d020c(0x171)](){const _0x3bd353=_0x3d020c;this[_0x3bd353(0x194)][_0x3bd353(0x17b)][_0x3bd353(0x178)][_0x3bd353(0x1b4)]='',this[_0x3bd353(0x194)][_0x3bd353(0x197)]=null,this[_0x3bd353(0x18a)][_0x3bd353(0x17c)]=!0x1;}[_0x3d020c(0x185)](_0x30814a){const _0x50879a=_0x3d020c;this[_0x50879a(0x194)][_0x50879a(0x197)]=_0x30814a,this[_0x50879a(0x180)](),this[_0x50879a(0x1a5)](_0x50879a(0x1aa));}[_0x3d020c(0x16e)](){const _0x4abf77=_0x3d020c;this[_0x4abf77(0x194)][_0x4abf77(0x197)]=null,this[_0x4abf77(0x180)]();}[_0x3d020c(0x1b1)](){const _0x50d447=_0x3d020c,_0x2c0e36=new _0x41bf67(this[_0x50d447(0x183)]);return _0x2c0e36[_0x50d447(0x191)]({'icon':_0x57ec3a,'tooltip':_0x21e79e(this[_0x50d447(0x183)],_0x50d447(0x176)),'tooltipPosition':'n','class':_0x50d447(0x1a1)}),_0x2c0e36;}[_0x3d020c(0x1a8)](){const _0x461138=_0x3d020c,_0x529426=new _0xc6e266(this[_0x461138(0x183)],_0x497e38);return _0x529426[_0x461138(0x191)]({'label':_0x21e79e(this[_0x461138(0x183)],_0x461138(0x16a)),'class':_0x461138(0x19f)}),_0x529426[_0x461138(0x17b)][_0x461138(0x191)]({'placeholder':_0x21e79e(this[_0x461138(0x183)],_0x461138(0x17e))}),_0x529426;}[_0x3d020c(0x17f)](){const _0x50902a=_0x3d020c,_0x492e08=new _0x41bf67(this[_0x50902a(0x183)]);return _0x492e08[_0x50902a(0x191)]({'icon':_0x39c0f7,'tooltip':_0x21e79e(this[_0x50902a(0x183)],_0x50902a(0x17a)),'tooltipPosition':'n','class':_0x50902a(0x18c),'type':_0x50902a(0x19c),'isEnabled':!0x1}),_0x492e08;}[_0x3d020c(0x192)](){const _0x586935=_0x3d020c,_0x5cc035=new _0x143a69(this[_0x586935(0x183)],{'label':_0x21e79e(this[_0x586935(0x183)],_0x586935(0x17a)),'class':_0x586935(0x1b3)});_0x5cc035[_0x586935(0x16d)][_0x586935(0x16b)](this[_0x586935(0x1a2)],0x0),this[_0x586935(0x1a0)]({'tag':_0x586935(0x195),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x5cc035,{'tag':_0x586935(0x18d),'attributes':{'class':hh},'children':[this[_0x586935(0x194)],this[_0x586935(0x18a)]]}]});}[_0x3d020c(0x198)](){const _0x298775=_0x3d020c;this[_0x298775(0x1a2)]['on'](_0x298775(0x174),()=>{const _0x94d92a=_0x298775;this[_0x94d92a(0x171)](),this[_0x94d92a(0x1a5)](_0x94d92a(0x1af));}),this[_0x298775(0x194)][_0x298775(0x17b)]['on'](_0x298775(0x19b),()=>{const _0x8a49d0=_0x298775;this[_0x8a49d0(0x16e)](),this[_0x8a49d0(0x180)](),this[_0x8a49d0(0x1a5)](_0x8a49d0(0x1aa));}),this['on'](_0x298775(0x19c),_0x237b7d=>{const _0x30502d=_0x298775;_0x237b7d[_0x30502d(0x17d)](),this[_0x30502d(0x170)]();});}[_0x3d020c(0x184)](){const _0x4cd8d5=_0x3d020c;this[_0x4cd8d5(0x1a4)][_0x4cd8d5(0x191)](_0x4cd8d5(0x1a6),(_0x585219,_0x484a44)=>{const _0x4cbb31=_0x4cd8d5;this[_0x4cbb31(0x171)](),this[_0x4cbb31(0x1a5)](_0x4cbb31(0x1af)),_0x484a44();});}[_0x3d020c(0x170)](){const _0x41c24d=_0x3d020c,_0x35ef11=this[_0x41c24d(0x181)]()[_0x41c24d(0x187)]();_0x35ef11?this[_0x41c24d(0x189)](_0x35ef11)?(this[_0x41c24d(0x16e)](),this[_0x41c24d(0x1a5)](_0x41c24d(0x179),_0x35ef11)):this[_0x41c24d(0x185)](_0x21e79e(this[_0x41c24d(0x183)],_0x41c24d(0x172))):this[_0x41c24d(0x185)](_0x21e79e(this[_0x41c24d(0x183)],_0x41c24d(0x19a)));}[_0x3d020c(0x180)](){const _0x52dfa5=_0x3d020c,_0x564c20=this[_0x52dfa5(0x181)]()[_0x52dfa5(0x187)](),_0x2ca0a0=!!this[_0x52dfa5(0x194)][_0x52dfa5(0x197)];this[_0x52dfa5(0x18a)][_0x52dfa5(0x17c)]=_0x564c20[_0x52dfa5(0x1b2)]>0x0&&!_0x2ca0a0;}[_0x3d020c(0x189)](_0x115171){try{return!!new URL(_0x115171);}catch{return!0x1;}}}
23
+ const _0x43a2fd=_0x5936;(function(_0x17d9e2,_0x181c6b){const _0x7a461=_0x5936,_0x186546=_0x17d9e2();while(!![]){try{const _0x15f297=-parseInt(_0x7a461(0xa2))/0x1*(parseInt(_0x7a461(0xd8))/0x2)+parseInt(_0x7a461(0xb0))/0x3*(-parseInt(_0x7a461(0xa7))/0x4)+-parseInt(_0x7a461(0xc2))/0x5*(parseInt(_0x7a461(0xd9))/0x6)+parseInt(_0x7a461(0xc0))/0x7*(parseInt(_0x7a461(0x93))/0x8)+-parseInt(_0x7a461(0xd7))/0x9+-parseInt(_0x7a461(0xb9))/0xa+parseInt(_0x7a461(0xa4))/0xb*(parseInt(_0x7a461(0xb1))/0xc);if(_0x15f297===_0x181c6b)break;else _0x186546['push'](_0x186546['shift']());}catch(_0x173de5){_0x186546['push'](_0x186546['shift']());}}}(_0x5490,0xb5fe8));import{FocusTracker as _0x555e08,KeystrokeHandler as _0x57ec9d}from'ckeditor5/src/utils.js';import{ButtonView as _0x2c6397,FocusCycler as _0x391480,LabeledFieldView as _0x57d818,View as _0x46ebf8,FormHeaderView as _0x2f8c4c,createLabeledInputText as _0x334fc1,submitHandler as _0x3a5821}from'ckeditor5/src/ui.js';import{IconCheck as _0x55fa44,IconPreviousArrow as _0x407faf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x48773a}from'../../../aicore/utils/common-translations.js';const rh=_0x43a2fd(0xc9),oh=_0x43a2fd(0x94);function _0x5936(_0x1b86c1,_0x4c5de4){const _0x5490d0=_0x5490();return _0x5936=function(_0x593683,_0x4a5ae1){_0x593683=_0x593683-0x93;let _0x3c6988=_0x5490d0[_0x593683];return _0x3c6988;},_0x5936(_0x1b86c1,_0x4c5de4);}export class AIChatContextPanelUrlInputView extends _0x46ebf8{[_0x43a2fd(0xd1)];[_0x43a2fd(0xa8)];[_0x43a2fd(0x97)];[_0x43a2fd(0x9c)];[_0x43a2fd(0xda)];[_0x43a2fd(0x96)];[_0x43a2fd(0xa9)];constructor(_0x5e41d8){const _0x205d34=_0x43a2fd;super(_0x5e41d8),this[_0x205d34(0xd1)]=new _0x555e08(),this[_0x205d34(0xa8)]=new _0x57ec9d(),this[_0x205d34(0x96)]=this[_0x205d34(0xd0)](),this[_0x205d34(0xda)]=this[_0x205d34(0xc1)](),this[_0x205d34(0xa9)]=this[_0x205d34(0xdb)](),this[_0x205d34(0x97)]=this[_0x205d34(0xb2)]([this[_0x205d34(0x96)],this[_0x205d34(0xda)],this[_0x205d34(0xa9)]]),this[_0x205d34(0x9c)]=new _0x391480({'focusables':this[_0x205d34(0x97)],'focusTracker':this[_0x205d34(0xd1)],'keystrokeHandler':this[_0x205d34(0xa8)],'actions':{'focusPrevious':_0x205d34(0xa5),'focusNext':_0x205d34(0x9b)}}),this[_0x205d34(0xaa)](),this[_0x205d34(0xab)](),this[_0x205d34(0xcb)]();}[_0x43a2fd(0xd6)](){const _0x4c2c84=_0x43a2fd;super[_0x4c2c84(0xd6)](),this[_0x4c2c84(0x97)][_0x4c2c84(0xcf)](_0x45d833=>{const _0x11dec4=_0x4c2c84;this[_0x11dec4(0xd1)][_0x11dec4(0xdd)](_0x45d833[_0x11dec4(0x9a)]),this[_0x11dec4(0xa8)][_0x11dec4(0xd2)](_0x45d833[_0x11dec4(0x9a)]);}),_0x3a5821({'view':this}),this[_0x4c2c84(0xcc)]();}[_0x43a2fd(0xc7)](){const _0x2960f7=_0x43a2fd;super[_0x2960f7(0xc7)](),this[_0x2960f7(0xd1)][_0x2960f7(0xc7)](),this[_0x2960f7(0xa8)][_0x2960f7(0xc7)]();}[_0x43a2fd(0xcc)](){const _0x1195ba=_0x43a2fd;this[_0x1195ba(0xda)][_0x1195ba(0xcc)]();}[_0x43a2fd(0xaf)](){const _0x11aa6d=_0x43a2fd;return this[_0x11aa6d(0xda)][_0x11aa6d(0x9f)][_0x11aa6d(0x9a)]?.[_0x11aa6d(0xc8)]?.[_0x11aa6d(0xc3)]()||'';}[_0x43a2fd(0x98)](){const _0x1f86a3=_0x43a2fd;this[_0x1f86a3(0xda)][_0x1f86a3(0x9f)][_0x1f86a3(0x9a)][_0x1f86a3(0xc8)]='',this[_0x1f86a3(0xda)][_0x1f86a3(0x99)]=null,this[_0x1f86a3(0xa9)][_0x1f86a3(0xd4)]=!0x1;}[_0x43a2fd(0xbc)](_0xc42abd){const _0x7ca19f=_0x43a2fd;this[_0x7ca19f(0xda)][_0x7ca19f(0x99)]=_0xc42abd,this[_0x7ca19f(0xb3)](),this[_0x7ca19f(0xcd)](_0x7ca19f(0xc6));}[_0x43a2fd(0xa3)](){const _0x376e93=_0x43a2fd;this[_0x376e93(0xda)][_0x376e93(0x99)]=null,this[_0x376e93(0xb3)]();}[_0x43a2fd(0xd0)](){const _0x284e35=_0x43a2fd,_0x32e516=new _0x2c6397(this[_0x284e35(0xb7)]);return _0x32e516[_0x284e35(0xbb)]({'icon':_0x407faf,'tooltip':_0x48773a(this[_0x284e35(0xb7)],_0x284e35(0xba)),'tooltipPosition':'n','class':_0x284e35(0xbf)}),_0x32e516;}[_0x43a2fd(0xc1)](){const _0x58703c=_0x43a2fd,_0x391cc2=new _0x57d818(this[_0x58703c(0xb7)],_0x334fc1);return _0x391cc2[_0x58703c(0xbb)]({'label':_0x48773a(this[_0x58703c(0xb7)],_0x58703c(0x9e)),'class':_0x58703c(0xb6)}),_0x391cc2[_0x58703c(0x9f)][_0x58703c(0xbb)]({'placeholder':_0x48773a(this[_0x58703c(0xb7)],_0x58703c(0xd5))}),_0x391cc2;}[_0x43a2fd(0xdb)](){const _0x54a692=_0x43a2fd,_0x4da41=new _0x2c6397(this[_0x54a692(0xb7)]);return _0x4da41[_0x54a692(0xbb)]({'icon':_0x55fa44,'tooltip':_0x48773a(this[_0x54a692(0xb7)],_0x54a692(0xa1)),'tooltipPosition':'n','class':_0x54a692(0xa6),'type':_0x54a692(0xc5),'isEnabled':!0x1}),_0x4da41;}[_0x43a2fd(0xaa)](){const _0x5c0d10=_0x43a2fd,_0x43784f=new _0x2f8c4c(this[_0x5c0d10(0xb7)],{'label':_0x48773a(this[_0x5c0d10(0xb7)],_0x5c0d10(0xa1)),'class':_0x5c0d10(0x9d)});_0x43784f[_0x5c0d10(0xbe)][_0x5c0d10(0xdd)](this[_0x5c0d10(0x96)],0x0),this[_0x5c0d10(0xb8)]({'tag':_0x5c0d10(0xae),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x43784f,{'tag':_0x5c0d10(0xb4),'attributes':{'class':oh},'children':[this[_0x5c0d10(0xda)],this[_0x5c0d10(0xa9)]]}]});}[_0x43a2fd(0xab)](){const _0x14adff=_0x43a2fd;this[_0x14adff(0x96)]['on'](_0x14adff(0xa0),()=>{const _0x2ae7d8=_0x14adff;this[_0x2ae7d8(0x98)](),this[_0x2ae7d8(0xcd)](_0x2ae7d8(0xb5));}),this[_0x14adff(0xda)][_0x14adff(0x9f)]['on'](_0x14adff(0xce),()=>{const _0x496758=_0x14adff;this[_0x496758(0xa3)](),this[_0x496758(0xb3)](),this[_0x496758(0xcd)](_0x496758(0xc6));}),this['on'](_0x14adff(0xc5),_0x49dc12=>{const _0x4b58cb=_0x14adff;_0x49dc12[_0x4b58cb(0xd3)](),this[_0x4b58cb(0xdc)]();});}[_0x43a2fd(0xcb)](){const _0x56241a=_0x43a2fd;this[_0x56241a(0xa8)][_0x56241a(0xbb)](_0x56241a(0xbd),(_0x5d9dad,_0x22d1d7)=>{const _0x556083=_0x56241a;this[_0x556083(0x98)](),this[_0x556083(0xcd)](_0x556083(0xb5)),_0x22d1d7();});}[_0x43a2fd(0xdc)](){const _0x2b2411=_0x43a2fd,_0x4dcc60=this[_0x2b2411(0xaf)]()[_0x2b2411(0xc3)]();_0x4dcc60?this[_0x2b2411(0xac)](_0x4dcc60)?(this[_0x2b2411(0xa3)](),this[_0x2b2411(0xcd)](_0x2b2411(0xad),_0x4dcc60)):this[_0x2b2411(0xbc)](_0x48773a(this[_0x2b2411(0xb7)],_0x2b2411(0x95))):this[_0x2b2411(0xbc)](_0x48773a(this[_0x2b2411(0xb7)],_0x2b2411(0xca)));}[_0x43a2fd(0xb3)](){const _0x3231ab=_0x43a2fd,_0x442898=this[_0x3231ab(0xaf)]()[_0x3231ab(0xc3)](),_0x3abc29=!!this[_0x3231ab(0xda)][_0x3231ab(0x99)];this[_0x3231ab(0xa9)][_0x3231ab(0xd4)]=_0x442898[_0x3231ab(0xc4)]>0x0&&!_0x3abc29;}[_0x43a2fd(0xac)](_0x192cac){try{return!!new URL(_0x192cac);}catch{return!0x1;}}}function _0x5490(){const _0x281f2c=['319GIPMnE','shift+tab','ck-button-icon','228qcLmdH','keystrokes','confirmButton','_setupTemplate','_setupEventHandlers','_isValidUrl','submitUrl','form','getValue','71280EjMkPh','1727556QZsicJ','createCollection','_updateConfirmButtonState','div','cancel','ck-labeled-field-view_empty','locale','setTemplate','14683280ztDDeM','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','set','setError','esc','children','ck-button-icon\x20ck-button-back','7uulwLp','_createUrlInputField','3355awLBbK','trim','length','submit','refreshBalloon','destroy','value','ck-ai-chat-context-controls__url-form','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_setupKeystrokes','focus','fire','input','forEach','_createBackButton','focusTracker','listenTo','stop','isEnabled','AI_CHAT_CONTEXT_URL_PLACEHOLDER','render','2585799IMeYPb','4weSOfm','9480KBHIcT','urlInputField','_createConfirmButton','_handleSubmit','add','6982208PYoJyB','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_INVALID_ERROR','backButton','_focusables','clear','errorText','element','tab','focusCycler','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_LABEL','fieldView','execute','AI_CHAT_CONTEXT_URL_ADD_URL','66058YMWJfH','clearError'];_0x5490=function(){return _0x281f2c;};return _0x5490();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34cbe6=_0x4498;function _0x2a99(){const _0x40b1eb=['bodyCollection','ck-ai-chat-context-controls','_urlInputView','conversation','southArrowNorthWest','addFileToContext','source','ck-ai-chat-context-controls__balloon-button','northArrowSouthEast','refreshBalloon','addContextButtonView','overflowChips','_setupTemplate','ck-ai-chat-controls-button','locale','fire','southArrowNorthEast','balloonView','focus','content','element','_addContextBalloonPanelView','setContextItemLoading','submitUrl','addUrlToContext','__arrow','_handleAddContextButtonClick','isEnabled','_resourcesBalloonView','label','defaultPositions','children','done','setTemplate','setAddContextOptions','southArrowNorth','set','_createUrlBalloonPanelView','showSourceResourcesBalloon','_createBaseBalloonPanel','AI_CHAT_CONTEXT_URL_LABEL','document','type','_createContextButton','_toggleAddContextBalloon','16XtePJW','removeContextItemChip','_createAddContextBalloonPanelView','_createBalloonButton','_addUrlContent','isAnyResourceBalloonVisible','_currentContextsChips','execute','closest','isLoading','_setBalloonPanelContent','hideUrlBalloonPanel','showAddContextBalloonPanel','find','addResourceToContext','buttonView','ck-ai-chat-controls_context_show-more-button','clear','ck-ai-chat','updateResourceState','clearConversationContextItems','_bindEventHandlers','_handleUrlSubmit','sources','_createResourcesBalloonView','6656184ttEvCx','ck-reset_all-excluded','cancel','14hnSVYf','setConversationContext','69730bLqEaA','loadSourceResources','enabled','ck-ai-chat-context-controls__pending-contexts','711PeBHcF','isVisible','ck-ai-chat-context-controls__show-more-balloon-panel','hide','_getLimiterElement','ck-ai-chat-context-controls__balloon-button-source','isOn','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-chips-wrapper-balloon','removeContextItem','setContainerElement','populateSourceResourceBalloon','96862EjZFUP','ck-ai-chat-context-controls__url-balloon-panel','tooltip','northArrowSouth','remove','_createArrowView','6046821GaktGZ','current','_showSourceResourcesBalloon','showUrlBalloonPanel','hideAddContextBalloonPanel','isHidden','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','body','urls','8QMrNAj','_conversationContextsChips','6747140lriVuq','_addContextBalloonConfig','menuitem','_overflowManager','extendTemplate','reorganizeChips','pin','northArrowSouthWest','arrowView','destroy','_createAddContextButtonView','ck-ai-chat-context-controls__add-context-balloon-panel','createCollection','addDocumentToContext','clearCurrentContextItems','closeSourceResourceBalloon','AI_CHAT_CONTEXT_FILE_LABEL','_setAddContextButtonEnabled','10878896aEUOSy','_urlBalloonPanelView','addContextItem','ck-ai-chat-context-controls__add-context-button','files','_removeContextFromCollection','_setupAllBalloonClickOutsideHandlers','render','_setupUrlBalloonClickOutsideHandler','div','_addContextToCollection','icon','1131459VZEhHW','show','isReadOnly','AI_CHAT_CONTEXT_ADD_CONTEXT','add','bind'];_0x2a99=function(){return _0x40b1eb;};return _0x2a99();}(function(_0x202cd5,_0x1aa023){const _0x7bdb17=_0x4498,_0x5df414=_0x202cd5();while(!![]){try{const _0x22f0e5=-parseInt(_0x7bdb17(0x1fe))/0x1*(-parseInt(_0x7bdb17(0x210))/0x2)+-parseInt(_0x7bdb17(0x23f))/0x3*(parseInt(_0x7bdb17(0x1e2))/0x4)+parseInt(_0x7bdb17(0x221))/0x5+-parseInt(_0x7bdb17(0x1fb))/0x6+-parseInt(_0x7bdb17(0x233))/0x7*(-parseInt(_0x7bdb17(0x21f))/0x8)+-parseInt(_0x7bdb17(0x204))/0x9*(-parseInt(_0x7bdb17(0x200))/0xa)+-parseInt(_0x7bdb17(0x216))/0xb;if(_0x22f0e5===_0x1aa023)break;else _0x5df414['push'](_0x5df414['shift']());}catch(_0x415fdd){_0x5df414['push'](_0x5df414['shift']());}}}(_0x2a99,0xeb8a2));function _0x4498(_0x3cbcd7,_0x3f4277){const _0x2a995e=_0x2a99();return _0x4498=function(_0x449823,_0x1e684b){_0x449823=_0x449823-0x1b6;let _0x4cb3a2=_0x2a995e[_0x449823];return _0x4cb3a2;},_0x4498(_0x3cbcd7,_0x3f4277);}import{BalloonPanelView as _0x10e7f5,ButtonView as _0x586562,clickOutsideHandler as _0x3bc392,FileDialogButtonView as _0x1721e2,IconView as _0x4d10cf,View as _0x1384c2}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3abdc6,IconDocument as _0x24c9c6,IconDocumentOutline as _0x1544b9,IconDropdownArrow as _0x5ecd7c,IconLink as _0x2667f0,IconPaperClip as _0x256e27}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x3b1f6d}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x57bde9}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2c13e0}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x117226}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2a47b8}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x34cbe6(0x22e),_0x34cbe6(0x1ba),_0x34cbe6(0x1cd),_0x34cbe6(0x1f0),_0x34cbe6(0x20d),_0x34cbe6(0x201)];const bo=_0x34cbe6(0x1b6),To=_0x34cbe6(0x203),Ao=_0x34cbe6(0x22c),ko=_0x34cbe6(0x236),Eo=_0x34cbe6(0x211),vo=_0x34cbe6(0x1bc),go=_0x34cbe6(0x209),Vo=_0x34cbe6(0x1c2),fo=_0x34cbe6(0x20c),Io=_0x34cbe6(0x1f2),Po=_0x34cbe6(0x206),Ro=_0x34cbe6(0x1f4),So=[_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x228)],_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x213)],_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x1bd)],_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x1b9)],_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x1d8)],_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x1c5)]];export class AIChatContextPanelView extends _0x1384c2{[_0x34cbe6(0x1bf)];[_0x34cbe6(0x1e8)]=this[_0x34cbe6(0x22d)]();[_0x34cbe6(0x220)]=this[_0x34cbe6(0x22d)]();[_0x34cbe6(0x224)];[_0x34cbe6(0x1ca)];[_0x34cbe6(0x234)];[_0x34cbe6(0x1b7)];[_0x34cbe6(0x1d1)];[_0x34cbe6(0x222)];[_0x34cbe6(0x245)];constructor(_0x2f8b59,_0x562c34){const _0x931278=_0x34cbe6;super(_0x2f8b59),this[_0x931278(0x245)]=_0x562c34,this[_0x931278(0x1e8)]=this[_0x931278(0x22d)](),this[_0x931278(0x220)]=this[_0x931278(0x22d)](),this[_0x931278(0x1bf)]=this[_0x931278(0x22b)](_0x2f8b59),this[_0x931278(0x1ca)]=this[_0x931278(0x1e4)](_0x2f8b59),this[_0x931278(0x234)]=this[_0x931278(0x1da)](_0x2f8b59),this[_0x931278(0x1d1)]=this[_0x931278(0x1fa)](_0x2f8b59,_0x562c34);const _0x5f5afd={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x931278(0x224)]=new _0x2c13e0(_0x2f8b59,this[_0x931278(0x1e8)],_0x5f5afd,this[_0x931278(0x245)],this),this[_0x931278(0x222)]={'buttonView':this[_0x931278(0x1bf)],'balloonView':this[_0x931278(0x1ca)],'hideMethod':this[_0x931278(0x21a)][_0x931278(0x244)](this),'showMethod':this[_0x931278(0x1ee)][_0x931278(0x244)](this)},this[_0x931278(0x1c1)](),this[_0x931278(0x1f7)]();}[_0x34cbe6(0x23a)](){const _0x31ad22=_0x34cbe6;super[_0x31ad22(0x23a)](),this[_0x31ad22(0x239)](),this[_0x31ad22(0x224)][_0x31ad22(0x20e)](this[_0x31ad22(0x1c9)]),this[_0x31ad22(0x224)][_0x31ad22(0x226)]();}[_0x34cbe6(0x22a)](){const _0x5a449e=_0x34cbe6;super[_0x5a449e(0x22a)](),this[_0x5a449e(0x224)][_0x5a449e(0x22a)](),this[_0x5a449e(0x1d1)][_0x5a449e(0x22a)]();}[_0x34cbe6(0x235)](_0x3652b7,_0x2ef2ab){const _0x204c27=_0x34cbe6,_0x50fe73=this[_0x204c27(0x1e0)](_0x3652b7,_0x204c27(0x217),!0x0,_0x2ef2ab);this[_0x204c27(0x23d)](_0x50fe73,this[_0x204c27(0x1e8)]),this[_0x204c27(0x224)][_0x204c27(0x226)]();}[_0x34cbe6(0x20d)](_0x29fa9f){const _0x31eb43=_0x34cbe6;this[_0x31eb43(0x238)](_0x29fa9f,this[_0x31eb43(0x1e8)]),this[_0x31eb43(0x238)](_0x29fa9f,this[_0x31eb43(0x224)][_0x31eb43(0x1c0)]),this[_0x31eb43(0x224)][_0x31eb43(0x226)]();}[_0x34cbe6(0x1cb)](_0x4aa0a2,_0x81003c){const _0x40cf1a=_0x34cbe6;let _0x29e309=this[_0x40cf1a(0x1e8)][_0x40cf1a(0x1ef)](_0x3a2230=>_0x3a2230['id']===_0x4aa0a2);_0x29e309||(_0x29e309=this[_0x40cf1a(0x224)][_0x40cf1a(0x1c0)][_0x40cf1a(0x1ef)](_0x1a036d=>_0x1a036d['id']===_0x4aa0a2)),_0x29e309&&(_0x29e309[_0x40cf1a(0x1eb)]=_0x81003c);}[_0x34cbe6(0x1ff)](_0x56dcd5){const _0x2a932c=_0x34cbe6;this[_0x2a932c(0x220)][_0x2a932c(0x1f3)]();for(const _0xa0141b of _0x56dcd5){const _0x1c0e47=this[_0x2a932c(0x1e0)](_0xa0141b,_0x2a932c(0x1b8),!0x1,!0x1);this[_0x2a932c(0x23d)](_0x1c0e47,this[_0x2a932c(0x220)]);}}[_0x34cbe6(0x22f)](){const _0x3399e0=_0x34cbe6;this[_0x3399e0(0x1e8)][_0x3399e0(0x1f3)](),this[_0x3399e0(0x224)][_0x3399e0(0x1f3)]();}[_0x34cbe6(0x1f6)](){const _0x16bb73=_0x34cbe6;this[_0x16bb73(0x220)][_0x16bb73(0x1f3)]();}[_0x34cbe6(0x1f5)](_0xfc0a8e,_0x3b2177,_0x19e48b){const _0x187c1c=_0x34cbe6;this[_0x187c1c(0x1d1)][_0x187c1c(0x1f5)](_0xfc0a8e,_0x3b2177,_0x19e48b);}[_0x34cbe6(0x21a)](){const _0x185f2f=_0x34cbe6;this[_0x185f2f(0x1e1)](!0x1);}[_0x34cbe6(0x1ee)](){const _0x53fe19=_0x34cbe6;this[_0x53fe19(0x1e1)](!0x0);}[_0x34cbe6(0x1ed)](){const _0x590674=_0x34cbe6;this[_0x590674(0x234)][_0x590674(0x207)](),this[_0x590674(0x1bf)][_0x590674(0x20a)]=!0x1,this[_0x590674(0x1b7)]&&this[_0x590674(0x1b7)][_0x590674(0x1f3)]();}[_0x34cbe6(0x219)](){const _0x2420ea=_0x34cbe6;this[_0x2420ea(0x234)][_0x2420ea(0x240)](),this[_0x2420ea(0x1bf)][_0x2420ea(0x20a)]=!0x0;}[_0x34cbe6(0x218)](_0x59a7f0){const _0xabedba=_0x34cbe6;this[_0xabedba(0x1d1)][_0xabedba(0x1db)](_0x59a7f0),this[_0xabedba(0x1bf)][_0xabedba(0x20a)]=!0x0;}[_0x34cbe6(0x20f)](_0x1f03ce,_0x235631,_0x2e0cd9,_0x462dd9){const _0x62c6ee=_0x34cbe6;this[_0x62c6ee(0x1d1)][_0x62c6ee(0x20f)](_0x1f03ce,_0x2e0cd9,_0x462dd9);}[_0x34cbe6(0x230)](_0x54b2b4){const _0x206d0e=_0x34cbe6;this[_0x206d0e(0x1d1)][_0x206d0e(0x230)](_0x54b2b4),this[_0x206d0e(0x1bf)][_0x206d0e(0x20a)]=!0x1;}[_0x34cbe6(0x1d7)](_0x464746){const _0x1d2053=_0x34cbe6;this[_0x1d2053(0x1ec)](this[_0x1d2053(0x1ca)],this[_0x1d2053(0x1c3)],_0x464746),this[_0x1d2053(0x232)](_0x464746);}[_0x34cbe6(0x232)](_0x292e1e){const _0x42875c=_0x34cbe6,_0x5b4167=!_0x292e1e[_0x42875c(0x1de)][_0x42875c(0x21b)]&&_0x292e1e[_0x42875c(0x1de)][_0x42875c(0x202)],_0x3dabe9=_0x292e1e[_0x42875c(0x21e)][_0x42875c(0x202)],_0x498b89=_0x292e1e[_0x42875c(0x237)][_0x42875c(0x202)];this[_0x42875c(0x1bf)][_0x42875c(0x1d0)]=_0x5b4167||_0x3dabe9||_0x498b89;}[_0x34cbe6(0x1c1)](){const _0x59abf6=_0x34cbe6;this[_0x59abf6(0x1d6)]({'tag':_0x59abf6(0x23c),'attributes':{'class':[bo,_0x59abf6(0x1fc)]},'children':[{'tag':_0x59abf6(0x23c),'attributes':{'class':To},'children':this[_0x59abf6(0x1e8)]}]});}[_0x34cbe6(0x1f7)](){const _0x1d2a1b=_0x34cbe6;this[_0x1d2a1b(0x1bf)]['on'](_0x1d2a1b(0x1e9),()=>{const _0x5243e1=_0x1d2a1b;this[_0x5243e1(0x1cf)]();});}[_0x34cbe6(0x22b)](_0x17298c){const _0x2d88ca=_0x34cbe6,_0x82ab88=new _0x586562(_0x17298c);return _0x82ab88[_0x2d88ca(0x1d9)]({'label':_0x117226(_0x17298c,_0x2d88ca(0x242)),'class':Vo+'\x20'+ko,'icon':_0x256e27,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x82ab88;}[_0x34cbe6(0x1e4)](_0x3ddbd2){const _0x52bd8e=_0x34cbe6;return this[_0x52bd8e(0x1dc)](_0x3ddbd2,Ao);}[_0x34cbe6(0x1da)](_0x36d0db){const _0xdb6533=_0x34cbe6,_0x1576c3=this[_0xdb6533(0x1dc)](_0x36d0db,Eo);return this[_0xdb6533(0x1e6)](_0x1576c3,_0x36d0db),_0x1576c3;}[_0x34cbe6(0x1fa)](_0x58d3d2,_0x1bafa1){const _0x14c4b7=_0x34cbe6;return new _0x2a47b8(_0x58d3d2,_0x1bafa1,{'onBackToContext':()=>{const _0x346d7a=_0x4498;this[_0x346d7a(0x1ee)](),this[_0x346d7a(0x1ca)][_0x346d7a(0x227)]({'target':this[_0x346d7a(0x1bf)][_0x346d7a(0x1c9)],'limiter':this[_0x346d7a(0x208)](),'positions':So});},'onResourceSelected':(_0x4ea88d,_0x32368a)=>{const _0x4a131c=_0x4498;this[_0x4a131c(0x1c4)](_0x4a131c(0x1f0),{'source':_0x4ea88d,'resource':_0x32368a});},'onLoadSourceResources':_0x3c96de=>{const _0x3de4ce=_0x4498;this[_0x3de4ce(0x1c4)](_0x3de4ce(0x201),_0x3c96de);},'onBalloonClosed':()=>{const _0x4c5c8b=_0x4498;this[_0x4c5c8b(0x1bf)][_0x4c5c8b(0x20a)]=!0x1;},'getLimiterElement':()=>this[_0x14c4b7(0x208)](),'getTargetElement':()=>this[_0x14c4b7(0x1bf)][_0x14c4b7(0x1c9)]});}[_0x34cbe6(0x208)](){const _0x28a920=_0x34cbe6;return this[_0x28a920(0x1c9)]?.[_0x28a920(0x1ea)]('.'+Ro)||document[_0x28a920(0x21d)];}[_0x34cbe6(0x1dc)](_0x2f5317,_0x17d15c){const _0x3da32a=_0x34cbe6,_0x9d623b=new _0x10e7f5(_0x2f5317);return _0x9d623b[_0x3da32a(0x225)]({'attributes':{'class':_0x17d15c}}),this[_0x3da32a(0x245)][_0x3da32a(0x243)](_0x9d623b),_0x9d623b;}[_0x34cbe6(0x1ec)](_0x2d70c2,_0x5849cb,_0xbde76d){const _0x185c23=_0x34cbe6;if(_0x2d70c2[_0x185c23(0x1c8)][_0x185c23(0x1f3)](),!_0xbde76d[_0x185c23(0x1de)][_0x185c23(0x21b)]&&_0xbde76d[_0x185c23(0x1de)][_0x185c23(0x202)]){const _0x536a40=this[_0x185c23(0x1e5)](_0x5849cb,{'label':_0x117226(_0x5849cb,_0x185c23(0x21c)),'icon':_0x24c9c6});_0x536a40['on'](_0x185c23(0x1e9),()=>{const _0x36ae35=_0x185c23;this[_0x36ae35(0x1c4)](_0x36ae35(0x22e)),this[_0x36ae35(0x21a)]();}),_0x2d70c2[_0x185c23(0x1c8)][_0x185c23(0x243)](_0x536a40);}if(_0xbde76d[_0x185c23(0x21e)][_0x185c23(0x202)]){const _0x5bb3b5=this[_0x185c23(0x1e5)](_0x5849cb,{'label':_0x117226(_0x5849cb,_0x185c23(0x1dd)),'icon':_0x2667f0});_0x5bb3b5['on'](_0x185c23(0x1e9),()=>{const _0x1ecdb8=_0x185c23;this[_0x1ecdb8(0x21a)](),this[_0x1ecdb8(0x219)](),this[_0x1ecdb8(0x234)][_0x1ecdb8(0x227)]({'target':this[_0x1ecdb8(0x1bf)][_0x1ecdb8(0x1c9)],'limiter':this[_0x1ecdb8(0x208)](),'positions':So}),this[_0x1ecdb8(0x1b7)][_0x1ecdb8(0x1c7)]();}),_0x2d70c2[_0x185c23(0x1c8)][_0x185c23(0x243)](_0x5bb3b5);}if(_0xbde76d[_0x185c23(0x237)][_0x185c23(0x202)]){const _0xd5031d=new _0x1721e2(_0x5849cb);_0xd5031d[_0x185c23(0x1d9)]({'label':_0x117226(_0x5849cb,_0x185c23(0x231)),'icon':_0x3abdc6,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0xd5031d['on'](_0x185c23(0x1d5),(_0x28c2a5,_0x395349)=>{const _0x4c563d=_0x185c23;this[_0x4c563d(0x1c4)](_0x4c563d(0x1ba),_0x395349),this[_0x4c563d(0x21a)]();}),_0xd5031d[_0x185c23(0x212)]=!0x0,_0x2d70c2[_0x185c23(0x1c8)][_0x185c23(0x243)](_0xd5031d);}for(const _0x1af35b of _0xbde76d[_0x185c23(0x1f9)]){const _0x23d49d=this[_0x185c23(0x1e5)](_0x5849cb,{'label':_0x1af35b[_0x185c23(0x1d2)],'icon':_0x1af35b[_0x185c23(0x23e)]||_0x1544b9,'type':_0x185c23(0x1bb)});_0x2d70c2[_0x185c23(0x1c8)][_0x185c23(0x243)](_0x23d49d),_0x23d49d['on'](_0x185c23(0x1e9),()=>{const _0x482e90=_0x185c23;this[_0x482e90(0x21a)](),this[_0x482e90(0x218)](_0x1af35b);});}}[_0x34cbe6(0x1e6)](_0x13cf41,_0x11737a){const _0x8599cf=_0x34cbe6;this[_0x8599cf(0x1b7)]=new _0x57bde9(_0x11737a),this[_0x8599cf(0x1b7)]['on'](_0x8599cf(0x1cc),(_0x31dd4f,_0xd585a0)=>{const _0x239a61=_0x8599cf;this[_0x239a61(0x1f8)](_0xd585a0);}),this[_0x8599cf(0x1b7)]['on'](_0x8599cf(0x1fd),()=>{const _0x56182d=_0x8599cf;this[_0x56182d(0x1ed)](),this[_0x56182d(0x1ee)](),this[_0x56182d(0x1ca)][_0x56182d(0x227)]({'target':this[_0x56182d(0x1bf)][_0x56182d(0x1c9)],'limiter':this[_0x56182d(0x208)](),'positions':So});}),this[_0x8599cf(0x1b7)]['on'](_0x8599cf(0x1be),()=>{const _0x122fdd=_0x8599cf;this[_0x122fdd(0x234)][_0x122fdd(0x205)]&&this[_0x122fdd(0x234)][_0x122fdd(0x227)]({'target':this[_0x122fdd(0x1bf)][_0x122fdd(0x1c9)],'limiter':this[_0x122fdd(0x208)](),'positions':So});}),_0x13cf41[_0x8599cf(0x1c8)][_0x8599cf(0x243)](this[_0x8599cf(0x1b7)]);}[_0x34cbe6(0x1e5)](_0x4f90e1,_0x615d8f){const _0x1cca1d=_0x34cbe6,_0x25ab7f=_0x1cca1d(0x1bb)===_0x615d8f[_0x1cca1d(0x1df)]?new SourcesBalloonButtonView(_0x4f90e1):new _0x586562(_0x4f90e1);return _0x25ab7f[_0x1cca1d(0x1d9)]({'label':_0x615d8f[_0x1cca1d(0x1d2)],'icon':_0x615d8f[_0x1cca1d(0x23e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x25ab7f;}[_0x34cbe6(0x239)](){const _0x5bc383=_0x34cbe6;this[_0x5bc383(0x20b)](),this[_0x5bc383(0x23b)]();}[_0x34cbe6(0x23b)](){const _0x4f3b59=_0x34cbe6;_0x3bc392({'emitter':this[_0x4f3b59(0x234)],'contextElements':[this[_0x4f3b59(0x234)][_0x4f3b59(0x1c9)]],'callback':()=>{const _0x115131=_0x4f3b59;this[_0x115131(0x1ed)]();},'activator':()=>this[_0x4f3b59(0x234)][_0x4f3b59(0x205)]});}[_0x34cbe6(0x1e1)](_0x50b1ef){const _0x1d66bb=_0x34cbe6,_0x8fa729=this[_0x1d66bb(0x222)];_0x8fa729[_0x1d66bb(0x1f1)][_0x1d66bb(0x20a)]=_0x50b1ef,_0x50b1ef?_0x8fa729[_0x1d66bb(0x1c6)][_0x1d66bb(0x240)]():_0x8fa729[_0x1d66bb(0x1c6)][_0x1d66bb(0x207)]();}[_0x34cbe6(0x20b)](){const _0x3c16c1=_0x34cbe6,{balloonView:_0x2846e1,buttonView:_0x1f3e0c,hideMethod:_0x36d6ea}=this[_0x3c16c1(0x222)];_0x3bc392({'emitter':_0x2846e1,'contextElements':[_0x2846e1[_0x3c16c1(0x1c9)],_0x1f3e0c[_0x3c16c1(0x1c9)]],'callback':()=>{_0x36d6ea();},'activator':()=>_0x1f3e0c[_0x3c16c1(0x20a)]&&!this[_0x3c16c1(0x234)][_0x3c16c1(0x205)]&&!this[_0x3c16c1(0x1d1)][_0x3c16c1(0x1e7)]()});}[_0x34cbe6(0x1e0)](_0x5d8122,_0x3667df,_0x37f1a9=!0x1,_0x187196=!0x1){const _0x122541=_0x34cbe6,_0x49a0b6=_0x122541(0x1b8)===_0x3667df||!0x0===_0x5d8122[_0x122541(0x241)],_0x578337=new _0x3b1f6d(this[_0x122541(0x1c3)],_0x5d8122,_0x49a0b6,_0x37f1a9,_0x187196);return _0x49a0b6||_0x578337['on'](_0x122541(0x1e3),()=>{const _0x5ea3c4=_0x122541;this[_0x5ea3c4(0x1c4)](_0x5ea3c4(0x20d),_0x578337['id']);}),_0x578337;}[_0x34cbe6(0x23d)](_0x4ef329,_0xcfdb8b){const _0x146dea=_0x34cbe6;_0xcfdb8b[_0x146dea(0x243)](_0x4ef329,0x0);}[_0x34cbe6(0x238)](_0x3f0f4d,_0xec7837){const _0x3518db=_0x34cbe6,_0x2c3392=_0xec7837[_0x3518db(0x1ef)](_0x305a99=>_0x305a99['id']===_0x3f0f4d);_0x2c3392&&_0xec7837[_0x3518db(0x214)](_0x2c3392);}[_0x34cbe6(0x1cf)](){const _0xf68163=_0x34cbe6;this[_0xf68163(0x1bf)][_0xf68163(0x20a)]?this[_0xf68163(0x21a)]():(this[_0xf68163(0x1ee)](),this[_0xf68163(0x1ca)][_0xf68163(0x227)]({'target':this[_0xf68163(0x1bf)][_0xf68163(0x1c9)],'limiter':this[_0xf68163(0x208)](),'positions':So}));}[_0x34cbe6(0x1f8)](_0x1f676c){const _0x47618c=_0x34cbe6;this[_0x47618c(0x1b7)][_0x47618c(0x1f3)](),this[_0x47618c(0x1ed)](),this[_0x47618c(0x1c4)](_0x47618c(0x1cd),_0x1f676c);}}export class SourcesBalloonButtonView extends _0x586562{[_0x34cbe6(0x229)];constructor(_0x529378){const _0x48c1a4=_0x34cbe6;super(_0x529378),this[_0x48c1a4(0x1d9)]({'withText':!0x0,'role':_0x48c1a4(0x223)}),this[_0x48c1a4(0x229)]=this[_0x48c1a4(0x215)](),this[_0x48c1a4(0x225)]({'attributes':{'class':[go]}});}[_0x34cbe6(0x23a)](){const _0x6e57d4=_0x34cbe6;super[_0x6e57d4(0x23a)](),this[_0x6e57d4(0x1d4)][_0x6e57d4(0x243)](this[_0x6e57d4(0x229)]);}[_0x34cbe6(0x215)](){const _0x23333c=_0x34cbe6,_0x52764c=new _0x4d10cf();return _0x52764c[_0x23333c(0x1c8)]=_0x5ecd7c,_0x52764c[_0x23333c(0x225)]({'attributes':{'class':go+_0x23333c(0x1ce)}}),_0x52764c;}}
23
+ const _0x19d5cf=_0x19d7;(function(_0x481392,_0x176901){const _0x306e50=_0x19d7,_0x59cf60=_0x481392();while(!![]){try{const _0x1c15eb=-parseInt(_0x306e50(0x197))/0x1+-parseInt(_0x306e50(0x1e3))/0x2+parseInt(_0x306e50(0x1bc))/0x3+-parseInt(_0x306e50(0x194))/0x4+-parseInt(_0x306e50(0x195))/0x5*(parseInt(_0x306e50(0x1df))/0x6)+-parseInt(_0x306e50(0x1c9))/0x7*(-parseInt(_0x306e50(0x20b))/0x8)+-parseInt(_0x306e50(0x1bd))/0x9*(-parseInt(_0x306e50(0x1f3))/0xa);if(_0x1c15eb===_0x176901)break;else _0x59cf60['push'](_0x59cf60['shift']());}catch(_0x2504b8){_0x59cf60['push'](_0x59cf60['shift']());}}}(_0x5cad,0x38b96));import{BalloonPanelView as _0x5ba009,ButtonView as _0x1a69a5,clickOutsideHandler as _0x4e344e,FileDialogButtonView as _0x1aa42d,IconView as _0x1e9b06,View as _0x37febe}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1e54e6,IconDocument as _0x50884a,IconDocumentOutline as _0x82fc53,IconDropdownArrow as _0x52fdbc,IconLink as _0x4a9546,IconPaperClip as _0x5bd2ef}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fdbd2}from'./aichatcontextitembuttonview.js';function _0x19d7(_0x545330,_0x388296){const _0x5cad40=_0x5cad();return _0x19d7=function(_0x19d7ab,_0x19570b){_0x19d7ab=_0x19d7ab-0x182;let _0x2bab91=_0x5cad40[_0x19d7ab];return _0x2bab91;},_0x19d7(_0x545330,_0x388296);}import{AIChatContextPanelUrlInputView as _0x13a8f3}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xf11c38}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x513eb1}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x446091}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x19d5cf(0x1ca),_0x19d5cf(0x18f),_0x19d5cf(0x1e2),_0x19d5cf(0x190),_0x19d5cf(0x1af),_0x19d5cf(0x1f1)];const Po=_0x19d5cf(0x192),Ro=_0x19d5cf(0x1d2),Uo=_0x19d5cf(0x1bb),Lo=_0x19d5cf(0x1ce),No=_0x19d5cf(0x1f9),Mo=_0x19d5cf(0x1d0),Ho=_0x19d5cf(0x1d5),uo=_0x19d5cf(0x209),jo=_0x19d5cf(0x1c7),xo=_0x19d5cf(0x1d7),mo=_0x19d5cf(0x1b1),Xo=_0x19d5cf(0x1c8),Do=[_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x210)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1c1)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x201)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1b3)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x19a)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1fe)]];export class AIChatContextPanelView extends _0x37febe{[_0x19d5cf(0x1a8)];[_0x19d5cf(0x1f4)]=this[_0x19d5cf(0x20e)]();[_0x19d5cf(0x200)]=this[_0x19d5cf(0x20e)]();[_0x19d5cf(0x1c5)];[_0x19d5cf(0x1e8)];[_0x19d5cf(0x1dd)];[_0x19d5cf(0x1a5)];[_0x19d5cf(0x1d4)];[_0x19d5cf(0x1da)];[_0x19d5cf(0x1d6)];constructor(_0x3330d8,_0x3de151){const _0x311369=_0x19d5cf;super(_0x3330d8),this[_0x311369(0x1d6)]=_0x3de151,this[_0x311369(0x1f4)]=this[_0x311369(0x20e)](),this[_0x311369(0x200)]=this[_0x311369(0x20e)](),this[_0x311369(0x1a8)]=this[_0x311369(0x1d3)](_0x3330d8),this[_0x311369(0x1e8)]=this[_0x311369(0x187)](_0x3330d8),this[_0x311369(0x1dd)]=this[_0x311369(0x1c4)](_0x3330d8),this[_0x311369(0x1d4)]=this[_0x311369(0x1bf)](_0x3330d8,_0x3de151);const _0x18f2bb={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':jo,'controlsButton':uo}};this[_0x311369(0x1c5)]=new _0xf11c38(_0x3330d8,this[_0x311369(0x1f4)],_0x18f2bb,this[_0x311369(0x1d6)],this),this[_0x311369(0x1da)]={'buttonView':this[_0x311369(0x1a8)],'balloonView':this[_0x311369(0x1e8)],'hideMethod':this[_0x311369(0x1e5)][_0x311369(0x1fa)](this),'showMethod':this[_0x311369(0x20f)][_0x311369(0x1fa)](this)},this[_0x311369(0x202)](),this[_0x311369(0x1c6)]();}[_0x19d5cf(0x1e4)](){const _0x16ebf6=_0x19d5cf;super[_0x16ebf6(0x1e4)](),this[_0x16ebf6(0x193)](),this[_0x16ebf6(0x1c5)][_0x16ebf6(0x196)](this[_0x16ebf6(0x1dc)]),this[_0x16ebf6(0x1c5)][_0x16ebf6(0x1c3)]();}[_0x19d5cf(0x1a1)](){const _0x2c0270=_0x19d5cf;super[_0x2c0270(0x1a1)](),this[_0x2c0270(0x1c5)][_0x2c0270(0x1a1)](),this[_0x2c0270(0x1d4)][_0x2c0270(0x1a1)]();}[_0x19d5cf(0x191)](_0x25a0b7,_0x3cd42d){const _0x3879bd=_0x19d5cf,_0x443c2c=this[_0x3879bd(0x1e6)](_0x25a0b7,_0x3879bd(0x1fc),!0x0,_0x3cd42d);this[_0x3879bd(0x185)](_0x443c2c,this[_0x3879bd(0x1f4)]),this[_0x3879bd(0x1c5)][_0x3879bd(0x1c3)]();}[_0x19d5cf(0x1af)](_0x3ca5b2){const _0x37f186=_0x19d5cf;this[_0x37f186(0x19e)](_0x3ca5b2,this[_0x37f186(0x1f4)]),this[_0x37f186(0x19e)](_0x3ca5b2,this[_0x37f186(0x1c5)][_0x37f186(0x1a9)]),this[_0x37f186(0x1c5)][_0x37f186(0x1c3)]();}[_0x19d5cf(0x20c)](_0x48c473,_0x3fcae){const _0x5145f9=_0x19d5cf;let _0x50376f=this[_0x5145f9(0x1f4)][_0x5145f9(0x208)](_0xac9186=>_0xac9186['id']===_0x48c473);_0x50376f||(_0x50376f=this[_0x5145f9(0x1c5)][_0x5145f9(0x1a9)][_0x5145f9(0x208)](_0xeac4e=>_0xeac4e['id']===_0x48c473)),_0x50376f&&(_0x50376f[_0x5145f9(0x18a)]=_0x3fcae);}[_0x19d5cf(0x1b6)](_0x119e0b){const _0x437873=_0x19d5cf;this[_0x437873(0x200)][_0x437873(0x1f6)]();for(const _0xddc00d of _0x119e0b){const _0x4c6d4d=this[_0x437873(0x1e6)](_0xddc00d,_0x437873(0x1ff),!0x1,!0x1);this[_0x437873(0x185)](_0x4c6d4d,this[_0x437873(0x200)]);}}[_0x19d5cf(0x1db)](){const _0xea61ee=_0x19d5cf;this[_0xea61ee(0x1f4)][_0xea61ee(0x1f6)](),this[_0xea61ee(0x1c5)][_0xea61ee(0x1f6)]();}[_0x19d5cf(0x1ed)](){const _0x80966f=_0x19d5cf;this[_0x80966f(0x200)][_0x80966f(0x1f6)]();}[_0x19d5cf(0x1ec)](_0x35f55f,_0x341462,_0x5011e9){const _0x40811e=_0x19d5cf;this[_0x40811e(0x1d4)][_0x40811e(0x1ec)](_0x35f55f,_0x341462,_0x5011e9);}[_0x19d5cf(0x1e5)](){const _0x2ec9c4=_0x19d5cf;this[_0x2ec9c4(0x184)](!0x1);}[_0x19d5cf(0x20f)](){const _0x56f647=_0x19d5cf;this[_0x56f647(0x184)](!0x0);}[_0x19d5cf(0x1be)](){const _0x294b6d=_0x19d5cf;this[_0x294b6d(0x1dd)][_0x294b6d(0x1b4)](),this[_0x294b6d(0x1a8)][_0x294b6d(0x1a2)]=!0x1,this[_0x294b6d(0x1a5)]&&this[_0x294b6d(0x1a5)][_0x294b6d(0x1f6)]();}[_0x19d5cf(0x1d8)](){const _0x49a7d4=_0x19d5cf;this[_0x49a7d4(0x1dd)][_0x49a7d4(0x1a3)](),this[_0x49a7d4(0x1a8)][_0x49a7d4(0x1a2)]=!0x0;}[_0x19d5cf(0x1a7)](_0x3e5fe9){const _0x1888c7=_0x19d5cf;this[_0x1888c7(0x1d4)][_0x1888c7(0x19f)](_0x3e5fe9),this[_0x1888c7(0x1a8)][_0x1888c7(0x1a2)]=!0x0;}[_0x19d5cf(0x1cd)](_0x358b12,_0xd3544d,_0x589102,_0x182c92){const _0x530632=_0x19d5cf;this[_0x530632(0x1d4)][_0x530632(0x1cd)](_0x358b12,_0x589102,_0x182c92);}[_0x19d5cf(0x203)](_0x289027){const _0x34d3c9=_0x19d5cf;this[_0x34d3c9(0x1d4)][_0x34d3c9(0x203)](_0x289027),this[_0x34d3c9(0x1a8)][_0x34d3c9(0x1a2)]=!0x1;}[_0x19d5cf(0x188)](_0x4d7930){const _0x1e76b2=_0x19d5cf;this[_0x1e76b2(0x1ea)](this[_0x1e76b2(0x1e8)],this[_0x1e76b2(0x1ba)],_0x4d7930),this[_0x1e76b2(0x186)](_0x4d7930);}[_0x19d5cf(0x186)](_0x27819d){const _0x2d45af=_0x19d5cf,_0x4c774e=!_0x27819d[_0x2d45af(0x198)][_0x2d45af(0x1f8)]&&_0x27819d[_0x2d45af(0x198)][_0x2d45af(0x206)],_0x5a5c77=_0x27819d[_0x2d45af(0x1b8)][_0x2d45af(0x206)],_0x2fa2d6=_0x27819d[_0x2d45af(0x183)][_0x2d45af(0x206)];this[_0x2d45af(0x1a8)][_0x2d45af(0x1e9)]=_0x4c774e||_0x5a5c77||_0x2fa2d6;}[_0x19d5cf(0x202)](){const _0x255534=_0x19d5cf;this[_0x255534(0x1b0)]({'tag':_0x255534(0x1a4),'attributes':{'class':[Po,_0x255534(0x1f7)]},'children':[{'tag':_0x255534(0x1a4),'attributes':{'class':Ro},'children':this[_0x255534(0x1f4)]}]});}[_0x19d5cf(0x1c6)](){const _0x5f161c=_0x19d5cf;this[_0x5f161c(0x1a8)]['on'](_0x5f161c(0x1b7),()=>{const _0x44c1b9=_0x5f161c;this[_0x44c1b9(0x1c0)]();});}[_0x19d5cf(0x1d3)](_0x3acf99){const _0x3d5b08=_0x19d5cf,_0x1dba6f=new _0x1a69a5(_0x3acf99);return _0x1dba6f[_0x3d5b08(0x1b2)]({'label':_0x513eb1(_0x3acf99,_0x3d5b08(0x19d)),'class':uo+'\x20'+Lo,'icon':_0x5bd2ef,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x1dba6f;}[_0x19d5cf(0x187)](_0x200a17){const _0x47a211=_0x19d5cf;return this[_0x47a211(0x1c2)](_0x200a17,Uo);}[_0x19d5cf(0x1c4)](_0x5c8689){const _0x5d09f6=_0x19d5cf,_0x3af17e=this[_0x5d09f6(0x1c2)](_0x5c8689,No);return this[_0x5d09f6(0x1cc)](_0x3af17e,_0x5c8689),_0x3af17e;}[_0x19d5cf(0x1bf)](_0x160cbb,_0x243280){const _0x172359=_0x19d5cf;return new _0x446091(_0x160cbb,_0x243280,{'onBackToContext':()=>{const _0x30d5ad=_0x19d7;this[_0x30d5ad(0x20f)](),this[_0x30d5ad(0x1e8)][_0x30d5ad(0x1e1)]({'target':this[_0x30d5ad(0x1a8)][_0x30d5ad(0x1dc)],'limiter':this[_0x30d5ad(0x1eb)](),'positions':Do});},'onResourceSelected':(_0x3dba9e,_0xee21ad)=>{const _0x20b160=_0x19d7;this[_0x20b160(0x1ab)](_0x20b160(0x190),{'source':_0x3dba9e,'resource':_0xee21ad});},'onLoadSourceResources':_0x2eb2f1=>{const _0x13e0c9=_0x19d7;this[_0x13e0c9(0x1ab)](_0x13e0c9(0x1f1),_0x2eb2f1);},'onBalloonClosed':()=>{const _0x4396b4=_0x19d7;this[_0x4396b4(0x1a8)][_0x4396b4(0x1a2)]=!0x1;},'getLimiterElement':()=>this[_0x172359(0x1eb)](),'getTargetElement':()=>this[_0x172359(0x1a8)][_0x172359(0x1dc)]});}[_0x19d5cf(0x1eb)](){const _0x480bdc=_0x19d5cf;return this[_0x480bdc(0x1dc)]?.[_0x480bdc(0x205)]('.'+Xo)||document[_0x480bdc(0x189)];}[_0x19d5cf(0x1c2)](_0x15486c,_0x4e42){const _0x12b578=_0x19d5cf,_0x27cf65=new _0x5ba009(_0x15486c);return _0x27cf65[_0x12b578(0x1f0)]({'attributes':{'class':_0x4e42}}),this[_0x12b578(0x1d6)][_0x12b578(0x19c)](_0x27cf65),_0x27cf65;}[_0x19d5cf(0x1ea)](_0x96e411,_0x548689,_0x412021){const _0x4048d7=_0x19d5cf;if(_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x1f6)](),!_0x412021[_0x4048d7(0x198)][_0x4048d7(0x1f8)]&&_0x412021[_0x4048d7(0x198)][_0x4048d7(0x206)]){const _0x5a9beb=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x513eb1(_0x548689,_0x4048d7(0x18e)),'icon':_0x50884a});_0x5a9beb['on'](_0x4048d7(0x1b7),()=>{const _0x374929=_0x4048d7;this[_0x374929(0x1ab)](_0x374929(0x1ca)),this[_0x374929(0x1e5)]();}),_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x5a9beb);}if(_0x412021[_0x4048d7(0x1b8)][_0x4048d7(0x206)]){const _0xd21924=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x513eb1(_0x548689,_0x4048d7(0x207)),'icon':_0x4a9546});_0xd21924['on'](_0x4048d7(0x1b7),()=>{const _0xb5316=_0x4048d7;this[_0xb5316(0x1e5)](),this[_0xb5316(0x1d8)](),this[_0xb5316(0x1dd)][_0xb5316(0x1e1)]({'target':this[_0xb5316(0x1a8)][_0xb5316(0x1dc)],'limiter':this[_0xb5316(0x1eb)](),'positions':Do}),this[_0xb5316(0x1a5)][_0xb5316(0x1e7)]();}),_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0xd21924);}if(_0x412021[_0x4048d7(0x183)][_0x4048d7(0x206)]){const _0x16575d=new _0x1aa42d(_0x548689);_0x16575d[_0x4048d7(0x1b2)]({'label':_0x513eb1(_0x548689,_0x4048d7(0x1cb)),'icon':_0x1e54e6,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x16575d['on'](_0x4048d7(0x1b9),(_0x199d60,_0x240d94)=>{const _0x1ff8e5=_0x4048d7;this[_0x1ff8e5(0x1ab)](_0x1ff8e5(0x18f),_0x240d94),this[_0x1ff8e5(0x1e5)]();}),_0x16575d[_0x4048d7(0x1fd)]=!0x0,_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x16575d);}for(const _0x141822 of _0x412021[_0x4048d7(0x19b)]){const _0x449a76=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x141822[_0x4048d7(0x199)],'icon':_0x141822[_0x4048d7(0x1ae)]||_0x82fc53,'type':_0x4048d7(0x1f5)});_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x449a76),_0x449a76['on'](_0x4048d7(0x1b7),()=>{const _0x19b15d=_0x4048d7;this[_0x19b15d(0x1e5)](),this[_0x19b15d(0x1a7)](_0x141822);});}}[_0x19d5cf(0x1cc)](_0x4d6e3a,_0x29946){const _0x3ce44e=_0x19d5cf;this[_0x3ce44e(0x1a5)]=new _0x13a8f3(_0x29946),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x18b),(_0xa2c2cd,_0x111398)=>{const _0x154a06=_0x3ce44e;this[_0x154a06(0x1aa)](_0x111398);}),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x1de),()=>{const _0x5bc2f2=_0x3ce44e;this[_0x5bc2f2(0x1be)](),this[_0x5bc2f2(0x20f)](),this[_0x5bc2f2(0x1e8)][_0x5bc2f2(0x1e1)]({'target':this[_0x5bc2f2(0x1a8)][_0x5bc2f2(0x1dc)],'limiter':this[_0x5bc2f2(0x1eb)](),'positions':Do});}),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x1ee),()=>{const _0x1e836b=_0x3ce44e;this[_0x1e836b(0x1dd)][_0x1e836b(0x1d9)]&&this[_0x1e836b(0x1dd)][_0x1e836b(0x1e1)]({'target':this[_0x1e836b(0x1a8)][_0x1e836b(0x1dc)],'limiter':this[_0x1e836b(0x1eb)](),'positions':Do});}),_0x4d6e3a[_0x3ce44e(0x1b5)][_0x3ce44e(0x19c)](this[_0x3ce44e(0x1a5)]);}[_0x19d5cf(0x1ac)](_0x3cf052,_0x488391){const _0x5c7311=_0x19d5cf,_0x28945d=_0x5c7311(0x1f5)===_0x488391[_0x5c7311(0x1fb)]?new SourcesBalloonButtonView(_0x3cf052):new _0x1a69a5(_0x3cf052);return _0x28945d[_0x5c7311(0x1b2)]({'label':_0x488391[_0x5c7311(0x199)],'icon':_0x488391[_0x5c7311(0x1ae)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x28945d;}[_0x19d5cf(0x193)](){const _0x164c61=_0x19d5cf;this[_0x164c61(0x20d)](),this[_0x164c61(0x1e0)]();}[_0x19d5cf(0x1e0)](){const _0x52c465=_0x19d5cf;_0x4e344e({'emitter':this[_0x52c465(0x1dd)],'contextElements':[this[_0x52c465(0x1dd)][_0x52c465(0x1dc)]],'callback':()=>{const _0x161619=_0x52c465;this[_0x161619(0x1be)]();},'activator':()=>this[_0x52c465(0x1dd)][_0x52c465(0x1d9)]});}[_0x19d5cf(0x184)](_0x1a1ecd){const _0x32d0df=_0x19d5cf,_0x4c52be=this[_0x32d0df(0x1da)];_0x4c52be[_0x32d0df(0x18c)][_0x32d0df(0x1a2)]=_0x1a1ecd,_0x1a1ecd?_0x4c52be[_0x32d0df(0x204)][_0x32d0df(0x1a3)]():_0x4c52be[_0x32d0df(0x204)][_0x32d0df(0x1b4)]();}[_0x19d5cf(0x20d)](){const _0x51ab3a=_0x19d5cf,{balloonView:_0x4c8474,buttonView:_0x14da55,hideMethod:_0x530054}=this[_0x51ab3a(0x1da)];_0x4e344e({'emitter':_0x4c8474,'contextElements':[_0x4c8474[_0x51ab3a(0x1dc)],_0x14da55[_0x51ab3a(0x1dc)]],'callback':()=>{_0x530054();},'activator':()=>_0x14da55[_0x51ab3a(0x1a2)]&&!this[_0x51ab3a(0x1dd)][_0x51ab3a(0x1d9)]&&!this[_0x51ab3a(0x1d4)][_0x51ab3a(0x1d1)]()});}[_0x19d5cf(0x1e6)](_0x4cd569,_0xb2cfe6,_0x885c76=!0x1,_0x592cb2=!0x1){const _0x44d1f0=_0x19d5cf,_0x2e5b37=_0x44d1f0(0x1ff)===_0xb2cfe6||!0x0===_0x4cd569[_0x44d1f0(0x1ad)],_0x51f926=new _0x2fdbd2(this[_0x44d1f0(0x1ba)],_0x4cd569,_0x2e5b37,_0x885c76,_0x592cb2);return _0x2e5b37||_0x51f926['on'](_0x44d1f0(0x1ef),()=>{const _0x16f6e8=_0x44d1f0;this[_0x16f6e8(0x1ab)](_0x16f6e8(0x1af),_0x51f926['id']);}),_0x51f926;}[_0x19d5cf(0x185)](_0x47caf7,_0xcc820c){const _0x2d97de=_0x19d5cf;_0xcc820c[_0x2d97de(0x19c)](_0x47caf7,0x0);}[_0x19d5cf(0x19e)](_0x346e27,_0x5a8ac6){const _0x31cd09=_0x19d5cf,_0x106965=_0x5a8ac6[_0x31cd09(0x208)](_0x5de15a=>_0x5de15a['id']===_0x346e27);_0x106965&&_0x5a8ac6[_0x31cd09(0x20a)](_0x106965);}[_0x19d5cf(0x1c0)](){const _0x373856=_0x19d5cf;this[_0x373856(0x1a8)][_0x373856(0x1a2)]?this[_0x373856(0x1e5)]():(this[_0x373856(0x20f)](),this[_0x373856(0x1e8)][_0x373856(0x1e1)]({'target':this[_0x373856(0x1a8)][_0x373856(0x1dc)],'limiter':this[_0x373856(0x1eb)](),'positions':Do}));}[_0x19d5cf(0x1aa)](_0x69d33){const _0x20847c=_0x19d5cf;this[_0x20847c(0x1a5)][_0x20847c(0x1f6)](),this[_0x20847c(0x1be)](),this[_0x20847c(0x1ab)](_0x20847c(0x1e2),_0x69d33);}}function _0x5cad(){const _0x50b887=['5jVLvkR','setContainerElement','184813NNuygQ','document','label','southArrowNorth','sources','add','AI_CHAT_CONTEXT_ADD_CONTEXT','_removeContextFromCollection','showSourceResourcesBalloon','menuitem','destroy','isOn','show','div','_urlInputView','__arrow','_showSourceResourcesBalloon','addContextButtonView','overflowChips','_handleUrlSubmit','fire','_createBalloonButton','isReadOnly','icon','removeContextItem','setTemplate','ck-ai-chat-context-controls__show-more-balloon-panel','set','southArrowNorthWest','hide','content','setConversationContext','execute','urls','done','locale','ck-ai-chat-context-controls__add-context-balloon-panel','1033371ldRIOi','712737PdsUaH','hideUrlBalloonPanel','_createResourcesBalloonView','_handleAddContextButtonClick','northArrowSouth','_createBaseBalloonPanel','reorganizeChips','_createUrlBalloonPanelView','_overflowManager','_bindEventHandlers','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat','7XeXFKz','addDocumentToContext','AI_CHAT_CONTEXT_FILE_LABEL','_addUrlContent','populateSourceResourceBalloon','ck-ai-chat-context-controls__add-context-button','_createArrowView','ck-ai-chat-context-controls__balloon-button','isAnyResourceBalloonVisible','ck-ai-chat-context-controls__pending-contexts','_createAddContextButtonView','_resourcesBalloonView','ck-ai-chat-context-controls__balloon-button-source','bodyCollection','ck-ai-chat-controls_context_show-more-button','showUrlBalloonPanel','isVisible','_addContextBalloonConfig','clearCurrentContextItems','element','_urlBalloonPanelView','cancel','700332ISwnno','_setupUrlBalloonClickOutsideHandler','pin','addUrlToContext','837438rLuhOy','render','hideAddContextBalloonPanel','_createContextButton','focus','_addContextBalloonPanelView','isEnabled','_setBalloonPanelContent','_getLimiterElement','updateResourceState','clearConversationContextItems','refreshBalloon','removeContextItemChip','extendTemplate','loadSourceResources','children','130fINiaQ','_currentContextsChips','source','clear','ck-reset_all-excluded','isHidden','ck-ai-chat-context-controls__url-balloon-panel','bind','type','current','tooltip','southArrowNorthEast','conversation','_conversationContextsChips','northArrowSouthEast','_setupTemplate','closeSourceResourceBalloon','balloonView','closest','enabled','AI_CHAT_CONTEXT_URL_LABEL','find','ck-ai-chat-controls-button','remove','153368uBLsVr','setContextItemLoading','_setupAddContextBalloonClickOutsideHandler','createCollection','showAddContextBalloonPanel','northArrowSouthWest','arrowView','files','_toggleAddContextBalloon','_addContextToCollection','_setAddContextButtonEnabled','_createAddContextBalloonPanelView','setAddContextOptions','body','isLoading','submitUrl','buttonView','defaultPositions','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addFileToContext','addResourceToContext','addContextItem','ck-ai-chat-context-controls','_setupAllBalloonClickOutsideHandlers','1762164WJkaFG'];_0x5cad=function(){return _0x50b887;};return _0x5cad();}export class SourcesBalloonButtonView extends _0x1a69a5{[_0x19d5cf(0x182)];constructor(_0x4fabfa){const _0x185824=_0x19d5cf;super(_0x4fabfa),this[_0x185824(0x1b2)]({'withText':!0x0,'role':_0x185824(0x1a0)}),this[_0x185824(0x182)]=this[_0x185824(0x1cf)](),this[_0x185824(0x1f0)]({'attributes':{'class':[Ho]}});}[_0x19d5cf(0x1e4)](){const _0x1cdc4f=_0x19d5cf;super[_0x1cdc4f(0x1e4)](),this[_0x1cdc4f(0x1f2)][_0x1cdc4f(0x19c)](this[_0x1cdc4f(0x182)]);}[_0x19d5cf(0x1cf)](){const _0x31f1c0=_0x19d5cf,_0x568f8c=new _0x1e9b06();return _0x568f8c[_0x31f1c0(0x1b5)]=_0x52fdbc,_0x568f8c[_0x31f1c0(0x1f0)]({'attributes':{'class':Ho+_0x31f1c0(0x1a6)}}),_0x568f8c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21a3bb=_0x3715;(function(_0x373586,_0x4029ab){const _0x3cf6e6=_0x3715,_0x1c74c6=_0x373586();while(!![]){try{const _0xd2dbb9=-parseInt(_0x3cf6e6(0xec))/0x1*(-parseInt(_0x3cf6e6(0xef))/0x2)+parseInt(_0x3cf6e6(0xed))/0x3+-parseInt(_0x3cf6e6(0xf7))/0x4+parseInt(_0x3cf6e6(0x102))/0x5*(parseInt(_0x3cf6e6(0x104))/0x6)+-parseInt(_0x3cf6e6(0xf9))/0x7*(parseInt(_0x3cf6e6(0x101))/0x8)+-parseInt(_0x3cf6e6(0xfc))/0x9*(-parseInt(_0x3cf6e6(0xfa))/0xa)+parseInt(_0x3cf6e6(0x100))/0xb*(-parseInt(_0x3cf6e6(0x106))/0xc);if(_0xd2dbb9===_0x4029ab)break;else _0x1c74c6['push'](_0x1c74c6['shift']());}catch(_0x2f6a15){_0x1c74c6['push'](_0x1c74c6['shift']());}}}(_0x1748,0x976ad));function _0x1748(){const _0xf5490e=['_cancelButtonView','fire','AI_CHAT_IS_WRITING','setTemplate','1346456gEXESb','_loaderView','91STQJUT','1130ElzCIg','ck-ai-chat-controls-loader-wrapper','32220kyYRHX','ck-ai-chat-controls-loader-icon-dot','set','AI_CHAT_STOP_GENERATING','77ZBdRTg','650344WIRvzT','50zCYEsn','execute','712482vNtRaH','abortPromptStream','1757292wMkBfa','ck-reset_all','ck-ai-chat-controls-loader-icon','_createLoaderView','locale','856353VKhLwv','1771056pCHvgF','ck-ai-chat-controls-loader','2UEyWJY','div','ai-chat-controls-loader__cancel-button','_createCancelButtonView'];_0x1748=function(){return _0xf5490e;};return _0x1748();}import{ButtonView as _0x3842c0,View as _0x171ec8}from'ckeditor5/src/ui.js';function _0x3715(_0x21d949,_0x2ce2bf){const _0x1748c3=_0x1748();return _0x3715=function(_0x3715ef,_0x436c31){_0x3715ef=_0x3715ef-0xec;let _0x52878a=_0x1748c3[_0x3715ef];return _0x52878a;},_0x3715(_0x21d949,_0x2ce2bf);}import{IconStop as _0x4971f5}from'ckeditor5/src/icons.js';import{getTranslation as _0x29bed1}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x171ec8{[_0x21a3bb(0xf3)];[_0x21a3bb(0xf8)];constructor(_0x569986){const _0x510815=_0x21a3bb;super(_0x569986),this[_0x510815(0xf3)]=this[_0x510815(0xf2)](),this[_0x510815(0xf8)]=this[_0x510815(0x109)](),this[_0x510815(0xf6)]({'tag':_0x510815(0xf0),'attributes':{'class':['ck',_0x510815(0xfb),_0x510815(0x107)]},'children':[this[_0x510815(0xf8)],this[_0x510815(0xf3)]]});}[_0x21a3bb(0xf2)](){const _0x4d8d17=_0x21a3bb,_0x304c32=new _0x3842c0(this[_0x4d8d17(0x10a)]);return _0x304c32[_0x4d8d17(0xfe)]({'label':_0x29bed1(this[_0x4d8d17(0x10a)],_0x4d8d17(0xff)),'withText':!0x0,'class':_0x4d8d17(0xf1),'icon':_0x4971f5}),_0x304c32['on'](_0x4d8d17(0x103),()=>{const _0x5ccf82=_0x4d8d17;this[_0x5ccf82(0xf4)](_0x5ccf82(0x105));}),_0x304c32;}[_0x21a3bb(0x109)](){const _0x2dd805=_0x21a3bb,_0xd1cbe1=new _0x171ec8(this[_0x2dd805(0x10a)]);return _0xd1cbe1[_0x2dd805(0xf6)]({'tag':_0x2dd805(0xf0),'attributes':{'class':[_0x2dd805(0xee)]},'children':[{'tag':_0x2dd805(0xf0),'attributes':{'class':[_0x2dd805(0x108)]},'children':[{'tag':_0x2dd805(0xf0),'attributes':{'class':[_0x2dd805(0xfd)]}},{'tag':_0x2dd805(0xf0),'attributes':{'class':[_0x2dd805(0xfd)]}},{'tag':_0x2dd805(0xf0),'attributes':{'class':[_0x2dd805(0xfd)]}}]},{'text':_0x29bed1(this[_0x2dd805(0x10a)],_0x2dd805(0xf5))}]}),_0xd1cbe1;}}
23
+ function _0x16b2(){const _0x5b7269=['413724FOfijz','_loaderView','ai-chat-controls-loader__cancel-button','set','locale','ck-reset_all','ck-ai-chat-controls-loader-icon-dot','AI_CHAT_STOP_GENERATING','11349MaFLUv','11230mVhsrQ','ck-ai-chat-controls-loader-wrapper','4433172gEWGda','abortPromptStream','AI_CHAT_IS_WRITING','execute','520998BynXNP','_createLoaderView','_createCancelButtonView','fire','ck-ai-chat-controls-loader','12QWDUqv','63222093NXboNb','1399976lGyNrs','21nQsHwI','ck-ai-chat-controls-loader-icon','_cancelButtonView','5wYXZce','1504765Kiynzr','setTemplate','div'];_0x16b2=function(){return _0x5b7269;};return _0x16b2();}const _0x45b79c=_0x114d;function _0x114d(_0x313d71,_0x3db209){const _0x16b25d=_0x16b2();return _0x114d=function(_0x114de3,_0x1f6f67){_0x114de3=_0x114de3-0x78;let _0x4cd754=_0x16b25d[_0x114de3];return _0x4cd754;},_0x114d(_0x313d71,_0x3db209);}(function(_0x5d181e,_0x272b4a){const _0x4f94ed=_0x114d,_0x316efc=_0x5d181e();while(!![]){try{const _0xc77375=parseInt(_0x4f94ed(0x8d))/0x1*(-parseInt(_0x4f94ed(0x91))/0x2)+-parseInt(_0x4f94ed(0x7e))/0x3+-parseInt(_0x4f94ed(0x87))/0x4*(parseInt(_0x4f94ed(0x8e))/0x5)+parseInt(_0x4f94ed(0x82))/0x6*(-parseInt(_0x4f94ed(0x8a))/0x7)+parseInt(_0x4f94ed(0x89))/0x8+-parseInt(_0x4f94ed(0x7b))/0x9*(parseInt(_0x4f94ed(0x7c))/0xa)+parseInt(_0x4f94ed(0x88))/0xb;if(_0xc77375===_0x272b4a)break;else _0x316efc['push'](_0x316efc['shift']());}catch(_0x392da1){_0x316efc['push'](_0x316efc['shift']());}}}(_0x16b2,0xcadf5));import{ButtonView as _0x3f4b8e,View as _0x214bdf}from'ckeditor5/src/ui.js';import{IconStop as _0x550916}from'ckeditor5/src/icons.js';import{getTranslation as _0x536b82}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x214bdf{[_0x45b79c(0x8c)];[_0x45b79c(0x92)];constructor(_0x529ceb){const _0x497555=_0x45b79c;super(_0x529ceb),this[_0x497555(0x8c)]=this[_0x497555(0x84)](),this[_0x497555(0x92)]=this[_0x497555(0x83)](),this[_0x497555(0x8f)]({'tag':_0x497555(0x90),'attributes':{'class':['ck',_0x497555(0x7d),_0x497555(0x78)]},'children':[this[_0x497555(0x92)],this[_0x497555(0x8c)]]});}[_0x45b79c(0x84)](){const _0xfd4ded=_0x45b79c,_0x13c69e=new _0x3f4b8e(this[_0xfd4ded(0x95)]);return _0x13c69e[_0xfd4ded(0x94)]({'label':_0x536b82(this[_0xfd4ded(0x95)],_0xfd4ded(0x7a)),'withText':!0x0,'class':_0xfd4ded(0x93),'icon':_0x550916}),_0x13c69e['on'](_0xfd4ded(0x81),()=>{const _0x457c2b=_0xfd4ded;this[_0x457c2b(0x85)](_0x457c2b(0x7f));}),_0x13c69e;}[_0x45b79c(0x83)](){const _0x129c67=_0x45b79c,_0x24cfbb=new _0x214bdf(this[_0x129c67(0x95)]);return _0x24cfbb[_0x129c67(0x8f)]({'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x86)]},'children':[{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x8b)]},'children':[{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x79)]}},{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x79)]}},{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x79)]}}]},{'text':_0x536b82(this[_0x129c67(0x95)],_0x129c67(0x80))}]}),_0x24cfbb;}}