@ckeditor/ckeditor5-ai 47.6.0 → 47.6.1-alpha.0

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 (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.d.ts +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatballoonview.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x52d7(_0x1bcf7d,_0xb2d681){const _0x1062a0=_0x1062();return _0x52d7=function(_0x52d7de,_0x489ac3){_0x52d7de=_0x52d7de-0x1be;let _0x5b7046=_0x1062a0[_0x52d7de];return _0x5b7046;},_0x52d7(_0x1bcf7d,_0xb2d681);}function _0x1062(){const _0x566a95=['visible\x20!important','innerHeight','_isContainerVisible','className','_showMoreBalloonPanelView','_targetContainer','_createCalculationContainer','position','21118545wEqwQV','isOn','_repinBalloonPanel','set','innerWidth','body','execute','-9999px','5McfGKf','overflowChips','_makeAncestorsVisible','reorganizeChips','visible','_calculateContainerWidth','includes','bottom','some','element','isConnected','cssClasses','render','hidden','innerHTML','appendChild','left','slice','right','isIntersecting','_checkAndHandleOverflow','_ancestorsToRestore','_overflowChips','undefined','calculationContainer','_setupVisibilityObserver','_testButtonFit','offsetWidth','length','createElement','none','classList','4106501mtnTTQ','boxSizing','textContent','_calculateOverflowInContainer','_createContainerElements','753187EniGoM','controlsButton','getComputedStyle','maxVisibleRows','_config','_createShowMoreButton','+\x201','_handleShowMoreButtonClick','_intersectionObserver','hideBalloonPanel','_restoreAncestorVisibility','block\x20!important','display','hide','showMoreButton','auto','querySelector','setContainerElement','width','from','1039080gxdmZw','_updateBalloonContent','opacity','filter','_visibleChips','showMoreBalloon','_updateOverflowUI','.ck-ai-chat','destroy','pop','ck-calculation-container','documentElement','disableAnimationOnEnter','setTemplate','remove','_showMoreButtonView','children','_findTargetContainer','height','content','_containerElement','overflowContainer','parentElement','getBoundingClientRect','add','pointerEvents','_bodyCollection','pin','show','abs','_createShowMoreButtonView','clientHeight','forEach','isVisible','disconnect','showMoreButtonView','1427752jJsBkz','8280872zvcMRG','0px','label','zIndex','tagName','_updateShowMoreButtonVisibility','button','observe','showBalloonPanel','border-box','_locale','_createShowMoreBalloonPanelView','_renderChipsAndCountRows','showMoreLabelPrefix','300px','cloneNode','_pendingCalculation','_distributeChips','clear','push','extendTemplate','rowDetectionTolerance','style','clientWidth','_createMockButton','div','191746kdOoQx','top','_applyCalculationStyles','_applyOverflowResults','24RVuTfx','_parentView','50px','toLowerCase','visibility','absolute','block'];_0x1062=function(){return _0x566a95;};return _0x1062();}const _0x85efd4=_0x52d7;(function(_0x9543c5,_0x2f4f7d){const _0x1779d1=_0x52d7,_0x24233b=_0x9543c5();while(!![]){try{const _0x465012=parseInt(_0x1779d1(0x1d8))/0x1+parseInt(_0x1779d1(0x22b))/0x2*(parseInt(_0x1779d1(0x22f))/0x3)+parseInt(_0x1779d1(0x210))/0x4*(parseInt(_0x1779d1(0x246))/0x5)+-parseInt(_0x1779d1(0x1ec))/0x6+parseInt(_0x1779d1(0x1d3))/0x7+parseInt(_0x1779d1(0x211))/0x8+-parseInt(_0x1779d1(0x23e))/0x9;if(_0x465012===_0x2f4f7d)break;else _0x24233b['push'](_0x24233b['shift']());}catch(_0x3f8434){_0x24233b['push'](_0x24233b['shift']());}}}(_0x1062,0xef0e8));import{View as _0x5e947e,BalloonPanelView as _0x5a8d6d,ButtonView as _0x4d7f3a,clickOutsideHandler as _0x59730a}from'ckeditor5/src/ui.js';import{Collection as _0x1c5822}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x85efd4(0x21f);export class AIChatChipsOverflowManager{[_0x85efd4(0x21b)];[_0x85efd4(0x1dc)];[_0x85efd4(0x1f0)];[_0x85efd4(0x1c9)];[_0x85efd4(0x1fb)]=null;[_0x85efd4(0x23a)]=null;[_0x85efd4(0x200)]=null;[_0x85efd4(0x206)];[_0x85efd4(0x230)]=null;[_0x85efd4(0x1e0)]=null;[_0x85efd4(0x221)]=!0x1;constructor(_0x1c10ba,_0x3d9120,_0x4def68,_0x19ca67,_0xc0f2ac){const _0x27cb4f=_0x85efd4;this[_0x27cb4f(0x21b)]=_0x1c10ba,this[_0x27cb4f(0x1f0)]=_0x3d9120,this[_0x27cb4f(0x1dc)]={...hn,..._0x4def68,'cssClasses':{'controlsButton':'','calculationContainer':_0x27cb4f(0x1f6),..._0x4def68[_0x27cb4f(0x1be)]}},this[_0x27cb4f(0x1c9)]=new _0x1c5822(),this[_0x27cb4f(0x206)]=_0x19ca67,this[_0x27cb4f(0x230)]=_0xc0f2ac||null;}[_0x85efd4(0x1e9)](_0x1e933f){const _0x424d23=_0x85efd4;this[_0x424d23(0x1e0)]&&(this[_0x424d23(0x1e0)][_0x424d23(0x20e)](),this[_0x424d23(0x1e0)]=null),this[_0x424d23(0x200)]=_0x1e933f,this[_0x424d23(0x1cc)]();}get[_0x85efd4(0x20f)](){const _0x299533=_0x85efd4;return this[_0x299533(0x1fb)];}get[_0x85efd4(0x247)](){const _0x2917e2=_0x85efd4;return this[_0x2917e2(0x1c9)];}[_0x85efd4(0x249)](){requestAnimationFrame(()=>{const _0x23be72=_0x52d7;this[_0x23be72(0x1c7)]();});}[_0x85efd4(0x219)](){const _0x163076=_0x85efd4;this[_0x163076(0x1fb)]&&this[_0x163076(0x23a)]&&(this[_0x163076(0x1ed)](),this[_0x163076(0x1fb)][_0x163076(0x23f)]=!0x0,this[_0x163076(0x23a)][_0x163076(0x208)](),this[_0x163076(0x23a)][_0x163076(0x207)]({'target':this[_0x163076(0x1fb)][_0x163076(0x24f)],'limiter':document[_0x163076(0x1e8)](_0x163076(0x1f3))}));}[_0x85efd4(0x1e1)](){const _0x15d0c1=_0x85efd4;this[_0x15d0c1(0x1fb)]&&this[_0x15d0c1(0x23a)]&&(this[_0x15d0c1(0x1fb)][_0x15d0c1(0x23f)]=!0x1,this[_0x15d0c1(0x23a)][_0x15d0c1(0x1e5)]());}[_0x85efd4(0x223)](){const _0x282284=_0x85efd4;this[_0x282284(0x1c9)][_0x282284(0x223)](),this[_0x282284(0x1e1)](),this[_0x282284(0x216)](),this[_0x282284(0x1fb)]&&(this[_0x282284(0x1fb)][_0x282284(0x213)]=''),this[_0x282284(0x23a)]&&this[_0x282284(0x23a)][_0x282284(0x1ff)][_0x282284(0x223)]();}[_0x85efd4(0x1f4)](){const _0x2f1cc6=_0x85efd4;this[_0x2f1cc6(0x1e0)]&&(this[_0x2f1cc6(0x1e0)][_0x2f1cc6(0x20e)](),this[_0x2f1cc6(0x1e0)]=null),this[_0x2f1cc6(0x1fb)]&&(this[_0x2f1cc6(0x1fb)][_0x2f1cc6(0x1f4)](),this[_0x2f1cc6(0x1fb)]=null),this[_0x2f1cc6(0x23a)]&&(this[_0x2f1cc6(0x23a)][_0x2f1cc6(0x1f4)](),this[_0x2f1cc6(0x23a)]=null);}[_0x85efd4(0x1c7)](){const _0x48434a=_0x85efd4;if(!this[_0x48434a(0x200)])return;if(!this[_0x48434a(0x238)]())return void(this[_0x48434a(0x221)]=!0x0);this[_0x48434a(0x221)]=!0x1;const _0x1f6b38=[...this[_0x48434a(0x1f0)],...this[_0x48434a(0x1c9)]],_0x2823bf=this[_0x48434a(0x23c)](),_0xdc5298=this[_0x48434a(0x1d6)](_0x2823bf,_0x1f6b38),_0x4497f5=_0x2823bf[_0x48434a(0x1c8)];_0x4497f5&&this[_0x48434a(0x1e2)](_0x4497f5),_0x2823bf[_0x48434a(0x1fa)](),this[_0x48434a(0x22e)](_0x1f6b38,_0xdc5298);}[_0x85efd4(0x1dd)](){const _0x45a9bb=_0x85efd4;this[_0x45a9bb(0x1fb)]=this[_0x45a9bb(0x20a)](),this[_0x45a9bb(0x23a)]=this[_0x45a9bb(0x21c)](),this[_0x45a9bb(0x1fb)][_0x45a9bb(0x1bf)](),this[_0x45a9bb(0x200)][_0x45a9bb(0x1c2)](this[_0x45a9bb(0x1fb)][_0x45a9bb(0x24f)]),this[_0x45a9bb(0x1fb)]['on'](_0x45a9bb(0x244),()=>{const _0x4f13e3=_0x45a9bb;this[_0x4f13e3(0x1df)]();}),_0x59730a({'emitter':this[_0x45a9bb(0x23a)],'contextElements':[this[_0x45a9bb(0x23a)][_0x45a9bb(0x24f)],this[_0x45a9bb(0x1fb)][_0x45a9bb(0x24f)]],'callback':()=>this[_0x45a9bb(0x1e1)](),'activator':()=>this[_0x45a9bb(0x1fb)][_0x45a9bb(0x23f)]});}[_0x85efd4(0x20a)](){const _0x36c264=_0x85efd4,_0x29e811=new _0x4d7f3a(this[_0x36c264(0x21b)]);_0x29e811[_0x36c264(0x241)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4080ba=[this[_0x36c264(0x1dc)][_0x36c264(0x1be)][_0x36c264(0x1e6)]];return this[_0x36c264(0x1dc)][_0x36c264(0x1be)][_0x36c264(0x1d9)]&&_0x4080ba[_0x36c264(0x224)](this[_0x36c264(0x1dc)][_0x36c264(0x1be)][_0x36c264(0x1d9)]),_0x29e811[_0x36c264(0x225)]({'attributes':{'class':_0x4080ba}}),_0x29e811;}[_0x85efd4(0x21c)](){const _0x125366=_0x85efd4,_0x27b8ff=new _0x5a8d6d(this[_0x125366(0x21b)]);return _0x27b8ff[_0x125366(0x225)]({'attributes':{'class':this[_0x125366(0x1dc)][_0x125366(0x1be)][_0x125366(0x1f1)]}}),this[_0x125366(0x206)][_0x125366(0x204)](_0x27b8ff),_0x27b8ff;}[_0x85efd4(0x1ed)](){const _0x3590a5=_0x85efd4;if(this[_0x3590a5(0x23a)]&&(this[_0x3590a5(0x23a)][_0x3590a5(0x1ff)][_0x3590a5(0x223)](),this[_0x3590a5(0x1c9)][_0x3590a5(0x1cf)]>0x0)){this[_0x3590a5(0x1c9)][_0x3590a5(0x20c)](_0xbe6c2a=>{const _0x32b2c5=_0x3590a5;_0xbe6c2a[_0x32b2c5(0x1f8)]();});const _0x1465bb=new _0x5e947e(this[_0x3590a5(0x21b)]);_0x1465bb[_0x3590a5(0x1f9)]({'tag':_0x3590a5(0x22a),'attributes':{'class':this[_0x3590a5(0x1dc)][_0x3590a5(0x1be)][_0x3590a5(0x201)]},'children':this[_0x3590a5(0x1c9)]}),this[_0x3590a5(0x23a)][_0x3590a5(0x1ff)][_0x3590a5(0x204)](_0x1465bb);}}[_0x85efd4(0x1df)](){const _0x49e024=_0x85efd4;this[_0x49e024(0x1fb)][_0x49e024(0x23f)]?this[_0x49e024(0x1e1)]():this[_0x49e024(0x219)]();}[_0x85efd4(0x216)](){const _0x4531a5=_0x85efd4,_0x2a80b6=this[_0x4531a5(0x1c9)][_0x4531a5(0x1cf)]>0x0;this[_0x4531a5(0x1fb)]?.[_0x4531a5(0x24f)]&&(this[_0x4531a5(0x1fb)][_0x4531a5(0x24f)][_0x4531a5(0x227)][_0x4531a5(0x1e4)]=_0x2a80b6?'':_0x4531a5(0x1d1));}[_0x85efd4(0x240)](){const _0x3bc5a6=_0x85efd4;this[_0x3bc5a6(0x1fb)]?.[_0x3bc5a6(0x23f)]&&this[_0x3bc5a6(0x23a)]?.[_0x3bc5a6(0x20d)]&&this[_0x3bc5a6(0x1fb)][_0x3bc5a6(0x24f)]&&this[_0x3bc5a6(0x23a)][_0x3bc5a6(0x207)]({'target':this[_0x3bc5a6(0x1fb)][_0x3bc5a6(0x24f)],'limiter':document[_0x3bc5a6(0x1e8)](_0x3bc5a6(0x1f3))});}[_0x85efd4(0x1fd)](_0x477f22){const _0x57064c=_0x85efd4,_0x146bbe=this[_0x57064c(0x200)]?.[_0x57064c(0x215)][_0x57064c(0x232)]()||_0x57064c(0x22a),_0x10f482=this[_0x57064c(0x200)]?.[_0x57064c(0x1d2)];if(_0x10f482){const _0x5bb869=_0x10f482[0x0]||'',_0x463e6f=_0x477f22[_0x57064c(0x1e8)]('.'+_0x5bb869),_0x26b52f=_0x477f22[_0x57064c(0x1e8)](_0x146bbe);return _0x463e6f||_0x26b52f||_0x477f22;}return _0x477f22[_0x57064c(0x1e8)](_0x146bbe)||_0x477f22;}[_0x85efd4(0x24b)](){const _0x3de608=_0x85efd4,_0x3a4895=this[_0x3de608(0x230)]?.[_0x3de608(0x24f)]||this[_0x3de608(0x200)];if(!_0x3a4895)return an;const _0x408261=window[_0x3de608(0x1da)](_0x3a4895)[_0x3de608(0x1ea)];if(_0x3de608(0x1e7)===_0x408261||_0x3de608(0x212)===_0x408261||!_0x408261){const _0x36a193=_0x3a4895[_0x3de608(0x202)];if(_0x36a193){const _0x5984eb=window[_0x3de608(0x1da)](_0x36a193);return _0x3de608(0x1e7)!==_0x5984eb[_0x3de608(0x1ea)]?_0x5984eb[_0x3de608(0x1ea)]:an;}return an;}return _0x408261;}[_0x85efd4(0x22d)](_0x1fd7f5,_0xeaa277){const _0x14f3bb=_0x85efd4;this[_0x14f3bb(0x1dc)][_0x14f3bb(0x1be)][_0x14f3bb(0x1cb)]&&_0x1fd7f5[_0x14f3bb(0x1d2)][_0x14f3bb(0x204)](this[_0x14f3bb(0x1dc)][_0x14f3bb(0x1be)][_0x14f3bb(0x1cb)]),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1ea)]=_0xeaa277,_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x23d)]=_0x14f3bb(0x234),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x22c)]=_0x14f3bb(0x245),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1c3)]=_0x14f3bb(0x245),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1ee)]='0',_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x205)]=_0x14f3bb(0x1d1),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x214)]='-1',_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x233)]=_0x14f3bb(0x236),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1e4)]=_0x14f3bb(0x1e3),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1d4)]=_0x14f3bb(0x21a);}[_0x85efd4(0x1e2)](_0x795ecf){const _0x3e70bf=_0x85efd4;_0x795ecf[_0x3e70bf(0x20c)](({element:_0x4e54b9,originalDisplay:_0x372871,originalVisibility:_0x1d5d64})=>{const _0x3c6874=_0x3e70bf;_0x4e54b9[_0x3c6874(0x227)][_0x3c6874(0x1e4)]=_0x372871,_0x4e54b9[_0x3c6874(0x227)][_0x3c6874(0x233)]=_0x1d5d64;});}[_0x85efd4(0x248)](_0x1e1cc0){const _0x4aa3a8=_0x85efd4,_0x6bfc8c=[];let _0x423db5=_0x1e1cc0;for(;_0x423db5&&_0x423db5!==document[_0x4aa3a8(0x243)];){const _0x2476a8=window[_0x4aa3a8(0x1da)](_0x423db5);_0x4aa3a8(0x1d1)!==_0x2476a8[_0x4aa3a8(0x1e4)]&&_0x4aa3a8(0x1c0)!==_0x2476a8[_0x4aa3a8(0x233)]||(_0x6bfc8c[_0x4aa3a8(0x224)]({'element':_0x423db5,'originalDisplay':_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x1e4)],'originalVisibility':_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x233)]}),_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x1e4)]=_0x4aa3a8(0x235),_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x233)]=_0x4aa3a8(0x24a)),_0x423db5=_0x423db5[_0x4aa3a8(0x202)];}return _0x6bfc8c;}[_0x85efd4(0x1d7)](){const _0x192714=_0x85efd4;let _0x26d1bf,_0x362b70;return this[_0x192714(0x230)]?.[_0x192714(0x24f)]?(_0x26d1bf=this[_0x192714(0x230)][_0x192714(0x24f)][_0x192714(0x220)](!0x0),_0x362b70=this[_0x192714(0x1fd)](_0x26d1bf)):(_0x26d1bf=document[_0x192714(0x1d0)](_0x192714(0x22a)),_0x362b70=_0x26d1bf),{'calculationContainer':_0x26d1bf,'targetContainer':_0x362b70};}[_0x85efd4(0x23c)](){const _0x5659bd=_0x85efd4,{calculationContainer:_0x1bd723,targetContainer:_0x372e2e}=this[_0x5659bd(0x1d7)](),_0x2c0cd6=this[_0x5659bd(0x24b)]();this[_0x5659bd(0x22d)](_0x1bd723,_0x2c0cd6);const _0x4985ae=this[_0x5659bd(0x230)]?.[_0x5659bd(0x24f)]||this[_0x5659bd(0x200)],_0x55d8a5=_0x4985ae?.[_0x5659bd(0x202)];_0x55d8a5?_0x55d8a5[_0x5659bd(0x1c2)](_0x1bd723):document[_0x5659bd(0x243)][_0x5659bd(0x1c2)](_0x1bd723),_0x1bd723[_0x5659bd(0x23b)]=_0x372e2e;const _0x3e74fd=this[_0x5659bd(0x248)](_0x55d8a5||null);return _0x1bd723[_0x5659bd(0x1ce)],_0x1bd723[_0x5659bd(0x1c8)]=_0x3e74fd,_0x1bd723;}[_0x85efd4(0x1d6)](_0x4daa21,_0x192dc1){const _0x5a1642=_0x85efd4,_0x113d2e=_0x4daa21[_0x5a1642(0x23b)]||_0x4daa21,_0x1df555=[],{rowCount:_0x243fcc}=this[_0x5a1642(0x21d)](_0x113d2e,_0x192dc1);if(_0x243fcc<=this[_0x5a1642(0x1dc)][_0x5a1642(0x1db)])return _0x1df555;const _0x130e0a=_0x192dc1[_0x5a1642(0x1c4)]();for(;_0x130e0a[_0x5a1642(0x1cf)]>0x0;){if(this[_0x5a1642(0x1cd)](_0x4daa21,_0x113d2e,_0x130e0a)){const _0x4b2442=_0x192dc1[_0x5a1642(0x1ef)](_0x4859fd=>!_0x130e0a[_0x5a1642(0x24c)](_0x4859fd));_0x1df555[_0x5a1642(0x224)](..._0x4b2442);break;}if(!_0x130e0a[_0x5a1642(0x1f5)]())break;}return _0x1df555;}[_0x85efd4(0x21d)](_0xef0fa4,_0x2e058a){const _0xbf2f86=_0x85efd4;_0xef0fa4[_0xbf2f86(0x1c1)]='',_0x2e058a[_0xbf2f86(0x20c)](_0x4366cb=>{const _0x194c73=_0xbf2f86;if(_0x4366cb[_0x194c73(0x24f)]){const _0x46cee6=_0x4366cb[_0x194c73(0x24f)][_0x194c73(0x220)](!0x0);_0xef0fa4[_0x194c73(0x1c2)](_0x46cee6);}}),_0xef0fa4[_0xbf2f86(0x1ce)];const _0x5c26c8=_0xef0fa4[_0xbf2f86(0x1fc)],_0x5aaa36=[];return Array[_0xbf2f86(0x1eb)](_0x5c26c8)[_0xbf2f86(0x20c)](_0x98598d=>{const _0x256c5c=_0xbf2f86,_0x1601fe=_0x98598d[_0x256c5c(0x203)]()[_0x256c5c(0x22c)];_0x5aaa36[_0x256c5c(0x24e)](_0x5b01cf=>Math[_0x256c5c(0x209)](_0x5b01cf-_0x1601fe)<this[_0x256c5c(0x1dc)][_0x256c5c(0x226)])||_0x5aaa36[_0x256c5c(0x224)](_0x1601fe);}),{'rowCount':_0x5aaa36[_0xbf2f86(0x1cf)]};}[_0x85efd4(0x229)](){const _0x1efabb=_0x85efd4,_0x314159=document[_0x1efabb(0x1d0)](_0x1efabb(0x217));return _0x314159[_0x1efabb(0x239)]=this[_0x1efabb(0x1dc)][_0x1efabb(0x1be)][_0x1efabb(0x1e6)],this[_0x1efabb(0x1dc)][_0x1efabb(0x1be)][_0x1efabb(0x1d9)]&&_0x314159[_0x1efabb(0x1d2)][_0x1efabb(0x204)](this[_0x1efabb(0x1dc)][_0x1efabb(0x1be)][_0x1efabb(0x1d9)]),_0x314159[_0x1efabb(0x1d5)]=_0x1efabb(0x1de),_0x314159;}[_0x85efd4(0x1cd)](_0x127b01,_0x58c6b9,_0x1aab91){const _0x3bc795=_0x85efd4;this[_0x3bc795(0x21d)](_0x58c6b9,_0x1aab91);const _0x3be308=this[_0x3bc795(0x229)]();_0x127b01[_0x3bc795(0x1c2)](_0x3be308),_0x127b01[_0x3bc795(0x1ce)];const _0x262b9f=[..._0x58c6b9[_0x3bc795(0x1fc)],_0x3be308],_0x92d32b=[];_0x262b9f[_0x3bc795(0x20c)](_0x48f101=>{const _0xb16bf9=_0x3bc795,_0x23cb5c=_0x48f101[_0xb16bf9(0x203)]()[_0xb16bf9(0x22c)];_0x92d32b[_0xb16bf9(0x24e)](_0x2d8c37=>Math[_0xb16bf9(0x209)](_0x2d8c37-_0x23cb5c)<this[_0xb16bf9(0x1dc)][_0xb16bf9(0x226)])||_0x92d32b[_0xb16bf9(0x224)](_0x23cb5c);});const _0x565351=_0x92d32b[_0x3bc795(0x1cf)];return _0x3be308[_0x3bc795(0x1fa)](),_0x565351<=this[_0x3bc795(0x1dc)][_0x3bc795(0x1db)];}[_0x85efd4(0x222)](_0xca3e4f,_0x489918){const _0x26b4a3=_0x85efd4;this[_0x26b4a3(0x1f0)][_0x26b4a3(0x223)](),this[_0x26b4a3(0x1c9)][_0x26b4a3(0x223)](),_0xca3e4f[_0x26b4a3(0x20c)](_0x49d131=>{const _0x4515b4=_0x26b4a3;_0x489918[_0x4515b4(0x24c)](_0x49d131)?this[_0x4515b4(0x1c9)][_0x4515b4(0x204)](_0x49d131):this[_0x4515b4(0x1f0)][_0x4515b4(0x204)](_0x49d131);});}[_0x85efd4(0x1f2)](_0x2bad59){const _0x4469a7=_0x85efd4;if(_0x2bad59>0x0&&!this[_0x4469a7(0x1fb)]&&this[_0x4469a7(0x1dd)](),_0x2bad59>0x0&&this[_0x4469a7(0x1fb)]){const _0x16e46d=''+this[_0x4469a7(0x1dc)][_0x4469a7(0x21e)]+(_0x2bad59<0x63?_0x2bad59:'99');this[_0x4469a7(0x1fb)][_0x4469a7(0x213)]=_0x16e46d;}this[_0x4469a7(0x1ed)](),this[_0x4469a7(0x216)](),this[_0x4469a7(0x240)]();}[_0x85efd4(0x22e)](_0x12ddc7,_0x17fb69){const _0x10b625=_0x85efd4;this[_0x10b625(0x222)](_0x12ddc7,_0x17fb69),this[_0x10b625(0x1f2)](_0x17fb69[_0x10b625(0x1cf)]);}[_0x85efd4(0x1cc)](){const _0x3b222e=_0x85efd4;this[_0x3b222e(0x200)]&&_0x3b222e(0x1ca)!=typeof IntersectionObserver&&(this[_0x3b222e(0x1e0)]=new IntersectionObserver(_0x1ef1d5=>{const _0x340591=_0x3b222e;_0x1ef1d5[0x0][_0x340591(0x1c6)]&&this[_0x340591(0x221)]&&requestAnimationFrame(()=>{const _0x1c42c0=_0x340591;this[_0x1c42c0(0x1c7)]();});},{'threshold':0.01,'rootMargin':_0x3b222e(0x231)}),this[_0x3b222e(0x1e0)][_0x3b222e(0x218)](this[_0x3b222e(0x200)]));}[_0x85efd4(0x238)](){const _0x23be12=_0x85efd4;if(!this[_0x23be12(0x200)])return!0x1;if(!this[_0x23be12(0x200)][_0x23be12(0x250)])return!0x1;const _0x104248=this[_0x23be12(0x200)][_0x23be12(0x203)]();if(0x0===_0x104248[_0x23be12(0x1ea)]||0x0===_0x104248[_0x23be12(0x1fe)])return!0x1;const _0x3fe796=window[_0x23be12(0x237)]||document[_0x23be12(0x1f7)][_0x23be12(0x20b)],_0x2944e8=window[_0x23be12(0x242)]||document[_0x23be12(0x1f7)][_0x23be12(0x228)],_0x4e2277=0xc8;return _0x104248[_0x23be12(0x24d)]>=-0xc8&&_0x104248[_0x23be12(0x22c)]<=_0x3fe796+_0x4e2277&&_0x104248[_0x23be12(0x1c5)]>=-0xc8&&_0x104248[_0x23be12(0x1c3)]<=_0x2944e8+_0x4e2277;}}
23
+ function _0x5b5a(_0x56c7ed,_0x100390){const _0x1767b0=_0x1767();return _0x5b5a=function(_0x5b5a90,_0x531657){_0x5b5a90=_0x5b5a90-0x1c4;let _0x5c3a42=_0x1767b0[_0x5b5a90];return _0x5c3a42;},_0x5b5a(_0x56c7ed,_0x100390);}const _0x4c6d24=_0x5b5a;function _0x1767(){const _0x229465=['_restoreAncestorVisibility','set','clientWidth','_createContainerElements','1439493heDEMm','observe','0px','_checkAndHandleOverflow','_createShowMoreBalloonPanelView','_repinBalloonPanel','add','content','_isContainerVisible','push','disableAnimationOnEnter','opacity','cloneNode','setContainerElement','2203805GoehWW','some','tagName','bottom','clear','display','extendTemplate','showMoreButton','disconnect','-9999px','_applyCalculationStyles','hide','div','_distributeChips','button','querySelector','_updateBalloonContent','filter','isConnected','hideBalloonPanel','label','undefined','destroy','setTemplate','block\x20!important','pop','body','_createCalculationContainer','_updateOverflowUI','.ck-ai-chat','getComputedStyle','hidden','_locale','_createMockButton','children','showMoreButtonView','4719285ARpIni','_calculateContainerWidth','_containerElement','style','show','_testButtonFit','300px','innerWidth','classList','_renderChipsAndCountRows','left','length','pin','_ancestorsToRestore','controlsButton','abs','from','50px','_showMoreButtonView','_intersectionObserver','_showMoreBalloonPanelView','1328529KcBhQA','ck-calculation-container','10068882UbxbVe','overflowContainer','render','forEach','isVisible','none','_visibleChips','_createShowMoreButtonView','visible','_applyOverflowResults','cssClasses','documentElement','toLowerCase','isOn','auto','remove','reorganizeChips','_updateShowMoreButtonVisibility','visible\x20!important','block','getBoundingClientRect','border-box','_overflowChips','_bodyCollection','boxSizing','createElement','parentElement','_config','_calculateOverflowInContainer','innerHTML','showBalloonPanel','visibility','height','73954490DxusHn','_targetContainer','includes','_makeAncestorsVisible','zIndex','showMoreBalloon','overflowChips','_handleShowMoreButtonClick','12SAaHll','right','innerHeight','appendChild','rowDetectionTolerance','_createShowMoreButton','textContent','_findTargetContainer','calculationContainer','slice','isIntersecting','width','_pendingCalculation','_parentView','_setupVisibilityObserver','offsetWidth','maxVisibleRows','pointerEvents','showMoreLabelPrefix','37032pqedKp','absolute','className','element','position','execute','clientHeight','top','994tNSSzi','+\x201','4sjqzpz'];_0x1767=function(){return _0x229465;};return _0x1767();}(function(_0x3d1caf,_0x3f2ee0){const _0x35d10c=_0x5b5a,_0x3ad3b4=_0x3d1caf();while(!![]){try{const _0x1619d7=-parseInt(_0x35d10c(0x208))/0x1+-parseInt(_0x35d10c(0x203))/0x2*(parseInt(_0x35d10c(0x24f))/0x3)+parseInt(_0x35d10c(0x1e6))/0x4*(-parseInt(_0x35d10c(0x216))/0x5)+-parseInt(_0x35d10c(0x251))/0x6+parseInt(_0x35d10c(0x201))/0x7*(-parseInt(_0x35d10c(0x1f9))/0x8)+-parseInt(_0x35d10c(0x23a))/0x9+parseInt(_0x35d10c(0x1de))/0xa;if(_0x1619d7===_0x3f2ee0)break;else _0x3ad3b4['push'](_0x3ad3b4['shift']());}catch(_0x186c5b){_0x3ad3b4['push'](_0x3ad3b4['shift']());}}}(_0x1767,0xd8d5d));import{View as _0xe2b0c6,BalloonPanelView as _0x2ab322,ButtonView as _0x495367,clickOutsideHandler as _0x38f435}from'ckeditor5/src/ui.js';import{Collection as _0x1c5b08}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x4c6d24(0x240);export class AIChatChipsOverflowManager{[_0x4c6d24(0x236)];[_0x4c6d24(0x1d8)];[_0x4c6d24(0x257)];[_0x4c6d24(0x1d3)];[_0x4c6d24(0x24c)]=null;[_0x4c6d24(0x24e)]=null;[_0x4c6d24(0x23c)]=null;[_0x4c6d24(0x1d4)];[_0x4c6d24(0x1f3)]=null;[_0x4c6d24(0x24d)]=null;[_0x4c6d24(0x1f2)]=!0x1;constructor(_0x5d7a64,_0x3c53b8,_0x5f4e46,_0x4d22bf,_0x5ae90c){const _0x245559=_0x4c6d24;this[_0x245559(0x236)]=_0x5d7a64,this[_0x245559(0x257)]=_0x3c53b8,this[_0x245559(0x1d8)]={...hn,..._0x5f4e46,'cssClasses':{'controlsButton':'','calculationContainer':_0x245559(0x250),..._0x5f4e46[_0x245559(0x1c7)]}},this[_0x245559(0x1d3)]=new _0x1c5b08(),this[_0x245559(0x1d4)]=_0x4d22bf,this[_0x245559(0x1f3)]=_0x5ae90c||null;}[_0x4c6d24(0x215)](_0x1981ec){const _0x4c946d=_0x4c6d24;this[_0x4c946d(0x24d)]&&(this[_0x4c946d(0x24d)][_0x4c946d(0x21e)](),this[_0x4c946d(0x24d)]=null),this[_0x4c946d(0x23c)]=_0x1981ec,this[_0x4c946d(0x1f4)]();}get[_0x4c6d24(0x239)](){const _0x5bfdb2=_0x4c6d24;return this[_0x5bfdb2(0x24c)];}get[_0x4c6d24(0x1e4)](){const _0x3f6721=_0x4c6d24;return this[_0x3f6721(0x1d3)];}[_0x4c6d24(0x1cd)](){requestAnimationFrame(()=>{const _0x311df0=_0x5b5a;this[_0x311df0(0x20b)]();});}[_0x4c6d24(0x1db)](){const _0x28d930=_0x4c6d24;this[_0x28d930(0x24c)]&&this[_0x28d930(0x24e)]&&(this[_0x28d930(0x226)](),this[_0x28d930(0x24c)][_0x28d930(0x1ca)]=!0x0,this[_0x28d930(0x24e)][_0x28d930(0x23e)](),this[_0x28d930(0x24e)][_0x28d930(0x246)]({'target':this[_0x28d930(0x24c)][_0x28d930(0x1fc)],'limiter':document[_0x28d930(0x225)](_0x28d930(0x233))}));}[_0x4c6d24(0x229)](){const _0x382c9f=_0x4c6d24;this[_0x382c9f(0x24c)]&&this[_0x382c9f(0x24e)]&&(this[_0x382c9f(0x24c)][_0x382c9f(0x1ca)]=!0x1,this[_0x382c9f(0x24e)][_0x382c9f(0x221)]());}[_0x4c6d24(0x21a)](){const _0x355284=_0x4c6d24;this[_0x355284(0x1d3)][_0x355284(0x21a)](),this[_0x355284(0x229)](),this[_0x355284(0x1ce)](),this[_0x355284(0x24c)]&&(this[_0x355284(0x24c)][_0x355284(0x22a)]=''),this[_0x355284(0x24e)]&&this[_0x355284(0x24e)][_0x355284(0x20f)][_0x355284(0x21a)]();}[_0x4c6d24(0x22c)](){const _0x243f06=_0x4c6d24;this[_0x243f06(0x24d)]&&(this[_0x243f06(0x24d)][_0x243f06(0x21e)](),this[_0x243f06(0x24d)]=null),this[_0x243f06(0x24c)]&&(this[_0x243f06(0x24c)][_0x243f06(0x22c)](),this[_0x243f06(0x24c)]=null),this[_0x243f06(0x24e)]&&(this[_0x243f06(0x24e)][_0x243f06(0x22c)](),this[_0x243f06(0x24e)]=null);}[_0x4c6d24(0x20b)](){const _0x4dd9b8=_0x4c6d24;if(!this[_0x4dd9b8(0x23c)])return;if(!this[_0x4dd9b8(0x210)]())return void(this[_0x4dd9b8(0x1f2)]=!0x0);this[_0x4dd9b8(0x1f2)]=!0x1;const _0x3958b4=[...this[_0x4dd9b8(0x257)],...this[_0x4dd9b8(0x1d3)]],_0x65fdb4=this[_0x4dd9b8(0x231)](),_0xae3496=this[_0x4dd9b8(0x1d9)](_0x65fdb4,_0x3958b4),_0xe3f5ab=_0x65fdb4[_0x4dd9b8(0x247)];_0xe3f5ab&&this[_0x4dd9b8(0x204)](_0xe3f5ab),_0x65fdb4[_0x4dd9b8(0x1cc)](),this[_0x4dd9b8(0x1c6)](_0x3958b4,_0xae3496);}[_0x4c6d24(0x1eb)](){const _0x9d571c=_0x4c6d24;this[_0x9d571c(0x24c)]=this[_0x9d571c(0x1c4)](),this[_0x9d571c(0x24e)]=this[_0x9d571c(0x20c)](),this[_0x9d571c(0x24c)][_0x9d571c(0x253)](),this[_0x9d571c(0x23c)][_0x9d571c(0x1e9)](this[_0x9d571c(0x24c)][_0x9d571c(0x1fc)]),this[_0x9d571c(0x24c)]['on'](_0x9d571c(0x1fe),()=>{const _0x5ee0f2=_0x9d571c;this[_0x5ee0f2(0x1e5)]();}),_0x38f435({'emitter':this[_0x9d571c(0x24e)],'contextElements':[this[_0x9d571c(0x24e)][_0x9d571c(0x1fc)],this[_0x9d571c(0x24c)][_0x9d571c(0x1fc)]],'callback':()=>this[_0x9d571c(0x229)](),'activator':()=>this[_0x9d571c(0x24c)][_0x9d571c(0x1ca)]});}[_0x4c6d24(0x1c4)](){const _0x2f6d01=_0x4c6d24,_0x23e440=new _0x495367(this[_0x2f6d01(0x236)]);_0x23e440[_0x2f6d01(0x205)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2d591b=[this[_0x2f6d01(0x1d8)][_0x2f6d01(0x1c7)][_0x2f6d01(0x21d)]];return this[_0x2f6d01(0x1d8)][_0x2f6d01(0x1c7)][_0x2f6d01(0x248)]&&_0x2d591b[_0x2f6d01(0x211)](this[_0x2f6d01(0x1d8)][_0x2f6d01(0x1c7)][_0x2f6d01(0x248)]),_0x23e440[_0x2f6d01(0x21c)]({'attributes':{'class':_0x2d591b}}),_0x23e440;}[_0x4c6d24(0x20c)](){const _0x37e0c6=_0x4c6d24,_0x1df100=new _0x2ab322(this[_0x37e0c6(0x236)]);return _0x1df100[_0x37e0c6(0x21c)]({'attributes':{'class':this[_0x37e0c6(0x1d8)][_0x37e0c6(0x1c7)][_0x37e0c6(0x1e3)]}}),this[_0x37e0c6(0x1d4)][_0x37e0c6(0x20e)](_0x1df100),_0x1df100;}[_0x4c6d24(0x226)](){const _0x1e67fd=_0x4c6d24;if(this[_0x1e67fd(0x24e)]&&(this[_0x1e67fd(0x24e)][_0x1e67fd(0x20f)][_0x1e67fd(0x21a)](),this[_0x1e67fd(0x1d3)][_0x1e67fd(0x245)]>0x0)){this[_0x1e67fd(0x1d3)][_0x1e67fd(0x254)](_0x1d0848=>{const _0x4283e4=_0x1e67fd;_0x1d0848[_0x4283e4(0x212)]();});const _0x577b9a=new _0xe2b0c6(this[_0x1e67fd(0x236)]);_0x577b9a[_0x1e67fd(0x22d)]({'tag':_0x1e67fd(0x222),'attributes':{'class':this[_0x1e67fd(0x1d8)][_0x1e67fd(0x1c7)][_0x1e67fd(0x252)]},'children':this[_0x1e67fd(0x1d3)]}),this[_0x1e67fd(0x24e)][_0x1e67fd(0x20f)][_0x1e67fd(0x20e)](_0x577b9a);}}[_0x4c6d24(0x1e5)](){const _0x51eb94=_0x4c6d24;this[_0x51eb94(0x24c)][_0x51eb94(0x1ca)]?this[_0x51eb94(0x229)]():this[_0x51eb94(0x1db)]();}[_0x4c6d24(0x1ce)](){const _0x51a93c=_0x4c6d24,_0x1dbb7b=this[_0x51a93c(0x1d3)][_0x51a93c(0x245)]>0x0;this[_0x51a93c(0x24c)]?.[_0x51a93c(0x1fc)]&&(this[_0x51a93c(0x24c)][_0x51a93c(0x1fc)][_0x51a93c(0x23d)][_0x51a93c(0x21b)]=_0x1dbb7b?'':_0x51a93c(0x256));}[_0x4c6d24(0x20d)](){const _0x361907=_0x4c6d24;this[_0x361907(0x24c)]?.[_0x361907(0x1ca)]&&this[_0x361907(0x24e)]?.[_0x361907(0x255)]&&this[_0x361907(0x24c)][_0x361907(0x1fc)]&&this[_0x361907(0x24e)][_0x361907(0x246)]({'target':this[_0x361907(0x24c)][_0x361907(0x1fc)],'limiter':document[_0x361907(0x225)](_0x361907(0x233))});}[_0x4c6d24(0x1ed)](_0x4aa644){const _0x1a86c2=_0x4c6d24,_0x45a78d=this[_0x1a86c2(0x23c)]?.[_0x1a86c2(0x218)][_0x1a86c2(0x1c9)]()||_0x1a86c2(0x222),_0x241d6f=this[_0x1a86c2(0x23c)]?.[_0x1a86c2(0x242)];if(_0x241d6f){const _0x3d5b8a=_0x241d6f[0x0]||'',_0x3adc63=_0x4aa644[_0x1a86c2(0x225)]('.'+_0x3d5b8a),_0x177d1b=_0x4aa644[_0x1a86c2(0x225)](_0x45a78d);return _0x3adc63||_0x177d1b||_0x4aa644;}return _0x4aa644[_0x1a86c2(0x225)](_0x45a78d)||_0x4aa644;}[_0x4c6d24(0x23b)](){const _0x40655f=_0x4c6d24,_0x47ceb0=this[_0x40655f(0x1f3)]?.[_0x40655f(0x1fc)]||this[_0x40655f(0x23c)];if(!_0x47ceb0)return an;const _0x4ff99d=window[_0x40655f(0x234)](_0x47ceb0)[_0x40655f(0x1f1)];if(_0x40655f(0x1cb)===_0x4ff99d||_0x40655f(0x20a)===_0x4ff99d||!_0x4ff99d){const _0x5bd8ca=_0x47ceb0[_0x40655f(0x1d7)];if(_0x5bd8ca){const _0x5dcfd5=window[_0x40655f(0x234)](_0x5bd8ca);return _0x40655f(0x1cb)!==_0x5dcfd5[_0x40655f(0x1f1)]?_0x5dcfd5[_0x40655f(0x1f1)]:an;}return an;}return _0x4ff99d;}[_0x4c6d24(0x220)](_0x1865c5,_0x52a820){const _0x31ba97=_0x4c6d24;this[_0x31ba97(0x1d8)][_0x31ba97(0x1c7)][_0x31ba97(0x1ee)]&&_0x1865c5[_0x31ba97(0x242)][_0x31ba97(0x20e)](this[_0x31ba97(0x1d8)][_0x31ba97(0x1c7)][_0x31ba97(0x1ee)]),_0x1865c5[_0x31ba97(0x23d)][_0x31ba97(0x1f1)]=_0x52a820,_0x1865c5[_0x31ba97(0x23d)][_0x31ba97(0x1fd)]=_0x31ba97(0x1fa),_0x1865c5[_0x31ba97(0x23d)][_0x31ba97(0x200)]=_0x31ba97(0x21f),_0x1865c5[_0x31ba97(0x23d)][_0x31ba97(0x244)]=_0x31ba97(0x21f),_0x1865c5[_0x31ba97(0x23d)][_0x31ba97(0x213)]='0',_0x1865c5[_0x31ba97(0x23d)][_0x31ba97(0x1f7)]=_0x31ba97(0x256),_0x1865c5[_0x31ba97(0x23d)][_0x31ba97(0x1e2)]='-1',_0x1865c5[_0x31ba97(0x23d)][_0x31ba97(0x1dc)]=_0x31ba97(0x1cf),_0x1865c5[_0x31ba97(0x23d)][_0x31ba97(0x21b)]=_0x31ba97(0x22e),_0x1865c5[_0x31ba97(0x23d)][_0x31ba97(0x1d5)]=_0x31ba97(0x1d2);}[_0x4c6d24(0x204)](_0x443a7a){const _0x5efc1d=_0x4c6d24;_0x443a7a[_0x5efc1d(0x254)](({element:_0x90f158,originalDisplay:_0x5d4075,originalVisibility:_0x41e352})=>{const _0x334bf3=_0x5efc1d;_0x90f158[_0x334bf3(0x23d)][_0x334bf3(0x21b)]=_0x5d4075,_0x90f158[_0x334bf3(0x23d)][_0x334bf3(0x1dc)]=_0x41e352;});}[_0x4c6d24(0x1e1)](_0x1aaa43){const _0x4a9507=_0x4c6d24,_0x31b416=[];let _0x593b9a=_0x1aaa43;for(;_0x593b9a&&_0x593b9a!==document[_0x4a9507(0x230)];){const _0x122023=window[_0x4a9507(0x234)](_0x593b9a);_0x4a9507(0x256)!==_0x122023[_0x4a9507(0x21b)]&&_0x4a9507(0x235)!==_0x122023[_0x4a9507(0x1dc)]||(_0x31b416[_0x4a9507(0x211)]({'element':_0x593b9a,'originalDisplay':_0x593b9a[_0x4a9507(0x23d)][_0x4a9507(0x21b)],'originalVisibility':_0x593b9a[_0x4a9507(0x23d)][_0x4a9507(0x1dc)]}),_0x593b9a[_0x4a9507(0x23d)][_0x4a9507(0x21b)]=_0x4a9507(0x1d0),_0x593b9a[_0x4a9507(0x23d)][_0x4a9507(0x1dc)]=_0x4a9507(0x1c5)),_0x593b9a=_0x593b9a[_0x4a9507(0x1d7)];}return _0x31b416;}[_0x4c6d24(0x207)](){const _0x16df3a=_0x4c6d24;let _0x25b77f,_0x38c736;return this[_0x16df3a(0x1f3)]?.[_0x16df3a(0x1fc)]?(_0x25b77f=this[_0x16df3a(0x1f3)][_0x16df3a(0x1fc)][_0x16df3a(0x214)](!0x0),_0x38c736=this[_0x16df3a(0x1ed)](_0x25b77f)):(_0x25b77f=document[_0x16df3a(0x1d6)](_0x16df3a(0x222)),_0x38c736=_0x25b77f),{'calculationContainer':_0x25b77f,'targetContainer':_0x38c736};}[_0x4c6d24(0x231)](){const _0x1ad753=_0x4c6d24,{calculationContainer:_0x19422c,targetContainer:_0x400d57}=this[_0x1ad753(0x207)](),_0x11b1b4=this[_0x1ad753(0x23b)]();this[_0x1ad753(0x220)](_0x19422c,_0x11b1b4);const _0x93068a=this[_0x1ad753(0x1f3)]?.[_0x1ad753(0x1fc)]||this[_0x1ad753(0x23c)],_0x35cca1=_0x93068a?.[_0x1ad753(0x1d7)];_0x35cca1?_0x35cca1[_0x1ad753(0x1e9)](_0x19422c):document[_0x1ad753(0x230)][_0x1ad753(0x1e9)](_0x19422c),_0x19422c[_0x1ad753(0x1df)]=_0x400d57;const _0x46bd12=this[_0x1ad753(0x1e1)](_0x35cca1||null);return _0x19422c[_0x1ad753(0x1f5)],_0x19422c[_0x1ad753(0x247)]=_0x46bd12,_0x19422c;}[_0x4c6d24(0x1d9)](_0x165fde,_0x210036){const _0x3980f8=_0x4c6d24,_0x21d766=_0x165fde[_0x3980f8(0x1df)]||_0x165fde,_0x419b4a=[],{rowCount:_0x37a74e}=this[_0x3980f8(0x243)](_0x21d766,_0x210036);if(_0x37a74e<=this[_0x3980f8(0x1d8)][_0x3980f8(0x1f6)])return _0x419b4a;const _0x95d92=_0x210036[_0x3980f8(0x1ef)]();for(;_0x95d92[_0x3980f8(0x245)]>0x0;){if(this[_0x3980f8(0x23f)](_0x165fde,_0x21d766,_0x95d92)){const _0x173fd4=_0x210036[_0x3980f8(0x227)](_0x4a274a=>!_0x95d92[_0x3980f8(0x1e0)](_0x4a274a));_0x419b4a[_0x3980f8(0x211)](..._0x173fd4);break;}if(!_0x95d92[_0x3980f8(0x22f)]())break;}return _0x419b4a;}[_0x4c6d24(0x243)](_0x3eceff,_0x2cca5d){const _0x1db47b=_0x4c6d24;_0x3eceff[_0x1db47b(0x1da)]='',_0x2cca5d[_0x1db47b(0x254)](_0x26e801=>{const _0x1244d5=_0x1db47b;if(_0x26e801[_0x1244d5(0x1fc)]){const _0x183997=_0x26e801[_0x1244d5(0x1fc)][_0x1244d5(0x214)](!0x0);_0x3eceff[_0x1244d5(0x1e9)](_0x183997);}}),_0x3eceff[_0x1db47b(0x1f5)];const _0x54fcfe=_0x3eceff[_0x1db47b(0x238)],_0x39b8ea=[];return Array[_0x1db47b(0x24a)](_0x54fcfe)[_0x1db47b(0x254)](_0x2dc763=>{const _0x5cef62=_0x1db47b,_0x4955f8=_0x2dc763[_0x5cef62(0x1d1)]()[_0x5cef62(0x200)];_0x39b8ea[_0x5cef62(0x217)](_0x50521f=>Math[_0x5cef62(0x249)](_0x50521f-_0x4955f8)<this[_0x5cef62(0x1d8)][_0x5cef62(0x1ea)])||_0x39b8ea[_0x5cef62(0x211)](_0x4955f8);}),{'rowCount':_0x39b8ea[_0x1db47b(0x245)]};}[_0x4c6d24(0x237)](){const _0x1a54c6=_0x4c6d24,_0x81a4aa=document[_0x1a54c6(0x1d6)](_0x1a54c6(0x224));return _0x81a4aa[_0x1a54c6(0x1fb)]=this[_0x1a54c6(0x1d8)][_0x1a54c6(0x1c7)][_0x1a54c6(0x21d)],this[_0x1a54c6(0x1d8)][_0x1a54c6(0x1c7)][_0x1a54c6(0x248)]&&_0x81a4aa[_0x1a54c6(0x242)][_0x1a54c6(0x20e)](this[_0x1a54c6(0x1d8)][_0x1a54c6(0x1c7)][_0x1a54c6(0x248)]),_0x81a4aa[_0x1a54c6(0x1ec)]=_0x1a54c6(0x202),_0x81a4aa;}[_0x4c6d24(0x23f)](_0xc83680,_0x41abd6,_0x228a8a){const _0x4a05b8=_0x4c6d24;this[_0x4a05b8(0x243)](_0x41abd6,_0x228a8a);const _0x288cf6=this[_0x4a05b8(0x237)]();_0xc83680[_0x4a05b8(0x1e9)](_0x288cf6),_0xc83680[_0x4a05b8(0x1f5)];const _0x5ab736=[..._0x41abd6[_0x4a05b8(0x238)],_0x288cf6],_0x32202b=[];_0x5ab736[_0x4a05b8(0x254)](_0x3bbf8c=>{const _0x1278ba=_0x4a05b8,_0x574b55=_0x3bbf8c[_0x1278ba(0x1d1)]()[_0x1278ba(0x200)];_0x32202b[_0x1278ba(0x217)](_0x1447be=>Math[_0x1278ba(0x249)](_0x1447be-_0x574b55)<this[_0x1278ba(0x1d8)][_0x1278ba(0x1ea)])||_0x32202b[_0x1278ba(0x211)](_0x574b55);});const _0x28983f=_0x32202b[_0x4a05b8(0x245)];return _0x288cf6[_0x4a05b8(0x1cc)](),_0x28983f<=this[_0x4a05b8(0x1d8)][_0x4a05b8(0x1f6)];}[_0x4c6d24(0x223)](_0x496c33,_0x53f04a){const _0x4be2bf=_0x4c6d24;this[_0x4be2bf(0x257)][_0x4be2bf(0x21a)](),this[_0x4be2bf(0x1d3)][_0x4be2bf(0x21a)](),_0x496c33[_0x4be2bf(0x254)](_0x5a5c44=>{const _0xbcb621=_0x4be2bf;_0x53f04a[_0xbcb621(0x1e0)](_0x5a5c44)?this[_0xbcb621(0x1d3)][_0xbcb621(0x20e)](_0x5a5c44):this[_0xbcb621(0x257)][_0xbcb621(0x20e)](_0x5a5c44);});}[_0x4c6d24(0x232)](_0x5a8f5d){const _0x393fd7=_0x4c6d24;if(_0x5a8f5d>0x0&&!this[_0x393fd7(0x24c)]&&this[_0x393fd7(0x1eb)](),_0x5a8f5d>0x0&&this[_0x393fd7(0x24c)]){const _0x428e75=''+this[_0x393fd7(0x1d8)][_0x393fd7(0x1f8)]+(_0x5a8f5d<0x63?_0x5a8f5d:'99');this[_0x393fd7(0x24c)][_0x393fd7(0x22a)]=_0x428e75;}this[_0x393fd7(0x226)](),this[_0x393fd7(0x1ce)](),this[_0x393fd7(0x20d)]();}[_0x4c6d24(0x1c6)](_0x560377,_0x43f978){const _0x14a055=_0x4c6d24;this[_0x14a055(0x223)](_0x560377,_0x43f978),this[_0x14a055(0x232)](_0x43f978[_0x14a055(0x245)]);}[_0x4c6d24(0x1f4)](){const _0xbf9f3f=_0x4c6d24;this[_0xbf9f3f(0x23c)]&&_0xbf9f3f(0x22b)!=typeof IntersectionObserver&&(this[_0xbf9f3f(0x24d)]=new IntersectionObserver(_0x4de6fd=>{const _0x3d5637=_0xbf9f3f;_0x4de6fd[0x0][_0x3d5637(0x1f0)]&&this[_0x3d5637(0x1f2)]&&requestAnimationFrame(()=>{const _0x473659=_0x3d5637;this[_0x473659(0x20b)]();});},{'threshold':0.01,'rootMargin':_0xbf9f3f(0x24b)}),this[_0xbf9f3f(0x24d)][_0xbf9f3f(0x209)](this[_0xbf9f3f(0x23c)]));}[_0x4c6d24(0x210)](){const _0x8affb7=_0x4c6d24;if(!this[_0x8affb7(0x23c)])return!0x1;if(!this[_0x8affb7(0x23c)][_0x8affb7(0x228)])return!0x1;const _0x467d4a=this[_0x8affb7(0x23c)][_0x8affb7(0x1d1)]();if(0x0===_0x467d4a[_0x8affb7(0x1f1)]||0x0===_0x467d4a[_0x8affb7(0x1dd)])return!0x1;const _0x277ada=window[_0x8affb7(0x1e8)]||document[_0x8affb7(0x1c8)][_0x8affb7(0x1ff)],_0x26c741=window[_0x8affb7(0x241)]||document[_0x8affb7(0x1c8)][_0x8affb7(0x206)],_0x384981=0xc8;return _0x467d4a[_0x8affb7(0x219)]>=-0xc8&&_0x467d4a[_0x8affb7(0x200)]<=_0x277ada+_0x384981&&_0x467d4a[_0x8affb7(0x1e7)]>=-0xc8&&_0x467d4a[_0x8affb7(0x244)]<=_0x26c741+_0x384981;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x595de5=_0x3f04;(function(_0x5d93a1,_0x2739ef){const _0x5ed931=_0x3f04,_0x28d142=_0x5d93a1();while(!![]){try{const _0x5cd98b=-parseInt(_0x5ed931(0x10d))/0x1*(parseInt(_0x5ed931(0x105))/0x2)+-parseInt(_0x5ed931(0x102))/0x3+-parseInt(_0x5ed931(0xf7))/0x4*(-parseInt(_0x5ed931(0x122))/0x5)+-parseInt(_0x5ed931(0x112))/0x6+-parseInt(_0x5ed931(0x12f))/0x7*(-parseInt(_0x5ed931(0x132))/0x8)+-parseInt(_0x5ed931(0x12a))/0x9+parseInt(_0x5ed931(0x104))/0xa*(parseInt(_0x5ed931(0x100))/0xb);if(_0x5cd98b===_0x2739ef)break;else _0x28d142['push'](_0x28d142['shift']());}catch(_0x3d94ee){_0x28d142['push'](_0x28d142['shift']());}}}(_0x28f9,0xacaa4));function _0x28f9(){const _0x5e654f=['5BljfFu','element','document','extendTemplate','length','ck-ai-chat-context-controls__chip-tooltip','webkitAnimationEnd','_handleAnimationEndOnce','12108474iaciVW','ck-ai-chat-context-chip_wide','_createLoaderIcon','bind','selection','28vjVxpg','ck-ai-chat-context-chip','_setupRemoveButtonEvent','2665576zEwnJT','render','div','bindTemplate','removeContextItemChip','setTemplate','readonly','_createTemplateChildren','550988HDdGVV','ck-ai-chat-context-chip__label','tooltip','ck-ai-chat-context-chip_new-chip','_setupTemplate','_createIconView','addEventListener','remove','removeEventListener','11ahvHCH','set','2913477QPrdzL','itemType','19731110biFCCs','8SLWwLd','classList','_createRemoveButton','isVisible','_initializeProperties','isLoading','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_isAnimationOnEnterEnabled','38051CnAMJX','_createLabelElement','ck-ai-chat-context-chip_document','add','label','1605966llFpeV','slice','lastIndexOf','type','fire','locale','disableAnimationOnEnter','span','animationend','ck-hidden','small','ck-ai-chat-context-chip__type-icon','execute','content','uiId','_createTemplateAttributes'];_0x28f9=function(){return _0x5e654f;};return _0x28f9();}import{ButtonView as _0xdcbaed,IconView as _0x37d210}from'ckeditor5/src/ui.js';function _0x3f04(_0x2ab2be,_0x4b11a9){const _0x28f9bf=_0x28f9();return _0x3f04=function(_0x3f041b,_0x554232){_0x3f041b=_0x3f041b-0xf4;let _0x2376c9=_0x28f9bf[_0x3f041b];return _0x2376c9;},_0x3f04(_0x2ab2be,_0x4b11a9);}import{IconClose as _0x3e0c50,IconDocument as _0x342427,IconFileUpload as _0x4a8bd1,IconLink as _0x474e1f,IconSelection as _0x43daef}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1ad054}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x26e2e4}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x4a8bd1,'document':_0x342427,'web-resource':_0x474e1f,'text':_0x4a8bd1,'selection':_0x43daef,'mcp-tool-context':_0x342427},bn=_0x595de5(0x130),wn=_0x595de5(0x12b),Tn=_0x595de5(0x10f),En=_0x595de5(0xf8),fn=_0x595de5(0x11d),An=_0x595de5(0x127),Cn='n';export class AIChatContextItemButtonView extends _0xdcbaed{constructor(_0x3cebfb,_0x2001a2,_0x1624e1,_0x2466a0,_0x170b3c=!0x1){const _0xb0be61=_0x595de5;super(_0x3cebfb),this[_0xb0be61(0x10c)]=_0x2466a0,this[_0xb0be61(0x109)](_0x2001a2,_0x1624e1,_0x170b3c),this[_0xb0be61(0xfb)]();}[_0x595de5(0x133)](){const _0x147d88=_0x595de5;super[_0x147d88(0x133)](),this[_0x147d88(0x10c)]&&this[_0x147d88(0x123)]&&(this[_0x147d88(0x123)][_0x147d88(0x106)][_0x147d88(0x110)](_0x147d88(0xfa)),this[_0x147d88(0x129)](this[_0x147d88(0x123)],()=>{const _0x332a63=_0x147d88;this[_0x332a63(0x123)]&&this[_0x332a63(0x123)][_0x332a63(0x106)][_0x332a63(0xfe)](_0x332a63(0xfa));}));}[_0x595de5(0x118)](){const _0x4629c4=_0x595de5;this[_0x4629c4(0x10c)]=!0x1,this[_0x4629c4(0x123)]&&this[_0x4629c4(0x123)][_0x4629c4(0x106)][_0x4629c4(0xfe)](_0x4629c4(0xfa));}[_0x595de5(0x109)](_0x5add1a,_0x34b9a9,_0x51ab4a){const _0x4b8e5c=_0x595de5;this[_0x4b8e5c(0x101)](_0x4b8e5c(0x111),_0x5add1a[_0x4b8e5c(0x111)]),this[_0x4b8e5c(0x101)](_0x4b8e5c(0xf9),!0x0),this[_0x4b8e5c(0x101)](_0x4b8e5c(0x103),_0x5add1a[_0x4b8e5c(0x115)]),this[_0x4b8e5c(0x101)]('id',_0x5add1a[_0x4b8e5c(0x120)]),this[_0x4b8e5c(0x101)](_0x4b8e5c(0xf5),_0x34b9a9),this[_0x4b8e5c(0x101)](_0x4b8e5c(0x10a),_0x51ab4a);}[_0x595de5(0xfb)](){const _0x3e33d7=_0x595de5,_0xf9dfe1=this[_0x3e33d7(0xfc)](),_0x472a04=this[_0x3e33d7(0x107)](),_0x5829ca=this[_0x3e33d7(0x135)];this[_0x3e33d7(0xf4)]({'tag':_0x3e33d7(0x134),'attributes':this[_0x3e33d7(0x121)](_0x5829ca),'children':this[_0x3e33d7(0xf6)](_0xf9dfe1,_0x472a04,_0x5829ca)});}[_0x595de5(0x121)](_0x3ea2f4){const _0xd19464=_0x595de5;return{'class':[bn,_0x3ea2f4['if'](_0xd19464(0x103),Tn,_0x3b5c8c=>_0xd19464(0x124)==_0x3b5c8c),_0x3ea2f4['if'](_0xd19464(0x103),wn,_0x37b9b2=>_0xd19464(0x12e)==_0x37b9b2)],'data-cke-tooltip-text':_0x3ea2f4['to'](_0xd19464(0x111),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x595de5(0xf6)](_0x32bef8,_0x25438d,_0x2e88e7){const _0x38ac0b=_0x595de5,_0x2448d1=this[_0x38ac0b(0x10e)](_0x2e88e7),_0x23e25b=this[_0x38ac0b(0x12c)]();return this[_0x38ac0b(0xf5)]?[_0x32bef8,_0x2448d1]:[_0x32bef8,_0x23e25b,_0x2448d1,_0x25438d];}[_0x595de5(0x10e)](_0x21bb9a){const _0x14d37a=_0x595de5;return{'tag':_0x14d37a(0x119),'attributes':{'class':En},'children':[{'text':_0x21bb9a['to'](_0x14d37a(0x111))}]};}[_0x595de5(0x107)](){const _0xb79832=_0x595de5,_0x521400=new _0xdcbaed(this[_0xb79832(0x117)]);return _0x521400[_0xb79832(0x101)]({'label':_0x1ad054(this[_0xb79832(0x117)],_0xb79832(0x10b)),'icon':_0x3e0c50}),this[_0xb79832(0x131)](_0x521400),_0x521400;}[_0x595de5(0x131)](_0x2ac002){const _0x52c090=_0x595de5;_0x2ac002['on'](_0x52c090(0x11e),()=>{const _0x2ca325=_0x52c090;this[_0x2ca325(0x116)](_0x2ca325(0x136),this['id']);});}[_0x595de5(0xfc)](){const _0x37e730=_0x595de5,_0x45526b=this[_0x37e730(0x135)],_0x4f9f57=new _0x37d210();return _0x4f9f57[_0x37e730(0x11f)]=xn[this[_0x37e730(0x103)]],_0x4f9f57[_0x37e730(0x125)]({'attributes':{'class':[fn,_0x45526b['if'](_0x37e730(0x10a),_0x37e730(0x11b),_0x5f5b4b=>_0x5f5b4b)]}}),_0x4f9f57;}[_0x595de5(0x129)](_0x1ce7b9,_0x5f14ba){const _0x5e87ec=_0x595de5;if(!_0x1ce7b9)return;const _0x8d9d70=()=>{const _0x1ed013=_0x3f04;_0x5f14ba(),_0x1ce7b9[_0x1ed013(0xff)](_0x1ed013(0x11a),_0x8d9d70),_0x1ce7b9[_0x1ed013(0xff)](_0x1ed013(0x128),_0x8d9d70);};_0x1ce7b9[_0x5e87ec(0xfd)](_0x5e87ec(0x11a),_0x8d9d70),_0x1ce7b9[_0x5e87ec(0xfd)](_0x5e87ec(0x128),_0x8d9d70);}[_0x595de5(0x12c)](){const _0x1959c7=_0x595de5,_0x2b7cda=new _0x26e2e4(_0x1959c7(0x11c));return _0x2b7cda[_0x1959c7(0x12d)](_0x1959c7(0x108))['to'](this,_0x1959c7(0x10a),_0xa598e1=>_0xa598e1),_0x2b7cda;}}function In(_0x3bc4f6){const _0x4ee7ec=_0x595de5;if(!_0x3bc4f6)return _0x3bc4f6;if(_0x3bc4f6[_0x4ee7ec(0x126)]<=0x78)return _0x3bc4f6;const _0x2e1c7c=_0x3bc4f6[_0x4ee7ec(0x113)](0x0,0x78),_0xd37032=_0x2e1c7c[_0x4ee7ec(0x114)]('\x20');return(_0xd37032>0x0?_0x2e1c7c[_0x4ee7ec(0x113)](0x0,_0xd37032):_0x2e1c7c)+'…';}
23
+ const _0x1a735a=_0x4770;(function(_0x3631ff,_0x391b8b){const _0x1c141c=_0x4770,_0x1a6c30=_0x3631ff();while(!![]){try{const _0x80d05a=-parseInt(_0x1c141c(0xc0))/0x1+-parseInt(_0x1c141c(0xc8))/0x2*(parseInt(_0x1c141c(0xc3))/0x3)+-parseInt(_0x1c141c(0xcf))/0x4+-parseInt(_0x1c141c(0xe8))/0x5*(parseInt(_0x1c141c(0xf3))/0x6)+-parseInt(_0x1c141c(0xe4))/0x7+parseInt(_0x1c141c(0xce))/0x8+-parseInt(_0x1c141c(0xdf))/0x9*(-parseInt(_0x1c141c(0xdd))/0xa);if(_0x80d05a===_0x391b8b)break;else _0x1a6c30['push'](_0x1a6c30['shift']());}catch(_0x254de9){_0x1a6c30['push'](_0x1a6c30['shift']());}}}(_0x57a8,0x26c17));function _0x57a8(){const _0x178ba1=['slice','execute','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip_wide','2033576cNRtot','1160008XyGnOP','_createLabelElement','_createIconView','_setupRemoveButtonEvent','itemType','setTemplate','readonly','removeContextItemChip','_createLoaderIcon','element','length','small','lastIndexOf','remove','50qgBwmW','document','1988721afYLYY','removeEventListener','_isAnimationOnEnterEnabled','animationend','div','846062bJHzeP','tooltip','_setupTemplate','ck-ai-chat-context-chip__label','5PDMLCA','isLoading','bind','span','locale','_createRemoveButton','ck-hidden','ck-ai-chat-context-chip','ck-ai-chat-context-chip_document','fire','extendTemplate','1688268LpimUX','_createTemplateAttributes','add','uiId','ck-ai-chat-context-controls__chip-tooltip','label','type','_handleAnimationEndOnce','disableAnimationOnEnter','bindTemplate','classList','selection','set','_createTemplateChildren','content','287311NwHYbi','render','ck-ai-chat-context-chip_new-chip','662226nPPyjQ','webkitAnimationEnd','_initializeProperties','addEventListener','isVisible','2oCpTfc','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT'];_0x57a8=function(){return _0x178ba1;};return _0x57a8();}function _0x4770(_0x439385,_0x42af1f){const _0x57a8f1=_0x57a8();return _0x4770=function(_0x4770f4,_0x28010e){_0x4770f4=_0x4770f4-0xba;let _0x3e3c03=_0x57a8f1[_0x4770f4];return _0x3e3c03;},_0x4770(_0x439385,_0x42af1f);}import{ButtonView as _0xb80c0e,IconView as _0x4a24d4}from'ckeditor5/src/ui.js';import{IconClose as _0x3b04a4,IconDocument as _0x868520,IconFileUpload as _0xab25d7,IconLink as _0x1a7441,IconSelection as _0x5691c3}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x39712c}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5914dc}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xab25d7,'document':_0x868520,'web-resource':_0x1a7441,'text':_0xab25d7,'selection':_0x5691c3,'mcp-tool-context':_0x868520},bn=_0x1a735a(0xef),wn=_0x1a735a(0xcd),Tn=_0x1a735a(0xf0),En=_0x1a735a(0xe7),fn=_0x1a735a(0xcc),An=_0x1a735a(0xf7),Cn='n';export class AIChatContextItemButtonView extends _0xb80c0e{constructor(_0x3e156a,_0x5d49a9,_0x28c529,_0x44fa26,_0x2d66e8=!0x1){const _0x365a20=_0x1a735a;super(_0x3e156a),this[_0x365a20(0xe1)]=_0x44fa26,this[_0x365a20(0xc5)](_0x5d49a9,_0x28c529,_0x2d66e8),this[_0x365a20(0xe6)]();}[_0x1a735a(0xc1)](){const _0x159c31=_0x1a735a;super[_0x159c31(0xc1)](),this[_0x159c31(0xe1)]&&this[_0x159c31(0xd8)]&&(this[_0x159c31(0xd8)][_0x159c31(0xbb)][_0x159c31(0xf5)](_0x159c31(0xc2)),this[_0x159c31(0xfa)](this[_0x159c31(0xd8)],()=>{const _0x5bc0c7=_0x159c31;this[_0x5bc0c7(0xd8)]&&this[_0x5bc0c7(0xd8)][_0x5bc0c7(0xbb)][_0x5bc0c7(0xdc)](_0x5bc0c7(0xc2));}));}[_0x1a735a(0xfb)](){const _0x4f2189=_0x1a735a;this[_0x4f2189(0xe1)]=!0x1,this[_0x4f2189(0xd8)]&&this[_0x4f2189(0xd8)][_0x4f2189(0xbb)][_0x4f2189(0xdc)](_0x4f2189(0xc2));}[_0x1a735a(0xc5)](_0x1ce162,_0x12bcc3,_0x1dd644){const _0x5ad091=_0x1a735a;this[_0x5ad091(0xbd)](_0x5ad091(0xf8),_0x1ce162[_0x5ad091(0xf8)]),this[_0x5ad091(0xbd)](_0x5ad091(0xe5),!0x0),this[_0x5ad091(0xbd)](_0x5ad091(0xd3),_0x1ce162[_0x5ad091(0xf9)]),this[_0x5ad091(0xbd)]('id',_0x1ce162[_0x5ad091(0xf6)]),this[_0x5ad091(0xbd)](_0x5ad091(0xd5),_0x12bcc3),this[_0x5ad091(0xbd)](_0x5ad091(0xe9),_0x1dd644);}[_0x1a735a(0xe6)](){const _0x2a3403=_0x1a735a,_0x2b2048=this[_0x2a3403(0xd1)](),_0x4a1fc3=this[_0x2a3403(0xed)](),_0x547eab=this[_0x2a3403(0xba)];this[_0x2a3403(0xd4)]({'tag':_0x2a3403(0xe3),'attributes':this[_0x2a3403(0xf4)](_0x547eab),'children':this[_0x2a3403(0xbe)](_0x2b2048,_0x4a1fc3,_0x547eab)});}[_0x1a735a(0xf4)](_0x388197){const _0x2bd4aa=_0x1a735a;return{'class':[bn,_0x388197['if'](_0x2bd4aa(0xd3),Tn,_0x6c051e=>_0x2bd4aa(0xde)==_0x6c051e),_0x388197['if'](_0x2bd4aa(0xd3),wn,_0x4de6e5=>_0x2bd4aa(0xbc)==_0x4de6e5)],'data-cke-tooltip-text':_0x388197['to'](_0x2bd4aa(0xf8),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x1a735a(0xbe)](_0x1e0156,_0x478bbd,_0x3dd3c9){const _0x50980c=_0x1a735a,_0x325f9d=this[_0x50980c(0xd0)](_0x3dd3c9),_0x298a53=this[_0x50980c(0xd7)]();return this[_0x50980c(0xd5)]?[_0x1e0156,_0x325f9d]:[_0x1e0156,_0x298a53,_0x325f9d,_0x478bbd];}[_0x1a735a(0xd0)](_0x3df9ec){const _0x32f9df=_0x1a735a;return{'tag':_0x32f9df(0xeb),'attributes':{'class':En},'children':[{'text':_0x3df9ec['to'](_0x32f9df(0xf8))}]};}[_0x1a735a(0xed)](){const _0x3f19b7=_0x1a735a,_0x36834a=new _0xb80c0e(this[_0x3f19b7(0xec)]);return _0x36834a[_0x3f19b7(0xbd)]({'label':_0x39712c(this[_0x3f19b7(0xec)],_0x3f19b7(0xc9)),'icon':_0x3b04a4}),this[_0x3f19b7(0xd2)](_0x36834a),_0x36834a;}[_0x1a735a(0xd2)](_0xec868d){const _0x43b81c=_0x1a735a;_0xec868d['on'](_0x43b81c(0xcb),()=>{const _0x4228f1=_0x43b81c;this[_0x4228f1(0xf1)](_0x4228f1(0xd6),this['id']);});}[_0x1a735a(0xd1)](){const _0x2e76af=_0x1a735a,_0x5c255d=this[_0x2e76af(0xba)],_0x470eed=new _0x4a24d4();return _0x470eed[_0x2e76af(0xbf)]=xn[this[_0x2e76af(0xd3)]],_0x470eed[_0x2e76af(0xf2)]({'attributes':{'class':[fn,_0x5c255d['if'](_0x2e76af(0xe9),_0x2e76af(0xee),_0x6da92=>_0x6da92)]}}),_0x470eed;}[_0x1a735a(0xfa)](_0x392c98,_0x20e94a){const _0x46c5d9=_0x1a735a;if(!_0x392c98)return;const _0x19beb8=()=>{const _0x333e1d=_0x4770;_0x20e94a(),_0x392c98[_0x333e1d(0xe0)](_0x333e1d(0xe2),_0x19beb8),_0x392c98[_0x333e1d(0xe0)](_0x333e1d(0xc4),_0x19beb8);};_0x392c98[_0x46c5d9(0xc6)](_0x46c5d9(0xe2),_0x19beb8),_0x392c98[_0x46c5d9(0xc6)](_0x46c5d9(0xc4),_0x19beb8);}[_0x1a735a(0xd7)](){const _0x39ae20=_0x1a735a,_0x37767f=new _0x5914dc(_0x39ae20(0xda));return _0x37767f[_0x39ae20(0xea)](_0x39ae20(0xc7))['to'](this,_0x39ae20(0xe9),_0x419278=>_0x419278),_0x37767f;}}function In(_0x24ec8d){const _0x2deb41=_0x1a735a;if(!_0x24ec8d)return _0x24ec8d;if(_0x24ec8d[_0x2deb41(0xd9)]<=0x78)return _0x24ec8d;const _0x335063=_0x24ec8d[_0x2deb41(0xca)](0x0,0x78),_0x4e65aa=_0x335063[_0x2deb41(0xdb)]('\x20');return(_0x4e65aa>0x0?_0x335063[_0x2deb41(0xca)](0x0,_0x4e65aa):_0x335063)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d91cf=_0x24e8;(function(_0x343d31,_0x221d74){const _0x39ff94=_0x24e8,_0x1bee38=_0x343d31();while(!![]){try{const _0x3f8be6=-parseInt(_0x39ff94(0x126))/0x1+parseInt(_0x39ff94(0x133))/0x2*(parseInt(_0x39ff94(0x156))/0x3)+-parseInt(_0x39ff94(0x125))/0x4*(parseInt(_0x39ff94(0x168))/0x5)+-parseInt(_0x39ff94(0x165))/0x6*(parseInt(_0x39ff94(0x13a))/0x7)+parseInt(_0x39ff94(0x127))/0x8*(parseInt(_0x39ff94(0x150))/0x9)+-parseInt(_0x39ff94(0x14e))/0xa+-parseInt(_0x39ff94(0x155))/0xb*(-parseInt(_0x39ff94(0x146))/0xc);if(_0x3f8be6===_0x221d74)break;else _0x1bee38['push'](_0x1bee38['shift']());}catch(_0x4fd149){_0x1bee38['push'](_0x1bee38['shift']());}}}(_0x11c7,0xdb598));import{FocusTracker as _0x5added,KeystrokeHandler as _0x32ebce}from'ckeditor5/src/utils.js';function _0x11c7(){const _0x540d08=['forEach','shift+tab','11155809LZCEin','_createConfirmButton','_setupTemplate','set','_handleSubmit','input','fire','submitUrl','tab','execute','render','destroy','156tYzvwC','_createBackButton','setError','listenTo','_updateConfirmButtonState','stop','_focusables','locale','11841120vXVnRr','urlInputField','10306728vWlNbQ','AI_CHAT_CONTEXT_URL_INVALID_ERROR','getValue','cancel','focusTracker','2993639gskQfB','3IfYihG','change:withBackButton','_isValidUrl','isEnabled','add','form','ck-ai-chat-context-controls__url-input-section','ck-ai-chat-context-controls__url-form','_setupKeystrokes','fieldView','errorText','ck-button-icon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_PLACEHOLDER','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','6iRdbKS','clear','\x20ck-hidden','15055vDSPzD','refreshBalloon','element','trim','AI_CHAT_CONTEXT_URL_LABEL','keystrokes','withBackButton','createCollection','focus','esc','ck-button-icon\x20ck-button-back','1100aElNwT','1646213amtxnk','8uvRNna','focusCycler','value','submit','children','div','clearError','setTemplate','_createUrlInputField','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_ADD_URL','length','2934728OzNOBb','confirmButton','_setupEventHandlers','backButton','ck-labeled-field-view_empty'];_0x11c7=function(){return _0x540d08;};return _0x11c7();}import{ButtonView as _0x4f1053,FocusCycler as _0x3bac58,LabeledFieldView as _0x58a339,View as _0x27eea4,FormHeaderView as _0x59e0b8,createLabeledInputText as _0x160e2c,submitHandler as _0xda032c}from'ckeditor5/src/ui.js';import{IconCheck as _0x2536cd,IconPreviousArrow as _0x17d6d2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x37bcad}from'../../../aicore/utils/common-translations.js';const rh=_0x4d91cf(0x15d),nh=_0x4d91cf(0x15c);function _0x24e8(_0xee3618,_0x32e4e0){const _0x11c794=_0x11c7();return _0x24e8=function(_0x24e86f,_0x2cb85f){_0x24e86f=_0x24e86f-0x125;let _0x282da0=_0x11c794[_0x24e86f];return _0x282da0;},_0x24e8(_0xee3618,_0x32e4e0);}export class AIChatContextPanelUrlInputView extends _0x27eea4{[_0x4d91cf(0x154)];[_0x4d91cf(0x16d)];[_0x4d91cf(0x14c)];[_0x4d91cf(0x128)];[_0x4d91cf(0x14f)];[_0x4d91cf(0x136)];[_0x4d91cf(0x134)];constructor(_0x9c0512){const _0x3fd3fd=_0x4d91cf;super(_0x9c0512),this[_0x3fd3fd(0x154)]=new _0x5added(),this[_0x3fd3fd(0x16d)]=new _0x32ebce(),this[_0x3fd3fd(0x136)]=this[_0x3fd3fd(0x147)](),this[_0x3fd3fd(0x14f)]=this[_0x3fd3fd(0x12f)](),this[_0x3fd3fd(0x134)]=this[_0x3fd3fd(0x13b)](),this[_0x3fd3fd(0x14c)]=this[_0x3fd3fd(0x16f)]([this[_0x3fd3fd(0x136)],this[_0x3fd3fd(0x14f)],this[_0x3fd3fd(0x134)]]),this[_0x3fd3fd(0x128)]=new _0x3bac58({'focusables':this[_0x3fd3fd(0x14c)],'focusTracker':this[_0x3fd3fd(0x154)],'keystrokeHandler':this[_0x3fd3fd(0x16d)],'actions':{'focusPrevious':_0x3fd3fd(0x139),'focusNext':_0x3fd3fd(0x142)}}),this[_0x3fd3fd(0x13d)](_0x3fd3fd(0x16e),!0x0),this[_0x3fd3fd(0x13c)](),this[_0x3fd3fd(0x135)](),this[_0x3fd3fd(0x15e)]();}[_0x4d91cf(0x144)](){const _0x301cc1=_0x4d91cf;super[_0x301cc1(0x144)](),this[_0x301cc1(0x14c)][_0x301cc1(0x138)](_0x19f6c4=>{const _0x4b1a43=_0x301cc1;this[_0x4b1a43(0x154)][_0x4b1a43(0x15a)](_0x19f6c4[_0x4b1a43(0x16a)]),this[_0x4b1a43(0x16d)][_0x4b1a43(0x149)](_0x19f6c4[_0x4b1a43(0x16a)]);}),_0xda032c({'view':this}),this[_0x301cc1(0x170)]();}[_0x4d91cf(0x145)](){const _0x36ff76=_0x4d91cf;super[_0x36ff76(0x145)](),this[_0x36ff76(0x154)][_0x36ff76(0x145)](),this[_0x36ff76(0x16d)][_0x36ff76(0x145)]();}[_0x4d91cf(0x170)](){const _0x1e61d6=_0x4d91cf;this[_0x1e61d6(0x14f)][_0x1e61d6(0x170)]();}[_0x4d91cf(0x152)](){const _0x5ce8a4=_0x4d91cf;return this[_0x5ce8a4(0x14f)][_0x5ce8a4(0x15f)][_0x5ce8a4(0x16a)]?.[_0x5ce8a4(0x129)]?.[_0x5ce8a4(0x16b)]()||'';}[_0x4d91cf(0x166)](){const _0x4a4b29=_0x4d91cf;this[_0x4a4b29(0x14f)][_0x4a4b29(0x15f)][_0x4a4b29(0x16a)][_0x4a4b29(0x129)]='',this[_0x4a4b29(0x14f)][_0x4a4b29(0x160)]=null,this[_0x4a4b29(0x134)][_0x4a4b29(0x159)]=!0x1;}[_0x4d91cf(0x148)](_0x3c5b9b){const _0x33769e=_0x4d91cf;this[_0x33769e(0x14f)][_0x33769e(0x160)]=_0x3c5b9b,this[_0x33769e(0x14a)](),this[_0x33769e(0x140)](_0x33769e(0x169));}[_0x4d91cf(0x12d)](){const _0x2fd4e3=_0x4d91cf;this[_0x2fd4e3(0x14f)][_0x2fd4e3(0x160)]=null,this[_0x2fd4e3(0x14a)]();}[_0x4d91cf(0x147)](){const _0x16fa30=_0x4d91cf,_0xbedfc9=new _0x4f1053(this[_0x16fa30(0x14d)]);return _0xbedfc9[_0x16fa30(0x13d)]({'icon':_0x17d6d2,'tooltip':_0x37bcad(this[_0x16fa30(0x14d)],_0x16fa30(0x162)),'tooltipPosition':'n','class':[_0x16fa30(0x172)]}),this['on'](_0x16fa30(0x157),(_0x490a3a,_0x33f1d3,_0x32e5e5)=>{const _0x5e1c92=_0x16fa30;_0xbedfc9[_0x5e1c92(0x13d)]({'class':[_0x5e1c92(0x172)+(_0x32e5e5?'':_0x5e1c92(0x167))]});}),_0xbedfc9;}[_0x4d91cf(0x12f)](){const _0x4292de=_0x4d91cf,_0x3486e2=new _0x58a339(this[_0x4292de(0x14d)],_0x160e2c);return _0x3486e2[_0x4292de(0x13d)]({'label':_0x37bcad(this[_0x4292de(0x14d)],_0x4292de(0x16c)),'class':_0x4292de(0x137)}),_0x3486e2[_0x4292de(0x15f)][_0x4292de(0x13d)]({'placeholder':_0x37bcad(this[_0x4292de(0x14d)],_0x4292de(0x163))}),_0x3486e2;}[_0x4d91cf(0x13b)](){const _0x3ffe21=_0x4d91cf,_0x1aef49=new _0x4f1053(this[_0x3ffe21(0x14d)]);return _0x1aef49[_0x3ffe21(0x13d)]({'icon':_0x2536cd,'tooltip':_0x37bcad(this[_0x3ffe21(0x14d)],_0x3ffe21(0x131)),'tooltipPosition':'n','class':_0x3ffe21(0x161),'type':_0x3ffe21(0x12a),'isEnabled':!0x1}),_0x1aef49;}[_0x4d91cf(0x13c)](){const _0x16bec1=_0x4d91cf,_0xf3feb8=new _0x59e0b8(this[_0x16bec1(0x14d)],{'label':_0x37bcad(this[_0x16bec1(0x14d)],_0x16bec1(0x131)),'class':_0x16bec1(0x130)});_0xf3feb8[_0x16bec1(0x12b)][_0x16bec1(0x15a)](this[_0x16bec1(0x136)],0x0),this[_0x16bec1(0x12e)]({'tag':_0x16bec1(0x15b),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0xf3feb8,{'tag':_0x16bec1(0x12c),'attributes':{'class':nh},'children':[this[_0x16bec1(0x14f)],this[_0x16bec1(0x134)]]}]});}[_0x4d91cf(0x135)](){const _0x1e8194=_0x4d91cf;this[_0x1e8194(0x136)]['on'](_0x1e8194(0x143),()=>{const _0x36574a=_0x1e8194;this[_0x36574a(0x166)](),this[_0x36574a(0x140)](_0x36574a(0x153));}),this[_0x1e8194(0x14f)][_0x1e8194(0x15f)]['on'](_0x1e8194(0x13f),()=>{const _0x4857ee=_0x1e8194;this[_0x4857ee(0x12d)](),this[_0x4857ee(0x14a)](),this[_0x4857ee(0x140)](_0x4857ee(0x169));}),this['on'](_0x1e8194(0x12a),_0x3235c2=>{const _0x1d66a6=_0x1e8194;_0x3235c2[_0x1d66a6(0x14b)](),this[_0x1d66a6(0x13e)]();});}[_0x4d91cf(0x15e)](){const _0x17e985=_0x4d91cf;this[_0x17e985(0x16d)][_0x17e985(0x13d)](_0x17e985(0x171),(_0x3de100,_0x575b93)=>{const _0x13ee96=_0x17e985;this[_0x13ee96(0x166)](),this[_0x13ee96(0x140)](_0x13ee96(0x153)),_0x575b93();});}[_0x4d91cf(0x13e)](){const _0x588086=_0x4d91cf,_0x4cfb2a=this[_0x588086(0x152)]()[_0x588086(0x16b)]();_0x4cfb2a?this[_0x588086(0x158)](_0x4cfb2a)?(this[_0x588086(0x12d)](),this[_0x588086(0x140)](_0x588086(0x141),_0x4cfb2a)):this[_0x588086(0x148)](_0x37bcad(this[_0x588086(0x14d)],_0x588086(0x151))):this[_0x588086(0x148)](_0x37bcad(this[_0x588086(0x14d)],_0x588086(0x164)));}[_0x4d91cf(0x14a)](){const _0x4d85dc=_0x4d91cf,_0x1182e3=this[_0x4d85dc(0x152)]()[_0x4d85dc(0x16b)](),_0x1b0308=!!this[_0x4d85dc(0x14f)][_0x4d85dc(0x160)];this[_0x4d85dc(0x134)][_0x4d85dc(0x159)]=_0x1182e3[_0x4d85dc(0x132)]>0x0&&!_0x1b0308;}[_0x4d91cf(0x158)](_0x355fd9){try{return!!new URL(_0x355fd9);}catch{return!0x1;}}}
23
+ const _0x19153c=_0x5e07;function _0x5e07(_0x2f107c,_0x1b0e06){const _0x345e01=_0x345e();return _0x5e07=function(_0x5e0753,_0x557cb1){_0x5e0753=_0x5e0753-0x97;let _0x18e601=_0x345e01[_0x5e0753];return _0x18e601;},_0x5e07(_0x2f107c,_0x1b0e06);}function _0x345e(){const _0x57a6ae=['focus','focusCycler','refreshBalloon','_setupKeystrokes','fire','_createConfirmButton','form','setTemplate','AI_CHAT_CONTEXT_URL_PLACEHOLDER','stop','change:withBackButton','listenTo','setError','backButton','children','3116PdLEgO','ck-button-icon\x20ck-button-back','_handleSubmit','forEach','execute','getValue','_setupTemplate','8431mIDqyH','locale','trim','_focusables','element','value','esc','render','keystrokes','ck-ai-chat-context-controls__url-form','1715JZxpVc','ck-labeled-field-view_empty','_createBackButton','add','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','cancel','shift+tab','createCollection','22779vGKYga','tab','submitUrl','AI_CHAT_CONTEXT_URL_INVALID_ERROR','2229930deNLTw','urlInputField','AI_CHAT_CONTEXT_URL_LABEL','clear','8111090TWOWlj','div','152KFPOoi','fieldView','_setupEventHandlers','clearError','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','1961271AuBDIj','isEnabled','ck-ai-chat-context-controls__url-input-section','12zNLCwB','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_isValidUrl','focusTracker','withBackButton','102025CPhGnN','confirmButton','\x20ck-hidden','set','_createUrlInputField','length','destroy','ck-button-icon','AI_CHAT_CONTEXT_URL_ADD_URL','input','_updateConfirmButtonState','errorText','submit'];_0x345e=function(){return _0x57a6ae;};return _0x345e();}(function(_0x26fa11,_0x5f23db){const _0x13149b=_0x5e07,_0x59d23c=_0x26fa11();while(!![]){try{const _0x31985c=-parseInt(_0x13149b(0x99))/0x1*(parseInt(_0x13149b(0xbd))/0x2)+-parseInt(_0x13149b(0xab))/0x3+parseInt(_0x13149b(0xde))/0x4*(parseInt(_0x13149b(0xa3))/0x5)+parseInt(_0x13149b(0xaf))/0x6+-parseInt(_0x13149b(0xc2))/0x7*(-parseInt(_0x13149b(0xb5))/0x8)+parseInt(_0x13149b(0xba))/0x9+-parseInt(_0x13149b(0xb3))/0xa;if(_0x31985c===_0x5f23db)break;else _0x59d23c['push'](_0x59d23c['shift']());}catch(_0x266264){_0x59d23c['push'](_0x59d23c['shift']());}}}(_0x345e,0x408d8));import{FocusTracker as _0x3427e7,KeystrokeHandler as _0x3317b7}from'ckeditor5/src/utils.js';import{ButtonView as _0x581f7a,FocusCycler as _0x30f0bc,LabeledFieldView as _0x4c5811,View as _0x4eb790,FormHeaderView as _0x10121c,createLabeledInputText as _0x365d2d,submitHandler as _0x5a96a3}from'ckeditor5/src/ui.js';import{IconCheck as _0x541fbf,IconPreviousArrow as _0xc768a9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4e6ed7}from'../../../aicore/utils/common-translations.js';const rh=_0x19153c(0xa2),nh=_0x19153c(0xbc);export class AIChatContextPanelUrlInputView extends _0x4eb790{[_0x19153c(0xc0)];[_0x19153c(0xa1)];[_0x19153c(0x9c)];[_0x19153c(0xd0)];[_0x19153c(0xb0)];[_0x19153c(0xdc)];[_0x19153c(0xc3)];constructor(_0x4b46e9){const _0x48be6c=_0x19153c;super(_0x4b46e9),this[_0x48be6c(0xc0)]=new _0x3427e7(),this[_0x48be6c(0xa1)]=new _0x3317b7(),this[_0x48be6c(0xdc)]=this[_0x48be6c(0xa5)](),this[_0x48be6c(0xb0)]=this[_0x48be6c(0xc6)](),this[_0x48be6c(0xc3)]=this[_0x48be6c(0xd4)](),this[_0x48be6c(0x9c)]=this[_0x48be6c(0xaa)]([this[_0x48be6c(0xdc)],this[_0x48be6c(0xb0)],this[_0x48be6c(0xc3)]]),this[_0x48be6c(0xd0)]=new _0x30f0bc({'focusables':this[_0x48be6c(0x9c)],'focusTracker':this[_0x48be6c(0xc0)],'keystrokeHandler':this[_0x48be6c(0xa1)],'actions':{'focusPrevious':_0x48be6c(0xa9),'focusNext':_0x48be6c(0xac)}}),this[_0x48be6c(0xc5)](_0x48be6c(0xc1),!0x0),this[_0x48be6c(0x98)](),this[_0x48be6c(0xb7)](),this[_0x48be6c(0xd2)]();}[_0x19153c(0xa0)](){const _0x561161=_0x19153c;super[_0x561161(0xa0)](),this[_0x561161(0x9c)][_0x561161(0xe1)](_0x53cf73=>{const _0x39d49e=_0x561161;this[_0x39d49e(0xc0)][_0x39d49e(0xa6)](_0x53cf73[_0x39d49e(0x9d)]),this[_0x39d49e(0xa1)][_0x39d49e(0xda)](_0x53cf73[_0x39d49e(0x9d)]);}),_0x5a96a3({'view':this}),this[_0x561161(0xcf)]();}[_0x19153c(0xc8)](){const _0x294ce2=_0x19153c;super[_0x294ce2(0xc8)](),this[_0x294ce2(0xc0)][_0x294ce2(0xc8)](),this[_0x294ce2(0xa1)][_0x294ce2(0xc8)]();}[_0x19153c(0xcf)](){const _0xdd85af=_0x19153c;this[_0xdd85af(0xb0)][_0xdd85af(0xcf)]();}[_0x19153c(0x97)](){const _0x1367fc=_0x19153c;return this[_0x1367fc(0xb0)][_0x1367fc(0xb6)][_0x1367fc(0x9d)]?.[_0x1367fc(0x9e)]?.[_0x1367fc(0x9b)]()||'';}[_0x19153c(0xb2)](){const _0x53132f=_0x19153c;this[_0x53132f(0xb0)][_0x53132f(0xb6)][_0x53132f(0x9d)][_0x53132f(0x9e)]='',this[_0x53132f(0xb0)][_0x53132f(0xcd)]=null,this[_0x53132f(0xc3)][_0x53132f(0xbb)]=!0x1;}[_0x19153c(0xdb)](_0x5329dc){const _0xfbaa81=_0x19153c;this[_0xfbaa81(0xb0)][_0xfbaa81(0xcd)]=_0x5329dc,this[_0xfbaa81(0xcc)](),this[_0xfbaa81(0xd3)](_0xfbaa81(0xd1));}[_0x19153c(0xb8)](){const _0x450ade=_0x19153c;this[_0x450ade(0xb0)][_0x450ade(0xcd)]=null,this[_0x450ade(0xcc)]();}[_0x19153c(0xa5)](){const _0xc0540c=_0x19153c,_0x29f568=new _0x581f7a(this[_0xc0540c(0x9a)]);return _0x29f568[_0xc0540c(0xc5)]({'icon':_0xc768a9,'tooltip':_0x4e6ed7(this[_0xc0540c(0x9a)],_0xc0540c(0xa7)),'tooltipPosition':'n','class':[_0xc0540c(0xdf)]}),this['on'](_0xc0540c(0xd9),(_0x4d2b86,_0x1abdf5,_0x17f339)=>{const _0x3983dd=_0xc0540c;_0x29f568[_0x3983dd(0xc5)]({'class':[_0x3983dd(0xdf)+(_0x17f339?'':_0x3983dd(0xc4))]});}),_0x29f568;}[_0x19153c(0xc6)](){const _0x5920b5=_0x19153c,_0x22d4e3=new _0x4c5811(this[_0x5920b5(0x9a)],_0x365d2d);return _0x22d4e3[_0x5920b5(0xc5)]({'label':_0x4e6ed7(this[_0x5920b5(0x9a)],_0x5920b5(0xb1)),'class':_0x5920b5(0xa4)}),_0x22d4e3[_0x5920b5(0xb6)][_0x5920b5(0xc5)]({'placeholder':_0x4e6ed7(this[_0x5920b5(0x9a)],_0x5920b5(0xd7))}),_0x22d4e3;}[_0x19153c(0xd4)](){const _0x4046a9=_0x19153c,_0x973958=new _0x581f7a(this[_0x4046a9(0x9a)]);return _0x973958[_0x4046a9(0xc5)]({'icon':_0x541fbf,'tooltip':_0x4e6ed7(this[_0x4046a9(0x9a)],_0x4046a9(0xca)),'tooltipPosition':'n','class':_0x4046a9(0xc9),'type':_0x4046a9(0xce),'isEnabled':!0x1}),_0x973958;}[_0x19153c(0x98)](){const _0x19b003=_0x19153c,_0x232df1=new _0x10121c(this[_0x19b003(0x9a)],{'label':_0x4e6ed7(this[_0x19b003(0x9a)],_0x19b003(0xca)),'class':_0x19b003(0xb9)});_0x232df1[_0x19b003(0xdd)][_0x19b003(0xa6)](this[_0x19b003(0xdc)],0x0),this[_0x19b003(0xd6)]({'tag':_0x19b003(0xd5),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x232df1,{'tag':_0x19b003(0xb4),'attributes':{'class':nh},'children':[this[_0x19b003(0xb0)],this[_0x19b003(0xc3)]]}]});}[_0x19153c(0xb7)](){const _0x3dfe8c=_0x19153c;this[_0x3dfe8c(0xdc)]['on'](_0x3dfe8c(0xe2),()=>{const _0x51045e=_0x3dfe8c;this[_0x51045e(0xb2)](),this[_0x51045e(0xd3)](_0x51045e(0xa8));}),this[_0x3dfe8c(0xb0)][_0x3dfe8c(0xb6)]['on'](_0x3dfe8c(0xcb),()=>{const _0x15bf6e=_0x3dfe8c;this[_0x15bf6e(0xb8)](),this[_0x15bf6e(0xcc)](),this[_0x15bf6e(0xd3)](_0x15bf6e(0xd1));}),this['on'](_0x3dfe8c(0xce),_0x4cb363=>{const _0x47eece=_0x3dfe8c;_0x4cb363[_0x47eece(0xd8)](),this[_0x47eece(0xe0)]();});}[_0x19153c(0xd2)](){const _0x1b3663=_0x19153c;this[_0x1b3663(0xa1)][_0x1b3663(0xc5)](_0x1b3663(0x9f),(_0x4f1322,_0x44736f)=>{const _0xec31e8=_0x1b3663;this[_0xec31e8(0xb2)](),this[_0xec31e8(0xd3)](_0xec31e8(0xa8)),_0x44736f();});}[_0x19153c(0xe0)](){const _0x18d6fd=_0x19153c,_0x153cd6=this[_0x18d6fd(0x97)]()[_0x18d6fd(0x9b)]();_0x153cd6?this[_0x18d6fd(0xbf)](_0x153cd6)?(this[_0x18d6fd(0xb8)](),this[_0x18d6fd(0xd3)](_0x18d6fd(0xad),_0x153cd6)):this[_0x18d6fd(0xdb)](_0x4e6ed7(this[_0x18d6fd(0x9a)],_0x18d6fd(0xae))):this[_0x18d6fd(0xdb)](_0x4e6ed7(this[_0x18d6fd(0x9a)],_0x18d6fd(0xbe)));}[_0x19153c(0xcc)](){const _0x506aa6=_0x19153c,_0x4610ce=this[_0x506aa6(0x97)]()[_0x506aa6(0x9b)](),_0x403bde=!!this[_0x506aa6(0xb0)][_0x506aa6(0xcd)];this[_0x506aa6(0xc3)][_0x506aa6(0xbb)]=_0x4610ce[_0x506aa6(0xc7)]>0x0&&!_0x403bde;}[_0x19153c(0xbf)](_0xcb96d5){try{return!!new URL(_0xcb96d5);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b0ad8=_0x3c06;function _0x3c06(_0x51782e,_0x8c60b2){const _0x50a448=_0x50a4();return _0x3c06=function(_0x3c068a,_0x455e74){_0x3c068a=_0x3c068a-0xe2;let _0x40611a=_0x50a448[_0x3c068a];return _0x40611a;},_0x3c06(_0x51782e,_0x8c60b2);}(function(_0x339fea,_0x40898a){const _0x5a403c=_0x3c06,_0x20856d=_0x339fea();while(!![]){try{const _0x11368d=parseInt(_0x5a403c(0x170))/0x1*(parseInt(_0x5a403c(0x106))/0x2)+parseInt(_0x5a403c(0xf1))/0x3+parseInt(_0x5a403c(0xee))/0x4*(parseInt(_0x5a403c(0x16b))/0x5)+parseInt(_0x5a403c(0x10b))/0x6+-parseInt(_0x5a403c(0x15c))/0x7+-parseInt(_0x5a403c(0xf2))/0x8*(-parseInt(_0x5a403c(0x121))/0x9)+-parseInt(_0x5a403c(0x116))/0xa;if(_0x11368d===_0x40898a)break;else _0x20856d['push'](_0x20856d['shift']());}catch(_0x207f4d){_0x20856d['push'](_0x20856d['shift']());}}}(_0x50a4,0x483b4));import{BalloonPanelView as _0x41d54b,ButtonView as _0x4a900c,clickOutsideHandler as _0x89e7d6,FileDialogButtonView as _0x9d2f34,IconView as _0x398130,View as _0x2692ea}from'ckeditor5/src/ui.js';function _0x50a4(){const _0x392199=['_resourcesBalloonView','_createAddContextButtonView','addFileToContext','clearConversationContextItems','isVisible','showAddContextBalloonPanel','_overflowManager','setAddContextOptions','isOn','_setAddContextButtonEnabled','get','ck-ai-chat','showUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button','_showSourceResourcesBalloon','ck-ai-chat-context-chips-wrapper-balloon','searchInputVisibleFrom','_createArrowView','_setBalloonPanelContent','_createAddContextBalloonPanelView','_handleUrlSubmit','populateSourceResourceBalloon','closest','menuitem','__arrow','ck-ai-chat-context-controls__add-context-button','showSourceResourcesBalloon','southArrowNorthWest','find','urls','render','_addContextBalloonPanelView','northArrowSouth','_setupUrlBalloonClickOutsideHandler','setTemplate','_currentContextsChips','_addContextBalloonConfig','ck-ai-chat-controls-button','addDocumentToContext','_createUrlBalloonPanelView','_removeContextFromCollection','focus','AI_CHAT_CONTEXT_FILE_LABEL','ck-reset_all-excluded','div','isAnyResourceBalloonVisible','ck-ai-chat-context-controls','hideUrlBalloonPanel','3443902iYbkxq','ck-ai-chat-controls_context_show-more-button','reorganizeChips','add','_addContextToCollection','_urlBalloonPanelView','_urlInputView','_createBalloonButton','southArrowNorth','ck-ai-chat-context-controls__add-context-balloon-panel','loadSourceResources','closeSourceResourceBalloon','current','removeContextItemChip','execute','920VbPqnm','updateResourceState','refreshBalloon','createCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','10cqbTdz','executeCustomItemCallback','tooltip','children','submitUrl','buttonView','length','defaultPositions','customItem','addResourceToContext','arrowView','_toggleAddContextBalloon','ck-ai-chat-context-controls__balloon-button-source','fire','AI_CHAT_CONTEXT_URL_LABEL','_hasExactlyOneSource','bodyCollection','body','isReadOnly','icon','customItems','6788zxdiRR','pin','addContextButtonView','1202520rulHjJ','3220984WganAe','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isEnabled','locale','content','element','withBackButton','_handleAddContextButtonClick','_setupAllBalloonClickOutsideHandlers','cancel','destroy','clearCurrentContextItems','_bindEventHandlers','show','northArrowSouthWest','_createContextButton','southArrowNorthEast','bind','balloonView','setConversationContext','26066SxbdMf','isHidden','_conversationContextsChips','extendTemplate','type','10098SLUFjS','overflowChips','removeContextItem','hide','_addUrlContent','setContainerElement','_createResourcesBalloonView','remove','sources','ck-ai-chat-context-controls__pending-contexts','conversation','4598780xqvEde','ck-ai-chat-context-controls__show-more-balloon-panel','document','_setupTemplate','_createBaseBalloonPanel','_getLimiterElement','setContextItemLoading','isLoading','_setupAddContextBalloonClickOutsideHandler','set','enabled','9EJDSDu','hideAddContextBalloonPanel','label','northArrowSouthEast','clear','files','addContextItem','done','ck-ai-chat-context-controls__url-balloon-panel','source','addUrlToContext'];_0x50a4=function(){return _0x392199;};return _0x50a4();}import{IconBrowseFiles as _0x910cbb,IconDocument as _0x3150ef,IconDocumentOutline as _0x1daadd,IconDropdownArrow as _0x5525c4,IconLink as _0x5d88b2,IconPaperClip as _0x38366d}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x39703c}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x4fb14e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2417ef}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x770acc}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x22cb4f}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4b0ad8(0x152),_0x4b0ad8(0x12e),_0x4b0ad8(0x12b),_0x4b0ad8(0xe2),_0x4b0ad8(0x10d),_0x4b0ad8(0x166),_0x4b0ad8(0x171)];const Uo=_0x4b0ad8(0x15a),Lo=_0x4b0ad8(0x114),No=_0x4b0ad8(0x165),Mo=_0x4b0ad8(0x145),Ho=_0x4b0ad8(0x129),jo=_0x4b0ad8(0x139),Fo=_0x4b0ad8(0xe5),Xo=_0x4b0ad8(0x151),Do=_0x4b0ad8(0x13b),$o=_0x4b0ad8(0x15d),Wo=_0x4b0ad8(0x117),qo=_0x4b0ad8(0x137),zo=[_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x100)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x14c)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x124)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x147)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x164)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x102)]];export class AIChatContextPanelView extends _0x2692ea{[_0x4b0ad8(0xf0)];[_0x4b0ad8(0x14f)]=this[_0x4b0ad8(0x16e)]();[_0x4b0ad8(0x108)]=this[_0x4b0ad8(0x16e)]();[_0x4b0ad8(0x132)];[_0x4b0ad8(0x14b)];[_0x4b0ad8(0x161)];[_0x4b0ad8(0x162)];[_0x4b0ad8(0x12c)];[_0x4b0ad8(0x150)];[_0x4b0ad8(0xe8)]=!0x1;[_0x4b0ad8(0xe9)];constructor(_0x2840dd,_0x13ee10){const _0x52c372=_0x4b0ad8;super(_0x2840dd),this[_0x52c372(0xe9)]=_0x13ee10[_0x52c372(0xe9)],this[_0x52c372(0x14f)]=this[_0x52c372(0x16e)](),this[_0x52c372(0x108)]=this[_0x52c372(0x16e)](),this[_0x52c372(0xf0)]=this[_0x52c372(0x12d)](_0x2840dd),this[_0x52c372(0x14b)]=this[_0x52c372(0x13f)](_0x2840dd),this[_0x52c372(0x161)]=this[_0x52c372(0x153)](_0x2840dd),this[_0x52c372(0x12c)]=this[_0x52c372(0x111)](_0x2840dd,_0x13ee10);const _0x5938ba={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x52c372(0x132)]=new _0x2417ef(_0x2840dd,this[_0x52c372(0x14f)],_0x5938ba,this[_0x52c372(0xe9)],this),this[_0x52c372(0x150)]={'buttonView':this[_0x52c372(0xf0)],'balloonView':this[_0x52c372(0x14b)],'hideMethod':this[_0x52c372(0x122)][_0x52c372(0x103)](this),'showMethod':this[_0x52c372(0x131)][_0x52c372(0x103)](this)},this[_0x52c372(0x119)](),this[_0x52c372(0xfe)]();}[_0x4b0ad8(0x14a)](){const _0x57bece=_0x4b0ad8;super[_0x57bece(0x14a)](),this[_0x57bece(0xfa)](),this[_0x57bece(0x132)][_0x57bece(0x110)](this[_0x57bece(0xf7)]),this[_0x57bece(0x132)][_0x57bece(0x15e)]();}[_0x4b0ad8(0xfc)](){const _0x595d2b=_0x4b0ad8;super[_0x595d2b(0xfc)](),this[_0x595d2b(0x132)][_0x595d2b(0xfc)](),this[_0x595d2b(0x12c)][_0x595d2b(0xfc)]();}[_0x4b0ad8(0x127)](_0x53c1b1,_0xa6d55d){const _0x51482f=_0x4b0ad8,_0x46d471=this[_0x51482f(0x101)](_0x53c1b1,_0x51482f(0x168),!0x0,_0xa6d55d);this[_0x51482f(0x160)](_0x46d471,this[_0x51482f(0x14f)]),this[_0x51482f(0x132)][_0x51482f(0x15e)]();}[_0x4b0ad8(0x10d)](_0x551215){const _0x24fdb0=_0x4b0ad8;this[_0x24fdb0(0x154)](_0x551215,this[_0x24fdb0(0x14f)]),this[_0x24fdb0(0x154)](_0x551215,this[_0x24fdb0(0x132)][_0x24fdb0(0x10c)]),this[_0x24fdb0(0x132)][_0x24fdb0(0x15e)]();}[_0x4b0ad8(0x11c)](_0x402c35,_0x3cb943){const _0x26a0c0=_0x4b0ad8;let _0x3536e5=this[_0x26a0c0(0x14f)][_0x26a0c0(0x148)](_0x4c1dca=>_0x4c1dca['id']===_0x402c35);_0x3536e5||(_0x3536e5=this[_0x26a0c0(0x132)][_0x26a0c0(0x10c)][_0x26a0c0(0x148)](_0x1793f3=>_0x1793f3['id']===_0x402c35)),_0x3536e5&&(_0x3536e5[_0x26a0c0(0x11d)]=_0x3cb943);}[_0x4b0ad8(0x105)](_0x5a717a){const _0x51af21=_0x4b0ad8;this[_0x51af21(0x108)][_0x51af21(0x125)]();for(const _0x1d189b of _0x5a717a){const _0x23a883=this[_0x51af21(0x101)](_0x1d189b,_0x51af21(0x115),!0x1,!0x1);this[_0x51af21(0x160)](_0x23a883,this[_0x51af21(0x108)]);}}[_0x4b0ad8(0xfd)](){const _0x7498d4=_0x4b0ad8;this[_0x7498d4(0x14f)][_0x7498d4(0x125)](),this[_0x7498d4(0x132)][_0x7498d4(0x125)]();}[_0x4b0ad8(0x12f)](){const _0x37aa04=_0x4b0ad8;this[_0x37aa04(0x108)][_0x37aa04(0x125)]();}[_0x4b0ad8(0x16c)](_0x21cfd2,_0x421ab6,_0x362f70){const _0x1b9e9d=_0x4b0ad8;this[_0x1b9e9d(0x12c)][_0x1b9e9d(0x16c)](_0x21cfd2,_0x421ab6,_0x362f70);}[_0x4b0ad8(0x122)](){const _0x355b0e=_0x4b0ad8;this[_0x355b0e(0xe4)](!0x1);}[_0x4b0ad8(0x131)](){const _0x165584=_0x4b0ad8;this[_0x165584(0xe4)](!0x0);}[_0x4b0ad8(0x15b)](){const _0x2f9a28=_0x4b0ad8;this[_0x2f9a28(0x161)][_0x2f9a28(0x10e)](),this[_0x2f9a28(0xf0)][_0x2f9a28(0x134)]=!0x1,this[_0x2f9a28(0x162)]&&this[_0x2f9a28(0x162)][_0x2f9a28(0x125)]();}[_0x4b0ad8(0x138)](){const _0xa97ec8=_0x4b0ad8;this[_0xa97ec8(0x161)][_0xa97ec8(0xff)](),this[_0xa97ec8(0xf0)][_0xa97ec8(0x134)]=!0x0;}[_0x4b0ad8(0x13a)]({source:_0x1791ab,withBackButton:_0x55cc49}){const _0xd27b71=_0x4b0ad8;this[_0xd27b71(0x12c)][_0xd27b71(0x146)]({'source':_0x1791ab,'withBackButton':_0x55cc49}),this[_0xd27b71(0xf0)][_0xd27b71(0x134)]=!0x0;}[_0x4b0ad8(0x141)](_0x545127,_0x48ca8f,_0x2e3038,_0x1bd6f6){const _0xefcc1c=_0x4b0ad8;this[_0xefcc1c(0x12c)][_0xefcc1c(0x141)](_0x545127,_0x2e3038,_0x1bd6f6);}[_0x4b0ad8(0x167)](_0x5a41a4){const _0xd139e1=_0x4b0ad8;this[_0xd139e1(0x12c)][_0xd139e1(0x167)](_0x5a41a4),this[_0xd139e1(0xf0)][_0xd139e1(0x134)]=!0x1;}[_0x4b0ad8(0x133)](_0x50d962){const _0x285934=_0x4b0ad8;this[_0x285934(0x13e)](this[_0x285934(0x14b)],this[_0x285934(0xf5)],_0x50d962),this[_0x285934(0x135)](_0x50d962);}[_0x4b0ad8(0x135)](_0x4cdd25){const _0x9a444a=_0x4b0ad8,_0x21a6ec=!_0x4cdd25[_0x9a444a(0x118)][_0x9a444a(0x107)]&&_0x4cdd25[_0x9a444a(0x118)][_0x9a444a(0x120)],_0x266020=_0x4cdd25[_0x9a444a(0x149)][_0x9a444a(0x120)],_0x2487b8=_0x4cdd25[_0x9a444a(0x126)][_0x9a444a(0x120)],_0x19b808=_0x4cdd25[_0x9a444a(0x113)][_0x9a444a(0x176)]>0x0,_0x466efb=_0x4cdd25[_0x9a444a(0xed)]&&_0x4cdd25[_0x9a444a(0xed)][_0x9a444a(0x176)]>0x0;this[_0x9a444a(0xf0)][_0x9a444a(0xf4)]=_0x21a6ec||_0x266020||_0x2487b8||_0x19b808||_0x466efb;}[_0x4b0ad8(0x119)](){const _0x1d4ff2=_0x4b0ad8;this[_0x1d4ff2(0x14e)]({'tag':_0x1d4ff2(0x158),'attributes':{'class':[Uo,_0x1d4ff2(0x157)]},'children':[{'tag':_0x1d4ff2(0x158),'attributes':{'class':Lo},'children':this[_0x1d4ff2(0x14f)]}]});}[_0x4b0ad8(0xfe)](){const _0x4f0349=_0x4b0ad8;this[_0x4f0349(0xf0)]['on'](_0x4f0349(0x16a),()=>{const _0x2f2ade=_0x4f0349;this[_0x2f2ade(0xf9)]();});}[_0x4b0ad8(0x12d)](_0x25272e){const _0x3ebcfe=_0x4b0ad8,_0xceda3=new _0x4a900c(_0x25272e);return _0xceda3[_0x3ebcfe(0x11f)]({'label':_0x770acc(_0x25272e,_0x3ebcfe(0x16f)),'class':Xo+'\x20'+Mo,'icon':_0x38366d,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xceda3;}[_0x4b0ad8(0x13f)](_0x19e09d){const _0x3a788d=_0x4b0ad8;return this[_0x3a788d(0x11a)](_0x19e09d,No);}[_0x4b0ad8(0x153)](_0x48ef3d){const _0x1ccccc=_0x4b0ad8,_0x44a886=this[_0x1ccccc(0x11a)](_0x48ef3d,Ho);return this[_0x1ccccc(0x10f)](_0x44a886,_0x48ef3d),_0x44a886;}[_0x4b0ad8(0x111)](_0x4a71db,_0x860684){const _0x2f4fc1=_0x4b0ad8,_0x34a86a={'searchInputVisibleFrom':_0x860684[_0x2f4fc1(0x13c)],'onBackToContext':()=>{const _0x238cf4=_0x2f4fc1;this[_0x238cf4(0x131)](),this[_0x238cf4(0x14b)][_0x238cf4(0xef)]({'target':this[_0x238cf4(0xf0)][_0x238cf4(0xf7)],'limiter':this[_0x238cf4(0x11b)](),'positions':zo});},'onResourceSelected':(_0x296dff,_0x28907a)=>{const _0x31971e=_0x2f4fc1;this[_0x31971e(0xe6)](_0x31971e(0xe2),{'source':_0x296dff,'resource':_0x28907a});},'onLoadSourceResources':_0x2614dc=>{const _0x5e1afe=_0x2f4fc1;this[_0x5e1afe(0xe6)](_0x5e1afe(0x166),_0x2614dc);},'onBalloonClosed':()=>{const _0x3fe6f8=_0x2f4fc1;this[_0x3fe6f8(0xf0)][_0x3fe6f8(0x134)]=!0x1;},'getLimiterElement':()=>this[_0x2f4fc1(0x11b)](),'getTargetElement':()=>this[_0x2f4fc1(0xf0)][_0x2f4fc1(0xf7)]};return new _0x22cb4f(_0x4a71db,_0x860684[_0x2f4fc1(0xe9)],_0x34a86a);}[_0x4b0ad8(0x11b)](){const _0x1dfe83=_0x4b0ad8;return this[_0x1dfe83(0xf7)]?.[_0x1dfe83(0x142)]('.'+qo)||document[_0x1dfe83(0xea)];}[_0x4b0ad8(0x11a)](_0x3766fe,_0x2254d5){const _0xfbc26b=_0x4b0ad8,_0x3cde9f=new _0x41d54b(_0x3766fe);return _0x3cde9f[_0xfbc26b(0x109)]({'attributes':{'class':_0x2254d5}}),this[_0xfbc26b(0xe9)][_0xfbc26b(0x15f)](_0x3cde9f),_0x3cde9f;}[_0x4b0ad8(0x13e)](_0x1d0ad5,_0x1584b2,_0x493258){const _0x510ced=_0x4b0ad8;if(_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x125)](),!_0x493258[_0x510ced(0x118)][_0x510ced(0x107)]&&_0x493258[_0x510ced(0x118)][_0x510ced(0x120)]){const _0x1233ea=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x770acc(_0x1584b2,_0x510ced(0xf3)),'icon':_0x3150ef});_0x1233ea['on'](_0x510ced(0x16a),()=>{const _0x292ec4=_0x510ced;this[_0x292ec4(0xe6)](_0x292ec4(0x152)),this[_0x292ec4(0x122)]();}),_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x1233ea);}if(_0x493258[_0x510ced(0x149)][_0x510ced(0x120)]){const _0x2541f6=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x770acc(_0x1584b2,_0x510ced(0xe7)),'icon':_0x5d88b2});_0x2541f6['on'](_0x510ced(0x16a),()=>{const _0xf466d8=_0x510ced;this[_0xf466d8(0x122)](),this[_0xf466d8(0x138)](),this[_0xf466d8(0x161)][_0xf466d8(0xef)]({'target':this[_0xf466d8(0xf0)][_0xf466d8(0xf7)],'limiter':this[_0xf466d8(0x11b)](),'positions':zo}),this[_0xf466d8(0x162)][_0xf466d8(0x155)]();}),_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x2541f6);}if(_0x493258[_0x510ced(0x126)][_0x510ced(0x120)]){const _0x40dac1=new _0x9d2f34(_0x1584b2);_0x40dac1[_0x510ced(0x11f)]({'label':_0x770acc(_0x1584b2,_0x510ced(0x156)),'icon':_0x910cbb,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x40dac1['on'](_0x510ced(0x16a),()=>{const _0x1822c9=_0x510ced;this[_0x1822c9(0x122)]();}),_0x40dac1['on'](_0x510ced(0x128),(_0x37a816,_0x4b4a2e)=>{const _0x10fd5d=_0x510ced;this[_0x10fd5d(0xe6)](_0x10fd5d(0x12e),_0x4b4a2e);}),_0x40dac1[_0x510ced(0x172)]=!0x0,_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x40dac1);}for(const _0x427fd8 of _0x493258[_0x510ced(0x113)]){const _0xda7e02=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x427fd8[_0x510ced(0x123)],'icon':_0x427fd8[_0x510ced(0xec)]||_0x1daadd,'type':_0x510ced(0x12a)});_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0xda7e02),_0xda7e02['on'](_0x510ced(0x16a),()=>{const _0x37313e=_0x510ced;this[_0x37313e(0x122)](),this[_0x37313e(0x13a)]({'source':_0x427fd8,'withBackButton':!this[_0x37313e(0xe8)]});});}for(const _0x42286f of _0x493258[_0x510ced(0xed)]||[]){const _0x4e6811=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x42286f[_0x510ced(0x123)],'icon':_0x42286f[_0x510ced(0xec)]||_0x1daadd,'type':_0x510ced(0x178)});_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x4e6811),_0x4e6811['on'](_0x510ced(0x16a),()=>{const _0x1f3505=_0x510ced;this[_0x1f3505(0x122)](),this[_0x1f3505(0xe6)](_0x1f3505(0x171),_0x42286f);});}this[_0x510ced(0xe8)]=0x1===_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x176)],this[_0x510ced(0x162)][_0x510ced(0xf8)]=!this[_0x510ced(0xe8)];}[_0x4b0ad8(0x10f)](_0x55f8cf,_0x19ca17){const _0x3a6398=_0x4b0ad8;this[_0x3a6398(0x162)]=new _0x4fb14e(_0x19ca17),this[_0x3a6398(0x162)]['on'](_0x3a6398(0x174),(_0x4b0cf0,_0x3718a6)=>{const _0x4d0c95=_0x3a6398;this[_0x4d0c95(0x140)](_0x3718a6);}),this[_0x3a6398(0x162)]['on'](_0x3a6398(0xfb),()=>{const _0x12336e=_0x3a6398;this[_0x12336e(0x15b)](),this[_0x12336e(0xe8)]||(this[_0x12336e(0x131)](),this[_0x12336e(0x14b)][_0x12336e(0xef)]({'target':this[_0x12336e(0xf0)][_0x12336e(0xf7)],'limiter':this[_0x12336e(0x11b)](),'positions':zo}));}),this[_0x3a6398(0x162)]['on'](_0x3a6398(0x16d),()=>{const _0x457c41=_0x3a6398;this[_0x457c41(0x161)][_0x457c41(0x130)]&&this[_0x457c41(0x161)][_0x457c41(0xef)]({'target':this[_0x457c41(0xf0)][_0x457c41(0xf7)],'limiter':this[_0x457c41(0x11b)](),'positions':zo});}),_0x55f8cf[_0x3a6398(0xf6)][_0x3a6398(0x15f)](this[_0x3a6398(0x162)]);}[_0x4b0ad8(0x163)](_0x5437a8,_0x2ffb1d){const _0x3ea300=_0x4b0ad8,_0x173122=_0x3ea300(0x12a)===_0x2ffb1d[_0x3ea300(0x10a)]?new SourcesBalloonButtonView(_0x5437a8):new _0x4a900c(_0x5437a8);return _0x173122[_0x3ea300(0x11f)]({'label':_0x2ffb1d[_0x3ea300(0x123)],'icon':_0x2ffb1d[_0x3ea300(0xec)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x173122;}[_0x4b0ad8(0xfa)](){const _0x19c367=_0x4b0ad8;this[_0x19c367(0x11e)](),this[_0x19c367(0x14d)]();}[_0x4b0ad8(0x14d)](){const _0x5dfc6a=_0x4b0ad8;_0x89e7d6({'emitter':this[_0x5dfc6a(0x161)],'contextElements':[this[_0x5dfc6a(0x161)][_0x5dfc6a(0xf7)]],'callback':()=>{const _0xf85533=_0x5dfc6a;this[_0xf85533(0x15b)]();},'activator':()=>this[_0x5dfc6a(0x161)][_0x5dfc6a(0x130)]});}[_0x4b0ad8(0xe4)](_0x348b1b){const _0x5d3f83=_0x4b0ad8,_0x32c8e6=this[_0x5d3f83(0x150)];_0x32c8e6[_0x5d3f83(0x175)][_0x5d3f83(0x134)]=_0x348b1b,_0x348b1b?_0x32c8e6[_0x5d3f83(0x104)][_0x5d3f83(0xff)]():_0x32c8e6[_0x5d3f83(0x104)][_0x5d3f83(0x10e)]();}[_0x4b0ad8(0x11e)](){const _0x2d276e=_0x4b0ad8,{balloonView:_0x1df6d2,buttonView:_0x578ea9,hideMethod:_0x20e6ad}=this[_0x2d276e(0x150)];_0x89e7d6({'emitter':_0x1df6d2,'contextElements':[_0x1df6d2[_0x2d276e(0xf7)],_0x578ea9[_0x2d276e(0xf7)]],'callback':()=>{_0x20e6ad();},'activator':()=>_0x578ea9[_0x2d276e(0x134)]&&!this[_0x2d276e(0x161)][_0x2d276e(0x130)]&&!this[_0x2d276e(0x12c)][_0x2d276e(0x159)]()});}[_0x4b0ad8(0x101)](_0x2baec8,_0x552294,_0x137e8c=!0x1,_0x17e1c5=!0x1){const _0x3d237f=_0x4b0ad8,_0x19040e=_0x3d237f(0x115)===_0x552294||!0x0===_0x2baec8[_0x3d237f(0xeb)],_0x10ab21=new _0x39703c(this[_0x3d237f(0xf5)],_0x2baec8,_0x19040e,_0x137e8c,_0x17e1c5);return _0x19040e||_0x10ab21['on'](_0x3d237f(0x169),()=>{const _0x548828=_0x3d237f;this[_0x548828(0xe6)](_0x548828(0x10d),_0x10ab21['id']);}),_0x10ab21;}[_0x4b0ad8(0x160)](_0x10ba01,_0x4a5c51){const _0x395b44=_0x4b0ad8;_0x4a5c51[_0x395b44(0x15f)](_0x10ba01,0x0);}[_0x4b0ad8(0x154)](_0x3214f4,_0x230e97){const _0x2c19de=_0x4b0ad8,_0x24b0f9=_0x230e97[_0x2c19de(0x148)](_0x488b17=>_0x488b17['id']===_0x3214f4);_0x24b0f9&&_0x230e97[_0x2c19de(0x112)](_0x24b0f9);}[_0x4b0ad8(0xf9)](){const _0x521170=_0x4b0ad8;this[_0x521170(0xf0)][_0x521170(0x134)]?this[_0x521170(0x122)]():(this[_0x521170(0x131)](),this[_0x521170(0x14b)][_0x521170(0xef)]({'target':this[_0x521170(0xf0)][_0x521170(0xf7)],'limiter':this[_0x521170(0x11b)](),'positions':zo}),this[_0x521170(0xe8)]&&this[_0x521170(0x14b)][_0x521170(0xf6)][_0x521170(0x136)](0x0)?.[_0x521170(0xe6)](_0x521170(0x16a)));}[_0x4b0ad8(0x140)](_0x17a0af){const _0x5ac5d6=_0x4b0ad8;this[_0x5ac5d6(0x162)][_0x5ac5d6(0x125)](),this[_0x5ac5d6(0x15b)](),this[_0x5ac5d6(0xe6)](_0x5ac5d6(0x12b),_0x17a0af);}}export class SourcesBalloonButtonView extends _0x4a900c{[_0x4b0ad8(0xe3)];constructor(_0x26c9df){const _0x5ab184=_0x4b0ad8;super(_0x26c9df),this[_0x5ab184(0x11f)]({'withText':!0x0,'role':_0x5ab184(0x143)}),this[_0x5ab184(0xe3)]=this[_0x5ab184(0x13d)](),this[_0x5ab184(0x109)]({'attributes':{'class':[Fo]}});}[_0x4b0ad8(0x14a)](){const _0x5a6e45=_0x4b0ad8;super[_0x5a6e45(0x14a)](),this[_0x5a6e45(0x173)][_0x5a6e45(0x15f)](this[_0x5a6e45(0xe3)]);}[_0x4b0ad8(0x13d)](){const _0x47a470=_0x4b0ad8,_0x628ecf=new _0x398130();return _0x628ecf[_0x47a470(0xf6)]=_0x5525c4,_0x628ecf[_0x47a470(0x109)]({'attributes':{'class':Fo+_0x47a470(0x144)}}),_0x628ecf;}}
23
+ const _0x355f0d=_0x3dd5;function _0x3dd5(_0x2aa6ec,_0x2c11cf){const _0x1d52dd=_0x1d52();return _0x3dd5=function(_0x3dd597,_0x5195f7){_0x3dd597=_0x3dd597-0xb6;let _0x4bb10b=_0x1d52dd[_0x3dd597];return _0x4bb10b;},_0x3dd5(_0x2aa6ec,_0x2c11cf);}(function(_0xde4cfc,_0x2a3f8e){const _0x2beed8=_0x3dd5,_0x4b6c7c=_0xde4cfc();while(!![]){try{const _0x217f70=-parseInt(_0x2beed8(0x12a))/0x1*(-parseInt(_0x2beed8(0x122))/0x2)+parseInt(_0x2beed8(0xfd))/0x3*(parseInt(_0x2beed8(0xef))/0x4)+parseInt(_0x2beed8(0xcd))/0x5*(parseInt(_0x2beed8(0x11a))/0x6)+-parseInt(_0x2beed8(0x138))/0x7+-parseInt(_0x2beed8(0x13d))/0x8+-parseInt(_0x2beed8(0xfc))/0x9*(-parseInt(_0x2beed8(0x102))/0xa)+-parseInt(_0x2beed8(0xdc))/0xb*(-parseInt(_0x2beed8(0xeb))/0xc);if(_0x217f70===_0x2a3f8e)break;else _0x4b6c7c['push'](_0x4b6c7c['shift']());}catch(_0x3d8916){_0x4b6c7c['push'](_0x4b6c7c['shift']());}}}(_0x1d52,0x469b1));import{BalloonPanelView as _0x512bcc,ButtonView as _0x11492b,clickOutsideHandler as _0x246d9b,FileDialogButtonView as _0x1c9c64,IconView as _0x33a812,View as _0x4e3850}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1ecd83,IconDocument as _0x295598,IconDocumentOutline as _0x3f9ddd,IconDropdownArrow as _0x347f45,IconLink as _0xb30c67,IconPaperClip as _0x328706}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2e6f38}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x32e255}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2dcb09}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x911d9a}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x113b2d}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x355f0d(0xed),_0x355f0d(0x108),_0x355f0d(0xd4),_0x355f0d(0x123),_0x355f0d(0xc3),_0x355f0d(0x141),_0x355f0d(0xee)];const Uo=_0x355f0d(0xbb),Lo=_0x355f0d(0x124),No=_0x355f0d(0xb6),Mo=_0x355f0d(0xe9),Ho=_0x355f0d(0xfb),jo=_0x355f0d(0xe7),Fo=_0x355f0d(0x137),Xo=_0x355f0d(0x100),Do=_0x355f0d(0x14a),$o=_0x355f0d(0x127),Wo=_0x355f0d(0xb8),qo=_0x355f0d(0x14e),zo=[_0x512bcc[_0x355f0d(0xc8)][_0x355f0d(0x131)],_0x512bcc[_0x355f0d(0xc8)][_0x355f0d(0x130)],_0x512bcc[_0x355f0d(0xc8)][_0x355f0d(0x13f)],_0x512bcc[_0x355f0d(0xc8)][_0x355f0d(0xd8)],_0x512bcc[_0x355f0d(0xc8)][_0x355f0d(0x109)],_0x512bcc[_0x355f0d(0xc8)][_0x355f0d(0x10e)]];export class AIChatContextPanelView extends _0x4e3850{[_0x355f0d(0xf2)];[_0x355f0d(0x143)]=this[_0x355f0d(0xd2)]();[_0x355f0d(0x11f)]=this[_0x355f0d(0xd2)]();[_0x355f0d(0x134)];[_0x355f0d(0xe2)];[_0x355f0d(0xea)];[_0x355f0d(0xcc)];[_0x355f0d(0x101)];[_0x355f0d(0x12c)];[_0x355f0d(0x12b)]=!0x1;[_0x355f0d(0x116)];constructor(_0x1637ea,_0x1b25d5){const _0x5e965c=_0x355f0d;super(_0x1637ea),this[_0x5e965c(0x116)]=_0x1b25d5[_0x5e965c(0x116)],this[_0x5e965c(0x143)]=this[_0x5e965c(0xd2)](),this[_0x5e965c(0x11f)]=this[_0x5e965c(0xd2)](),this[_0x5e965c(0xf2)]=this[_0x5e965c(0x114)](_0x1637ea),this[_0x5e965c(0xe2)]=this[_0x5e965c(0x10b)](_0x1637ea),this[_0x5e965c(0xea)]=this[_0x5e965c(0x117)](_0x1637ea),this[_0x5e965c(0x101)]=this[_0x5e965c(0x136)](_0x1637ea,_0x1b25d5);const _0x57afe5={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x5e965c(0x134)]=new _0x2dcb09(_0x1637ea,this[_0x5e965c(0x143)],_0x57afe5,this[_0x5e965c(0x116)],this),this[_0x5e965c(0x12c)]={'buttonView':this[_0x5e965c(0xf2)],'balloonView':this[_0x5e965c(0xe2)],'hideMethod':this[_0x5e965c(0xe1)][_0x5e965c(0xde)](this),'showMethod':this[_0x5e965c(0x12d)][_0x5e965c(0xde)](this)},this[_0x5e965c(0xf0)](),this[_0x5e965c(0x146)]();}[_0x355f0d(0xc5)](){const _0x29b3fe=_0x355f0d;super[_0x29b3fe(0xc5)](),this[_0x29b3fe(0x110)](),this[_0x29b3fe(0x134)][_0x29b3fe(0x12e)](this[_0x29b3fe(0xce)]),this[_0x29b3fe(0x134)][_0x29b3fe(0x11e)]();}[_0x355f0d(0x111)](){const _0x64517f=_0x355f0d;super[_0x64517f(0x111)](),this[_0x64517f(0x134)][_0x64517f(0x111)](),this[_0x64517f(0x101)][_0x64517f(0x111)]();}[_0x355f0d(0x112)](_0xf19fe2,_0x23c346){const _0x2aff40=_0x355f0d,_0xd2529f=this[_0x2aff40(0x120)](_0xf19fe2,_0x2aff40(0x142),!0x0,_0x23c346);this[_0x2aff40(0xc7)](_0xd2529f,this[_0x2aff40(0x143)]),this[_0x2aff40(0x134)][_0x2aff40(0x11e)]();}[_0x355f0d(0xc3)](_0x5c8bd1){const _0x2ed855=_0x355f0d;this[_0x2ed855(0x132)](_0x5c8bd1,this[_0x2ed855(0x143)]),this[_0x2ed855(0x132)](_0x5c8bd1,this[_0x2ed855(0x134)][_0x2ed855(0x145)]),this[_0x2ed855(0x134)][_0x2ed855(0x11e)]();}[_0x355f0d(0x14d)](_0x29e7ec,_0x3fb8a0){const _0x5d503b=_0x355f0d;let _0x5829a1=this[_0x5d503b(0x143)][_0x5d503b(0xd3)](_0x2af43c=>_0x2af43c['id']===_0x29e7ec);_0x5829a1||(_0x5829a1=this[_0x5d503b(0x134)][_0x5d503b(0x145)][_0x5d503b(0xd3)](_0x26b7f1=>_0x26b7f1['id']===_0x29e7ec)),_0x5829a1&&(_0x5829a1[_0x5d503b(0x129)]=_0x3fb8a0);}[_0x355f0d(0x11c)](_0x2075cd){const _0x59657c=_0x355f0d;this[_0x59657c(0x11f)][_0x59657c(0xfa)]();for(const _0x4f620d of _0x2075cd){const _0x16ae81=this[_0x59657c(0x120)](_0x4f620d,_0x59657c(0xc1),!0x1,!0x1);this[_0x59657c(0xc7)](_0x16ae81,this[_0x59657c(0x11f)]);}}[_0x355f0d(0xc6)](){const _0x3df540=_0x355f0d;this[_0x3df540(0x143)][_0x3df540(0xfa)](),this[_0x3df540(0x134)][_0x3df540(0xfa)]();}[_0x355f0d(0xc9)](){const _0x9582ed=_0x355f0d;this[_0x9582ed(0x11f)][_0x9582ed(0xfa)]();}[_0x355f0d(0x119)](_0x3a9e27,_0x217235,_0x5527c4){const _0x2f587a=_0x355f0d;this[_0x2f587a(0x101)][_0x2f587a(0x119)](_0x3a9e27,_0x217235,_0x5527c4);}[_0x355f0d(0xe1)](){const _0x3164b5=_0x355f0d;this[_0x3164b5(0x126)](!0x1);}[_0x355f0d(0x12d)](){const _0xcbc0ef=_0x355f0d;this[_0xcbc0ef(0x126)](!0x0);}[_0x355f0d(0xe4)](){const _0x96f8d9=_0x355f0d;this[_0x96f8d9(0xea)][_0x96f8d9(0xcb)](),this[_0x96f8d9(0xf2)][_0x96f8d9(0xf9)]=!0x1,this[_0x96f8d9(0xcc)]&&this[_0x96f8d9(0xcc)][_0x96f8d9(0xfa)]();}[_0x355f0d(0xf5)](){const _0x4f5a7e=_0x355f0d;this[_0x4f5a7e(0xea)][_0x4f5a7e(0x11d)](),this[_0x4f5a7e(0xf2)][_0x4f5a7e(0xf9)]=!0x0;}[_0x355f0d(0xc4)]({source:_0xe072c,withBackButton:_0x259d64}){const _0x110e4d=_0x355f0d;this[_0x110e4d(0x101)][_0x110e4d(0xf7)]({'source':_0xe072c,'withBackButton':_0x259d64}),this[_0x110e4d(0xf2)][_0x110e4d(0xf9)]=!0x0;}[_0x355f0d(0xf4)](_0xd6a56c,_0x199d04,_0x58ba6a,_0x54146e){const _0x15d3af=_0x355f0d;this[_0x15d3af(0x101)][_0x15d3af(0xf4)](_0xd6a56c,_0x58ba6a,_0x54146e);}[_0x355f0d(0xb9)](_0x2aaa0c){const _0x20e7e2=_0x355f0d;this[_0x20e7e2(0x101)][_0x20e7e2(0xb9)](_0x2aaa0c),this[_0x20e7e2(0xf2)][_0x20e7e2(0xf9)]=!0x1;}[_0x355f0d(0x12f)](_0xdb77e3){const _0x4814d5=_0x355f0d;this[_0x4814d5(0xe6)](this[_0x4814d5(0xe2)],this[_0x4814d5(0x10c)],_0xdb77e3),this[_0x4814d5(0xca)](_0xdb77e3);}[_0x355f0d(0xca)](_0x27bb0c){const _0x5d17db=_0x355f0d,_0x44f109=!_0x27bb0c[_0x5d17db(0x14b)][_0x5d17db(0x13a)]&&_0x27bb0c[_0x5d17db(0x14b)][_0x5d17db(0xc2)],_0x296b0c=_0x27bb0c[_0x5d17db(0xf3)][_0x5d17db(0xc2)],_0x1ca5ad=_0x27bb0c[_0x5d17db(0xe0)][_0x5d17db(0xc2)],_0x2cb293=_0x27bb0c[_0x5d17db(0xec)][_0x5d17db(0x106)]>0x0,_0x3ede43=_0x27bb0c[_0x5d17db(0xb7)]&&_0x27bb0c[_0x5d17db(0xb7)][_0x5d17db(0x106)]>0x0;this[_0x5d17db(0xf2)][_0x5d17db(0xd9)]=_0x44f109||_0x296b0c||_0x1ca5ad||_0x2cb293||_0x3ede43;}[_0x355f0d(0xf0)](){const _0x1d0bdb=_0x355f0d;this[_0x1d0bdb(0xdb)]({'tag':_0x1d0bdb(0xcf),'attributes':{'class':[Uo,_0x1d0bdb(0xe5)]},'children':[{'tag':_0x1d0bdb(0xcf),'attributes':{'class':Lo},'children':this[_0x1d0bdb(0x143)]}]});}[_0x355f0d(0x146)](){const _0x1d1d40=_0x355f0d;this[_0x1d1d40(0xf2)]['on'](_0x1d1d40(0x10d),()=>{const _0x1b6989=_0x1d1d40;this[_0x1b6989(0x13c)]();});}[_0x355f0d(0x114)](_0x225a64){const _0x113447=_0x355f0d,_0x8ee6f8=new _0x11492b(_0x225a64);return _0x8ee6f8[_0x113447(0xd7)]({'label':_0x911d9a(_0x225a64,_0x113447(0x135)),'class':Xo+'\x20'+Mo,'icon':_0x328706,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x8ee6f8;}[_0x355f0d(0x10b)](_0x21ea97){const _0x53b8df=_0x355f0d;return this[_0x53b8df(0x13e)](_0x21ea97,No);}[_0x355f0d(0x117)](_0x48376e){const _0x270b25=_0x355f0d,_0x4c8be2=this[_0x270b25(0x13e)](_0x48376e,Ho);return this[_0x270b25(0x133)](_0x4c8be2,_0x48376e),_0x4c8be2;}[_0x355f0d(0x136)](_0x11b1e0,_0x3ff470){const _0x150ef4=_0x355f0d,_0x51933c={'searchInputVisibleFrom':_0x3ff470[_0x150ef4(0xbd)],'onBackToContext':()=>{const _0x2118c1=_0x150ef4;this[_0x2118c1(0x12d)](),this[_0x2118c1(0xe2)][_0x2118c1(0xd0)]({'target':this[_0x2118c1(0xf2)][_0x2118c1(0xce)],'limiter':this[_0x2118c1(0x107)](),'positions':zo});},'onResourceSelected':(_0xd0ad93,_0x414342)=>{const _0x5d8657=_0x150ef4;this[_0x5d8657(0x139)](_0x5d8657(0x123),{'source':_0xd0ad93,'resource':_0x414342});},'onLoadSourceResources':_0x5ffb19=>{const _0x208be0=_0x150ef4;this[_0x208be0(0x139)](_0x208be0(0x141),_0x5ffb19);},'onBalloonClosed':()=>{const _0x81c39b=_0x150ef4;this[_0x81c39b(0xf2)][_0x81c39b(0xf9)]=!0x1;},'getLimiterElement':()=>this[_0x150ef4(0x107)](),'getTargetElement':()=>this[_0x150ef4(0xf2)][_0x150ef4(0xce)]};return new _0x113b2d(_0x11b1e0,_0x3ff470[_0x150ef4(0x116)],_0x51933c);}[_0x355f0d(0x107)](){const _0x244c0b=_0x355f0d;return this[_0x244c0b(0xce)]?.[_0x244c0b(0x140)]('.'+qo)||document[_0x244c0b(0x105)];}[_0x355f0d(0x13e)](_0x366907,_0x2fd377){const _0x44224f=_0x355f0d,_0x5e34a9=new _0x512bcc(_0x366907);return _0x5e34a9[_0x44224f(0x104)]({'attributes':{'class':_0x2fd377}}),this[_0x44224f(0x116)][_0x44224f(0xbe)](_0x5e34a9),_0x5e34a9;}[_0x355f0d(0xe6)](_0x54580b,_0x357c6b,_0x2b695c){const _0x576b4c=_0x355f0d;if(_0x54580b[_0x576b4c(0xda)][_0x576b4c(0xfa)](),!_0x2b695c[_0x576b4c(0x14b)][_0x576b4c(0x13a)]&&_0x2b695c[_0x576b4c(0x14b)][_0x576b4c(0xc2)]){const _0x4c7ba0=this[_0x576b4c(0xdd)](_0x357c6b,{'label':_0x911d9a(_0x357c6b,_0x576b4c(0x103)),'icon':_0x295598});_0x4c7ba0['on'](_0x576b4c(0x10d),()=>{const _0x497677=_0x576b4c;this[_0x497677(0x139)](_0x497677(0xed)),this[_0x497677(0xe1)]();}),_0x54580b[_0x576b4c(0xda)][_0x576b4c(0xbe)](_0x4c7ba0);}if(_0x2b695c[_0x576b4c(0xf3)][_0x576b4c(0xc2)]){const _0x162bec=this[_0x576b4c(0xdd)](_0x357c6b,{'label':_0x911d9a(_0x357c6b,_0x576b4c(0xf8)),'icon':_0xb30c67});_0x162bec['on'](_0x576b4c(0x10d),()=>{const _0x410f11=_0x576b4c;this[_0x410f11(0xe1)](),this[_0x410f11(0xf5)](),this[_0x410f11(0xea)][_0x410f11(0xd0)]({'target':this[_0x410f11(0xf2)][_0x410f11(0xce)],'limiter':this[_0x410f11(0x107)](),'positions':zo}),this[_0x410f11(0xcc)][_0x410f11(0xf1)]();}),_0x54580b[_0x576b4c(0xda)][_0x576b4c(0xbe)](_0x162bec);}if(_0x2b695c[_0x576b4c(0xe0)][_0x576b4c(0xc2)]){const _0x183e47=new _0x1c9c64(_0x357c6b);_0x183e47[_0x576b4c(0xd7)]({'label':_0x911d9a(_0x357c6b,_0x576b4c(0x148)),'icon':_0x1ecd83,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x183e47['on'](_0x576b4c(0x10d),()=>{const _0x54e174=_0x576b4c;this[_0x54e174(0xe1)]();}),_0x183e47['on'](_0x576b4c(0xbf),(_0x4613d2,_0x19cc1f)=>{const _0x207aae=_0x576b4c;this[_0x207aae(0x139)](_0x207aae(0x108),_0x19cc1f);}),_0x183e47[_0x576b4c(0xba)]=!0x0,_0x54580b[_0x576b4c(0xda)][_0x576b4c(0xbe)](_0x183e47);}for(const _0x1c023a of _0x2b695c[_0x576b4c(0xec)]){const _0xcfb3c7=this[_0x576b4c(0xdd)](_0x357c6b,{'label':_0x1c023a[_0x576b4c(0xd1)],'icon':_0x1c023a[_0x576b4c(0xff)]||_0x3f9ddd,'type':_0x576b4c(0x125)});_0x54580b[_0x576b4c(0xda)][_0x576b4c(0xbe)](_0xcfb3c7),_0xcfb3c7['on'](_0x576b4c(0x10d),()=>{const _0x57057b=_0x576b4c;this[_0x57057b(0xe1)](),this[_0x57057b(0xc4)]({'source':_0x1c023a,'withBackButton':!this[_0x57057b(0x12b)]});});}for(const _0x57f091 of _0x2b695c[_0x576b4c(0xb7)]||[]){const _0x36b340=this[_0x576b4c(0xdd)](_0x357c6b,{'label':_0x57f091[_0x576b4c(0xd1)],'icon':_0x57f091[_0x576b4c(0xff)]||_0x3f9ddd,'type':_0x576b4c(0xe3)});_0x54580b[_0x576b4c(0xda)][_0x576b4c(0xbe)](_0x36b340),_0x36b340['on'](_0x576b4c(0x10d),()=>{const _0x28046e=_0x576b4c;this[_0x28046e(0xe1)](),this[_0x28046e(0x139)](_0x28046e(0xee),_0x57f091);});}this[_0x576b4c(0x12b)]=0x1===_0x54580b[_0x576b4c(0xda)][_0x576b4c(0x106)],this[_0x576b4c(0xcc)][_0x576b4c(0x128)]=!this[_0x576b4c(0x12b)];}[_0x355f0d(0x133)](_0x37a901,_0x5e41fd){const _0x5b61b2=_0x355f0d;this[_0x5b61b2(0xcc)]=new _0x32e255(_0x5e41fd),this[_0x5b61b2(0xcc)]['on'](_0x5b61b2(0x11b),(_0x5b001f,_0x35eb39)=>{const _0x2d4ffc=_0x5b61b2;this[_0x2d4ffc(0x149)](_0x35eb39);}),this[_0x5b61b2(0xcc)]['on'](_0x5b61b2(0xfe),()=>{const _0x367fe1=_0x5b61b2;this[_0x367fe1(0xe4)](),this[_0x367fe1(0x12b)]||(this[_0x367fe1(0x12d)](),this[_0x367fe1(0xe2)][_0x367fe1(0xd0)]({'target':this[_0x367fe1(0xf2)][_0x367fe1(0xce)],'limiter':this[_0x367fe1(0x107)](),'positions':zo}));}),this[_0x5b61b2(0xcc)]['on'](_0x5b61b2(0xdf),()=>{const _0x32e7ff=_0x5b61b2;this[_0x32e7ff(0xea)][_0x32e7ff(0x147)]&&this[_0x32e7ff(0xea)][_0x32e7ff(0xd0)]({'target':this[_0x32e7ff(0xf2)][_0x32e7ff(0xce)],'limiter':this[_0x32e7ff(0x107)](),'positions':zo});}),_0x37a901[_0x5b61b2(0xda)][_0x5b61b2(0xbe)](this[_0x5b61b2(0xcc)]);}[_0x355f0d(0xdd)](_0x4ea75f,_0x152df4){const _0x30297e=_0x355f0d,_0x29f33c=_0x30297e(0x125)===_0x152df4[_0x30297e(0x118)]?new SourcesBalloonButtonView(_0x4ea75f):new _0x11492b(_0x4ea75f);return _0x29f33c[_0x30297e(0xd7)]({'label':_0x152df4[_0x30297e(0xd1)],'icon':_0x152df4[_0x30297e(0xff)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x29f33c;}[_0x355f0d(0x110)](){const _0x1e10db=_0x355f0d;this[_0x1e10db(0xbc)](),this[_0x1e10db(0x121)]();}[_0x355f0d(0x121)](){const _0x25614c=_0x355f0d;_0x246d9b({'emitter':this[_0x25614c(0xea)],'contextElements':[this[_0x25614c(0xea)][_0x25614c(0xce)]],'callback':()=>{const _0x25c7fd=_0x25614c;this[_0x25c7fd(0xe4)]();},'activator':()=>this[_0x25614c(0xea)][_0x25614c(0x147)]});}[_0x355f0d(0x126)](_0x56641b){const _0x1cf63b=_0x355f0d,_0x45db5c=this[_0x1cf63b(0x12c)];_0x45db5c[_0x1cf63b(0xd5)][_0x1cf63b(0xf9)]=_0x56641b,_0x56641b?_0x45db5c[_0x1cf63b(0x10a)][_0x1cf63b(0x11d)]():_0x45db5c[_0x1cf63b(0x10a)][_0x1cf63b(0xcb)]();}[_0x355f0d(0xbc)](){const _0x23ab0d=_0x355f0d,{balloonView:_0x1ced1c,buttonView:_0x3fb864,hideMethod:_0x43b49d}=this[_0x23ab0d(0x12c)];_0x246d9b({'emitter':_0x1ced1c,'contextElements':[_0x1ced1c[_0x23ab0d(0xce)],_0x3fb864[_0x23ab0d(0xce)]],'callback':()=>{_0x43b49d();},'activator':()=>_0x3fb864[_0x23ab0d(0xf9)]&&!this[_0x23ab0d(0xea)][_0x23ab0d(0x147)]&&!this[_0x23ab0d(0x101)][_0x23ab0d(0x115)]()});}[_0x355f0d(0x120)](_0x5ef0dd,_0x210afe,_0x2a9383=!0x1,_0x1f7bfc=!0x1){const _0x1fbf56=_0x355f0d,_0x547e64=_0x1fbf56(0xc1)===_0x210afe||!0x0===_0x5ef0dd[_0x1fbf56(0xc0)],_0x1499e8=new _0x2e6f38(this[_0x1fbf56(0x10c)],_0x5ef0dd,_0x547e64,_0x2a9383,_0x1f7bfc);return _0x547e64||_0x1499e8['on'](_0x1fbf56(0x13b),()=>{const _0x26ae23=_0x1fbf56;this[_0x26ae23(0x139)](_0x26ae23(0xc3),_0x1499e8['id']);}),_0x1499e8;}[_0x355f0d(0xc7)](_0x53803f,_0x9d031a){const _0x49a1b8=_0x355f0d;_0x9d031a[_0x49a1b8(0xbe)](_0x53803f,0x0);}[_0x355f0d(0x132)](_0x5708c9,_0x172170){const _0x40011f=_0x355f0d,_0x38ef76=_0x172170[_0x40011f(0xd3)](_0x4239b4=>_0x4239b4['id']===_0x5708c9);_0x38ef76&&_0x172170[_0x40011f(0x10f)](_0x38ef76);}[_0x355f0d(0x13c)](){const _0x1c8c85=_0x355f0d;this[_0x1c8c85(0xf2)][_0x1c8c85(0xf9)]?this[_0x1c8c85(0xe1)]():(this[_0x1c8c85(0x12d)](),this[_0x1c8c85(0xe2)][_0x1c8c85(0xd0)]({'target':this[_0x1c8c85(0xf2)][_0x1c8c85(0xce)],'limiter':this[_0x1c8c85(0x107)](),'positions':zo}),this[_0x1c8c85(0x12b)]&&this[_0x1c8c85(0xe2)][_0x1c8c85(0xda)][_0x1c8c85(0x14c)](0x0)?.[_0x1c8c85(0x139)](_0x1c8c85(0x10d)));}[_0x355f0d(0x149)](_0x1bd1ff){const _0x174c03=_0x355f0d;this[_0x174c03(0xcc)][_0x174c03(0xfa)](),this[_0x174c03(0xe4)](),this[_0x174c03(0x139)](_0x174c03(0xd4),_0x1bd1ff);}}export class SourcesBalloonButtonView extends _0x11492b{[_0x355f0d(0xf6)];constructor(_0x56116e){const _0x4bd207=_0x355f0d;super(_0x56116e),this[_0x4bd207(0xd7)]({'withText':!0x0,'role':_0x4bd207(0xe8)}),this[_0x4bd207(0xf6)]=this[_0x4bd207(0xd6)](),this[_0x4bd207(0x104)]({'attributes':{'class':[Fo]}});}[_0x355f0d(0xc5)](){const _0x2558a6=_0x355f0d;super[_0x2558a6(0xc5)](),this[_0x2558a6(0x144)][_0x2558a6(0xbe)](this[_0x2558a6(0xf6)]);}[_0x355f0d(0xd6)](){const _0x90aff0=_0x355f0d,_0x48d19=new _0x33a812();return _0x48d19[_0x90aff0(0xda)]=_0x347f45,_0x48d19[_0x90aff0(0x104)]({'attributes':{'class':Fo+_0x90aff0(0x113)}}),_0x48d19;}}function _0x1d52(){const _0x11cff5=['searchInputVisibleFrom','add','done','isReadOnly','conversation','enabled','removeContextItem','_showSourceResourcesBalloon','render','clearCurrentContextItems','_addContextToCollection','defaultPositions','clearConversationContextItems','_setAddContextButtonEnabled','hide','_urlInputView','17945fmntkj','element','div','pin','label','createCollection','find','addUrlToContext','buttonView','_createArrowView','set','southArrowNorthWest','isEnabled','content','setTemplate','88qjRiXK','_createBalloonButton','bind','refreshBalloon','files','hideAddContextBalloonPanel','_addContextBalloonPanelView','customItem','hideUrlBalloonPanel','ck-reset_all-excluded','_setBalloonPanelContent','ck-ai-chat-context-controls__balloon-button','menuitem','ck-ai-chat-context-controls__add-context-button','_urlBalloonPanelView','191652tvyRoL','sources','addDocumentToContext','executeCustomItemCallback','4ifUkey','_setupTemplate','focus','addContextButtonView','urls','populateSourceResourceBalloon','showUrlBalloonPanel','arrowView','showSourceResourcesBalloon','AI_CHAT_CONTEXT_URL_LABEL','isOn','clear','ck-ai-chat-context-controls__url-balloon-panel','39033tAdamR','558915DkatkU','cancel','icon','ck-ai-chat-controls-button','_resourcesBalloonView','120cKYzZO','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','extendTemplate','body','length','_getLimiterElement','addFileToContext','southArrowNorth','balloonView','_createAddContextBalloonPanelView','locale','execute','southArrowNorthEast','remove','_setupAllBalloonClickOutsideHandlers','destroy','addContextItem','__arrow','_createAddContextButtonView','isAnyResourceBalloonVisible','bodyCollection','_createUrlBalloonPanelView','type','updateResourceState','330AgGhZm','submitUrl','setConversationContext','show','reorganizeChips','_conversationContextsChips','_createContextButton','_setupUrlBalloonClickOutsideHandler','1202ODzTls','addResourceToContext','ck-ai-chat-context-controls__pending-contexts','source','_toggleAddContextBalloon','ck-ai-chat-controls_context_show-more-button','withBackButton','isLoading','454LCshOb','_hasExactlyOneSource','_addContextBalloonConfig','showAddContextBalloonPanel','setContainerElement','setAddContextOptions','northArrowSouth','northArrowSouthWest','_removeContextFromCollection','_addUrlContent','_overflowManager','AI_CHAT_CONTEXT_ADD_CONTEXT','_createResourcesBalloonView','ck-ai-chat-context-controls__balloon-button-source','2077222eUnKdj','fire','isHidden','removeContextItemChip','_handleAddContextButtonClick','2003352nRnMwH','_createBaseBalloonPanel','northArrowSouthEast','closest','loadSourceResources','current','_currentContextsChips','children','overflowChips','_bindEventHandlers','isVisible','AI_CHAT_CONTEXT_FILE_LABEL','_handleUrlSubmit','ck-ai-chat-context-chips-wrapper-balloon','document','get','setContextItemLoading','ck-ai-chat','ck-ai-chat-context-controls__add-context-balloon-panel','customItems','ck-ai-chat-context-controls__show-more-balloon-panel','closeSourceResourceBalloon','tooltip','ck-ai-chat-context-controls','_setupAddContextBalloonClickOutsideHandler'];_0x1d52=function(){return _0x11cff5;};return _0x1d52();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3499(_0x5ede14,_0x5838c1){const _0x40a6f4=_0x40a6();return _0x3499=function(_0x3499bc,_0x30a96e){_0x3499bc=_0x3499bc-0xc7;let _0x28e57d=_0x40a6f4[_0x3499bc];return _0x28e57d;},_0x3499(_0x5ede14,_0x5838c1);}const _0x5e687e=_0x3499;(function(_0x46c3e6,_0x5afbb7){const _0x594bca=_0x3499,_0xd3fc0d=_0x46c3e6();while(!![]){try{const _0x47df53=-parseInt(_0x594bca(0xc7))/0x1+-parseInt(_0x594bca(0xd1))/0x2+-parseInt(_0x594bca(0xd5))/0x3*(-parseInt(_0x594bca(0xce))/0x4)+parseInt(_0x594bca(0xcf))/0x5+-parseInt(_0x594bca(0xe2))/0x6*(-parseInt(_0x594bca(0xc9))/0x7)+-parseInt(_0x594bca(0xcc))/0x8+-parseInt(_0x594bca(0xdb))/0x9*(parseInt(_0x594bca(0xd3))/0xa);if(_0x47df53===_0x5afbb7)break;else _0xd3fc0d['push'](_0xd3fc0d['shift']());}catch(_0x5e09b7){_0xd3fc0d['push'](_0xd3fc0d['shift']());}}}(_0x40a6,0x35b75));import{ButtonView as _0x13309d,View as _0x5844ab}from'ckeditor5/src/ui.js';import{IconStop as _0x10bfb6}from'ckeditor5/src/icons.js';function _0x40a6(){const _0x2899d8=['AI_CHAT_STOP_GENERATING','ck-ai-button-secondary\x20ck-ai-button-stop-generating','2031093hEBsdv','execute','_loaderView','_createCancelButtonView','abortPromptStream','div','ck-ai-chat-controls-loader-wrapper','107922whfIsK','locale','137630HKEpVN','ck-ai-chat-controls-loader','154XQPIGn','set','ck-ai-chat-controls-loader-icon-dot','2733000DdaJlI','setTemplate','1668804mKeeME','785770hsyUvf','fire','90232bARErz','_createLoaderView','10lCgVjs','ck-reset_all','3NnhTON','AI_CHAT_IS_WRITING','_cancelButtonView','ck-ai-chat-controls-loader-icon'];_0x40a6=function(){return _0x2899d8;};return _0x40a6();}import{getTranslation as _0x212dcc}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x5844ab{[_0x5e687e(0xd7)];[_0x5e687e(0xdd)];constructor(_0x58d692){const _0x5670f4=_0x5e687e;super(_0x58d692),this[_0x5670f4(0xd7)]=this[_0x5670f4(0xde)](),this[_0x5670f4(0xdd)]=this[_0x5670f4(0xd2)](),this[_0x5670f4(0xcd)]({'tag':_0x5670f4(0xe0),'attributes':{'class':['ck',_0x5670f4(0xe1),_0x5670f4(0xd4)]},'children':[this[_0x5670f4(0xdd)],this[_0x5670f4(0xd7)]]});}[_0x5e687e(0xde)](){const _0xd453b4=_0x5e687e,_0x4eb44e=new _0x13309d(this[_0xd453b4(0xe3)]);return _0x4eb44e[_0xd453b4(0xca)]({'label':_0x212dcc(this[_0xd453b4(0xe3)],_0xd453b4(0xd9)),'withText':!0x0,'class':_0xd453b4(0xda),'icon':_0x10bfb6}),_0x4eb44e['on'](_0xd453b4(0xdc),()=>{const _0x2ebd2e=_0xd453b4;this[_0x2ebd2e(0xd0)](_0x2ebd2e(0xdf));}),_0x4eb44e;}[_0x5e687e(0xd2)](){const _0x2789ec=_0x5e687e,_0x3e0ee4=new _0x5844ab(this[_0x2789ec(0xe3)]);return _0x3e0ee4[_0x2789ec(0xcd)]({'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xc8)]},'children':[{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xd8)]},'children':[{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xcb)]}},{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xcb)]}},{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xcb)]}}]},{'text':_0x212dcc(this[_0x2789ec(0xe3)],_0x2789ec(0xd6))}]}),_0x3e0ee4;}}
23
+ const _0x5ee0e3=_0x1baf;(function(_0x3f14ce,_0x2ad70a){const _0x3cbdb6=_0x1baf,_0x1e2ecc=_0x3f14ce();while(!![]){try{const _0x1f4e44=parseInt(_0x3cbdb6(0x14c))/0x1*(-parseInt(_0x3cbdb6(0x155))/0x2)+parseInt(_0x3cbdb6(0x13e))/0x3+parseInt(_0x3cbdb6(0x142))/0x4+parseInt(_0x3cbdb6(0x144))/0x5+parseInt(_0x3cbdb6(0x147))/0x6+-parseInt(_0x3cbdb6(0x157))/0x7+parseInt(_0x3cbdb6(0x14e))/0x8;if(_0x1f4e44===_0x2ad70a)break;else _0x1e2ecc['push'](_0x1e2ecc['shift']());}catch(_0x2b3813){_0x1e2ecc['push'](_0x1e2ecc['shift']());}}}(_0xef59,0x83cd4));import{ButtonView as _0x19c96e,View as _0x5789b0}from'ckeditor5/src/ui.js';function _0x1baf(_0x118725,_0x1c4ebf){const _0xef599f=_0xef59();return _0x1baf=function(_0x1bafd8,_0x40efe9){_0x1bafd8=_0x1bafd8-0x13d;let _0x2fb6ce=_0xef599f[_0x1bafd8];return _0x2fb6ce;},_0x1baf(_0x118725,_0x1c4ebf);}function _0xef59(){const _0x1d5b90=['1969353XtHNqM','_loaderView','abortPromptStream','_cancelButtonView','2974072EVlkny','ck-ai-chat-controls-loader-icon','2256260yWCLoW','execute','_createCancelButtonView','968388ehvgvN','set','_createLoaderView','locale','setTemplate','48399lgNtky','AI_CHAT_IS_WRITING','855008KkbCIk','ck-reset_all','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader','fire','28IbXviv','ck-ai-button-secondary\x20ck-ai-button-stop-generating','6314343AZKrUa','div'];_0xef59=function(){return _0x1d5b90;};return _0xef59();}import{IconStop as _0x9ec83f}from'ckeditor5/src/icons.js';import{getTranslation as _0x2661f9}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x5789b0{[_0x5ee0e3(0x141)];[_0x5ee0e3(0x13f)];constructor(_0x4cf34e){const _0x5cd479=_0x5ee0e3;super(_0x4cf34e),this[_0x5cd479(0x141)]=this[_0x5cd479(0x146)](),this[_0x5cd479(0x13f)]=this[_0x5cd479(0x149)](),this[_0x5cd479(0x14b)]({'tag':_0x5cd479(0x13d),'attributes':{'class':['ck',_0x5cd479(0x151),_0x5cd479(0x14f)]},'children':[this[_0x5cd479(0x13f)],this[_0x5cd479(0x141)]]});}[_0x5ee0e3(0x146)](){const _0x4870d5=_0x5ee0e3,_0x2bd234=new _0x19c96e(this[_0x4870d5(0x14a)]);return _0x2bd234[_0x4870d5(0x148)]({'label':_0x2661f9(this[_0x4870d5(0x14a)],_0x4870d5(0x150)),'withText':!0x0,'class':_0x4870d5(0x156),'icon':_0x9ec83f}),_0x2bd234['on'](_0x4870d5(0x145),()=>{const _0x1d1f80=_0x4870d5;this[_0x1d1f80(0x154)](_0x1d1f80(0x140));}),_0x2bd234;}[_0x5ee0e3(0x149)](){const _0x54d848=_0x5ee0e3,_0x50f18b=new _0x5789b0(this[_0x54d848(0x14a)]);return _0x50f18b[_0x54d848(0x14b)]({'tag':_0x54d848(0x13d),'attributes':{'class':[_0x54d848(0x153)]},'children':[{'tag':_0x54d848(0x13d),'attributes':{'class':[_0x54d848(0x143)]},'children':[{'tag':_0x54d848(0x13d),'attributes':{'class':[_0x54d848(0x152)]}},{'tag':_0x54d848(0x13d),'attributes':{'class':[_0x54d848(0x152)]}},{'tag':_0x54d848(0x13d),'attributes':{'class':[_0x54d848(0x152)]}}]},{'text':_0x2661f9(this[_0x54d848(0x14a)],_0x54d848(0x14d))}]}),_0x50f18b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4464bd=_0x1dcf;(function(_0x5138af,_0x424833){const _0x257ac6=_0x1dcf,_0x584a55=_0x5138af();while(!![]){try{const _0xf25cd=parseInt(_0x257ac6(0xff))/0x1+parseInt(_0x257ac6(0x107))/0x2*(parseInt(_0x257ac6(0xe0))/0x3)+-parseInt(_0x257ac6(0x115))/0x4+-parseInt(_0x257ac6(0xe2))/0x5+-parseInt(_0x257ac6(0x11d))/0x6*(-parseInt(_0x257ac6(0xf0))/0x7)+-parseInt(_0x257ac6(0x124))/0x8*(-parseInt(_0x257ac6(0xfd))/0x9)+parseInt(_0x257ac6(0x126))/0xa;if(_0xf25cd===_0x424833)break;else _0x584a55['push'](_0x584a55['shift']());}catch(_0x4b4133){_0x584a55['push'](_0x584a55['shift']());}}}(_0x4656,0x4d378));import{Collection as _0x4dab53}from'ckeditor5/src/utils.js';import{IconAI as _0x588186,IconBulb as _0x51537a,IconWeb as _0x5c0f8e}from'@ckeditor/ckeditor5-icons';function _0x1dcf(_0x56d27d,_0x4ab966){const _0x4656c6=_0x4656();return _0x1dcf=function(_0x1dcf85,_0x50aa4a){_0x1dcf85=_0x1dcf85-0xcc;let _0x502667=_0x4656c6[_0x1dcf85];return _0x502667;},_0x1dcf(_0x56d27d,_0x4ab966);}import{addListToDropdown as _0x694c25,ButtonLabelView as _0x47b3f4,ButtonView as _0x5309cf,createDropdown as _0x87c76a,IconView as _0x2fe1d5,UIModel as _0x220e91,View as _0x567add}from'ckeditor5/src/ui.js';import{getTranslation as _0x5660a0}from'../../../aicore/utils/common-translations.js';const Ko=_0x4464bd(0xe3),Xo=_0x4464bd(0x113),Qo=_0x4464bd(0x105),Zo=_0x4464bd(0xeb),tl=_0x4464bd(0x118),el=_0x4464bd(0x12c),il=_0x4464bd(0x121),sl=_0x4464bd(0xf5),ol='n';export class AIChatPromptCapabilitiesView extends _0x567add{[_0x4464bd(0x11f)];[_0x4464bd(0x12b)];[_0x4464bd(0x122)];[_0x4464bd(0xf2)];[_0x4464bd(0x114)];[_0x4464bd(0xdb)];constructor(_0x44eb04){const _0x1dde01=_0x4464bd;super(_0x44eb04),this[_0x1dde01(0xd0)](_0x1dde01(0xf1),!0x1),this[_0x1dde01(0xd0)](_0x1dde01(0x10c),!0x1),this[_0x1dde01(0xd0)](_0x1dde01(0x108),_0x1dde01(0x119)),this[_0x1dde01(0xd0)](_0x1dde01(0x12d),!0x0),this[_0x1dde01(0xd0)](_0x1dde01(0xd5),null),this[_0x1dde01(0xd0)](_0x1dde01(0xdc),null),this[_0x1dde01(0xf2)]=this[_0x1dde01(0x11e)](),this[_0x1dde01(0xdb)]=this[_0x1dde01(0xe8)](),this[_0x1dde01(0x11f)]=this[_0x1dde01(0x120)](),this[_0x1dde01(0x12b)]=this[_0x1dde01(0xd2)](),this[_0x1dde01(0x122)]=this[_0x1dde01(0xee)](),this[_0x1dde01(0xf2)][_0x1dde01(0xd4)][_0x1dde01(0xce)](_0x1dde01(0xd8))['to'](this,_0x1dde01(0x108),_0x43c609=>_0x1dde01(0x119)===_0x43c609),this[_0x1dde01(0xf2)][_0x1dde01(0xd4)][_0x1dde01(0xce)](_0x1dde01(0x111))['to'](this,_0x1dde01(0x12d),_0x1861d4=>_0x1861d4?this[_0x1dde01(0xf2)][_0x1dde01(0xd4)][_0x1dde01(0xe7)]:_0x5660a0(this[_0x1dde01(0x125)],_0x1dde01(0x112))),this[_0x1dde01(0xf2)][_0x1dde01(0xce)](_0x1dde01(0x11b))['to'](this,_0x1dde01(0x12d),_0x500048=>_0x500048),this[_0x1dde01(0x11f)][_0x1dde01(0xce)](_0x1dde01(0xfc))['to'](this,_0x1dde01(0xf1),_0x41b870=>_0x41b870),this[_0x1dde01(0x11f)][_0x1dde01(0xce)](_0x1dde01(0x111))['to'](this,_0x1dde01(0xf1),_0x2504b1=>_0x5660a0(this[_0x1dde01(0x125)],_0x2504b1?_0x1dde01(0x123):_0x1dde01(0x12a))),this[_0x1dde01(0x12b)][_0x1dde01(0xce)](_0x1dde01(0xfc))['to'](this,_0x1dde01(0x10c),_0xc9b639=>_0xc9b639),this[_0x1dde01(0x12b)][_0x1dde01(0xce)](_0x1dde01(0x111))['to'](this,_0x1dde01(0x10c),_0x315b0e=>_0x5660a0(this[_0x1dde01(0x125)],_0x315b0e?_0x1dde01(0x10d):_0x1dde01(0xea))),this[_0x1dde01(0xe6)]({'tag':_0x1dde01(0xf9),'attributes':{'class':[Ko]},'children':[this[_0x1dde01(0xf2)],this[_0x1dde01(0xdb)],this[_0x1dde01(0x11f)],this[_0x1dde01(0x12b)],this[_0x1dde01(0x122)]]}),this[_0x1dde01(0x114)]=new _0x4dab53(),_0x694c25(this[_0x1dde01(0xf2)],this[_0x1dde01(0x114)]);}[_0x4464bd(0x11a)](_0x119be0,_0x50c7e7){const _0x2e338a=_0x4464bd;if(_0x50c7e7)this[_0x2e338a(0xd0)](_0x2e338a(0x108),_0x2e338a(0x128));else{const _0x1e132d=0x1===_0x119be0[_0x2e338a(0xfa)];this[_0x2e338a(0xd0)](_0x2e338a(0x108),_0x1e132d?_0x2e338a(0xe4):_0x2e338a(0x119));}if(this[_0x2e338a(0x114)][_0x2e338a(0xcf)](),_0x119be0?.[_0x2e338a(0xfa)])for(const _0x6baef9 of _0x119be0){const _0x4f0fea=new _0x220e91({'label':_0x6baef9[_0x2e338a(0xe4)],'withText':!0x0,'role':_0x2e338a(0x10e),'id':_0x6baef9['id'],'model':_0x6baef9});_0x4f0fea[_0x2e338a(0xce)](_0x2e338a(0xfc))['to'](this,_0x2e338a(0xd5),_0x2a94cd=>_0x2a94cd===_0x6baef9['id']),this[_0x2e338a(0x114)][_0x2e338a(0xec)]({'type':_0x2e338a(0x103),'model':_0x4f0fea,'labelView':new ko(this[_0x2e338a(0x125)],_0x6baef9)});}}[_0x4464bd(0xfb)](_0x46fc25){const _0x5b7253=_0x4464bd;this[_0x5b7253(0xd0)](_0x5b7253(0xf1),_0x46fc25);}[_0x4464bd(0x10a)](_0x5b6608){const _0x7fda16=_0x4464bd;this[_0x7fda16(0xd0)](_0x7fda16(0x10c),_0x5b6608);}[_0x4464bd(0x101)](_0x489811){const _0x22771e=_0x4464bd;if(!_0x489811)return;this[_0x22771e(0xd5)]=_0x489811['id'],this[_0x22771e(0xdc)]=_0x489811[_0x22771e(0xe4)]||_0x489811['id'],this[_0x22771e(0xf2)][_0x22771e(0xd4)][_0x22771e(0xd0)](_0x22771e(0xe7),_0x489811[_0x22771e(0xe4)]),this[_0x22771e(0xf2)][_0x22771e(0xd4)][_0x22771e(0xd0)](_0x22771e(0x111),_0x489811[_0x22771e(0xe4)]);const _0x19e462=_0x489811[_0x22771e(0x10b)][_0x22771e(0xd3)]?.[_0x22771e(0xed)]??!0x1;this[_0x22771e(0xd0)](_0x22771e(0xf1),!0x1),this[_0x22771e(0x11f)][_0x22771e(0xd0)](_0x22771e(0xfc),!0x1),this[_0x22771e(0x11f)][_0x22771e(0xd0)](_0x22771e(0x11b),_0x19e462),this[_0x22771e(0x11f)][_0x22771e(0xd0)](_0x22771e(0xd8),_0x19e462);const _0x29592c=_0x489811[_0x22771e(0x10b)][_0x22771e(0xd7)]?.[_0x22771e(0xed)]??!0x1;this[_0x22771e(0xd0)](_0x22771e(0x10c),!0x1),this[_0x22771e(0x12b)][_0x22771e(0xd0)](_0x22771e(0xfc),!0x1),this[_0x22771e(0x12b)][_0x22771e(0xd0)](_0x22771e(0x11b),_0x29592c),this[_0x22771e(0x12b)][_0x22771e(0xd0)](_0x22771e(0xd8),_0x29592c);}[_0x4464bd(0xf8)](){const _0x1670d7=_0x4464bd;this[_0x1670d7(0xd0)](_0x1670d7(0x12d),!0x0);}[_0x4464bd(0xf6)](_0x8e67a6){const _0x1219ba=_0x4464bd;this[_0x1219ba(0xd0)](_0x1219ba(0x12d),!0x1),_0x8e67a6&&this[_0x1219ba(0xd0)](_0x1219ba(0x108),_0x1219ba(0x128));}[_0x4464bd(0x120)](){const _0x26cf80=_0x4464bd,_0x1aaa44=new _0x5309cf();return _0x1aaa44[_0x26cf80(0xd0)]({'label':_0x5660a0(this[_0x26cf80(0x125)],_0x26cf80(0xf7)),'icon':_0x5c0f8e,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x1aaa44['on'](_0x26cf80(0xdd),()=>{const _0x4dfa52=_0x26cf80;this[_0x4dfa52(0x104)](_0x4dfa52(0xe1));}),_0x1aaa44;}[_0x4464bd(0xd2)](){const _0x565736=_0x4464bd,_0x3adfeb=new _0x5309cf();return _0x3adfeb[_0x565736(0xd0)]({'label':_0x5660a0(this[_0x565736(0x125)],_0x565736(0x100)),'icon':_0x51537a,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x3adfeb['on'](_0x565736(0xdd),()=>{const _0x27f5d0=_0x565736;this[_0x27f5d0(0x104)](_0x27f5d0(0x109));}),_0x3adfeb;}[_0x4464bd(0xee)](){const _0x2560c7=_0x4464bd,_0x138ab6=new _0x5309cf();return _0x138ab6[_0x2560c7(0xd0)]({'label':_0x5660a0(this[_0x2560c7(0x125)],_0x2560c7(0xda)),'icon':_0x588186,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x5660a0(this[_0x2560c7(0x125)],_0x2560c7(0xda)),'tooltipPosition':ol}),_0x138ab6[_0x2560c7(0xf4)]({'attributes':{'class':[Qo]}}),_0x138ab6['on'](_0x2560c7(0xdd),()=>{const _0x177087=_0x2560c7;console[_0x177087(0x102)](_0x177087(0x110)),alert(_0x177087(0x110));}),_0x138ab6;}[_0x4464bd(0x11e)](){const _0x3b2754=_0x4464bd,_0x4f9ce3=_0x87c76a(this[_0x3b2754(0x125)]);return _0x4f9ce3[_0x3b2754(0xd0)]({'panelPosition':'ne','class':[tl]}),_0x4f9ce3[_0x3b2754(0xd4)][_0x3b2754(0xd0)]({'label':_0x5660a0(this[_0x3b2754(0x125)],_0x3b2754(0x10f)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x3b2754(0xde)](_0x4f9ce3,_0x3b2754(0xdd),_0x204650=>{const _0x5cead2=_0x3b2754;this[_0x5cead2(0x104)](_0x5cead2(0xd6),_0x204650[_0x5cead2(0x116)][_0x5cead2(0x106)]);}),_0x4f9ce3;}[_0x4464bd(0xe8)](){const _0x57c75=_0x4464bd,_0x2f13e4=new _o(this[_0x57c75(0x125)]);return _0x2f13e4[_0x57c75(0xce)](_0x57c75(0xcc))['to'](this,_0x57c75(0xdc),_0x3da4fd=>_0x3da4fd??''),_0x2f13e4[_0x57c75(0xce)](_0x57c75(0xd8))['to'](this,_0x57c75(0x108),_0x330b68=>_0x57c75(0xe4)===_0x330b68),_0x2f13e4;}}class ko extends _0x47b3f4{constructor(_0x388817,_0x568cf6){const _0x1d8408=_0x4464bd;super();const _0x341535=this[_0x1d8408(0xe5)],_0x1c6528=this[_0x1d8408(0xef)]();this[_0x1d8408(0xe6)]({'tag':_0x1d8408(0xf9),'attributes':{'class':['ck',_0x1d8408(0xcd)],'style':_0x341535['to'](_0x1d8408(0xfe)),'id':_0x341535['to']('id')},'children':[{'tag':_0x1d8408(0xf9),'attributes':{'class':[el]},'children':[{'text':_0x341535['to'](_0x1d8408(0xcc))}]},{'tag':_0x1d8408(0xf9),'attributes':{'class':[il]},'children':[{'tag':_0x1d8408(0xd1),'children':[{'text':_0x568cf6[_0x1d8408(0xf3)]}]}]},{'tag':_0x1d8408(0xf9),'attributes':{'class':[sl]},'children':_0x1c6528}]}),_0x1c6528[_0x1d8408(0x129)](this[_0x1d8408(0xe9)](_0x388817,_0x5c0f8e,_0x1d8408(0xf7),_0x568cf6[_0x1d8408(0x10b)][_0x1d8408(0xd3)]?.[_0x1d8408(0xed)]??!0x1)),_0x1c6528[_0x1d8408(0x129)](this[_0x1d8408(0xe9)](_0x388817,_0x51537a,_0x1d8408(0x100),_0x568cf6[_0x1d8408(0x10b)][_0x1d8408(0xd7)]?.[_0x1d8408(0xed)]??!0x1));}[_0x4464bd(0xe9)](_0x1b48fe,_0x80f105,_0x38b556,_0x2b0a5d){const _0x15c9b0=_0x4464bd,_0x249f1b=new _0x2fe1d5();_0x249f1b[_0x15c9b0(0xdf)]=_0x80f105;const _0x4111c6=new _0x567add(_0x1b48fe);_0x4111c6[_0x15c9b0(0xe6)]({'tag':_0x15c9b0(0xd1),'children':[{'text':_0x5660a0(_0x1b48fe,_0x38b556)+':\x20'}]});const _0x1914ab=new _0x567add(_0x1b48fe);return _0x1914ab[_0x15c9b0(0xe6)]({'tag':_0x15c9b0(0xd1),'children':[{'text':_0x5660a0(_0x1b48fe,_0x2b0a5d?_0x15c9b0(0x11c):_0x15c9b0(0x117))}]}),[_0x249f1b,_0x4111c6,_0x1914ab];}}class _o extends _0x567add{constructor(_0x11e438){const _0x2e7b45=_0x4464bd;super(_0x11e438),this[_0x2e7b45(0xd0)](_0x2e7b45(0xcc),void 0x0),this[_0x2e7b45(0xd0)](_0x2e7b45(0xd8),!0x0);const _0x42330b=this[_0x2e7b45(0xe5)];this[_0x2e7b45(0xe6)]({'tag':_0x2e7b45(0xd1),'attributes':{'class':['ck',_0x2e7b45(0x127),_0x42330b['if'](_0x2e7b45(0xd8),_0x2e7b45(0xd9),_0x1425a6=>!_0x1425a6)]},'children':[{'text':_0x42330b['to'](_0x2e7b45(0xcc))}]});}}function _0x4656(){const _0x17dd8c=['setModel','log','button','fire','ck-ai-chat-controls-button--commands','model','254SPUgDF','modelDisplayMode','toggleReasoning','setReasoning','capabilities','reasoningActive','AI_CHAT_DISABLE_REASONING','menuitemradio','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','Commands\x20are\x20not\x20implemented\x20yet.','tooltip','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls-button','_modelSelectionDropdownItems','939748tcwQUc','source','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-selection','selector','setModelList','isEnabled','AI_CHAT_CAPABILITIES_YES','60dooNxk','_createModelSelectionDropdown','_webSearchButton','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-description','_commandsButton','AI_CHAT_DISABLE_WEB_SEARCH','32hSSrSG','locale','420570iJaSGb','ck-ai-chat-controls__model-name','hidden','addMany','AI_CHAT_ENABLE_WEB_SEARCH','_reasoningButton','ck-ai-chat-controls__model-selection__item-name','modelSelectorEnabled','text','ck-button__label','bind','clear','set','span','_createReasoningButton','webSearch','buttonView','activeModelId','selectModel','reasoning','isVisible','ck-hidden','AI_CHAT_COMMANDS','_modelNameView','activeModelName','execute','listenTo','content','8331cfUreU','toggleWebSearch','2639465VEQdmr','ck-ai-chat__prompt-capabilities','name','bindTemplate','setTemplate','label','_createModelNameView','_getCapabilityParts','AI_CHAT_ENABLE_REASONING','ck-ai-button-tertiary','add','enabled','_createCommandsButton','createCollection','137627DbkoNk','webSearchActive','_modelSelectionDropdown','description','extendTemplate','ck-ai-chat-controls__model-selection__item-capabilities','disableModelSelector','AI_CHAT_SEARCH_WEB','enableModelSelector','div','length','setWebSearch','isOn','119106qMMfsQ','style','434828snLDuc','AI_CHAT_REASONING'];_0x4656=function(){return _0x17dd8c;};return _0x4656();}
23
+ const _0xb5d2e6=_0xced5;function _0xced5(_0x451c69,_0x4c044e){const _0x1a7a2f=_0x1a7a();return _0xced5=function(_0xced56b,_0x10a4bf){_0xced56b=_0xced56b-0x1e3;let _0x5e9ad1=_0x1a7a2f[_0xced56b];return _0x5e9ad1;},_0xced5(_0x451c69,_0x4c044e);}function _0x1a7a(){const _0x2a4802=['name','createCollection','setModel','capabilities','setWebSearch','clear','disableModelSelector','length','AI_CHAT_COMMANDS','isVisible','fire','ck-ai-chat-controls__model-selection__item-description','bindTemplate','ck-ai-button-tertiary','content','style','selectModel','_createModelNameView','8456hbzSzG','_createCommandsButton','webSearchActive','_modelNameView','isEnabled','locale','_reasoningButton','reasoningActive','ck-ai-chat-controls__model-selection__item-capabilities','ck-ai-chat__prompt-capabilities','ck-ai-chat-controls__model-selection','AI_CHAT_DISABLE_REASONING','set','_getCapabilityParts','model','label','setTemplate','text','modelSelectorEnabled','AI_CHAT_CAPABILITIES_NO','ck-button__label','log','ck-ai-chat-controls-button--commands','_webSearchButton','setModelList','menuitemradio','ck-hidden','7485570JuWmxg','toggleReasoning','webSearch','button','ck-ai-chat-controls__model-name','AI_CHAT_REASONING','source','_commandsButton','selector','activeModelId','buttonView','_createReasoningButton','addMany','bind','51lLsZKb','listenTo','AI_CHAT_DISABLE_WEB_SEARCH','_createModelSelectionDropdown','ck-ai-chat-controls-button','extendTemplate','2661582LhQpUn','modelDisplayMode','enableModelSelector','activeModelName','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','187221OTxPnO','setReasoning','hidden','_modelSelectionDropdown','execute','AI_CHAT_SEARCH_WEB','reasoning','ck-ai-chat-controls__model-selection__item-name','description','_createWebSearchButton','div','add','enabled','129076lewaPO','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','3213795KSNQzw','tooltip','AI_CHAT_CAPABILITIES_YES','toggleWebSearch','943464HCfVby','1952dqUXjg','isOn','Commands\x20are\x20not\x20implemented\x20yet.','span','_modelSelectionDropdownItems','AI_CHAT_ENABLE_WEB_SEARCH'];_0x1a7a=function(){return _0x2a4802;};return _0x1a7a();}(function(_0x21d81e,_0x403236){const _0x280cd7=_0xced5,_0x4acb94=_0x21d81e();while(!![]){try{const _0x3cf673=-parseInt(_0x280cd7(0x235))/0x1+-parseInt(_0x280cd7(0x1e8))/0x2+parseInt(_0x280cd7(0x22a))/0x3*(-parseInt(_0x280cd7(0x242))/0x4)+parseInt(_0x280cd7(0x1e4))/0x5+parseInt(_0x280cd7(0x230))/0x6+parseInt(_0x280cd7(0x201))/0x7*(-parseInt(_0x280cd7(0x1e9))/0x8)+parseInt(_0x280cd7(0x21c))/0x9;if(_0x3cf673===_0x403236)break;else _0x4acb94['push'](_0x4acb94['shift']());}catch(_0x313898){_0x4acb94['push'](_0x4acb94['shift']());}}}(_0x1a7a,0x65840));import{Collection as _0x2f8000}from'ckeditor5/src/utils.js';import{IconAI as _0x578ec8,IconBulb as _0x1deeb0,IconWeb as _0x46540f}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x445c45,ButtonLabelView as _0x170439,ButtonView as _0x49dc33,createDropdown as _0x3db09b,IconView as _0x2ad70a,UIModel as _0x306162,View as _0x8b4bd9}from'ckeditor5/src/ui.js';import{getTranslation as _0x33b260}from'../../../aicore/utils/common-translations.js';const Ko=_0xb5d2e6(0x20a),Xo=_0xb5d2e6(0x22e),Qo=_0xb5d2e6(0x217),Zo=_0xb5d2e6(0x1fc),tl=_0xb5d2e6(0x20b),el=_0xb5d2e6(0x23c),il=_0xb5d2e6(0x1fa),sl=_0xb5d2e6(0x209),ol='n';export class AIChatPromptCapabilitiesView extends _0x8b4bd9{[_0xb5d2e6(0x218)];[_0xb5d2e6(0x207)];[_0xb5d2e6(0x223)];[_0xb5d2e6(0x238)];[_0xb5d2e6(0x1ed)];[_0xb5d2e6(0x204)];constructor(_0x15327e){const _0x5ed55e=_0xb5d2e6;super(_0x15327e),this[_0x5ed55e(0x20d)](_0x5ed55e(0x203),!0x1),this[_0x5ed55e(0x20d)](_0x5ed55e(0x208),!0x1),this[_0x5ed55e(0x20d)](_0x5ed55e(0x231),_0x5ed55e(0x224)),this[_0x5ed55e(0x20d)](_0x5ed55e(0x213),!0x0),this[_0x5ed55e(0x20d)](_0x5ed55e(0x225),null),this[_0x5ed55e(0x20d)](_0x5ed55e(0x233),null),this[_0x5ed55e(0x238)]=this[_0x5ed55e(0x22d)](),this[_0x5ed55e(0x204)]=this[_0x5ed55e(0x200)](),this[_0x5ed55e(0x218)]=this[_0x5ed55e(0x23e)](),this[_0x5ed55e(0x207)]=this[_0x5ed55e(0x227)](),this[_0x5ed55e(0x223)]=this[_0x5ed55e(0x202)](),this[_0x5ed55e(0x238)][_0x5ed55e(0x226)][_0x5ed55e(0x229)](_0x5ed55e(0x1f8))['to'](this,_0x5ed55e(0x231),_0x2b35d6=>_0x5ed55e(0x224)===_0x2b35d6),this[_0x5ed55e(0x238)][_0x5ed55e(0x226)][_0x5ed55e(0x229)](_0x5ed55e(0x1e5))['to'](this,_0x5ed55e(0x213),_0x209926=>_0x209926?this[_0x5ed55e(0x238)][_0x5ed55e(0x226)][_0x5ed55e(0x210)]:_0x33b260(this[_0x5ed55e(0x206)],_0x5ed55e(0x234))),this[_0x5ed55e(0x238)][_0x5ed55e(0x229)](_0x5ed55e(0x205))['to'](this,_0x5ed55e(0x213),_0x3f1d9f=>_0x3f1d9f),this[_0x5ed55e(0x218)][_0x5ed55e(0x229)](_0x5ed55e(0x1ea))['to'](this,_0x5ed55e(0x203),_0x12bdc2=>_0x12bdc2),this[_0x5ed55e(0x218)][_0x5ed55e(0x229)](_0x5ed55e(0x1e5))['to'](this,_0x5ed55e(0x203),_0x29e18b=>_0x33b260(this[_0x5ed55e(0x206)],_0x29e18b?_0x5ed55e(0x22c):_0x5ed55e(0x1ee))),this[_0x5ed55e(0x207)][_0x5ed55e(0x229)](_0x5ed55e(0x1ea))['to'](this,_0x5ed55e(0x208),_0x59d51f=>_0x59d51f),this[_0x5ed55e(0x207)][_0x5ed55e(0x229)](_0x5ed55e(0x1e5))['to'](this,_0x5ed55e(0x208),_0x572a=>_0x33b260(this[_0x5ed55e(0x206)],_0x572a?_0x5ed55e(0x20c):_0x5ed55e(0x1e3))),this[_0x5ed55e(0x211)]({'tag':_0x5ed55e(0x23f),'attributes':{'class':[Ko]},'children':[this[_0x5ed55e(0x238)],this[_0x5ed55e(0x204)],this[_0x5ed55e(0x218)],this[_0x5ed55e(0x207)],this[_0x5ed55e(0x223)]]}),this[_0x5ed55e(0x1ed)]=new _0x2f8000(),_0x445c45(this[_0x5ed55e(0x238)],this[_0x5ed55e(0x1ed)]);}[_0xb5d2e6(0x219)](_0x479b5a,_0x360ca3){const _0x477351=_0xb5d2e6;if(_0x360ca3)this[_0x477351(0x20d)](_0x477351(0x231),_0x477351(0x237));else{const _0x4cce54=0x1===_0x479b5a[_0x477351(0x1f6)];this[_0x477351(0x20d)](_0x477351(0x231),_0x4cce54?_0x477351(0x1ef):_0x477351(0x224));}if(this[_0x477351(0x1ed)][_0x477351(0x1f4)](),_0x479b5a?.[_0x477351(0x1f6)])for(const _0x1ddc03 of _0x479b5a){const _0x388261=new _0x306162({'label':_0x1ddc03[_0x477351(0x1ef)],'withText':!0x0,'role':_0x477351(0x21a),'id':_0x1ddc03['id'],'model':_0x1ddc03});_0x388261[_0x477351(0x229)](_0x477351(0x1ea))['to'](this,_0x477351(0x225),_0x4d163c=>_0x4d163c===_0x1ddc03['id']),this[_0x477351(0x1ed)][_0x477351(0x240)]({'type':_0x477351(0x21f),'model':_0x388261,'labelView':new ko(this[_0x477351(0x206)],_0x1ddc03)});}}[_0xb5d2e6(0x1f3)](_0x2c046d){const _0xf13306=_0xb5d2e6;this[_0xf13306(0x20d)](_0xf13306(0x203),_0x2c046d);}[_0xb5d2e6(0x236)](_0xf14971){const _0xffd582=_0xb5d2e6;this[_0xffd582(0x20d)](_0xffd582(0x208),_0xf14971);}[_0xb5d2e6(0x1f1)](_0x5d9aa0){const _0x2ae3f9=_0xb5d2e6;if(!_0x5d9aa0)return;this[_0x2ae3f9(0x225)]=_0x5d9aa0['id'],this[_0x2ae3f9(0x233)]=_0x5d9aa0[_0x2ae3f9(0x1ef)]||_0x5d9aa0['id'],this[_0x2ae3f9(0x238)][_0x2ae3f9(0x226)][_0x2ae3f9(0x20d)](_0x2ae3f9(0x210),_0x5d9aa0[_0x2ae3f9(0x1ef)]),this[_0x2ae3f9(0x238)][_0x2ae3f9(0x226)][_0x2ae3f9(0x20d)](_0x2ae3f9(0x1e5),_0x5d9aa0[_0x2ae3f9(0x1ef)]);const _0x470090=_0x5d9aa0[_0x2ae3f9(0x1f2)][_0x2ae3f9(0x21e)]?.[_0x2ae3f9(0x241)]??!0x1;this[_0x2ae3f9(0x20d)](_0x2ae3f9(0x203),!0x1),this[_0x2ae3f9(0x218)][_0x2ae3f9(0x20d)](_0x2ae3f9(0x1ea),!0x1),this[_0x2ae3f9(0x218)][_0x2ae3f9(0x20d)](_0x2ae3f9(0x205),_0x470090),this[_0x2ae3f9(0x218)][_0x2ae3f9(0x20d)](_0x2ae3f9(0x1f8),_0x470090);const _0x2979db=_0x5d9aa0[_0x2ae3f9(0x1f2)][_0x2ae3f9(0x23b)]?.[_0x2ae3f9(0x241)]??!0x1;this[_0x2ae3f9(0x20d)](_0x2ae3f9(0x208),!0x1),this[_0x2ae3f9(0x207)][_0x2ae3f9(0x20d)](_0x2ae3f9(0x1ea),!0x1),this[_0x2ae3f9(0x207)][_0x2ae3f9(0x20d)](_0x2ae3f9(0x205),_0x2979db),this[_0x2ae3f9(0x207)][_0x2ae3f9(0x20d)](_0x2ae3f9(0x1f8),_0x2979db);}[_0xb5d2e6(0x232)](){const _0x582302=_0xb5d2e6;this[_0x582302(0x20d)](_0x582302(0x213),!0x0);}[_0xb5d2e6(0x1f5)](_0x525876){const _0x3b19e9=_0xb5d2e6;this[_0x3b19e9(0x20d)](_0x3b19e9(0x213),!0x1),_0x525876&&this[_0x3b19e9(0x20d)](_0x3b19e9(0x231),_0x3b19e9(0x237));}[_0xb5d2e6(0x23e)](){const _0x38ce12=_0xb5d2e6,_0x18f2f9=new _0x49dc33();return _0x18f2f9[_0x38ce12(0x20d)]({'label':_0x33b260(this[_0x38ce12(0x206)],_0x38ce12(0x23a)),'icon':_0x46540f,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x18f2f9['on'](_0x38ce12(0x239),()=>{const _0xb59de1=_0x38ce12;this[_0xb59de1(0x1f9)](_0xb59de1(0x1e7));}),_0x18f2f9;}[_0xb5d2e6(0x227)](){const _0x491c8e=_0xb5d2e6,_0x59940b=new _0x49dc33();return _0x59940b[_0x491c8e(0x20d)]({'label':_0x33b260(this[_0x491c8e(0x206)],_0x491c8e(0x221)),'icon':_0x1deeb0,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x59940b['on'](_0x491c8e(0x239),()=>{const _0x444239=_0x491c8e;this[_0x444239(0x1f9)](_0x444239(0x21d));}),_0x59940b;}[_0xb5d2e6(0x202)](){const _0x4f9fe3=_0xb5d2e6,_0x5f1768=new _0x49dc33();return _0x5f1768[_0x4f9fe3(0x20d)]({'label':_0x33b260(this[_0x4f9fe3(0x206)],_0x4f9fe3(0x1f7)),'icon':_0x578ec8,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x33b260(this[_0x4f9fe3(0x206)],_0x4f9fe3(0x1f7)),'tooltipPosition':ol}),_0x5f1768[_0x4f9fe3(0x22f)]({'attributes':{'class':[Qo]}}),_0x5f1768['on'](_0x4f9fe3(0x239),()=>{const _0x206402=_0x4f9fe3;console[_0x206402(0x216)](_0x206402(0x1eb)),alert(_0x206402(0x1eb));}),_0x5f1768;}[_0xb5d2e6(0x22d)](){const _0x41bb0f=_0xb5d2e6,_0x3c238b=_0x3db09b(this[_0x41bb0f(0x206)]);return _0x3c238b[_0x41bb0f(0x20d)]({'panelPosition':'ne','class':[tl]}),_0x3c238b[_0x41bb0f(0x226)][_0x41bb0f(0x20d)]({'label':_0x33b260(this[_0x41bb0f(0x206)],_0x41bb0f(0x243)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x41bb0f(0x22b)](_0x3c238b,_0x41bb0f(0x239),_0x2743c8=>{const _0x24f5bc=_0x41bb0f;this[_0x24f5bc(0x1f9)](_0x24f5bc(0x1ff),_0x2743c8[_0x24f5bc(0x222)][_0x24f5bc(0x20f)]);}),_0x3c238b;}[_0xb5d2e6(0x200)](){const _0x2bf58f=_0xb5d2e6,_0x452f0a=new _o(this[_0x2bf58f(0x206)]);return _0x452f0a[_0x2bf58f(0x229)](_0x2bf58f(0x212))['to'](this,_0x2bf58f(0x233),_0x3d48d8=>_0x3d48d8??''),_0x452f0a[_0x2bf58f(0x229)](_0x2bf58f(0x1f8))['to'](this,_0x2bf58f(0x231),_0x552b86=>_0x2bf58f(0x1ef)===_0x552b86),_0x452f0a;}}class ko extends _0x170439{constructor(_0x26affc,_0x5c4e7f){const _0x151813=_0xb5d2e6;super();const _0x12d991=this[_0x151813(0x1fb)],_0x393ce6=this[_0x151813(0x1f0)]();this[_0x151813(0x211)]({'tag':_0x151813(0x23f),'attributes':{'class':['ck',_0x151813(0x215)],'style':_0x12d991['to'](_0x151813(0x1fe)),'id':_0x12d991['to']('id')},'children':[{'tag':_0x151813(0x23f),'attributes':{'class':[el]},'children':[{'text':_0x12d991['to'](_0x151813(0x212))}]},{'tag':_0x151813(0x23f),'attributes':{'class':[il]},'children':[{'tag':_0x151813(0x1ec),'children':[{'text':_0x5c4e7f[_0x151813(0x23d)]}]}]},{'tag':_0x151813(0x23f),'attributes':{'class':[sl]},'children':_0x393ce6}]}),_0x393ce6[_0x151813(0x228)](this[_0x151813(0x20e)](_0x26affc,_0x46540f,_0x151813(0x23a),_0x5c4e7f[_0x151813(0x1f2)][_0x151813(0x21e)]?.[_0x151813(0x241)]??!0x1)),_0x393ce6[_0x151813(0x228)](this[_0x151813(0x20e)](_0x26affc,_0x1deeb0,_0x151813(0x221),_0x5c4e7f[_0x151813(0x1f2)][_0x151813(0x23b)]?.[_0x151813(0x241)]??!0x1));}[_0xb5d2e6(0x20e)](_0x5030b3,_0x20e70c,_0x5e1eea,_0x45e94f){const _0x250eac=_0xb5d2e6,_0x3f764e=new _0x2ad70a();_0x3f764e[_0x250eac(0x1fd)]=_0x20e70c;const _0x5172ed=new _0x8b4bd9(_0x5030b3);_0x5172ed[_0x250eac(0x211)]({'tag':_0x250eac(0x1ec),'children':[{'text':_0x33b260(_0x5030b3,_0x5e1eea)+':\x20'}]});const _0x4f733d=new _0x8b4bd9(_0x5030b3);return _0x4f733d[_0x250eac(0x211)]({'tag':_0x250eac(0x1ec),'children':[{'text':_0x33b260(_0x5030b3,_0x45e94f?_0x250eac(0x1e6):_0x250eac(0x214))}]}),[_0x3f764e,_0x5172ed,_0x4f733d];}}class _o extends _0x8b4bd9{constructor(_0x32723e){const _0x304bf4=_0xb5d2e6;super(_0x32723e),this[_0x304bf4(0x20d)](_0x304bf4(0x212),void 0x0),this[_0x304bf4(0x20d)](_0x304bf4(0x1f8),!0x0);const _0x231c25=this[_0x304bf4(0x1fb)];this[_0x304bf4(0x211)]({'tag':_0x304bf4(0x1ec),'attributes':{'class':['ck',_0x304bf4(0x220),_0x231c25['if'](_0x304bf4(0x1f8),_0x304bf4(0x21b),_0x12fe7b=>!_0x12fe7b)]},'children':[{'text':_0x231c25['to'](_0x304bf4(0x212))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fd96a=_0x2482;function _0x2482(_0x278092,_0xbd6fc9){const _0x3c465f=_0x3c46();return _0x2482=function(_0x2482a9,_0x1f41e8){_0x2482a9=_0x2482a9-0x8b;let _0xad4ab1=_0x3c465f[_0x2482a9];return _0xad4ab1;},_0x2482(_0x278092,_0xbd6fc9);}(function(_0x2c0799,_0x506909){const _0x167428=_0x2482,_0x1a39f0=_0x2c0799();while(!![]){try{const _0xff6f3e=parseInt(_0x167428(0x97))/0x1+-parseInt(_0x167428(0x8b))/0x2*(parseInt(_0x167428(0xb6))/0x3)+-parseInt(_0x167428(0x96))/0x4*(parseInt(_0x167428(0x91))/0x5)+parseInt(_0x167428(0xad))/0x6+parseInt(_0x167428(0xc8))/0x7+parseInt(_0x167428(0xb5))/0x8*(-parseInt(_0x167428(0xcb))/0x9)+parseInt(_0x167428(0xc5))/0xa*(-parseInt(_0x167428(0x8c))/0xb);if(_0xff6f3e===_0x506909)break;else _0x1a39f0['push'](_0x1a39f0['shift']());}catch(_0x49a581){_0x1a39f0['push'](_0x1a39f0['shift']());}}}(_0x3c46,0xdf32f));import{IconSubmit as _0x6f0778}from'ckeditor5/src/icons.js';import{ButtonView as _0x1a99ab,AutocompleteView as _0x15cb2a,createLabeledTextarea as _0x2b5e9c}from'ckeditor5/src/ui.js';import{global as _0x50d0a4,isVisible as _0x39ceb0,Rect as _0x1e53b,ResizeObserver as _0x259296}from'ckeditor5/src/utils.js';import{getTranslation as _0xf5a833}from'../../../aicore/utils/common-translations.js';function _0x3c46(){const _0x67deef=['ck-ai-chat__prompt-input_highlighted','_queryViewResizeObserver','reset','locale','queryView','classList','uiLanguageDirection','calc(','fire','keystrokes','submit','bind','isEnabled','fieldWrapperChildren','minRows','style','5273844VSZRHx','render','isUploadInProgress','execute','hasError','focusableChildren','placeholder','_addContextButtonView','48saUevf','39XEcPPE','element','width','maxRows','value','set','sendUserMessage','enter','setPlaceholderText','target','window','AI_CHAT_PROMPT_EMPTY_ERROR','rtl','submitButtonView','ck-ai-chat__prompt-input','90CYMVKd','extendTemplate','update','9094981NJtjCB','_setUpAddContextButtonPositioning','focus','214767XrQiAX','requestAnimationFrame','trim','MAX_ROWS','contains','_createSubmitButton','errorText','65218WYJxdB','702053uIxaPm','destroy','remove','left','right','34675EkEYxL','isEmpty','excludeScrollbarsAndBorders','setIsUploadInProgress','add','648HyqvKX','1000938IBHwXJ','MIN_ROWS','fieldView','ck-ai-chat__prompt-submit-button','px\x20-\x20var(--ck-spacing-tiny))','AI_CHAT_LABEL_SUBMIT'];_0x3c46=function(){return _0x67deef;};return _0x3c46();}import{AIChatPromptSuggestionsListView as _0x3d380c}from'./aichatpromptsuggestionslistview.js';import{escape as _0x111349}from'es-toolkit/compat';const uh=_0x3fd96a(0x9d);export class AIChatPromptInputView extends _0x15cb2a{[_0x3fd96a(0xc3)];static [_0x3fd96a(0x98)]=0x1;static [_0x3fd96a(0xce)]=0xc;[_0x3fd96a(0xb4)];[_0x3fd96a(0x9e)];constructor(_0x46f89c,_0xebfd07){const _0x2b8159=_0x3fd96a;super(_0x46f89c,{'queryView':{'label':'','creator':_0x2b5e9c,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3d380c(_0x46f89c),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x2b8159(0xbb)](_0x2b8159(0x92),!0x0),this[_0x2b8159(0xbb)](_0x2b8159(0xaf),!0x1),this[_0x2b8159(0xb4)]=_0xebfd07,this[_0x2b8159(0x9e)]=null,this[_0x2b8159(0xa1)][_0x2b8159(0x99)][_0x2b8159(0xab)]=AIChatPromptInputView[_0x2b8159(0x98)],this[_0x2b8159(0xa1)][_0x2b8159(0x99)][_0x2b8159(0xb9)]=AIChatPromptInputView[_0x2b8159(0xce)],this[_0x2b8159(0xa1)][_0x2b8159(0xaa)][_0x2b8159(0x95)](this[_0x2b8159(0xb4)]),this[_0x2b8159(0xc9)](),this[_0x2b8159(0xc6)]({'attributes':{'class':['ck',_0x2b8159(0xc4)]}}),this[_0x2b8159(0xc3)]=this[_0x2b8159(0xd0)](),this[_0x2b8159(0xc3)][_0x2b8159(0xa8)](_0x2b8159(0xa9))['to'](this,_0x2b8159(0x92),this,_0x2b8159(0xaf),(_0xc6d123,_0x36ec11)=>!_0xc6d123&&!_0x36ec11),this[_0x2b8159(0xb2)][_0x2b8159(0x95)](this[_0x2b8159(0xc3)]);}[_0x3fd96a(0xae)](){const _0xeb4de7=_0x3fd96a;super[_0xeb4de7(0xae)](),this[_0xeb4de7(0xa1)][_0xeb4de7(0xaa)][_0xeb4de7(0x95)](this[_0xeb4de7(0xc3)]),this[_0xeb4de7(0xa6)][_0xeb4de7(0xbb)](_0xeb4de7(0xbd),(_0x4fee6f,_0x64a60f)=>{const _0x4bbb6a=_0xeb4de7;this[_0x4bbb6a(0xaf)]||this[_0x4bbb6a(0x92)]||_0x4fee6f[_0x4bbb6a(0xbf)]==this[_0x4bbb6a(0xa1)][_0x4bbb6a(0x99)][_0x4bbb6a(0xb7)]&&(this[_0x4bbb6a(0xa7)](),_0x64a60f());}),this[_0xeb4de7(0xa1)][_0xeb4de7(0x99)]['on'](_0xeb4de7(0xc7),()=>{const _0x501949=_0xeb4de7;this[_0x501949(0x92)]=''===this[_0x501949(0xa1)][_0x501949(0x99)][_0x501949(0xb7)][_0x501949(0xba)]?.[_0x501949(0xcd)]();});}[_0x3fd96a(0x8d)](){const _0x1c856a=_0x3fd96a;super[_0x1c856a(0x8d)](),this[_0x1c856a(0x9e)]&&this[_0x1c856a(0x9e)][_0x1c856a(0x8d)]();}[_0x3fd96a(0xa7)](){const _0x2c07fe=_0x3fd96a,_0x3c1b0d=this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0xb7)][_0x2c07fe(0xba)]?.[_0x2c07fe(0xcd)]();if(!_0x3c1b0d)return this[_0x2c07fe(0xa1)][_0x2c07fe(0xd1)]=_0xf5a833(this[_0x2c07fe(0xa0)],_0x2c07fe(0xc1)),void(this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0xb1)]=!0x0);this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0xb1)]=!0x1;const _0x1ee4ca=_0x111349(_0x3c1b0d);this[_0x2c07fe(0xa5)](_0x2c07fe(0xbc),_0x1ee4ca),this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0x9f)]();}[_0x3fd96a(0xbe)](_0x57829f){const _0x514885=_0x3fd96a;this[_0x514885(0xa1)][_0x514885(0x99)][_0x514885(0xbb)](_0x514885(0xb3),_0x57829f);}[_0x3fd96a(0xca)](_0x21973b=!0x1){const _0x15de2d=_0x3fd96a;super[_0x15de2d(0xca)](),_0x21973b&&(this[_0x15de2d(0xb7)][_0x15de2d(0xa2)][_0x15de2d(0xcf)](uh)||(this[_0x15de2d(0xb7)][_0x15de2d(0xa2)][_0x15de2d(0x95)](uh),setTimeout(()=>{const _0x1b67e9=_0x15de2d;this[_0x1b67e9(0xb7)][_0x1b67e9(0xa2)][_0x1b67e9(0x8e)](uh);},0x320)));}[_0x3fd96a(0xd0)](){const _0x3d2e9a=_0x3fd96a,_0x281d3b=new _0x1a99ab(this[_0x3d2e9a(0xa0)]);return _0x281d3b[_0x3d2e9a(0xbb)]({'icon':_0x6f0778,'label':_0xf5a833(this[_0x3d2e9a(0xa0)],_0x3d2e9a(0x9c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3d2e9a(0x9a),'isEnabled':!0x1}),_0x281d3b['on'](_0x3d2e9a(0xb0),()=>{const _0x56c093=_0x3d2e9a;this[_0x56c093(0xa7)]();}),_0x281d3b;}[_0x3fd96a(0x94)](_0x50bc51){const _0x4ad1a2=_0x3fd96a;this[_0x4ad1a2(0xaf)]=_0x50bc51;}[_0x3fd96a(0xc9)](){const _0x4eecd9=_0x3fd96a,_0x52a4a0=this[_0x4eecd9(0xa0)],_0x10e1a0=()=>{const _0x2436cf=_0x4eecd9;_0x50d0a4[_0x2436cf(0xc0)][_0x2436cf(0xcc)](()=>{const _0x175094=_0x2436cf;if(_0x39ceb0(this[_0x175094(0xb7)])){const _0x2e908f=new _0x1e53b(this[_0x175094(0xa1)][_0x175094(0x99)][_0x175094(0xb7)]),_0x5418af=new _0x1e53b(this[_0x175094(0xb4)][_0x175094(0xb7)]),_0x592289=_0x2e908f[_0x175094(0xb8)],_0x294960=_0x175094(0xc2)===_0x52a4a0[_0x175094(0xa3)]?_0x175094(0x90):_0x175094(0x8f);_0x2e908f[_0x175094(0x93)]();const _0x598f09=_0x592289-_0x2e908f[_0x175094(0xb8)]+0x1;this[_0x175094(0xb4)][_0x175094(0xb7)][_0x175094(0xac)][_0x294960]=_0x175094(0xa4)+(_0x592289-_0x5418af[_0x175094(0xb8)]-_0x598f09)+_0x175094(0x9b);}});};this[_0x4eecd9(0xa1)][_0x4eecd9(0x99)]['on'](_0x4eecd9(0xc7),_0x10e1a0),this['on'](_0x4eecd9(0xae),()=>{const _0x4e0c94=_0x4eecd9;_0x10e1a0(),this[_0x4e0c94(0x9e)]=new _0x259296(this[_0x4e0c94(0xa1)][_0x4e0c94(0x99)][_0x4e0c94(0xb7)],()=>{_0x10e1a0();});});}}
23
+ const _0x8004e2=_0x5afe;(function(_0x4580f7,_0x4704e3){const _0x7099bf=_0x5afe,_0x162b33=_0x4580f7();while(!![]){try{const _0x3ba696=parseInt(_0x7099bf(0xcf))/0x1*(-parseInt(_0x7099bf(0xc4))/0x2)+-parseInt(_0x7099bf(0xe1))/0x3*(parseInt(_0x7099bf(0xe5))/0x4)+parseInt(_0x7099bf(0xb1))/0x5*(-parseInt(_0x7099bf(0xb6))/0x6)+-parseInt(_0x7099bf(0x9e))/0x7*(-parseInt(_0x7099bf(0xd4))/0x8)+parseInt(_0x7099bf(0xb2))/0x9*(-parseInt(_0x7099bf(0xa3))/0xa)+-parseInt(_0x7099bf(0xbc))/0xb*(parseInt(_0x7099bf(0xdc))/0xc)+parseInt(_0x7099bf(0xb3))/0xd;if(_0x3ba696===_0x4704e3)break;else _0x162b33['push'](_0x162b33['shift']());}catch(_0x397b7f){_0x162b33['push'](_0x162b33['shift']());}}}(_0x520e,0xde13e));import{IconSubmit as _0x23ce8c}from'ckeditor5/src/icons.js';import{ButtonView as _0x213ae,AutocompleteView as _0x334e2a,createLabeledTextarea as _0x12d53b}from'ckeditor5/src/ui.js';function _0x520e(){const _0x242823=['setPlaceholderText','trim','_addContextButtonView','6168xjteJb','minRows','maxRows','placeholder','keystrokes','render','update','_createSubmitButton','17224104sweOaL','set','add','_queryViewResizeObserver','queryView','2241qpzpKn','sendUserMessage','focusableChildren','_setUpAddContextButtonPositioning','2908SrGgnb','submit','5551iOqgSX','isUploadInProgress','isEnabled','submitButtonView','execute','107750aRQQKI','destroy','enter','isEmpty','setIsUploadInProgress','AI_CHAT_LABEL_SUBMIT','remove','fieldView','px\x20-\x20var(--ck-spacing-tiny))','fieldWrapperChildren','reset','excludeScrollbarsAndBorders','MAX_ROWS','window','148245HTICac','585KJUtiZ','64614875YaLzZU','right','bind','222hieKbz','left','fire','AI_CHAT_PROMPT_EMPTY_ERROR','ck-ai-chat__prompt-input_highlighted','value','11pNdouX','classList','locale','focus','errorText','style','target','element','3054WydRFD','calc(','MIN_ROWS','hasError','uiLanguageDirection','contains','extendTemplate','rtl','width','requestAnimationFrame','ck-ai-chat__prompt-input','587JlDmJU','ck-ai-chat__prompt-submit-button'];_0x520e=function(){return _0x242823;};return _0x520e();}import{global as _0x45d1ca,isVisible as _0x114b00,Rect as _0x100f90,ResizeObserver as _0x10cf3b}from'ckeditor5/src/utils.js';import{getTranslation as _0x258292}from'../../../aicore/utils/common-translations.js';function _0x5afe(_0x533c2f,_0x31a64c){const _0x520e7c=_0x520e();return _0x5afe=function(_0x5afe93,_0x5b1c68){_0x5afe93=_0x5afe93-0x9e;let _0x1aba54=_0x520e7c[_0x5afe93];return _0x1aba54;},_0x5afe(_0x533c2f,_0x31a64c);}import{AIChatPromptSuggestionsListView as _0x9c9e9}from'./aichatpromptsuggestionslistview.js';import{escape as _0x4b7779}from'es-toolkit/compat';const uh=_0x8004e2(0xba);export class AIChatPromptInputView extends _0x334e2a{[_0x8004e2(0xa1)];static [_0x8004e2(0xc6)]=0x1;static [_0x8004e2(0xaf)]=0xc;[_0x8004e2(0xd3)];[_0x8004e2(0xdf)];constructor(_0x3c0cab,_0x5b1786){const _0x625a65=_0x8004e2;super(_0x3c0cab,{'queryView':{'label':'','creator':_0x12d53b,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x9c9e9(_0x3c0cab),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x625a65(0xdd)](_0x625a65(0xa6),!0x0),this[_0x625a65(0xdd)](_0x625a65(0x9f),!0x1),this[_0x625a65(0xd3)]=_0x5b1786,this[_0x625a65(0xdf)]=null,this[_0x625a65(0xe0)][_0x625a65(0xaa)][_0x625a65(0xd5)]=AIChatPromptInputView[_0x625a65(0xc6)],this[_0x625a65(0xe0)][_0x625a65(0xaa)][_0x625a65(0xd6)]=AIChatPromptInputView[_0x625a65(0xaf)],this[_0x625a65(0xe0)][_0x625a65(0xac)][_0x625a65(0xde)](this[_0x625a65(0xd3)]),this[_0x625a65(0xe4)](),this[_0x625a65(0xca)]({'attributes':{'class':['ck',_0x625a65(0xce)]}}),this[_0x625a65(0xa1)]=this[_0x625a65(0xdb)](),this[_0x625a65(0xa1)][_0x625a65(0xb5)](_0x625a65(0xa0))['to'](this,_0x625a65(0xa6),this,_0x625a65(0x9f),(_0x485df5,_0x54ba95)=>!_0x485df5&&!_0x54ba95),this[_0x625a65(0xe3)][_0x625a65(0xde)](this[_0x625a65(0xa1)]);}[_0x8004e2(0xd9)](){const _0x427ae7=_0x8004e2;super[_0x427ae7(0xd9)](),this[_0x427ae7(0xe0)][_0x427ae7(0xac)][_0x427ae7(0xde)](this[_0x427ae7(0xa1)]),this[_0x427ae7(0xd8)][_0x427ae7(0xdd)](_0x427ae7(0xa5),(_0x257cf8,_0x53b4d7)=>{const _0x25c740=_0x427ae7;this[_0x25c740(0x9f)]||this[_0x25c740(0xa6)]||_0x257cf8[_0x25c740(0xc2)]==this[_0x25c740(0xe0)][_0x25c740(0xaa)][_0x25c740(0xc3)]&&(this[_0x25c740(0xe6)](),_0x53b4d7());}),this[_0x427ae7(0xe0)][_0x427ae7(0xaa)]['on'](_0x427ae7(0xda),()=>{const _0x71f10e=_0x427ae7;this[_0x71f10e(0xa6)]=''===this[_0x71f10e(0xe0)][_0x71f10e(0xaa)][_0x71f10e(0xc3)][_0x71f10e(0xbb)]?.[_0x71f10e(0xd2)]();});}[_0x8004e2(0xa4)](){const _0x32ff61=_0x8004e2;super[_0x32ff61(0xa4)](),this[_0x32ff61(0xdf)]&&this[_0x32ff61(0xdf)][_0x32ff61(0xa4)]();}[_0x8004e2(0xe6)](){const _0x281023=_0x8004e2,_0x3a8e0e=this[_0x281023(0xe0)][_0x281023(0xaa)][_0x281023(0xc3)][_0x281023(0xbb)]?.[_0x281023(0xd2)]();if(!_0x3a8e0e)return this[_0x281023(0xe0)][_0x281023(0xc0)]=_0x258292(this[_0x281023(0xbe)],_0x281023(0xb9)),void(this[_0x281023(0xe0)][_0x281023(0xaa)][_0x281023(0xc7)]=!0x0);this[_0x281023(0xe0)][_0x281023(0xaa)][_0x281023(0xc7)]=!0x1;const _0x55bc0f=_0x4b7779(_0x3a8e0e);this[_0x281023(0xb8)](_0x281023(0xe2),_0x55bc0f),this[_0x281023(0xe0)][_0x281023(0xaa)][_0x281023(0xad)]();}[_0x8004e2(0xd1)](_0x283caf){const _0x444194=_0x8004e2;this[_0x444194(0xe0)][_0x444194(0xaa)][_0x444194(0xdd)](_0x444194(0xd7),_0x283caf);}[_0x8004e2(0xbf)](_0x45c7d9=!0x1){const _0x2d25b5=_0x8004e2;super[_0x2d25b5(0xbf)](),_0x45c7d9&&(this[_0x2d25b5(0xc3)][_0x2d25b5(0xbd)][_0x2d25b5(0xc9)](uh)||(this[_0x2d25b5(0xc3)][_0x2d25b5(0xbd)][_0x2d25b5(0xde)](uh),setTimeout(()=>{const _0x3eb284=_0x2d25b5;this[_0x3eb284(0xc3)][_0x3eb284(0xbd)][_0x3eb284(0xa9)](uh);},0x320)));}[_0x8004e2(0xdb)](){const _0x1a9974=_0x8004e2,_0x1210bc=new _0x213ae(this[_0x1a9974(0xbe)]);return _0x1210bc[_0x1a9974(0xdd)]({'icon':_0x23ce8c,'label':_0x258292(this[_0x1a9974(0xbe)],_0x1a9974(0xa8)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1a9974(0xd0),'isEnabled':!0x1}),_0x1210bc['on'](_0x1a9974(0xa2),()=>{const _0x315d3e=_0x1a9974;this[_0x315d3e(0xe6)]();}),_0x1210bc;}[_0x8004e2(0xa7)](_0x8cc466){const _0x188591=_0x8004e2;this[_0x188591(0x9f)]=_0x8cc466;}[_0x8004e2(0xe4)](){const _0x250faa=_0x8004e2,_0x5812df=this[_0x250faa(0xbe)],_0x1ac421=()=>{const _0x33fd3d=_0x250faa;_0x45d1ca[_0x33fd3d(0xb0)][_0x33fd3d(0xcd)](()=>{const _0x13b217=_0x33fd3d;if(_0x114b00(this[_0x13b217(0xc3)])){const _0x4c718a=new _0x100f90(this[_0x13b217(0xe0)][_0x13b217(0xaa)][_0x13b217(0xc3)]),_0x4b2754=new _0x100f90(this[_0x13b217(0xd3)][_0x13b217(0xc3)]),_0x53bcda=_0x4c718a[_0x13b217(0xcc)],_0x5d9911=_0x13b217(0xcb)===_0x5812df[_0x13b217(0xc8)]?_0x13b217(0xb4):_0x13b217(0xb7);_0x4c718a[_0x13b217(0xae)]();const _0x4f37a8=_0x53bcda-_0x4c718a[_0x13b217(0xcc)]+0x1;this[_0x13b217(0xd3)][_0x13b217(0xc3)][_0x13b217(0xc1)][_0x5d9911]=_0x13b217(0xc5)+(_0x53bcda-_0x4b2754[_0x13b217(0xcc)]-_0x4f37a8)+_0x13b217(0xab);}});};this[_0x250faa(0xe0)][_0x250faa(0xaa)]['on'](_0x250faa(0xda),_0x1ac421),this['on'](_0x250faa(0xd9),()=>{const _0x55875e=_0x250faa;_0x1ac421(),this[_0x55875e(0xdf)]=new _0x10cf3b(this[_0x55875e(0xe0)][_0x55875e(0xaa)][_0x55875e(0xc3)],()=>{_0x1ac421();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e9b9c=_0x3894;(function(_0x36115f,_0x5e3f35){const _0x10544f=_0x3894,_0x4239fd=_0x36115f();while(!![]){try{const _0x361d87=-parseInt(_0x10544f(0x7b))/0x1+-parseInt(_0x10544f(0x82))/0x2+parseInt(_0x10544f(0x7a))/0x3*(-parseInt(_0x10544f(0x77))/0x4)+-parseInt(_0x10544f(0x7d))/0x5*(-parseInt(_0x10544f(0x76))/0x6)+-parseInt(_0x10544f(0x7c))/0x7*(parseInt(_0x10544f(0x7f))/0x8)+-parseInt(_0x10544f(0x78))/0x9+parseInt(_0x10544f(0x80))/0xa;if(_0x361d87===_0x5e3f35)break;else _0x4239fd['push'](_0x4239fd['shift']());}catch(_0x5b86fa){_0x4239fd['push'](_0x4239fd['shift']());}}}(_0x2256,0x91efd));import{ListView as _0x13b3ae}from'ckeditor5/src/ui.js';function _0x2256(){const _0x2248db=['366359wKMBVT','45350KEKBaP','length','88lvPtnX','32067610DtirFn','filter','2198146iObsZY','354mjAYIh','1740nTKENy','1563831vgjVrD','items','2820myyETL','886695JacpDv'];_0x2256=function(){return _0x2248db;};return _0x2256();}function _0x3894(_0x2b75a8,_0xd02a6c){const _0x225696=_0x2256();return _0x3894=function(_0x389456,_0x4476c2){_0x389456=_0x389456-0x76;let _0x1d969f=_0x225696[_0x389456];return _0x1d969f;},_0x3894(_0x2b75a8,_0xd02a6c);}export class AIChatPromptSuggestionsListView extends _0x13b3ae{[_0x1e9b9c(0x81)](){const _0x2b0e3d=_0x1e9b9c;let _0x115b3e=0x0;for(const _0x152b78 of this[_0x2b0e3d(0x79)])_0x115b3e+=_0x152b78[_0x2b0e3d(0x79)][_0x2b0e3d(0x7e)];return{'resultsCount':_0x115b3e,'totalItemsCount':_0x115b3e};}}
23
+ function _0x448e(_0x20a504,_0x139e0f){const _0x45ef43=_0x45ef();return _0x448e=function(_0x448e5d,_0x412adc){_0x448e5d=_0x448e5d-0xde;let _0x1f5074=_0x45ef43[_0x448e5d];return _0x1f5074;},_0x448e(_0x20a504,_0x139e0f);}const _0x1d0c95=_0x448e;(function(_0x289ef4,_0x1ac066){const _0xed5278=_0x448e,_0x579a1b=_0x289ef4();while(!![]){try{const _0x44db99=-parseInt(_0xed5278(0xea))/0x1*(parseInt(_0xed5278(0xe9))/0x2)+-parseInt(_0xed5278(0xeb))/0x3+-parseInt(_0xed5278(0xe6))/0x4*(parseInt(_0xed5278(0xe1))/0x5)+-parseInt(_0xed5278(0xe4))/0x6*(-parseInt(_0xed5278(0xe7))/0x7)+-parseInt(_0xed5278(0xe5))/0x8+-parseInt(_0xed5278(0xe3))/0x9*(-parseInt(_0xed5278(0xe2))/0xa)+parseInt(_0xed5278(0xe0))/0xb;if(_0x44db99===_0x1ac066)break;else _0x579a1b['push'](_0x579a1b['shift']());}catch(_0x107c7e){_0x579a1b['push'](_0x579a1b['shift']());}}}(_0x45ef,0x20517));import{ListView as _0x2d2a55}from'ckeditor5/src/ui.js';function _0x45ef(){const _0x3cfb6f=['5305gsOrrw','30LzHXmT','84213sYTiuH','1446UvWmap','786824eJKoOx','356XKhYLp','7343ViTvGH','filter','34JohGen','9949Linzjp','255129EDjzKs','length','items','3282983dNTmPe'];_0x45ef=function(){return _0x3cfb6f;};return _0x45ef();}export class AIChatPromptSuggestionsListView extends _0x2d2a55{[_0x1d0c95(0xe8)](){const _0x32dfc9=_0x1d0c95;let _0x44ecf5=0x0;for(const _0x21b830 of this[_0x32dfc9(0xdf)])_0x44ecf5+=_0x21b830[_0x32dfc9(0xdf)][_0x32dfc9(0xde)];return{'resultsCount':_0x44ecf5,'totalItemsCount':_0x44ecf5};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49117e=_0x26bb;(function(_0x51aad7,_0x3bd40b){const _0x191e2f=_0x26bb,_0x2742af=_0x51aad7();while(!![]){try{const _0x247c3a=-parseInt(_0x191e2f(0x1f9))/0x1*(-parseInt(_0x191e2f(0x1de))/0x2)+-parseInt(_0x191e2f(0x1f2))/0x3*(-parseInt(_0x191e2f(0x1fa))/0x4)+-parseInt(_0x191e2f(0x1ea))/0x5+-parseInt(_0x191e2f(0x1e1))/0x6+parseInt(_0x191e2f(0x1f0))/0x7*(parseInt(_0x191e2f(0x1e3))/0x8)+-parseInt(_0x191e2f(0x1e8))/0x9+parseInt(_0x191e2f(0x1f7))/0xa*(parseInt(_0x191e2f(0x1ef))/0xb);if(_0x247c3a===_0x3bd40b)break;else _0x2742af['push'](_0x2742af['shift']());}catch(_0x561d83){_0x2742af['push'](_0x2742af['shift']());}}}(_0x5bcb,0x2f029));import{ListView as _0x5e5973}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x46dfe6}from'./aichatresourcelistitemview.js';const uc=_0x49117e(0x1df);function _0x5bcb(){const _0x55f6e2=['ck-ai-chat-resources__list','forEach','1484196wQYxlt','label','651544gOeyKi','resource','filter','replace','add','2305656lKkCEf','setResources','462700TzPtTf','execute','\x5c$&','_source','locale','11MRRnvg','14rSRZZM','updateResourceState','159603gmtvDy','clear','extendTemplate','_handleResourceSelection','test','1683230FiaQvE','fire','203dokhIt','20EzSbVe','trim','useDefaultFiltering','items','addResourceToContext','highlightText','1886FmupqU'];_0x5bcb=function(){return _0x55f6e2;};return _0x5bcb();}function _0x26bb(_0xf88509,_0x54c440){const _0x5bcb1e=_0x5bcb();return _0x26bb=function(_0x26bb96,_0x1cb237){_0x26bb96=_0x26bb96-0x1dc;let _0x167d23=_0x5bcb1e[_0x26bb96];return _0x167d23;},_0x26bb(_0xf88509,_0x54c440);}export class AIChatContextResourcesListView extends _0x5e5973{[_0x49117e(0x1ed)];constructor(_0x279595,_0x409c5c){const _0x208e2d=_0x49117e;super(_0x279595),this[_0x208e2d(0x1ed)]=_0x409c5c,this[_0x208e2d(0x1f4)]({'attributes':{'class':[uc]}});}[_0x49117e(0x1e9)](_0x5a4686,_0x17ae37){const _0x592410=_0x49117e;this[_0x592410(0x1fd)][_0x592410(0x1f3)]();let _0x2fa660=_0x5a4686;if(this[_0x592410(0x1ed)][_0x592410(0x1fc)]&&_0x17ae37&&''!==_0x17ae37[_0x592410(0x1fb)]()){const _0x7c5a03=new RegExp(_0x17ae37[_0x592410(0x1e6)](/[.*+?^${}()|[\]\\]/g,_0x592410(0x1ec)),'gi');_0x2fa660=_0x5a4686[_0x592410(0x1e5)](_0x34b570=>_0x7c5a03[_0x592410(0x1f6)](_0x34b570[_0x592410(0x1e2)]));}for(const _0x27940d of _0x2fa660){const _0x1fd785=new _0x46dfe6(this[_0x592410(0x1ee)],_0x27940d);_0x1fd785['on'](_0x592410(0x1eb),()=>{const _0x42780d=_0x592410;this[_0x42780d(0x1f5)](this[_0x42780d(0x1ed)],_0x27940d);}),this[_0x592410(0x1fd)][_0x592410(0x1e7)](_0x1fd785);}this[_0x592410(0x1ed)][_0x592410(0x1fc)]&&this[_0x592410(0x1dd)](_0x17ae37);}[_0x49117e(0x1dd)](_0x3d5d93){const _0x16f8df=_0x49117e;this[_0x16f8df(0x1ed)][_0x16f8df(0x1fc)]&&this[_0x16f8df(0x1fd)][_0x16f8df(0x1e0)](_0x1905fd=>{const _0x216a6f=_0x16f8df;_0x1905fd[_0x216a6f(0x1dd)](_0x3d5d93);});}[_0x49117e(0x1f1)](_0x10acac,_0x35d42d){const _0x3e5c15=_0x49117e;for(const _0x196269 of this[_0x3e5c15(0x1fd)]){const _0x11ac4d=_0x196269;_0x11ac4d[_0x3e5c15(0x1e4)]['id']===_0x10acac&&_0x11ac4d[_0x3e5c15(0x1f1)](_0x35d42d);}}[_0x49117e(0x1f5)](_0x1efa5c,_0x1ec5b2){const _0x3b3991=_0x49117e;this[_0x3b3991(0x1f8)](_0x3b3991(0x1dc),{'source':_0x1efa5c,'resource':_0x1ec5b2});}}
23
+ const _0x578f02=_0xd973;function _0xd973(_0x4477ad,_0x30c439){const _0x108ae4=_0x108a();return _0xd973=function(_0xd9732c,_0xc1e61e){_0xd9732c=_0xd9732c-0x1b1;let _0x37372f=_0x108ae4[_0xd9732c];return _0x37372f;},_0xd973(_0x4477ad,_0x30c439);}(function(_0x5d2db3,_0x13a8d7){const _0x5bec54=_0xd973,_0x41e836=_0x5d2db3();while(!![]){try{const _0xce1382=-parseInt(_0x5bec54(0x1c4))/0x1+-parseInt(_0x5bec54(0x1ca))/0x2+-parseInt(_0x5bec54(0x1c0))/0x3+parseInt(_0x5bec54(0x1cb))/0x4+-parseInt(_0x5bec54(0x1bf))/0x5+-parseInt(_0x5bec54(0x1cf))/0x6+-parseInt(_0x5bec54(0x1b6))/0x7*(-parseInt(_0x5bec54(0x1c1))/0x8);if(_0xce1382===_0x13a8d7)break;else _0x41e836['push'](_0x41e836['shift']());}catch(_0x33f925){_0x41e836['push'](_0x41e836['shift']());}}}(_0x108a,0xd2b87));import{ListView as _0x44377e}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x32a9e9}from'./aichatresourcelistitemview.js';const uc=_0x578f02(0x1c2);function _0x108a(){const _0x2c334b=['updateResourceState','items','locale','8450860NzSJnI','2436930KIGuLm','112EPPWIN','ck-ai-chat-resources__list','add','378937NajMTU','useDefaultFiltering','addResourceToContext','highlightText','_source','label','1669752YzWSIB','5553968BjfYoc','\x5c$&','resource','trim','8687580RjWuxw','filter','extendTemplate','_handleResourceSelection','clear','test','2319422ukSnPO','execute','forEach','setResources','fire','replace'];_0x108a=function(){return _0x2c334b;};return _0x108a();}export class AIChatContextResourcesListView extends _0x44377e{[_0x578f02(0x1c8)];constructor(_0x167934,_0x106a14){const _0x7dfdb0=_0x578f02;super(_0x167934),this[_0x7dfdb0(0x1c8)]=_0x106a14,this[_0x7dfdb0(0x1b2)]({'attributes':{'class':[uc]}});}[_0x578f02(0x1b9)](_0x22db1d,_0x29f57c){const _0x58c5d1=_0x578f02;this[_0x58c5d1(0x1bd)][_0x58c5d1(0x1b4)]();let _0x57d0fe=_0x22db1d;if(this[_0x58c5d1(0x1c8)][_0x58c5d1(0x1c5)]&&_0x29f57c&&''!==_0x29f57c[_0x58c5d1(0x1ce)]()){const _0x53b5d3=new RegExp(_0x29f57c[_0x58c5d1(0x1bb)](/[.*+?^${}()|[\]\\]/g,_0x58c5d1(0x1cc)),'gi');_0x57d0fe=_0x22db1d[_0x58c5d1(0x1b1)](_0x3d17c8=>_0x53b5d3[_0x58c5d1(0x1b5)](_0x3d17c8[_0x58c5d1(0x1c9)]));}for(const _0x3ca50d of _0x57d0fe){const _0x45260b=new _0x32a9e9(this[_0x58c5d1(0x1be)],_0x3ca50d);_0x45260b['on'](_0x58c5d1(0x1b7),()=>{const _0x417d26=_0x58c5d1;this[_0x417d26(0x1b3)](this[_0x417d26(0x1c8)],_0x3ca50d);}),this[_0x58c5d1(0x1bd)][_0x58c5d1(0x1c3)](_0x45260b);}this[_0x58c5d1(0x1c8)][_0x58c5d1(0x1c5)]&&this[_0x58c5d1(0x1c7)](_0x29f57c);}[_0x578f02(0x1c7)](_0x3620b6){const _0x2209a6=_0x578f02;this[_0x2209a6(0x1c8)][_0x2209a6(0x1c5)]&&this[_0x2209a6(0x1bd)][_0x2209a6(0x1b8)](_0x3ce156=>{const _0x2e7361=_0x2209a6;_0x3ce156[_0x2e7361(0x1c7)](_0x3620b6);});}[_0x578f02(0x1bc)](_0x46f7e2,_0x4be0d7){const _0x8913ba=_0x578f02;for(const _0x199746 of this[_0x8913ba(0x1bd)]){const _0x2e9aca=_0x199746;_0x2e9aca[_0x8913ba(0x1cd)]['id']===_0x46f7e2&&_0x2e9aca[_0x8913ba(0x1bc)](_0x4be0d7);}}[_0x578f02(0x1b3)](_0x1d718c,_0x19a913){const _0x3d017c=_0x578f02;this[_0x3d017c(0x1ba)](_0x3d017c(0x1c6),{'source':_0x1d718c,'resource':_0x19a913});}}