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

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 (307) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +14 -0
  3. package/dist/index-editor.css +27 -3
  4. package/dist/index.css +28 -3
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +1 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.js +1 -1
  182. package/src/aichat/aichatcontroller.d.ts +4 -0
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +2 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.js +1 -1
  188. package/src/aichat/model/aichatinteraction.js +1 -1
  189. package/src/aichat/model/aichatmodels.js +1 -1
  190. package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
  191. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  192. package/src/aichat/ui/aichatfeedview.js +1 -1
  193. package/src/aichat/ui/aichatheaderview.js +1 -1
  194. package/src/aichat/ui/aichatview.js +1 -1
  195. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  196. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  197. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  200. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  201. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  204. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  216. package/src/aichat/utils/eventnames.js +1 -1
  217. package/src/aichat/utils/promisequeue.js +1 -1
  218. package/src/aichat/utils/scrollmanager.js +1 -1
  219. package/src/aichathistory/aichathistory.js +1 -1
  220. package/src/aichathistory/aichathistorycontroller.js +1 -1
  221. package/src/aichathistory/aichathistoryui.js +1 -1
  222. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  223. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  224. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  225. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  226. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  227. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  228. package/src/aicore/aiconnector.js +1 -1
  229. package/src/aicore/aiediting.js +1 -1
  230. package/src/aicore/model/aicapabilities.js +1 -1
  231. package/src/aicore/model/aicontext.js +1 -1
  232. package/src/aicore/model/aiinteraction.js +1 -1
  233. package/src/aicore/model/aireply.js +1 -1
  234. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  235. package/src/aicore/pipeline/airesponseparser.js +2 -2
  236. package/src/aicore/ui/aidisclaimerview.js +1 -1
  237. package/src/aicore/ui/aiskeleton.js +1 -1
  238. package/src/aicore/ui/aispinner.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.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/utils/common-translations.js +1 -1
  245. package/src/aicore/utils/createresizebutton.js +1 -1
  246. package/src/aicore/utils/documentposition.js +1 -1
  247. package/src/aicore/utils/documentrange.js +1 -1
  248. package/src/aicore/utils/eventnames.js +1 -1
  249. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  250. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  251. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  252. package/src/aicore/utils/htmlparser.js +1 -1
  253. package/src/aicore/utils/htmlstreamer.js +1 -1
  254. package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
  255. package/src/aieditorintegration/aieditorintegration.js +23 -0
  256. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
  257. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
  258. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/utils/common-translations.js +1 -1
  268. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  269. package/src/aireviewmode/aireviewmode.js +1 -1
  270. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  271. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  272. package/src/aireviewmode/aireviewmodeui.js +1 -1
  273. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  274. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  275. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  278. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  279. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  280. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  281. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  285. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  286. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  287. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  288. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  290. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  291. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  292. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  293. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  294. package/src/aitabs/aitabs.js +1 -1
  295. package/src/aitabs/aitabsmainview.d.ts +6 -0
  296. package/src/aitabs/aitabsmainview.js +1 -1
  297. package/src/aitabs/tabs/aitabsview.js +1 -1
  298. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  299. package/src/aitabs/tabs/tabpanelview.js +1 -1
  300. package/src/augmentation.d.ts +6 -0
  301. package/src/index.d.ts +3 -0
  302. package/src/index.js +1 -1
  303. package/theme/aichat/aichat-controls.css +6 -0
  304. package/theme/aichat/aichat.css +2 -0
  305. package/theme/aichat/aisuggestioncontainer.css +8 -2
  306. package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
  307. package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c78c3=_0x4181;(function(_0x12a4d2,_0x51fc70){const _0x1e84b2=_0x4181,_0x3286c4=_0x12a4d2();while(!![]){try{const _0x58ba3e=parseInt(_0x1e84b2(0x156))/0x1*(-parseInt(_0x1e84b2(0x14b))/0x2)+-parseInt(_0x1e84b2(0x16e))/0x3+-parseInt(_0x1e84b2(0x11b))/0x4+parseInt(_0x1e84b2(0x17d))/0x5*(parseInt(_0x1e84b2(0x139))/0x6)+parseInt(_0x1e84b2(0x10e))/0x7*(parseInt(_0x1e84b2(0x122))/0x8)+-parseInt(_0x1e84b2(0x199))/0x9*(-parseInt(_0x1e84b2(0x126))/0xa)+-parseInt(_0x1e84b2(0x174))/0xb*(-parseInt(_0x1e84b2(0x17a))/0xc);if(_0x58ba3e===_0x51fc70)break;else _0x3286c4['push'](_0x3286c4['shift']());}catch(_0x5bf488){_0x3286c4['push'](_0x3286c4['shift']());}}}(_0x4d47,0xe13fb));import{View as _0xbf65fb,BalloonPanelView as _0x428e55,ButtonView as _0x1dc775,clickOutsideHandler as _0x30bc6a}from'ckeditor5/src/ui.js';import{Collection as _0x5831be}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x1c78c3(0x179);function _0x4d47(){const _0x3c1971=['disconnect','zIndex','label','style','+\x201','2zYGtcb','pointerEvents','bottom','ck-calculation-container','none','isOn','isConnected','_createShowMoreButtonView','setTemplate','visibility','width','207054JphOcv','innerHeight','_makeAncestorsVisible','clientHeight','content','disableAnimationOnEnter','add','_findTargetContainer','_checkAndHandleOverflow','_renderChipsAndCountRows','_calculateOverflowInContainer','border-box','appendChild','_updateOverflowUI','_restoreAncestorVisibility','clientWidth','top','execute','from','div','_updateShowMoreButtonVisibility','show','children','body','4287141Blidrp','createElement','_visibleChips','hide','_locale','pop','11cEWvxr','isIntersecting','opacity','set','right','300px','1487868fNjqkl','documentElement','_showMoreButtonView','86205MCJEqu','remove','_parentView','_intersectionObserver','boxSizing','hidden','_ancestorsToRestore','length','_calculateContainerWidth','element','some','showMoreButton','forEach','innerWidth','_repinBalloonPanel','overflowContainer','_applyCalculationStyles','_updateBalloonContent','getComputedStyle','display','height','tagName','abs','classList','block\x20!important','slice','_config','button','414567ncFmQv','clear','overflowChips','render','_bodyCollection','textContent','setContainerElement','absolute','_createShowMoreButton','showMoreButtonView','_targetContainer','6845335AGvahm','left','pin','includes','block','_applyOverflowResults','visible\x20!important','_showMoreBalloonPanelView','position','className','_isContainerVisible','push','showMoreLabelPrefix','2755224rZtfhE','observe','_containerElement','destroy','_overflowChips','showMoreBalloon','isVisible','8LVSYNu','_handleShowMoreButtonClick','_createContainerElements','undefined','230GCIprI','filter','querySelector','offsetWidth','auto','0px','_pendingCalculation','_createCalculationContainer','cloneNode','.ck-ai-chat','innerHTML','50px','parentElement','calculationContainer','visible','_createMockButton','_distributeChips','getBoundingClientRect','showBalloonPanel','378PesIiL','_testButtonFit','_setupVisibilityObserver','cssClasses','reorganizeChips','maxVisibleRows','toLowerCase','extendTemplate','_createShowMoreBalloonPanelView','hideBalloonPanel','rowDetectionTolerance','controlsButton','-9999px'];_0x4d47=function(){return _0x3c1971;};return _0x4d47();}function _0x4181(_0xe656e5,_0x44aa97){const _0x4d47a7=_0x4d47();return _0x4181=function(_0x418165,_0x2b8d94){_0x418165=_0x418165-0x107;let _0x32ae28=_0x4d47a7[_0x418165];return _0x32ae28;},_0x4181(_0xe656e5,_0x44aa97);}export class AIChatChipsOverflowManager{[_0x1c78c3(0x172)];[_0x1c78c3(0x197)];[_0x1c78c3(0x170)];[_0x1c78c3(0x11f)];[_0x1c78c3(0x17c)]=null;[_0x1c78c3(0x115)]=null;[_0x1c78c3(0x11d)]=null;[_0x1c78c3(0x107)];[_0x1c78c3(0x17f)]=null;[_0x1c78c3(0x180)]=null;[_0x1c78c3(0x12c)]=!0x1;constructor(_0x49e1c3,_0x143ced,_0x51ead3,_0x8ec027,_0x155232){const _0x18e4cc=_0x1c78c3;this[_0x18e4cc(0x172)]=_0x49e1c3,this[_0x18e4cc(0x170)]=_0x143ced,this[_0x18e4cc(0x197)]={...hn,..._0x51ead3,'cssClasses':{'controlsButton':'','calculationContainer':_0x18e4cc(0x14e),..._0x51ead3[_0x18e4cc(0x13c)]}},this[_0x18e4cc(0x11f)]=new _0x5831be(),this[_0x18e4cc(0x107)]=_0x8ec027,this[_0x18e4cc(0x17f)]=_0x155232||null;}[_0x1c78c3(0x109)](_0x50d537){const _0x4713d1=_0x1c78c3;this[_0x4713d1(0x180)]&&(this[_0x4713d1(0x180)][_0x4713d1(0x146)](),this[_0x4713d1(0x180)]=null),this[_0x4713d1(0x11d)]=_0x50d537,this[_0x4713d1(0x13b)]();}get[_0x1c78c3(0x10c)](){const _0x3f2df1=_0x1c78c3;return this[_0x3f2df1(0x17c)];}get[_0x1c78c3(0x19b)](){const _0x50a784=_0x1c78c3;return this[_0x50a784(0x11f)];}[_0x1c78c3(0x13d)](){requestAnimationFrame(()=>{const _0x233a04=_0x4181;this[_0x233a04(0x15e)]();});}[_0x1c78c3(0x138)](){const _0xd74190=_0x1c78c3;this[_0xd74190(0x17c)]&&this[_0xd74190(0x115)]&&(this[_0xd74190(0x18e)](),this[_0xd74190(0x17c)][_0xd74190(0x150)]=!0x0,this[_0xd74190(0x115)][_0xd74190(0x16b)](),this[_0xd74190(0x115)][_0xd74190(0x110)]({'target':this[_0xd74190(0x17c)][_0xd74190(0x186)],'limiter':document[_0xd74190(0x128)](_0xd74190(0x12f))}));}[_0x1c78c3(0x142)](){const _0x5e4091=_0x1c78c3;this[_0x5e4091(0x17c)]&&this[_0x5e4091(0x115)]&&(this[_0x5e4091(0x17c)][_0x5e4091(0x150)]=!0x1,this[_0x5e4091(0x115)][_0x5e4091(0x171)]());}[_0x1c78c3(0x19a)](){const _0x56b485=_0x1c78c3;this[_0x56b485(0x11f)][_0x56b485(0x19a)](),this[_0x56b485(0x142)](),this[_0x56b485(0x16a)](),this[_0x56b485(0x17c)]&&(this[_0x56b485(0x17c)][_0x56b485(0x148)]=''),this[_0x56b485(0x115)]&&this[_0x56b485(0x115)][_0x56b485(0x15a)][_0x56b485(0x19a)]();}[_0x1c78c3(0x11e)](){const _0x2a2d11=_0x1c78c3;this[_0x2a2d11(0x180)]&&(this[_0x2a2d11(0x180)][_0x2a2d11(0x146)](),this[_0x2a2d11(0x180)]=null),this[_0x2a2d11(0x17c)]&&(this[_0x2a2d11(0x17c)][_0x2a2d11(0x11e)](),this[_0x2a2d11(0x17c)]=null),this[_0x2a2d11(0x115)]&&(this[_0x2a2d11(0x115)][_0x2a2d11(0x11e)](),this[_0x2a2d11(0x115)]=null);}[_0x1c78c3(0x15e)](){const _0x209008=_0x1c78c3;if(!this[_0x209008(0x11d)])return;if(!this[_0x209008(0x118)]())return void(this[_0x209008(0x12c)]=!0x0);this[_0x209008(0x12c)]=!0x1;const _0xdecc9f=[...this[_0x209008(0x170)],...this[_0x209008(0x11f)]],_0x1f2884=this[_0x209008(0x12d)](),_0xea1657=this[_0x209008(0x160)](_0x1f2884,_0xdecc9f),_0xdf83fd=_0x1f2884[_0x209008(0x183)];_0xdf83fd&&this[_0x209008(0x164)](_0xdf83fd),_0x1f2884[_0x209008(0x17e)](),this[_0x209008(0x113)](_0xdecc9f,_0xea1657);}[_0x1c78c3(0x10b)](){const _0x4acd6d=_0x1c78c3;this[_0x4acd6d(0x17c)]=this[_0x4acd6d(0x152)](),this[_0x4acd6d(0x115)]=this[_0x4acd6d(0x141)](),this[_0x4acd6d(0x17c)][_0x4acd6d(0x19c)](),this[_0x4acd6d(0x11d)][_0x4acd6d(0x162)](this[_0x4acd6d(0x17c)][_0x4acd6d(0x186)]),this[_0x4acd6d(0x17c)]['on'](_0x4acd6d(0x167),()=>{const _0x274735=_0x4acd6d;this[_0x274735(0x123)]();}),_0x30bc6a({'emitter':this[_0x4acd6d(0x115)],'contextElements':[this[_0x4acd6d(0x115)][_0x4acd6d(0x186)],this[_0x4acd6d(0x17c)][_0x4acd6d(0x186)]],'callback':()=>this[_0x4acd6d(0x142)](),'activator':()=>this[_0x4acd6d(0x17c)][_0x4acd6d(0x150)]});}[_0x1c78c3(0x152)](){const _0x206151=_0x1c78c3,_0x5d037c=new _0x1dc775(this[_0x206151(0x172)]);_0x5d037c[_0x206151(0x177)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2ea9b6=[this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x188)]];return this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x144)]&&_0x2ea9b6[_0x206151(0x119)](this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x144)]),_0x5d037c[_0x206151(0x140)]({'attributes':{'class':_0x2ea9b6}}),_0x5d037c;}[_0x1c78c3(0x141)](){const _0x19b9f7=_0x1c78c3,_0x3aa494=new _0x428e55(this[_0x19b9f7(0x172)]);return _0x3aa494[_0x19b9f7(0x140)]({'attributes':{'class':this[_0x19b9f7(0x197)][_0x19b9f7(0x13c)][_0x19b9f7(0x120)]}}),this[_0x19b9f7(0x107)][_0x19b9f7(0x15c)](_0x3aa494),_0x3aa494;}[_0x1c78c3(0x18e)](){const _0x2da172=_0x1c78c3;if(this[_0x2da172(0x115)]&&(this[_0x2da172(0x115)][_0x2da172(0x15a)][_0x2da172(0x19a)](),this[_0x2da172(0x11f)][_0x2da172(0x184)]>0x0)){this[_0x2da172(0x11f)][_0x2da172(0x189)](_0x150961=>{const _0x43572e=_0x2da172;_0x150961[_0x43572e(0x15b)]();});const _0x5ecd58=new _0xbf65fb(this[_0x2da172(0x172)]);_0x5ecd58[_0x2da172(0x153)]({'tag':_0x2da172(0x169),'attributes':{'class':this[_0x2da172(0x197)][_0x2da172(0x13c)][_0x2da172(0x18c)]},'children':this[_0x2da172(0x11f)]}),this[_0x2da172(0x115)][_0x2da172(0x15a)][_0x2da172(0x15c)](_0x5ecd58);}}[_0x1c78c3(0x123)](){const _0x238472=_0x1c78c3;this[_0x238472(0x17c)][_0x238472(0x150)]?this[_0x238472(0x142)]():this[_0x238472(0x138)]();}[_0x1c78c3(0x16a)](){const _0x51e0c7=_0x1c78c3,_0x50df8d=this[_0x51e0c7(0x11f)][_0x51e0c7(0x184)]>0x0;this[_0x51e0c7(0x17c)]?.[_0x51e0c7(0x186)]&&(this[_0x51e0c7(0x17c)][_0x51e0c7(0x186)][_0x51e0c7(0x149)][_0x51e0c7(0x190)]=_0x50df8d?'':_0x51e0c7(0x14f));}[_0x1c78c3(0x18b)](){const _0x3feb20=_0x1c78c3;this[_0x3feb20(0x17c)]?.[_0x3feb20(0x150)]&&this[_0x3feb20(0x115)]?.[_0x3feb20(0x121)]&&this[_0x3feb20(0x17c)][_0x3feb20(0x186)]&&this[_0x3feb20(0x115)][_0x3feb20(0x110)]({'target':this[_0x3feb20(0x17c)][_0x3feb20(0x186)],'limiter':document[_0x3feb20(0x128)](_0x3feb20(0x12f))});}[_0x1c78c3(0x15d)](_0x4bc6b5){const _0x2bfbbf=_0x1c78c3,_0x16ae90=this[_0x2bfbbf(0x11d)]?.[_0x2bfbbf(0x192)][_0x2bfbbf(0x13f)]()||_0x2bfbbf(0x169),_0x2d9b3b=this[_0x2bfbbf(0x11d)]?.[_0x2bfbbf(0x194)];if(_0x2d9b3b){const _0x5cdd41=_0x2d9b3b[0x0]||'',_0x583329=_0x4bc6b5[_0x2bfbbf(0x128)]('.'+_0x5cdd41),_0x522537=_0x4bc6b5[_0x2bfbbf(0x128)](_0x16ae90);return _0x583329||_0x522537||_0x4bc6b5;}return _0x4bc6b5[_0x2bfbbf(0x128)](_0x16ae90)||_0x4bc6b5;}[_0x1c78c3(0x185)](){const _0x4c8e85=_0x1c78c3,_0x54e5c9=this[_0x4c8e85(0x17f)]?.[_0x4c8e85(0x186)]||this[_0x4c8e85(0x11d)];if(!_0x54e5c9)return ln;const _0x393427=window[_0x4c8e85(0x18f)](_0x54e5c9)[_0x4c8e85(0x155)];if(_0x4c8e85(0x12a)===_0x393427||_0x4c8e85(0x12b)===_0x393427||!_0x393427){const _0x35c4cb=_0x54e5c9[_0x4c8e85(0x132)];if(_0x35c4cb){const _0x255dd1=window[_0x4c8e85(0x18f)](_0x35c4cb);return _0x4c8e85(0x12a)!==_0x255dd1[_0x4c8e85(0x155)]?_0x255dd1[_0x4c8e85(0x155)]:ln;}return ln;}return _0x393427;}[_0x1c78c3(0x18d)](_0x1a314c,_0x58c071){const _0x4c63cb=_0x1c78c3;this[_0x4c63cb(0x197)][_0x4c63cb(0x13c)][_0x4c63cb(0x133)]&&_0x1a314c[_0x4c63cb(0x194)][_0x4c63cb(0x15c)](this[_0x4c63cb(0x197)][_0x4c63cb(0x13c)][_0x4c63cb(0x133)]),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x155)]=_0x58c071,_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x116)]=_0x4c63cb(0x10a),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x166)]=_0x4c63cb(0x145),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x10f)]=_0x4c63cb(0x145),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x176)]='0',_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x14c)]=_0x4c63cb(0x14f),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x147)]='-1',_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x154)]=_0x4c63cb(0x114),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x190)]=_0x4c63cb(0x195),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x181)]=_0x4c63cb(0x161);}[_0x1c78c3(0x164)](_0x2303dd){const _0x51491a=_0x1c78c3;_0x2303dd[_0x51491a(0x189)](({element:_0x51ddf1,originalDisplay:_0x166d90,originalVisibility:_0x5b8d42})=>{const _0x407e01=_0x51491a;_0x51ddf1[_0x407e01(0x149)][_0x407e01(0x190)]=_0x166d90,_0x51ddf1[_0x407e01(0x149)][_0x407e01(0x154)]=_0x5b8d42;});}[_0x1c78c3(0x158)](_0x205b46){const _0x5f0361=_0x1c78c3,_0x21c853=[];let _0x15c204=_0x205b46;for(;_0x15c204&&_0x15c204!==document[_0x5f0361(0x16d)];){const _0x596da1=window[_0x5f0361(0x18f)](_0x15c204);_0x5f0361(0x14f)!==_0x596da1[_0x5f0361(0x190)]&&_0x5f0361(0x182)!==_0x596da1[_0x5f0361(0x154)]||(_0x21c853[_0x5f0361(0x119)]({'element':_0x15c204,'originalDisplay':_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x190)],'originalVisibility':_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x154)]}),_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x190)]=_0x5f0361(0x112),_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x154)]=_0x5f0361(0x134)),_0x15c204=_0x15c204[_0x5f0361(0x132)];}return _0x21c853;}[_0x1c78c3(0x124)](){const _0x21c689=_0x1c78c3;let _0x35620f,_0x340f9d;return this[_0x21c689(0x17f)]?.[_0x21c689(0x186)]?(_0x35620f=this[_0x21c689(0x17f)][_0x21c689(0x186)][_0x21c689(0x12e)](!0x0),_0x340f9d=this[_0x21c689(0x15d)](_0x35620f)):(_0x35620f=document[_0x21c689(0x16f)](_0x21c689(0x169)),_0x340f9d=_0x35620f),{'calculationContainer':_0x35620f,'targetContainer':_0x340f9d};}[_0x1c78c3(0x12d)](){const _0x94d243=_0x1c78c3,{calculationContainer:_0x3d71d0,targetContainer:_0x24b734}=this[_0x94d243(0x124)](),_0x5c62f3=this[_0x94d243(0x185)]();this[_0x94d243(0x18d)](_0x3d71d0,_0x5c62f3);const _0x41ce08=this[_0x94d243(0x17f)]?.[_0x94d243(0x186)]||this[_0x94d243(0x11d)],_0x11b4a0=_0x41ce08?.[_0x94d243(0x132)];_0x11b4a0?_0x11b4a0[_0x94d243(0x162)](_0x3d71d0):document[_0x94d243(0x16d)][_0x94d243(0x162)](_0x3d71d0),_0x3d71d0[_0x94d243(0x10d)]=_0x24b734;const _0x14ab3e=this[_0x94d243(0x158)](_0x11b4a0||null);return _0x3d71d0[_0x94d243(0x129)],_0x3d71d0[_0x94d243(0x183)]=_0x14ab3e,_0x3d71d0;}[_0x1c78c3(0x160)](_0x2e15f4,_0x2d1f1b){const _0x4dc8be=_0x1c78c3,_0x92d67e=_0x2e15f4[_0x4dc8be(0x10d)]||_0x2e15f4,_0x72240f=[],{rowCount:_0x51cec2}=this[_0x4dc8be(0x15f)](_0x92d67e,_0x2d1f1b);if(_0x51cec2<=this[_0x4dc8be(0x197)][_0x4dc8be(0x13e)])return _0x72240f;const _0x8db0b5=_0x2d1f1b[_0x4dc8be(0x196)]();for(;_0x8db0b5[_0x4dc8be(0x184)]>0x0;){if(this[_0x4dc8be(0x13a)](_0x2e15f4,_0x92d67e,_0x8db0b5)){const _0x4f2c7b=_0x2d1f1b[_0x4dc8be(0x127)](_0x1ae428=>!_0x8db0b5[_0x4dc8be(0x111)](_0x1ae428));_0x72240f[_0x4dc8be(0x119)](..._0x4f2c7b);break;}if(!_0x8db0b5[_0x4dc8be(0x173)]())break;}return _0x72240f;}[_0x1c78c3(0x15f)](_0x2caeb3,_0x56feb6){const _0x262608=_0x1c78c3;_0x2caeb3[_0x262608(0x130)]='',_0x56feb6[_0x262608(0x189)](_0xf3e631=>{const _0x33e0e5=_0x262608;if(_0xf3e631[_0x33e0e5(0x186)]){const _0x507674=_0xf3e631[_0x33e0e5(0x186)][_0x33e0e5(0x12e)](!0x0);_0x2caeb3[_0x33e0e5(0x162)](_0x507674);}}),_0x2caeb3[_0x262608(0x129)];const _0x45657c=_0x2caeb3[_0x262608(0x16c)],_0xa36c29=[];return Array[_0x262608(0x168)](_0x45657c)[_0x262608(0x189)](_0x3e6c21=>{const _0x1c5f1f=_0x262608,_0x2a3aef=_0x3e6c21[_0x1c5f1f(0x137)]()[_0x1c5f1f(0x166)];_0xa36c29[_0x1c5f1f(0x187)](_0x4ee961=>Math[_0x1c5f1f(0x193)](_0x4ee961-_0x2a3aef)<this[_0x1c5f1f(0x197)][_0x1c5f1f(0x143)])||_0xa36c29[_0x1c5f1f(0x119)](_0x2a3aef);}),{'rowCount':_0xa36c29[_0x262608(0x184)]};}[_0x1c78c3(0x135)](){const _0x5e21f6=_0x1c78c3,_0x16991e=document[_0x5e21f6(0x16f)](_0x5e21f6(0x198));return _0x16991e[_0x5e21f6(0x117)]=this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x188)],this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x144)]&&_0x16991e[_0x5e21f6(0x194)][_0x5e21f6(0x15c)](this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x144)]),_0x16991e[_0x5e21f6(0x108)]=_0x5e21f6(0x14a),_0x16991e;}[_0x1c78c3(0x13a)](_0x2e489c,_0x224fc0,_0x2cc9fa){const _0x2575f7=_0x1c78c3;this[_0x2575f7(0x15f)](_0x224fc0,_0x2cc9fa);const _0x39853e=this[_0x2575f7(0x135)]();_0x2e489c[_0x2575f7(0x162)](_0x39853e),_0x2e489c[_0x2575f7(0x129)];const _0x244e50=[..._0x224fc0[_0x2575f7(0x16c)],_0x39853e],_0x3cd883=[];_0x244e50[_0x2575f7(0x189)](_0x2c01a2=>{const _0x1a4836=_0x2575f7,_0xd3183e=_0x2c01a2[_0x1a4836(0x137)]()[_0x1a4836(0x166)];_0x3cd883[_0x1a4836(0x187)](_0x2a8dd8=>Math[_0x1a4836(0x193)](_0x2a8dd8-_0xd3183e)<this[_0x1a4836(0x197)][_0x1a4836(0x143)])||_0x3cd883[_0x1a4836(0x119)](_0xd3183e);});const _0x23b881=_0x3cd883[_0x2575f7(0x184)];return _0x39853e[_0x2575f7(0x17e)](),_0x23b881<=this[_0x2575f7(0x197)][_0x2575f7(0x13e)];}[_0x1c78c3(0x136)](_0x26b4a9,_0x50c8eb){const _0x1df7e4=_0x1c78c3;this[_0x1df7e4(0x170)][_0x1df7e4(0x19a)](),this[_0x1df7e4(0x11f)][_0x1df7e4(0x19a)](),_0x26b4a9[_0x1df7e4(0x189)](_0x53d36f=>{const _0x593de7=_0x1df7e4;_0x50c8eb[_0x593de7(0x111)](_0x53d36f)?this[_0x593de7(0x11f)][_0x593de7(0x15c)](_0x53d36f):this[_0x593de7(0x170)][_0x593de7(0x15c)](_0x53d36f);});}[_0x1c78c3(0x163)](_0x5a918f){const _0x14187a=_0x1c78c3;if(_0x5a918f>0x0&&!this[_0x14187a(0x17c)]&&this[_0x14187a(0x10b)](),_0x5a918f>0x0&&this[_0x14187a(0x17c)]){const _0x386b42=''+this[_0x14187a(0x197)][_0x14187a(0x11a)]+(_0x5a918f<0x63?_0x5a918f:'99');this[_0x14187a(0x17c)][_0x14187a(0x148)]=_0x386b42;}this[_0x14187a(0x18e)](),this[_0x14187a(0x16a)](),this[_0x14187a(0x18b)]();}[_0x1c78c3(0x113)](_0x2ee750,_0x79d4ff){const _0x43aa98=_0x1c78c3;this[_0x43aa98(0x136)](_0x2ee750,_0x79d4ff),this[_0x43aa98(0x163)](_0x79d4ff[_0x43aa98(0x184)]);}[_0x1c78c3(0x13b)](){const _0x4e494d=_0x1c78c3;this[_0x4e494d(0x11d)]&&_0x4e494d(0x125)!=typeof IntersectionObserver&&(this[_0x4e494d(0x180)]=new IntersectionObserver(_0x26a3a3=>{const _0x1822a0=_0x4e494d;_0x26a3a3[0x0][_0x1822a0(0x175)]&&this[_0x1822a0(0x12c)]&&requestAnimationFrame(()=>{const _0x9aabfd=_0x1822a0;this[_0x9aabfd(0x15e)]();});},{'threshold':0.01,'rootMargin':_0x4e494d(0x131)}),this[_0x4e494d(0x180)][_0x4e494d(0x11c)](this[_0x4e494d(0x11d)]));}[_0x1c78c3(0x118)](){const _0x192321=_0x1c78c3;if(!this[_0x192321(0x11d)])return!0x1;if(!this[_0x192321(0x11d)][_0x192321(0x151)])return!0x1;const _0x483954=this[_0x192321(0x11d)][_0x192321(0x137)]();if(0x0===_0x483954[_0x192321(0x155)]||0x0===_0x483954[_0x192321(0x191)])return!0x1;const _0x597956=window[_0x192321(0x157)]||document[_0x192321(0x17b)][_0x192321(0x159)],_0x444c7d=window[_0x192321(0x18a)]||document[_0x192321(0x17b)][_0x192321(0x165)],_0x421bbb=0xc8;return _0x483954[_0x192321(0x14d)]>=-0xc8&&_0x483954[_0x192321(0x166)]<=_0x597956+_0x421bbb&&_0x483954[_0x192321(0x178)]>=-0xc8&&_0x483954[_0x192321(0x10f)]<=_0x444c7d+_0x421bbb;}}
23
+ const _0x18e301=_0x3eda;function _0x3eda(_0x5f3c67,_0x4f5029){const _0x454db6=_0x454d();return _0x3eda=function(_0x3eda71,_0x181ceb){_0x3eda71=_0x3eda71-0x138;let _0x6f7766=_0x454db6[_0x3eda71];return _0x6f7766;},_0x3eda(_0x5f3c67,_0x4f5029);}(function(_0x1de6fc,_0x42c6e8){const _0x743d28=_0x3eda,_0x41e073=_0x1de6fc();while(!![]){try{const _0x1d401f=parseInt(_0x743d28(0x170))/0x1+-parseInt(_0x743d28(0x142))/0x2*(parseInt(_0x743d28(0x1ba))/0x3)+parseInt(_0x743d28(0x171))/0x4+-parseInt(_0x743d28(0x1bc))/0x5*(-parseInt(_0x743d28(0x159))/0x6)+-parseInt(_0x743d28(0x1af))/0x7*(-parseInt(_0x743d28(0x15c))/0x8)+-parseInt(_0x743d28(0x1c1))/0x9*(parseInt(_0x743d28(0x191))/0xa)+parseInt(_0x743d28(0x165))/0xb;if(_0x1d401f===_0x42c6e8)break;else _0x41e073['push'](_0x41e073['shift']());}catch(_0x580c4c){_0x41e073['push'](_0x41e073['shift']());}}}(_0x454d,0x6ee24));function _0x454d(){const _0x1d799d=['rowDetectionTolerance','from','label','15297aZrxVK','959544mkawgw','includes','_bodyCollection','block\x20!important','_calculateOverflowInContainer','offsetWidth','clientWidth','_showMoreBalloonPanelView','height','classList','overflowChips','+\x201','none','_testButtonFit','_makeAncestorsVisible','_createShowMoreButtonView','display','showMoreButtonView','_updateBalloonContent','overflowContainer','some','reorganizeChips','getBoundingClientRect','destroy','_findTargetContainer','_createContainerElements','block','extendTemplate','pin','_containerElement','createElement','_updateOverflowUI','24620EroWqX','absolute','className','parentElement','border-box','push','element','bottom','showBalloonPanel','_intersectionObserver','opacity','isIntersecting','visibility','auto','innerWidth','visible\x20!important','execute','_createMockButton','_restoreAncestorVisibility','_createShowMoreBalloonPanelView','clientHeight','_renderChipsAndCountRows','div','cloneNode','children','top','_createShowMoreButton','disconnect','300px','set','1092763yTjEEW','abs','render','_distributeChips','_visibleChips','appendChild','innerHTML','left','length','setContainerElement','remove','104109KlBNxB','_repinBalloonPanel','7880TZqXUc','add','_ancestorsToRestore','getComputedStyle','tagName','3015wWIFtJ','_parentView','content','.ck-ai-chat','undefined','right','slice','cssClasses','position','showMoreLabelPrefix','isConnected','forEach','showMoreBalloon','style','_createCalculationContainer','hideBalloonPanel','_setupVisibilityObserver','toLowerCase','setTemplate','clear','width','innerHeight','34lmcili','hidden','_checkAndHandleOverflow','querySelector','body','boxSizing','filter','-9999px','_applyCalculationStyles','_config','maxVisibleRows','textContent','_calculateContainerWidth','documentElement','_locale','hide','button','_showMoreButtonView','_applyOverflowResults','_isContainerVisible','ck-calculation-container','_updateShowMoreButtonVisibility','disableAnimationOnEnter','438dsLMqv','_targetContainer','_handleShowMoreButtonClick','16IMTiPv','_overflowChips','pop','calculationContainer','showMoreButton','_pendingCalculation','observe','show','zIndex','13050972UJSXGe','isOn','controlsButton','pointerEvents','50px','isVisible','visible','0px'];_0x454d=function(){return _0x1d799d;};return _0x454d();}import{View as _0x39c7dd,BalloonPanelView as _0x518f0a,ButtonView as _0x4dd38d,clickOutsideHandler as _0x40759b}from'ckeditor5/src/ui.js';import{Collection as _0x3562c1}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},un=_0x18e301(0x1ad);export class AIChatChipsOverflowManager{[_0x18e301(0x150)];[_0x18e301(0x14b)];[_0x18e301(0x1b3)];[_0x18e301(0x15d)];[_0x18e301(0x153)]=null;[_0x18e301(0x178)]=null;[_0x18e301(0x18e)]=null;[_0x18e301(0x173)];[_0x18e301(0x1c2)]=null;[_0x18e301(0x19a)]=null;[_0x18e301(0x161)]=!0x1;constructor(_0x450d2e,_0x555ff0,_0x485aaa,_0x26de1a,_0x2f3697){const _0xe57de5=_0x18e301;this[_0xe57de5(0x150)]=_0x450d2e,this[_0xe57de5(0x1b3)]=_0x555ff0,this[_0xe57de5(0x14b)]={...hn,..._0x485aaa,'cssClasses':{'controlsButton':'','calculationContainer':_0xe57de5(0x156),..._0x485aaa[_0xe57de5(0x1c8)]}},this[_0xe57de5(0x15d)]=new _0x3562c1(),this[_0xe57de5(0x173)]=_0x26de1a,this[_0xe57de5(0x1c2)]=_0x2f3697||null;}[_0x18e301(0x1b8)](_0x5e2fb0){const _0x499fb9=_0x18e301;this[_0x499fb9(0x19a)]&&(this[_0x499fb9(0x19a)][_0x499fb9(0x1ac)](),this[_0x499fb9(0x19a)]=null),this[_0x499fb9(0x18e)]=_0x5e2fb0,this[_0x499fb9(0x13c)]();}get[_0x18e301(0x182)](){const _0x52053a=_0x18e301;return this[_0x52053a(0x153)];}get[_0x18e301(0x17b)](){const _0x5c16e3=_0x18e301;return this[_0x5c16e3(0x15d)];}[_0x18e301(0x186)](){requestAnimationFrame(()=>{const _0x57d77a=_0x3eda;this[_0x57d77a(0x144)]();});}[_0x18e301(0x199)](){const _0x10caff=_0x18e301;this[_0x10caff(0x153)]&&this[_0x10caff(0x178)]&&(this[_0x10caff(0x183)](),this[_0x10caff(0x153)][_0x10caff(0x166)]=!0x0,this[_0x10caff(0x178)][_0x10caff(0x163)](),this[_0x10caff(0x178)][_0x10caff(0x18d)]({'target':this[_0x10caff(0x153)][_0x10caff(0x197)],'limiter':document[_0x10caff(0x145)](_0x10caff(0x1c4))}));}[_0x18e301(0x13b)](){const _0x1eb9a5=_0x18e301;this[_0x1eb9a5(0x153)]&&this[_0x1eb9a5(0x178)]&&(this[_0x1eb9a5(0x153)][_0x1eb9a5(0x166)]=!0x1,this[_0x1eb9a5(0x178)][_0x1eb9a5(0x151)]());}[_0x18e301(0x13f)](){const _0x53c2e5=_0x18e301;this[_0x53c2e5(0x15d)][_0x53c2e5(0x13f)](),this[_0x53c2e5(0x13b)](),this[_0x53c2e5(0x157)](),this[_0x53c2e5(0x153)]&&(this[_0x53c2e5(0x153)][_0x53c2e5(0x16f)]=''),this[_0x53c2e5(0x178)]&&this[_0x53c2e5(0x178)][_0x53c2e5(0x1c3)][_0x53c2e5(0x13f)]();}[_0x18e301(0x188)](){const _0x12e410=_0x18e301;this[_0x12e410(0x19a)]&&(this[_0x12e410(0x19a)][_0x12e410(0x1ac)](),this[_0x12e410(0x19a)]=null),this[_0x12e410(0x153)]&&(this[_0x12e410(0x153)][_0x12e410(0x188)](),this[_0x12e410(0x153)]=null),this[_0x12e410(0x178)]&&(this[_0x12e410(0x178)][_0x12e410(0x188)](),this[_0x12e410(0x178)]=null);}[_0x18e301(0x144)](){const _0x27d33f=_0x18e301;if(!this[_0x27d33f(0x18e)])return;if(!this[_0x27d33f(0x155)]())return void(this[_0x27d33f(0x161)]=!0x0);this[_0x27d33f(0x161)]=!0x1;const _0x53ea45=[...this[_0x27d33f(0x1b3)],...this[_0x27d33f(0x15d)]],_0xd613c1=this[_0x27d33f(0x13a)](),_0x2a9d3f=this[_0x27d33f(0x175)](_0xd613c1,_0x53ea45),_0x477263=_0xd613c1[_0x27d33f(0x1be)];_0x477263&&this[_0x27d33f(0x1a3)](_0x477263),_0xd613c1[_0x27d33f(0x1b9)](),this[_0x27d33f(0x154)](_0x53ea45,_0x2a9d3f);}[_0x18e301(0x1ab)](){const _0x2d4904=_0x18e301;this[_0x2d4904(0x153)]=this[_0x2d4904(0x180)](),this[_0x2d4904(0x178)]=this[_0x2d4904(0x1a4)](),this[_0x2d4904(0x153)][_0x2d4904(0x1b1)](),this[_0x2d4904(0x18e)][_0x2d4904(0x1b4)](this[_0x2d4904(0x153)][_0x2d4904(0x197)]),this[_0x2d4904(0x153)]['on'](_0x2d4904(0x1a1),()=>{const _0x2415ad=_0x2d4904;this[_0x2415ad(0x15b)]();}),_0x40759b({'emitter':this[_0x2d4904(0x178)],'contextElements':[this[_0x2d4904(0x178)][_0x2d4904(0x197)],this[_0x2d4904(0x153)][_0x2d4904(0x197)]],'callback':()=>this[_0x2d4904(0x13b)](),'activator':()=>this[_0x2d4904(0x153)][_0x2d4904(0x166)]});}[_0x18e301(0x180)](){const _0x344483=_0x18e301,_0x1a6a0c=new _0x4dd38d(this[_0x344483(0x150)]);_0x1a6a0c[_0x344483(0x1ae)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5d7788=[this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x160)]];return this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x167)]&&_0x5d7788[_0x344483(0x196)](this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x167)]),_0x1a6a0c[_0x344483(0x18c)]({'attributes':{'class':_0x5d7788}}),_0x1a6a0c;}[_0x18e301(0x1a4)](){const _0xb158ec=_0x18e301,_0x42d317=new _0x518f0a(this[_0xb158ec(0x150)]);return _0x42d317[_0xb158ec(0x18c)]({'attributes':{'class':this[_0xb158ec(0x14b)][_0xb158ec(0x1c8)][_0xb158ec(0x138)]}}),this[_0xb158ec(0x173)][_0xb158ec(0x1bd)](_0x42d317),_0x42d317;}[_0x18e301(0x183)](){const _0x3ea262=_0x18e301;if(this[_0x3ea262(0x178)]&&(this[_0x3ea262(0x178)][_0x3ea262(0x1c3)][_0x3ea262(0x13f)](),this[_0x3ea262(0x15d)][_0x3ea262(0x1b7)]>0x0)){this[_0x3ea262(0x15d)][_0x3ea262(0x1cc)](_0x19435f=>{const _0x1cb297=_0x3ea262;_0x19435f[_0x1cb297(0x158)]();});const _0x31b901=new _0x39c7dd(this[_0x3ea262(0x150)]);_0x31b901[_0x3ea262(0x13e)]({'tag':_0x3ea262(0x1a7),'attributes':{'class':this[_0x3ea262(0x14b)][_0x3ea262(0x1c8)][_0x3ea262(0x184)]},'children':this[_0x3ea262(0x15d)]}),this[_0x3ea262(0x178)][_0x3ea262(0x1c3)][_0x3ea262(0x1bd)](_0x31b901);}}[_0x18e301(0x15b)](){const _0x5f2988=_0x18e301;this[_0x5f2988(0x153)][_0x5f2988(0x166)]?this[_0x5f2988(0x13b)]():this[_0x5f2988(0x199)]();}[_0x18e301(0x157)](){const _0x4cc57f=_0x18e301,_0x1a8b91=this[_0x4cc57f(0x15d)][_0x4cc57f(0x1b7)]>0x0;this[_0x4cc57f(0x153)]?.[_0x4cc57f(0x197)]&&(this[_0x4cc57f(0x153)][_0x4cc57f(0x197)][_0x4cc57f(0x139)][_0x4cc57f(0x181)]=_0x1a8b91?'':_0x4cc57f(0x17d));}[_0x18e301(0x1bb)](){const _0x527a91=_0x18e301;this[_0x527a91(0x153)]?.[_0x527a91(0x166)]&&this[_0x527a91(0x178)]?.[_0x527a91(0x16a)]&&this[_0x527a91(0x153)][_0x527a91(0x197)]&&this[_0x527a91(0x178)][_0x527a91(0x18d)]({'target':this[_0x527a91(0x153)][_0x527a91(0x197)],'limiter':document[_0x527a91(0x145)](_0x527a91(0x1c4))});}[_0x18e301(0x189)](_0x2cc2fd){const _0x1aba6a=_0x18e301,_0x117b59=this[_0x1aba6a(0x18e)]?.[_0x1aba6a(0x1c0)][_0x1aba6a(0x13d)]()||_0x1aba6a(0x1a7),_0x52f5f2=this[_0x1aba6a(0x18e)]?.[_0x1aba6a(0x17a)];if(_0x52f5f2){const _0x320399=_0x52f5f2[0x0]||'',_0x2c118e=_0x2cc2fd[_0x1aba6a(0x145)]('.'+_0x320399),_0x4a0c30=_0x2cc2fd[_0x1aba6a(0x145)](_0x117b59);return _0x2c118e||_0x4a0c30||_0x2cc2fd;}return _0x2cc2fd[_0x1aba6a(0x145)](_0x117b59)||_0x2cc2fd;}[_0x18e301(0x14e)](){const _0x174cd7=_0x18e301,_0xe6fbfa=this[_0x174cd7(0x1c2)]?.[_0x174cd7(0x197)]||this[_0x174cd7(0x18e)];if(!_0xe6fbfa)return un;const _0xe0d600=window[_0x174cd7(0x1bf)](_0xe6fbfa)[_0x174cd7(0x140)];if(_0x174cd7(0x19e)===_0xe0d600||_0x174cd7(0x16c)===_0xe0d600||!_0xe0d600){const _0x55b249=_0xe6fbfa[_0x174cd7(0x194)];if(_0x55b249){const _0xcf975=window[_0x174cd7(0x1bf)](_0x55b249);return _0x174cd7(0x19e)!==_0xcf975[_0x174cd7(0x140)]?_0xcf975[_0x174cd7(0x140)]:un;}return un;}return _0xe0d600;}[_0x18e301(0x14a)](_0x39fc1d,_0xfe250f){const _0x1f029d=_0x18e301;this[_0x1f029d(0x14b)][_0x1f029d(0x1c8)][_0x1f029d(0x15f)]&&_0x39fc1d[_0x1f029d(0x17a)][_0x1f029d(0x1bd)](this[_0x1f029d(0x14b)][_0x1f029d(0x1c8)][_0x1f029d(0x15f)]),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x140)]=_0xfe250f,_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1c9)]=_0x1f029d(0x192),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1aa)]=_0x1f029d(0x149),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1b6)]=_0x1f029d(0x149),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x19b)]='0',_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x168)]=_0x1f029d(0x17d),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x164)]='-1',_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x19d)]=_0x1f029d(0x1a0),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x181)]=_0x1f029d(0x174),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x147)]=_0x1f029d(0x195);}[_0x18e301(0x1a3)](_0x115b0c){const _0x27ed20=_0x18e301;_0x115b0c[_0x27ed20(0x1cc)](({element:_0x338a73,originalDisplay:_0x4a7616,originalVisibility:_0x2d4c40})=>{const _0x4d8e18=_0x27ed20;_0x338a73[_0x4d8e18(0x139)][_0x4d8e18(0x181)]=_0x4a7616,_0x338a73[_0x4d8e18(0x139)][_0x4d8e18(0x19d)]=_0x2d4c40;});}[_0x18e301(0x17f)](_0x5b85d9){const _0x5896b0=_0x18e301,_0x56920d=[];let _0x1d3508=_0x5b85d9;for(;_0x1d3508&&_0x1d3508!==document[_0x5896b0(0x146)];){const _0x41b1ad=window[_0x5896b0(0x1bf)](_0x1d3508);_0x5896b0(0x17d)!==_0x41b1ad[_0x5896b0(0x181)]&&_0x5896b0(0x143)!==_0x41b1ad[_0x5896b0(0x19d)]||(_0x56920d[_0x5896b0(0x196)]({'element':_0x1d3508,'originalDisplay':_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x181)],'originalVisibility':_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x19d)]}),_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x181)]=_0x5896b0(0x18b),_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x19d)]=_0x5896b0(0x16b)),_0x1d3508=_0x1d3508[_0x5896b0(0x194)];}return _0x56920d;}[_0x18e301(0x18a)](){const _0x24c7f7=_0x18e301;let _0x17de19,_0x19352d;return this[_0x24c7f7(0x1c2)]?.[_0x24c7f7(0x197)]?(_0x17de19=this[_0x24c7f7(0x1c2)][_0x24c7f7(0x197)][_0x24c7f7(0x1a8)](!0x0),_0x19352d=this[_0x24c7f7(0x189)](_0x17de19)):(_0x17de19=document[_0x24c7f7(0x18f)](_0x24c7f7(0x1a7)),_0x19352d=_0x17de19),{'calculationContainer':_0x17de19,'targetContainer':_0x19352d};}[_0x18e301(0x13a)](){const _0x6f0b6d=_0x18e301,{calculationContainer:_0x55082d,targetContainer:_0x7fbce3}=this[_0x6f0b6d(0x18a)](),_0x488777=this[_0x6f0b6d(0x14e)]();this[_0x6f0b6d(0x14a)](_0x55082d,_0x488777);const _0x1e1aeb=this[_0x6f0b6d(0x1c2)]?.[_0x6f0b6d(0x197)]||this[_0x6f0b6d(0x18e)],_0x36d796=_0x1e1aeb?.[_0x6f0b6d(0x194)];_0x36d796?_0x36d796[_0x6f0b6d(0x1b4)](_0x55082d):document[_0x6f0b6d(0x146)][_0x6f0b6d(0x1b4)](_0x55082d),_0x55082d[_0x6f0b6d(0x15a)]=_0x7fbce3;const _0x4841d7=this[_0x6f0b6d(0x17f)](_0x36d796||null);return _0x55082d[_0x6f0b6d(0x176)],_0x55082d[_0x6f0b6d(0x1be)]=_0x4841d7,_0x55082d;}[_0x18e301(0x175)](_0x5eda9e,_0x4bc077){const _0x91bd5a=_0x18e301,_0x88cb2d=_0x5eda9e[_0x91bd5a(0x15a)]||_0x5eda9e,_0x1ee89f=[],{rowCount:_0x2c81c4}=this[_0x91bd5a(0x1a6)](_0x88cb2d,_0x4bc077);if(_0x2c81c4<=this[_0x91bd5a(0x14b)][_0x91bd5a(0x14c)])return _0x1ee89f;const _0x1574e2=_0x4bc077[_0x91bd5a(0x1c7)]();for(;_0x1574e2[_0x91bd5a(0x1b7)]>0x0;){if(this[_0x91bd5a(0x17e)](_0x5eda9e,_0x88cb2d,_0x1574e2)){const _0x453b6f=_0x4bc077[_0x91bd5a(0x148)](_0x52c3c1=>!_0x1574e2[_0x91bd5a(0x172)](_0x52c3c1));_0x1ee89f[_0x91bd5a(0x196)](..._0x453b6f);break;}if(!_0x1574e2[_0x91bd5a(0x15e)]())break;}return _0x1ee89f;}[_0x18e301(0x1a6)](_0x232378,_0x4fb1c8){const _0xa61c63=_0x18e301;_0x232378[_0xa61c63(0x1b5)]='',_0x4fb1c8[_0xa61c63(0x1cc)](_0x5112ad=>{const _0x4b65ef=_0xa61c63;if(_0x5112ad[_0x4b65ef(0x197)]){const _0x174627=_0x5112ad[_0x4b65ef(0x197)][_0x4b65ef(0x1a8)](!0x0);_0x232378[_0x4b65ef(0x1b4)](_0x174627);}}),_0x232378[_0xa61c63(0x176)];const _0x114609=_0x232378[_0xa61c63(0x1a9)],_0x404b3a=[];return Array[_0xa61c63(0x16e)](_0x114609)[_0xa61c63(0x1cc)](_0x4e5b5a=>{const _0x4a9dcb=_0xa61c63,_0x14426d=_0x4e5b5a[_0x4a9dcb(0x187)]()[_0x4a9dcb(0x1aa)];_0x404b3a[_0x4a9dcb(0x185)](_0x329ac5=>Math[_0x4a9dcb(0x1b0)](_0x329ac5-_0x14426d)<this[_0x4a9dcb(0x14b)][_0x4a9dcb(0x16d)])||_0x404b3a[_0x4a9dcb(0x196)](_0x14426d);}),{'rowCount':_0x404b3a[_0xa61c63(0x1b7)]};}[_0x18e301(0x1a2)](){const _0x586bee=_0x18e301,_0x4031b8=document[_0x586bee(0x18f)](_0x586bee(0x152));return _0x4031b8[_0x586bee(0x193)]=this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x160)],this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x167)]&&_0x4031b8[_0x586bee(0x17a)][_0x586bee(0x1bd)](this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x167)]),_0x4031b8[_0x586bee(0x14d)]=_0x586bee(0x17c),_0x4031b8;}[_0x18e301(0x17e)](_0x5574b3,_0x575971,_0x4d8db6){const _0x28f1d7=_0x18e301;this[_0x28f1d7(0x1a6)](_0x575971,_0x4d8db6);const _0x584c41=this[_0x28f1d7(0x1a2)]();_0x5574b3[_0x28f1d7(0x1b4)](_0x584c41),_0x5574b3[_0x28f1d7(0x176)];const _0x11a262=[..._0x575971[_0x28f1d7(0x1a9)],_0x584c41],_0xeff3e1=[];_0x11a262[_0x28f1d7(0x1cc)](_0x2048b1=>{const _0x1473f7=_0x28f1d7,_0x418e40=_0x2048b1[_0x1473f7(0x187)]()[_0x1473f7(0x1aa)];_0xeff3e1[_0x1473f7(0x185)](_0xd2ad0e=>Math[_0x1473f7(0x1b0)](_0xd2ad0e-_0x418e40)<this[_0x1473f7(0x14b)][_0x1473f7(0x16d)])||_0xeff3e1[_0x1473f7(0x196)](_0x418e40);});const _0x46a7e0=_0xeff3e1[_0x28f1d7(0x1b7)];return _0x584c41[_0x28f1d7(0x1b9)](),_0x46a7e0<=this[_0x28f1d7(0x14b)][_0x28f1d7(0x14c)];}[_0x18e301(0x1b2)](_0x128079,_0x4a61ed){const _0x17317b=_0x18e301;this[_0x17317b(0x1b3)][_0x17317b(0x13f)](),this[_0x17317b(0x15d)][_0x17317b(0x13f)](),_0x128079[_0x17317b(0x1cc)](_0x1faf69=>{const _0x8be56d=_0x17317b;_0x4a61ed[_0x8be56d(0x172)](_0x1faf69)?this[_0x8be56d(0x15d)][_0x8be56d(0x1bd)](_0x1faf69):this[_0x8be56d(0x1b3)][_0x8be56d(0x1bd)](_0x1faf69);});}[_0x18e301(0x190)](_0xa90596){const _0x264561=_0x18e301;if(_0xa90596>0x0&&!this[_0x264561(0x153)]&&this[_0x264561(0x1ab)](),_0xa90596>0x0&&this[_0x264561(0x153)]){const _0x2e55bd=''+this[_0x264561(0x14b)][_0x264561(0x1ca)]+(_0xa90596<0x63?_0xa90596:'99');this[_0x264561(0x153)][_0x264561(0x16f)]=_0x2e55bd;}this[_0x264561(0x183)](),this[_0x264561(0x157)](),this[_0x264561(0x1bb)]();}[_0x18e301(0x154)](_0x5052c3,_0x1da049){const _0x37069b=_0x18e301;this[_0x37069b(0x1b2)](_0x5052c3,_0x1da049),this[_0x37069b(0x190)](_0x1da049[_0x37069b(0x1b7)]);}[_0x18e301(0x13c)](){const _0x548ca2=_0x18e301;this[_0x548ca2(0x18e)]&&_0x548ca2(0x1c5)!=typeof IntersectionObserver&&(this[_0x548ca2(0x19a)]=new IntersectionObserver(_0x2e2733=>{const _0x10b0e9=_0x548ca2;_0x2e2733[0x0][_0x10b0e9(0x19c)]&&this[_0x10b0e9(0x161)]&&requestAnimationFrame(()=>{const _0x3c5e93=_0x10b0e9;this[_0x3c5e93(0x144)]();});},{'threshold':0.01,'rootMargin':_0x548ca2(0x169)}),this[_0x548ca2(0x19a)][_0x548ca2(0x162)](this[_0x548ca2(0x18e)]));}[_0x18e301(0x155)](){const _0x51dfa0=_0x18e301;if(!this[_0x51dfa0(0x18e)])return!0x1;if(!this[_0x51dfa0(0x18e)][_0x51dfa0(0x1cb)])return!0x1;const _0x50a369=this[_0x51dfa0(0x18e)][_0x51dfa0(0x187)]();if(0x0===_0x50a369[_0x51dfa0(0x140)]||0x0===_0x50a369[_0x51dfa0(0x179)])return!0x1;const _0x87a510=window[_0x51dfa0(0x141)]||document[_0x51dfa0(0x14f)][_0x51dfa0(0x1a5)],_0x125b01=window[_0x51dfa0(0x19f)]||document[_0x51dfa0(0x14f)][_0x51dfa0(0x177)],_0x471568=0xc8;return _0x50a369[_0x51dfa0(0x198)]>=-0xc8&&_0x50a369[_0x51dfa0(0x1aa)]<=_0x87a510+_0x471568&&_0x50a369[_0x51dfa0(0x1c6)]>=-0xc8&&_0x50a369[_0x51dfa0(0x1b6)]<=_0x125b01+_0x471568;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x261683=_0x5ee8;(function(_0x524506,_0x1e4026){const _0x346fed=_0x5ee8,_0x100061=_0x524506();while(!![]){try{const _0x2bd5df=-parseInt(_0x346fed(0x14c))/0x1+parseInt(_0x346fed(0x117))/0x2+parseInt(_0x346fed(0x139))/0x3+-parseInt(_0x346fed(0x13b))/0x4*(-parseInt(_0x346fed(0x13e))/0x5)+parseInt(_0x346fed(0x137))/0x6+parseInt(_0x346fed(0x148))/0x7+-parseInt(_0x346fed(0x110))/0x8*(parseInt(_0x346fed(0x12d))/0x9);if(_0x2bd5df===_0x1e4026)break;else _0x100061['push'](_0x100061['shift']());}catch(_0x2d1a90){_0x100061['push'](_0x100061['shift']());}}}(_0x3ad9,0x9f4c8));import{ButtonView as _0x2983d6,IconView as _0x461926}from'ckeditor5/src/ui.js';import{IconClose as _0x5643c8,IconDocument as _0x5d0307,IconFileUpload as _0x32ae90,IconLink as _0x2ff5b5,IconSelection as _0x58535f}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xcc101d}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x245f2b}from'../../../aicore/ui/aispinner.js';function _0x3ad9(){const _0x27947c=['setTemplate','7276350lshwPs','selection','1177710HDmrrc','animationend','1137124YXTjyb','div','disableAnimationOnEnter','5lwGmwn','ck-ai-chat-context-chip_document','_createRemoveButton','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','isLoading','fire','removeContextItemChip','_createLoaderIcon','_initializeProperties','extendTemplate','2617727duHzSl','webkitAnimationEnd','ck-hidden','document','408201hUXtCh','_setupTemplate','ck-ai-chat-context-chip__label','itemType','bindTemplate','4313416ZVwXbt','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip_wide','remove','isVisible','readonly','_isAnimationOnEnterEnabled','829366lnTfxj','removeEventListener','execute','length','_createTemplateAttributes','add','_setupRemoveButtonEvent','ck-ai-chat-context-chip','lastIndexOf','_createLabelElement','set','bind','uiId','ck-ai-chat-context-controls__chip-tooltip','type','addEventListener','ck-ai-chat-context-chip__type-icon','_createTemplateChildren','small','locale','classList','span','27zqzrpL','slice','render','tooltip','content','label','_handleAnimationEndOnce','element','_createIconView'];_0x3ad9=function(){return _0x27947c;};return _0x3ad9();}const kn={'file':_0x32ae90,'document':_0x5d0307,'web-resource':_0x2ff5b5,'text':_0x32ae90,'selection':_0x58535f},xn=_0x261683(0x11e),bn=_0x261683(0x112),wn=_0x261683(0x13f),Tn=_0x261683(0x14e),En=_0x261683(0x127),An=_0x261683(0x124),Cn='n';function _0x5ee8(_0x4d36a6,_0x5a30de){const _0x3ad9f9=_0x3ad9();return _0x5ee8=function(_0x5ee8bb,_0x59bda1){_0x5ee8bb=_0x5ee8bb-0x110;let _0x158a58=_0x3ad9f9[_0x5ee8bb];return _0x158a58;},_0x5ee8(_0x4d36a6,_0x5a30de);}export class AIChatContextItemButtonView extends _0x2983d6{constructor(_0x267a35,_0xc109eb,_0x23222d,_0x2318ad,_0x5731cd=!0x1){const _0x2c8141=_0x261683;super(_0x267a35),this[_0x2c8141(0x116)]=_0x2318ad,this[_0x2c8141(0x146)](_0xc109eb,_0x23222d,_0x5731cd),this[_0x2c8141(0x14d)]();}[_0x261683(0x12f)](){const _0x49d95f=_0x261683;super[_0x49d95f(0x12f)](),this[_0x49d95f(0x116)]&&this[_0x49d95f(0x134)]&&(this[_0x49d95f(0x134)][_0x49d95f(0x12b)][_0x49d95f(0x11c)](_0x49d95f(0x111)),this[_0x49d95f(0x133)](this[_0x49d95f(0x134)],()=>{const _0x3937e1=_0x49d95f;this[_0x3937e1(0x134)]&&this[_0x3937e1(0x134)][_0x3937e1(0x12b)][_0x3937e1(0x113)](_0x3937e1(0x111));}));}[_0x261683(0x13d)](){const _0x280142=_0x261683;this[_0x280142(0x116)]=!0x1,this[_0x280142(0x134)]&&this[_0x280142(0x134)][_0x280142(0x12b)][_0x280142(0x113)](_0x280142(0x111));}[_0x261683(0x146)](_0x5efb9a,_0x79ce17,_0x272b7e){const _0x1342f4=_0x261683;this[_0x1342f4(0x121)](_0x1342f4(0x132),_0x5efb9a[_0x1342f4(0x132)]),this[_0x1342f4(0x121)](_0x1342f4(0x130),!0x0),this[_0x1342f4(0x121)](_0x1342f4(0x14f),_0x5efb9a[_0x1342f4(0x125)]),this[_0x1342f4(0x121)]('id',_0x5efb9a[_0x1342f4(0x123)]),this[_0x1342f4(0x121)](_0x1342f4(0x115),_0x79ce17),this[_0x1342f4(0x121)](_0x1342f4(0x142),_0x272b7e);}[_0x261683(0x14d)](){const _0x5b48a8=_0x261683,_0x47019a=this[_0x5b48a8(0x135)](),_0x28d207=this[_0x5b48a8(0x140)](),_0x3deee7=this[_0x5b48a8(0x150)];this[_0x5b48a8(0x136)]({'tag':_0x5b48a8(0x13c),'attributes':this[_0x5b48a8(0x11b)](_0x3deee7),'children':this[_0x5b48a8(0x128)](_0x47019a,_0x28d207,_0x3deee7)});}[_0x261683(0x11b)](_0x1a4881){const _0x7d376e=_0x261683;return{'class':[xn,_0x1a4881['if'](_0x7d376e(0x14f),wn,_0x480491=>_0x7d376e(0x14b)==_0x480491),_0x1a4881['if'](_0x7d376e(0x14f),bn,_0x2bced4=>_0x7d376e(0x138)==_0x2bced4)],'data-cke-tooltip-text':_0x1a4881['to'](_0x7d376e(0x132),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x261683(0x128)](_0x574a6e,_0x3662f3,_0x30e884){const _0x3893ed=_0x261683,_0x4a2313=this[_0x3893ed(0x120)](_0x30e884),_0x2d8b0f=this[_0x3893ed(0x145)]();return this[_0x3893ed(0x115)]?[_0x574a6e,_0x4a2313]:[_0x574a6e,_0x2d8b0f,_0x4a2313,_0x3662f3];}[_0x261683(0x120)](_0x2b25c9){const _0x4370a5=_0x261683;return{'tag':_0x4370a5(0x12c),'attributes':{'class':Tn},'children':[{'text':_0x2b25c9['to'](_0x4370a5(0x132))}]};}[_0x261683(0x140)](){const _0xa63156=_0x261683,_0x1d754a=new _0x2983d6(this[_0xa63156(0x12a)]);return _0x1d754a[_0xa63156(0x121)]({'label':_0xcc101d(this[_0xa63156(0x12a)],_0xa63156(0x141)),'icon':_0x5643c8}),this[_0xa63156(0x11d)](_0x1d754a),_0x1d754a;}[_0x261683(0x11d)](_0x3485d6){const _0x494e9d=_0x261683;_0x3485d6['on'](_0x494e9d(0x119),()=>{const _0x66ff80=_0x494e9d;this[_0x66ff80(0x143)](_0x66ff80(0x144),this['id']);});}[_0x261683(0x135)](){const _0x3f58cd=_0x261683,_0x5b0d4c=this[_0x3f58cd(0x150)],_0x51a542=new _0x461926();return _0x51a542[_0x3f58cd(0x131)]=kn[this[_0x3f58cd(0x14f)]],_0x51a542[_0x3f58cd(0x147)]({'attributes':{'class':[En,_0x5b0d4c['if'](_0x3f58cd(0x142),_0x3f58cd(0x14a),_0x52318a=>_0x52318a)]}}),_0x51a542;}[_0x261683(0x133)](_0x27142e,_0x1dc36d){const _0x4523b5=_0x261683;if(!_0x27142e)return;const _0xcdfd86=()=>{const _0x39c8f7=_0x5ee8;_0x1dc36d(),_0x27142e[_0x39c8f7(0x118)](_0x39c8f7(0x13a),_0xcdfd86),_0x27142e[_0x39c8f7(0x118)](_0x39c8f7(0x149),_0xcdfd86);};_0x27142e[_0x4523b5(0x126)](_0x4523b5(0x13a),_0xcdfd86),_0x27142e[_0x4523b5(0x126)](_0x4523b5(0x149),_0xcdfd86);}[_0x261683(0x145)](){const _0x5ac27e=_0x261683,_0x2fc1c4=new _0x245f2b(_0x5ac27e(0x129));return _0x2fc1c4[_0x5ac27e(0x122)](_0x5ac27e(0x114))['to'](this,_0x5ac27e(0x142),_0x4b8746=>_0x4b8746),_0x2fc1c4;}}function In(_0x47035b){const _0x496484=_0x261683;if(!_0x47035b)return _0x47035b;if(_0x47035b[_0x496484(0x11a)]<=0x78)return _0x47035b;const _0x305950=_0x47035b[_0x496484(0x12e)](0x0,0x78),_0x27cba2=_0x305950[_0x496484(0x11f)]('\x20');return(_0x27cba2>0x0?_0x305950[_0x496484(0x12e)](0x0,_0x27cba2):_0x305950)+'…';}
23
+ const _0x27544b=_0x18d5;(function(_0x53c21a,_0x559ae6){const _0x408d9=_0x18d5,_0x23347c=_0x53c21a();while(!![]){try{const _0x2febce=-parseInt(_0x408d9(0xd4))/0x1*(parseInt(_0x408d9(0xee))/0x2)+-parseInt(_0x408d9(0xd0))/0x3+-parseInt(_0x408d9(0xe4))/0x4+-parseInt(_0x408d9(0xeb))/0x5+parseInt(_0x408d9(0xf2))/0x6*(parseInt(_0x408d9(0xdf))/0x7)+-parseInt(_0x408d9(0xde))/0x8+-parseInt(_0x408d9(0xe7))/0x9*(-parseInt(_0x408d9(0xe5))/0xa);if(_0x2febce===_0x559ae6)break;else _0x23347c['push'](_0x23347c['shift']());}catch(_0x2e294f){_0x23347c['push'](_0x23347c['shift']());}}}(_0x145e,0x1f82d));import{ButtonView as _0x2f278e,IconView as _0x58f11f}from'ckeditor5/src/ui.js';import{IconClose as _0x32faf0,IconDocument as _0x28aa75,IconFileUpload as _0x9b0179,IconLink as _0x75021a,IconSelection as _0x536432}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5c3b4d}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0xf6c804}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x9b0179,'document':_0x28aa75,'web-resource':_0x75021a,'text':_0x9b0179,'selection':_0x536432},bn=_0x27544b(0xc7),wn=_0x27544b(0xe6),Tn=_0x27544b(0xcd),En=_0x27544b(0xed),An=_0x27544b(0xe0),Cn=_0x27544b(0xce),In='n';export class AIChatContextItemButtonView extends _0x2f278e{constructor(_0x1ff259,_0xaf7767,_0x2ae6e0,_0x544206,_0x544c61=!0x1){const _0x19366a=_0x27544b;super(_0x1ff259),this[_0x19366a(0xc2)]=_0x544206,this[_0x19366a(0xc6)](_0xaf7767,_0x2ae6e0,_0x544c61),this[_0x19366a(0xef)]();}[_0x27544b(0xfa)](){const _0x3dd8b8=_0x27544b;super[_0x3dd8b8(0xfa)](),this[_0x3dd8b8(0xc2)]&&this[_0x3dd8b8(0xdb)]&&(this[_0x3dd8b8(0xdb)][_0x3dd8b8(0xe9)][_0x3dd8b8(0xe1)](_0x3dd8b8(0xd8)),this[_0x3dd8b8(0xf3)](this[_0x3dd8b8(0xdb)],()=>{const _0x280909=_0x3dd8b8;this[_0x280909(0xdb)]&&this[_0x280909(0xdb)][_0x280909(0xe9)][_0x280909(0xf1)](_0x280909(0xd8));}));}[_0x27544b(0xf9)](){const _0x202167=_0x27544b;this[_0x202167(0xc2)]=!0x1,this[_0x202167(0xdb)]&&this[_0x202167(0xdb)][_0x202167(0xe9)][_0x202167(0xf1)](_0x202167(0xd8));}[_0x27544b(0xc6)](_0xcbff48,_0x33d387,_0x2c0ebb){const _0x3b7c70=_0x27544b;this[_0x3b7c70(0xfc)](_0x3b7c70(0xbe),_0xcbff48[_0x3b7c70(0xbe)]),this[_0x3b7c70(0xfc)](_0x3b7c70(0xbf),!0x0),this[_0x3b7c70(0xfc)](_0x3b7c70(0xdd),_0xcbff48[_0x3b7c70(0xcb)]),this[_0x3b7c70(0xfc)]('id',_0xcbff48[_0x3b7c70(0xc8)]),this[_0x3b7c70(0xfc)](_0x3b7c70(0xe3),_0x33d387),this[_0x3b7c70(0xfc)](_0x3b7c70(0xc4),_0x2c0ebb);}[_0x27544b(0xef)](){const _0x4aa39e=_0x27544b,_0x58ecc7=this[_0x4aa39e(0xf8)](),_0x593b53=this[_0x4aa39e(0xc5)](),_0x55c878=this[_0x4aa39e(0xe8)];this[_0x4aa39e(0xf4)]({'tag':_0x4aa39e(0xfd),'attributes':this[_0x4aa39e(0xfb)](_0x55c878),'children':this[_0x4aa39e(0xd5)](_0x58ecc7,_0x593b53,_0x55c878)});}[_0x27544b(0xfb)](_0x4babed){const _0x21f399=_0x27544b;return{'class':[bn,_0x4babed['if'](_0x21f399(0xdd),Tn,_0x3c407d=>_0x21f399(0xfe)==_0x3c407d),_0x4babed['if'](_0x21f399(0xdd),wn,_0x4990a4=>_0x21f399(0xe2)==_0x4990a4)],'data-cke-tooltip-text':_0x4babed['to'](_0x21f399(0xbe),On),'data-cke-tooltip-position':In,'data-cke-tooltip-class':Cn};}[_0x27544b(0xd5)](_0x4e79fe,_0x532f62,_0x36d0d5){const _0x113e21=_0x27544b,_0x3f1cbf=this[_0x113e21(0xc3)](_0x36d0d5),_0x6cacd=this[_0x113e21(0xd7)]();return this[_0x113e21(0xe3)]?[_0x4e79fe,_0x3f1cbf]:[_0x4e79fe,_0x6cacd,_0x3f1cbf,_0x532f62];}[_0x27544b(0xc3)](_0x40a556){const _0x2f2836=_0x27544b;return{'tag':_0x2f2836(0xd3),'attributes':{'class':En},'children':[{'text':_0x40a556['to'](_0x2f2836(0xbe))}]};}[_0x27544b(0xc5)](){const _0x3e60b2=_0x27544b,_0x2a7ed0=new _0x2f278e(this[_0x3e60b2(0xf6)]);return _0x2a7ed0[_0x3e60b2(0xfc)]({'label':_0x5c3b4d(this[_0x3e60b2(0xf6)],_0x3e60b2(0xc9)),'icon':_0x32faf0}),this[_0x3e60b2(0xbd)](_0x2a7ed0),_0x2a7ed0;}[_0x27544b(0xbd)](_0x53418e){const _0x1c18ae=_0x27544b;_0x53418e['on'](_0x1c18ae(0xc0),()=>{const _0x3d9df4=_0x1c18ae;this[_0x3d9df4(0xdc)](_0x3d9df4(0xd1),this['id']);});}[_0x27544b(0xf8)](){const _0x33ea04=_0x27544b,_0x39dc10=this[_0x33ea04(0xe8)],_0x1c34e1=new _0x58f11f();return _0x1c34e1[_0x33ea04(0xca)]=xn[this[_0x33ea04(0xdd)]],_0x1c34e1[_0x33ea04(0xea)]({'attributes':{'class':[An,_0x39dc10['if'](_0x33ea04(0xc4),_0x33ea04(0xd9),_0x131c85=>_0x131c85)]}}),_0x1c34e1;}[_0x27544b(0xf3)](_0x1b27d5,_0x2678b8){const _0x10c604=_0x27544b;if(!_0x1b27d5)return;const _0xd66717=()=>{const _0x4ce82d=_0x18d5;_0x2678b8(),_0x1b27d5[_0x4ce82d(0xec)](_0x4ce82d(0xc1),_0xd66717),_0x1b27d5[_0x4ce82d(0xec)](_0x4ce82d(0xf5),_0xd66717);};_0x1b27d5[_0x10c604(0xf0)](_0x10c604(0xc1),_0xd66717),_0x1b27d5[_0x10c604(0xf0)](_0x10c604(0xf5),_0xd66717);}[_0x27544b(0xd7)](){const _0x221664=_0x27544b,_0x5566f3=new _0xf6c804(_0x221664(0xf7));return _0x5566f3[_0x221664(0xcf)](_0x221664(0xda))['to'](this,_0x221664(0xc4),_0x3af1ff=>_0x3af1ff),_0x5566f3;}}function _0x18d5(_0x5c3ca2,_0x9bc01f){const _0x145e34=_0x145e();return _0x18d5=function(_0x18d592,_0x57b40a){_0x18d592=_0x18d592-0xbd;let _0x3dae7d=_0x145e34[_0x18d592];return _0x3dae7d;},_0x18d5(_0x5c3ca2,_0x9bc01f);}function _0x145e(){const _0x514fcd=['_setupRemoveButtonEvent','label','tooltip','execute','animationend','_isAnimationOnEnterEnabled','_createLabelElement','isLoading','_createRemoveButton','_initializeProperties','ck-ai-chat-context-chip','uiId','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','content','type','slice','ck-ai-chat-context-chip_document','ck-ai-chat-context-controls__chip-tooltip','bind','585774GsCKik','removeContextItemChip','lastIndexOf','span','305XHiFGL','_createTemplateChildren','length','_createLoaderIcon','ck-ai-chat-context-chip_new-chip','ck-hidden','isVisible','element','fire','itemType','189720HwzrlN','77QgxlFw','ck-ai-chat-context-chip__type-icon','add','selection','readonly','275168gejLwb','1871290gmXGeA','ck-ai-chat-context-chip_wide','18SRUJcn','bindTemplate','classList','extendTemplate','565910iLGULD','removeEventListener','ck-ai-chat-context-chip__label','6dPmucB','_setupTemplate','addEventListener','remove','85458AuxqwL','_handleAnimationEndOnce','setTemplate','webkitAnimationEnd','locale','small','_createIconView','disableAnimationOnEnter','render','_createTemplateAttributes','set','div','document'];_0x145e=function(){return _0x514fcd;};return _0x145e();}function On(_0x3ae4c8){const _0x56f64=_0x27544b;if(!_0x3ae4c8)return _0x3ae4c8;if(_0x3ae4c8[_0x56f64(0xd6)]<=0x78)return _0x3ae4c8;const _0x31b36f=_0x3ae4c8[_0x56f64(0xcc)](0x0,0x78),_0x23a636=_0x31b36f[_0x56f64(0xd2)]('\x20');return(_0x23a636>0x0?_0x31b36f[_0x56f64(0xcc)](0x0,_0x23a636):_0x31b36f)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ab8a=_0x3aca;(function(_0x4b8cc6,_0x1908b2){const _0x14da71=_0x3aca,_0x930438=_0x4b8cc6();while(!![]){try{const _0x8e04bd=-parseInt(_0x14da71(0xc4))/0x1+parseInt(_0x14da71(0xff))/0x2*(parseInt(_0x14da71(0xf8))/0x3)+parseInt(_0x14da71(0xe7))/0x4*(-parseInt(_0x14da71(0xde))/0x5)+parseInt(_0x14da71(0xf1))/0x6*(-parseInt(_0x14da71(0x10b))/0x7)+parseInt(_0x14da71(0xe9))/0x8*(-parseInt(_0x14da71(0xc2))/0x9)+-parseInt(_0x14da71(0xe1))/0xa*(-parseInt(_0x14da71(0xe4))/0xb)+parseInt(_0x14da71(0xf4))/0xc;if(_0x8e04bd===_0x1908b2)break;else _0x930438['push'](_0x930438['shift']());}catch(_0x42c0b4){_0x930438['push'](_0x930438['shift']());}}}(_0x5b24,0x56847));import{FocusTracker as _0x5667c0,KeystrokeHandler as _0x4251d9}from'ckeditor5/src/utils.js';import{ButtonView as _0x33f9f7,FocusCycler as _0x29a261,LabeledFieldView as _0x53b9ca,View as _0x4c392a,FormHeaderView as _0x2c5b4d,createLabeledInputText as _0x547b90,submitHandler as _0x210f00}from'ckeditor5/src/ui.js';import{IconCheck as _0x3d9671,IconPreviousArrow as _0x37a4ba}from'@ckeditor/ckeditor5-icons';function _0x5b24(){const _0x27e610=['focusCycler','backButton','_isValidUrl','confirmButton','urlInputField','focusTracker','esc','children','fieldView','keystrokes','createCollection','element','render','_createUrlInputField','AI_CHAT_CONTEXT_URL_PLACEHOLDER','listenTo','isEnabled','_createConfirmButton','set','ck-ai-chat-context-controls__url-input-section','_createBackButton','value','_updateConfirmButtonState','22180lfDBvV','fire','trim','180dRIZDe','submit','ck-ai-chat-context-controls__url-form','57365xjubDR','submitUrl','setError','572OsKxtw','AI_CHAT_CONTEXT_URL_LABEL','488LAeHrA','AI_CHAT_CONTEXT_URL_ADD_URL','_setupEventHandlers','ck-button-icon','div','locale','_setupTemplate','stop','14484BgYLhL','destroy','getValue','23852448QcLalF','shift+tab','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','303594gehtKb','form','_setupKeystrokes','errorText','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','input','_focusables','2cYslBA','focus','clear','cancel','tab','execute','setTemplate','clearError','AI_CHAT_CONTEXT_URL_INVALID_ERROR','ck-button-icon\x20ck-button-back','refreshBalloon','forEach','357ucDOSJ','_handleSubmit','76761STUjVH','ck-labeled-field-view_empty','550666RWsvbo','add','length'];_0x5b24=function(){return _0x27e610;};return _0x5b24();}function _0x3aca(_0x5e8a4a,_0x911e05){const _0x5b2472=_0x5b24();return _0x3aca=function(_0x3aca9f,_0x5ada8d){_0x3aca9f=_0x3aca9f-0xc2;let _0x331aec=_0x5b2472[_0x3aca9f];return _0x331aec;},_0x3aca(_0x5e8a4a,_0x911e05);}import{getTranslation as _0x185da1}from'../../../aicore/utils/common-translations.js';const eh=_0x2ab8a(0xe3),hh=_0x2ab8a(0xda);export class AIChatContextPanelUrlInputView extends _0x4c392a{[_0x2ab8a(0xcc)];[_0x2ab8a(0xd0)];[_0x2ab8a(0xfe)];[_0x2ab8a(0xc7)];[_0x2ab8a(0xcb)];[_0x2ab8a(0xc8)];[_0x2ab8a(0xca)];constructor(_0x2df7bb){const _0xe8da0f=_0x2ab8a;super(_0x2df7bb),this[_0xe8da0f(0xcc)]=new _0x5667c0(),this[_0xe8da0f(0xd0)]=new _0x4251d9(),this[_0xe8da0f(0xc8)]=this[_0xe8da0f(0xdb)](),this[_0xe8da0f(0xcb)]=this[_0xe8da0f(0xd4)](),this[_0xe8da0f(0xca)]=this[_0xe8da0f(0xd8)](),this[_0xe8da0f(0xfe)]=this[_0xe8da0f(0xd1)]([this[_0xe8da0f(0xc8)],this[_0xe8da0f(0xcb)],this[_0xe8da0f(0xca)]]),this[_0xe8da0f(0xc7)]=new _0x29a261({'focusables':this[_0xe8da0f(0xfe)],'focusTracker':this[_0xe8da0f(0xcc)],'keystrokeHandler':this[_0xe8da0f(0xd0)],'actions':{'focusPrevious':_0xe8da0f(0xf5),'focusNext':_0xe8da0f(0x103)}}),this[_0xe8da0f(0xef)](),this[_0xe8da0f(0xeb)](),this[_0xe8da0f(0xfa)]();}[_0x2ab8a(0xd3)](){const _0x5c3c85=_0x2ab8a;super[_0x5c3c85(0xd3)](),this[_0x5c3c85(0xfe)][_0x5c3c85(0x10a)](_0x101446=>{const _0x4a0f3c=_0x5c3c85;this[_0x4a0f3c(0xcc)][_0x4a0f3c(0xc5)](_0x101446[_0x4a0f3c(0xd2)]),this[_0x4a0f3c(0xd0)][_0x4a0f3c(0xd6)](_0x101446[_0x4a0f3c(0xd2)]);}),_0x210f00({'view':this}),this[_0x5c3c85(0x100)]();}[_0x2ab8a(0xf2)](){const _0x3c4379=_0x2ab8a;super[_0x3c4379(0xf2)](),this[_0x3c4379(0xcc)][_0x3c4379(0xf2)](),this[_0x3c4379(0xd0)][_0x3c4379(0xf2)]();}[_0x2ab8a(0x100)](){const _0x58965a=_0x2ab8a;this[_0x58965a(0xcb)][_0x58965a(0x100)]();}[_0x2ab8a(0xf3)](){const _0x121687=_0x2ab8a;return this[_0x121687(0xcb)][_0x121687(0xcf)][_0x121687(0xd2)]?.[_0x121687(0xdc)]?.[_0x121687(0xe0)]()||'';}[_0x2ab8a(0x101)](){const _0x55ff88=_0x2ab8a;this[_0x55ff88(0xcb)][_0x55ff88(0xcf)][_0x55ff88(0xd2)][_0x55ff88(0xdc)]='',this[_0x55ff88(0xcb)][_0x55ff88(0xfb)]=null,this[_0x55ff88(0xca)][_0x55ff88(0xd7)]=!0x1;}[_0x2ab8a(0xe6)](_0x4a1b96){const _0x5ae07c=_0x2ab8a;this[_0x5ae07c(0xcb)][_0x5ae07c(0xfb)]=_0x4a1b96,this[_0x5ae07c(0xdd)](),this[_0x5ae07c(0xdf)](_0x5ae07c(0x109));}[_0x2ab8a(0x106)](){const _0x18d8d8=_0x2ab8a;this[_0x18d8d8(0xcb)][_0x18d8d8(0xfb)]=null,this[_0x18d8d8(0xdd)]();}[_0x2ab8a(0xdb)](){const _0x286902=_0x2ab8a,_0x4a2097=new _0x33f9f7(this[_0x286902(0xee)]);return _0x4a2097[_0x286902(0xd9)]({'icon':_0x37a4ba,'tooltip':_0x185da1(this[_0x286902(0xee)],_0x286902(0xf6)),'tooltipPosition':'n','class':_0x286902(0x108)}),_0x4a2097;}[_0x2ab8a(0xd4)](){const _0x2eb282=_0x2ab8a,_0x3e78ac=new _0x53b9ca(this[_0x2eb282(0xee)],_0x547b90);return _0x3e78ac[_0x2eb282(0xd9)]({'label':_0x185da1(this[_0x2eb282(0xee)],_0x2eb282(0xe8)),'class':_0x2eb282(0xc3)}),_0x3e78ac[_0x2eb282(0xcf)][_0x2eb282(0xd9)]({'placeholder':_0x185da1(this[_0x2eb282(0xee)],_0x2eb282(0xd5))}),_0x3e78ac;}[_0x2ab8a(0xd8)](){const _0xf63cd1=_0x2ab8a,_0x24160b=new _0x33f9f7(this[_0xf63cd1(0xee)]);return _0x24160b[_0xf63cd1(0xd9)]({'icon':_0x3d9671,'tooltip':_0x185da1(this[_0xf63cd1(0xee)],_0xf63cd1(0xea)),'tooltipPosition':'n','class':_0xf63cd1(0xec),'type':_0xf63cd1(0xe2),'isEnabled':!0x1}),_0x24160b;}[_0x2ab8a(0xef)](){const _0x34f69f=_0x2ab8a,_0x279a05=new _0x2c5b4d(this[_0x34f69f(0xee)],{'label':_0x185da1(this[_0x34f69f(0xee)],_0x34f69f(0xea)),'class':_0x34f69f(0xfc)});_0x279a05[_0x34f69f(0xce)][_0x34f69f(0xc5)](this[_0x34f69f(0xc8)],0x0),this[_0x34f69f(0x105)]({'tag':_0x34f69f(0xf9),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x279a05,{'tag':_0x34f69f(0xed),'attributes':{'class':hh},'children':[this[_0x34f69f(0xcb)],this[_0x34f69f(0xca)]]}]});}[_0x2ab8a(0xeb)](){const _0x2caee7=_0x2ab8a;this[_0x2caee7(0xc8)]['on'](_0x2caee7(0x104),()=>{const _0x4030ea=_0x2caee7;this[_0x4030ea(0x101)](),this[_0x4030ea(0xdf)](_0x4030ea(0x102));}),this[_0x2caee7(0xcb)][_0x2caee7(0xcf)]['on'](_0x2caee7(0xfd),()=>{const _0x16d0a3=_0x2caee7;this[_0x16d0a3(0x106)](),this[_0x16d0a3(0xdd)](),this[_0x16d0a3(0xdf)](_0x16d0a3(0x109));}),this['on'](_0x2caee7(0xe2),_0x1799c8=>{const _0x346123=_0x2caee7;_0x1799c8[_0x346123(0xf0)](),this[_0x346123(0x10c)]();});}[_0x2ab8a(0xfa)](){const _0x4bcaec=_0x2ab8a;this[_0x4bcaec(0xd0)][_0x4bcaec(0xd9)](_0x4bcaec(0xcd),(_0x40d200,_0x51c3c5)=>{const _0x43f6df=_0x4bcaec;this[_0x43f6df(0x101)](),this[_0x43f6df(0xdf)](_0x43f6df(0x102)),_0x51c3c5();});}[_0x2ab8a(0x10c)](){const _0x42dcf6=_0x2ab8a,_0xd0941c=this[_0x42dcf6(0xf3)]()[_0x42dcf6(0xe0)]();_0xd0941c?this[_0x42dcf6(0xc9)](_0xd0941c)?(this[_0x42dcf6(0x106)](),this[_0x42dcf6(0xdf)](_0x42dcf6(0xe5),_0xd0941c)):this[_0x42dcf6(0xe6)](_0x185da1(this[_0x42dcf6(0xee)],_0x42dcf6(0x107))):this[_0x42dcf6(0xe6)](_0x185da1(this[_0x42dcf6(0xee)],_0x42dcf6(0xf7)));}[_0x2ab8a(0xdd)](){const _0x437a2e=_0x2ab8a,_0x361fd5=this[_0x437a2e(0xf3)]()[_0x437a2e(0xe0)](),_0x1bba4b=!!this[_0x437a2e(0xcb)][_0x437a2e(0xfb)];this[_0x437a2e(0xca)][_0x437a2e(0xd7)]=_0x361fd5[_0x437a2e(0xc6)]>0x0&&!_0x1bba4b;}[_0x2ab8a(0xc9)](_0x1000f7){try{return!!new URL(_0x1000f7);}catch{return!0x1;}}}
23
+ const _0xe54e6f=_0x578e;function _0x578e(_0x8242d4,_0x8f1d7c){const _0x30545a=_0x3054();return _0x578e=function(_0x578e04,_0x1c5d46){_0x578e04=_0x578e04-0x141;let _0x4b5f04=_0x30545a[_0x578e04];return _0x4b5f04;},_0x578e(_0x8242d4,_0x8f1d7c);}(function(_0x51c2b7,_0x80cca6){const _0x386c00=_0x578e,_0x57dfaf=_0x51c2b7();while(!![]){try{const _0x571760=-parseInt(_0x386c00(0x175))/0x1+-parseInt(_0x386c00(0x187))/0x2*(parseInt(_0x386c00(0x179))/0x3)+parseInt(_0x386c00(0x17f))/0x4*(-parseInt(_0x386c00(0x182))/0x5)+parseInt(_0x386c00(0x162))/0x6+parseInt(_0x386c00(0x166))/0x7*(parseInt(_0x386c00(0x155))/0x8)+-parseInt(_0x386c00(0x169))/0x9*(-parseInt(_0x386c00(0x14e))/0xa)+parseInt(_0x386c00(0x159))/0xb;if(_0x571760===_0x80cca6)break;else _0x57dfaf['push'](_0x57dfaf['shift']());}catch(_0x5e096f){_0x57dfaf['push'](_0x57dfaf['shift']());}}}(_0x3054,0x46570));import{FocusTracker as _0x451ccd,KeystrokeHandler as _0x3b649d}from'ckeditor5/src/utils.js';import{ButtonView as _0x24112e,FocusCycler as _0x43c0a9,LabeledFieldView as _0x1a285e,View as _0x248eb1,FormHeaderView as _0xec18a3,createLabeledInputText as _0x540d29,submitHandler as _0x4710c5}from'ckeditor5/src/ui.js';import{IconCheck as _0xe37954,IconPreviousArrow as _0x175eba}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2e93fc}from'../../../aicore/utils/common-translations.js';const eh=_0xe54e6f(0x184),hh=_0xe54e6f(0x17b);export class AIChatContextPanelUrlInputView extends _0x248eb1{[_0xe54e6f(0x177)];[_0xe54e6f(0x18a)];[_0xe54e6f(0x147)];[_0xe54e6f(0x167)];[_0xe54e6f(0x173)];[_0xe54e6f(0x176)];[_0xe54e6f(0x160)];constructor(_0xcbc034){const _0x4a83c3=_0xe54e6f;super(_0xcbc034),this[_0x4a83c3(0x177)]=new _0x451ccd(),this[_0x4a83c3(0x18a)]=new _0x3b649d(),this[_0x4a83c3(0x176)]=this[_0x4a83c3(0x16c)](),this[_0x4a83c3(0x173)]=this[_0x4a83c3(0x172)](),this[_0x4a83c3(0x160)]=this[_0x4a83c3(0x16b)](),this[_0x4a83c3(0x147)]=this[_0x4a83c3(0x158)]([this[_0x4a83c3(0x176)],this[_0x4a83c3(0x173)],this[_0x4a83c3(0x160)]]),this[_0x4a83c3(0x167)]=new _0x43c0a9({'focusables':this[_0x4a83c3(0x147)],'focusTracker':this[_0x4a83c3(0x177)],'keystrokeHandler':this[_0x4a83c3(0x18a)],'actions':{'focusPrevious':_0x4a83c3(0x188),'focusNext':_0x4a83c3(0x170)}}),this[_0x4a83c3(0x151)](),this[_0x4a83c3(0x174)](),this[_0x4a83c3(0x15b)]();}[_0xe54e6f(0x17c)](){const _0x4541f4=_0xe54e6f;super[_0x4541f4(0x17c)](),this[_0x4541f4(0x147)][_0x4541f4(0x150)](_0x329e74=>{const _0x70cdc=_0x4541f4;this[_0x70cdc(0x177)][_0x70cdc(0x15d)](_0x329e74[_0x70cdc(0x180)]),this[_0x70cdc(0x18a)][_0x70cdc(0x16d)](_0x329e74[_0x70cdc(0x180)]);}),_0x4710c5({'view':this}),this[_0x4541f4(0x17e)]();}[_0xe54e6f(0x17a)](){const _0x437c93=_0xe54e6f;super[_0x437c93(0x17a)](),this[_0x437c93(0x177)][_0x437c93(0x17a)](),this[_0x437c93(0x18a)][_0x437c93(0x17a)]();}[_0xe54e6f(0x17e)](){const _0x3f5d94=_0xe54e6f;this[_0x3f5d94(0x173)][_0x3f5d94(0x17e)]();}[_0xe54e6f(0x154)](){const _0x314b82=_0xe54e6f;return this[_0x314b82(0x173)][_0x314b82(0x163)][_0x314b82(0x180)]?.[_0x314b82(0x14d)]?.[_0x314b82(0x153)]()||'';}[_0xe54e6f(0x161)](){const _0x4253c7=_0xe54e6f;this[_0x4253c7(0x173)][_0x4253c7(0x163)][_0x4253c7(0x180)][_0x4253c7(0x14d)]='',this[_0x4253c7(0x173)][_0x4253c7(0x15e)]=null,this[_0x4253c7(0x160)][_0x4253c7(0x149)]=!0x1;}[_0xe54e6f(0x146)](_0x1a676e){const _0x35317d=_0xe54e6f;this[_0x35317d(0x173)][_0x35317d(0x15e)]=_0x1a676e,this[_0x35317d(0x16e)](),this[_0x35317d(0x186)](_0x35317d(0x156));}[_0xe54e6f(0x14a)](){const _0xb706e6=_0xe54e6f;this[_0xb706e6(0x173)][_0xb706e6(0x15e)]=null,this[_0xb706e6(0x16e)]();}[_0xe54e6f(0x16c)](){const _0x10b3fa=_0xe54e6f,_0xc90b2a=new _0x24112e(this[_0x10b3fa(0x145)]);return _0xc90b2a[_0x10b3fa(0x141)]({'icon':_0x175eba,'tooltip':_0x2e93fc(this[_0x10b3fa(0x145)],_0x10b3fa(0x15a)),'tooltipPosition':'n','class':_0x10b3fa(0x144)}),_0xc90b2a;}[_0xe54e6f(0x172)](){const _0x44c2f8=_0xe54e6f,_0x3acf37=new _0x1a285e(this[_0x44c2f8(0x145)],_0x540d29);return _0x3acf37[_0x44c2f8(0x141)]({'label':_0x2e93fc(this[_0x44c2f8(0x145)],_0x44c2f8(0x17d)),'class':_0x44c2f8(0x181)}),_0x3acf37[_0x44c2f8(0x163)][_0x44c2f8(0x141)]({'placeholder':_0x2e93fc(this[_0x44c2f8(0x145)],_0x44c2f8(0x143))}),_0x3acf37;}[_0xe54e6f(0x16b)](){const _0x412243=_0xe54e6f,_0x3cbe34=new _0x24112e(this[_0x412243(0x145)]);return _0x3cbe34[_0x412243(0x141)]({'icon':_0xe37954,'tooltip':_0x2e93fc(this[_0x412243(0x145)],_0x412243(0x165)),'tooltipPosition':'n','class':_0x412243(0x15f),'type':_0x412243(0x152),'isEnabled':!0x1}),_0x3cbe34;}[_0xe54e6f(0x151)](){const _0x4adfc8=_0xe54e6f,_0x2aa536=new _0xec18a3(this[_0x4adfc8(0x145)],{'label':_0x2e93fc(this[_0x4adfc8(0x145)],_0x4adfc8(0x165)),'class':_0x4adfc8(0x157)});_0x2aa536[_0x4adfc8(0x16a)][_0x4adfc8(0x15d)](this[_0x4adfc8(0x176)],0x0),this[_0x4adfc8(0x148)]({'tag':_0x4adfc8(0x14b),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x2aa536,{'tag':_0x4adfc8(0x16f),'attributes':{'class':hh},'children':[this[_0x4adfc8(0x173)],this[_0x4adfc8(0x160)]]}]});}[_0xe54e6f(0x174)](){const _0x302a3e=_0xe54e6f;this[_0x302a3e(0x176)]['on'](_0x302a3e(0x14c),()=>{const _0x118fcc=_0x302a3e;this[_0x118fcc(0x161)](),this[_0x118fcc(0x186)](_0x118fcc(0x185));}),this[_0x302a3e(0x173)][_0x302a3e(0x163)]['on'](_0x302a3e(0x189),()=>{const _0x26be93=_0x302a3e;this[_0x26be93(0x14a)](),this[_0x26be93(0x16e)](),this[_0x26be93(0x186)](_0x26be93(0x156));}),this['on'](_0x302a3e(0x152),_0x3533dc=>{const _0x2b686e=_0x302a3e;_0x3533dc[_0x2b686e(0x168)](),this[_0x2b686e(0x183)]();});}[_0xe54e6f(0x15b)](){const _0x3327c4=_0xe54e6f;this[_0x3327c4(0x18a)][_0x3327c4(0x141)](_0x3327c4(0x164),(_0x1d336c,_0x47294e)=>{const _0x506f6d=_0x3327c4;this[_0x506f6d(0x161)](),this[_0x506f6d(0x186)](_0x506f6d(0x185)),_0x47294e();});}[_0xe54e6f(0x183)](){const _0x26243e=_0xe54e6f,_0x5269c9=this[_0x26243e(0x154)]()[_0x26243e(0x153)]();_0x5269c9?this[_0x26243e(0x178)](_0x5269c9)?(this[_0x26243e(0x14a)](),this[_0x26243e(0x186)](_0x26243e(0x142),_0x5269c9)):this[_0x26243e(0x146)](_0x2e93fc(this[_0x26243e(0x145)],_0x26243e(0x14f))):this[_0x26243e(0x146)](_0x2e93fc(this[_0x26243e(0x145)],_0x26243e(0x15c)));}[_0xe54e6f(0x16e)](){const _0x5e5082=_0xe54e6f,_0x41d381=this[_0x5e5082(0x154)]()[_0x5e5082(0x153)](),_0x55cf4e=!!this[_0x5e5082(0x173)][_0x5e5082(0x15e)];this[_0x5e5082(0x160)][_0x5e5082(0x149)]=_0x41d381[_0x5e5082(0x171)]>0x0&&!_0x55cf4e;}[_0xe54e6f(0x178)](_0x15f93c){try{return!!new URL(_0x15f93c);}catch{return!0x1;}}}function _0x3054(){const _0x18ce92=['focusCycler','stop','9WJRWxk','children','_createConfirmButton','_createBackButton','listenTo','_updateConfirmButtonState','div','tab','length','_createUrlInputField','urlInputField','_setupEventHandlers','290201qgdxVy','backButton','focusTracker','_isValidUrl','3LMHxUL','destroy','ck-ai-chat-context-controls__url-input-section','render','AI_CHAT_CONTEXT_URL_LABEL','focus','228308PENBGw','element','ck-labeled-field-view_empty','40VSfliF','_handleSubmit','ck-ai-chat-context-controls__url-form','cancel','fire','492034ENMTlO','shift+tab','input','keystrokes','set','submitUrl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','ck-button-icon\x20ck-button-back','locale','setError','_focusables','setTemplate','isEnabled','clearError','form','execute','value','2445470NemSsG','AI_CHAT_CONTEXT_URL_INVALID_ERROR','forEach','_setupTemplate','submit','trim','getValue','11848jKfohP','refreshBalloon','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','createCollection','2540681bjJBct','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_setupKeystrokes','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','add','errorText','ck-button-icon','confirmButton','clear','1642494KozFuX','fieldView','esc','AI_CHAT_CONTEXT_URL_ADD_URL','2513KaZbEW'];_0x3054=function(){return _0x18ce92;};return _0x3054();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ca822=_0x22fc;(function(_0xcc8b7e,_0x4eb5f2){const _0x3de790=_0x22fc,_0x5051cf=_0xcc8b7e();while(!![]){try{const _0x20b21c=parseInt(_0x3de790(0x81))/0x1*(-parseInt(_0x3de790(0x86))/0x2)+-parseInt(_0x3de790(0xff))/0x3+-parseInt(_0x3de790(0xb7))/0x4+-parseInt(_0x3de790(0x92))/0x5+parseInt(_0x3de790(0xa8))/0x6+parseInt(_0x3de790(0xc4))/0x7+-parseInt(_0x3de790(0xf0))/0x8*(-parseInt(_0x3de790(0xdb))/0x9);if(_0x20b21c===_0x4eb5f2)break;else _0x5051cf['push'](_0x5051cf['shift']());}catch(_0x561444){_0x5051cf['push'](_0x5051cf['shift']());}}}(_0x1d5f,0x89782));import{BalloonPanelView as _0x401041,ButtonView as _0x273dfd,clickOutsideHandler as _0x251fd1,FileDialogButtonView as _0x13e297,IconView as _0xd14263,View as _0x6a0a2c}from'ckeditor5/src/ui.js';function _0x22fc(_0x146fd8,_0x536704){const _0x1d5f13=_0x1d5f();return _0x22fc=function(_0x22fc63,_0x18387c){_0x22fc63=_0x22fc63-0x80;let _0x3e2e19=_0x1d5f13[_0x22fc63];return _0x3e2e19;},_0x22fc(_0x146fd8,_0x536704);}import{IconBrowseFiles as _0x1c4317,IconDocument as _0xc8a123,IconDocumentOutline as _0x5eb0fb,IconDropdownArrow as _0x22a845,IconLink as _0xa0f7df,IconPaperClip as _0x55d586}from'@ckeditor/ckeditor5-icons';function _0x1d5f(){const _0x738113=['isReadOnly','_conversationContextsChips','populateSourceResourceBalloon','hide','_handleUrlSubmit','1ubIZOL','closest','_toggleAddContextBalloon','showSourceResourcesBalloon','_createAddContextBalloonPanelView','1330258EMOcFF','enabled','menuitem','clearConversationContextItems','updateResourceState','setContainerElement','_setupUrlBalloonClickOutsideHandler','show','_handleAddContextButtonClick','isVisible','reorganizeChips','refreshBalloon','4772265Umqgkn','createCollection','AI_CHAT_CONTEXT_FILE_LABEL','label','arrowView','addResourceToContext','buttonView','div','ck-ai-chat-context-controls__add-context-balloon-panel','source','current','render','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','cancel','isAnyResourceBalloonVisible','children','northArrowSouthEast','addContextItem','_addContextBalloonConfig','_createResourcesBalloonView','addUrlToContext','3538980juzDgb','execute','setConversationContext','ck-ai-chat-controls_context_show-more-button','_createAddContextButtonView','files','_urlBalloonPanelView','_getLimiterElement','balloonView','removeContextItemChip','conversation','find','setContextItemLoading','destroy','_resourcesBalloonView','723224KnEyPI','southArrowNorthWest','icon','_setupTemplate','northArrowSouth','bind','southArrowNorthEast','_currentContextsChips','isHidden','_overflowManager','setTemplate','type','_setBalloonPanelContent','7655606gWDBUI','showUrlBalloonPanel','isEnabled','remove','hideUrlBalloonPanel','ck-ai-chat-context-controls__url-balloon-panel','set','hideAddContextBalloonPanel','_setupAllBalloonClickOutsideHandlers','AI_CHAT_CONTEXT_URL_LABEL','urls','clearCurrentContextItems','_createArrowView','__arrow','isOn','bodyCollection','focus','loadSourceResources','pin','ck-ai-chat-context-controls__balloon-button','defaultPositions','ck-ai-chat-context-controls','_urlInputView','5897403djiGXz','_bindEventHandlers','tooltip','ck-ai-chat','done','isLoading','_createBalloonButton','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-controls-button','southArrowNorth','_createContextButton','ck-ai-chat-context-chips-wrapper-balloon','_removeContextFromCollection','extendTemplate','add','addFileToContext','setAddContextOptions','northArrowSouthWest','document','element','16dJWOWc','showAddContextBalloonPanel','_showSourceResourcesBalloon','sources','content','body','AI_CHAT_CONTEXT_ADD_CONTEXT','_addContextToCollection','_createBaseBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','closeSourceResourceBalloon','fire','clear','addContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','1891680NvAcdS','submitUrl','_createUrlBalloonPanelView','overflowChips','_addContextBalloonPanelView','_setAddContextButtonEnabled','_addUrlContent','locale','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','removeContextItem'];_0x1d5f=function(){return _0x738113;};return _0x1d5f();}import{AIChatContextItemButtonView as _0x1c7391}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x571f35}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x55dbab}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x22cc11}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x238d7b}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2ca822(0x9e),_0x2ca822(0xeb),_0x2ca822(0xa7),_0x2ca822(0x97),_0x2ca822(0x109),_0x2ca822(0xd5)];const Bo=_0x2ca822(0xd9),bo=_0x2ca822(0xe3),To=_0x2ca822(0x9a),Ao=_0x2ca822(0x9f),ko=_0x2ca822(0xc9),Eo=_0x2ca822(0xd7),vo=_0x2ca822(0xf9),go=_0x2ca822(0xe4),Vo=_0x2ca822(0xe7),fo=_0x2ca822(0xab),Io=_0x2ca822(0xe2),Po=_0x2ca822(0xde),Ro=[_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xed)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xbb)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xa3)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xb8)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xe5)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xbd)]];export class AIChatContextPanelView extends _0x6a0a2c{[_0x2ca822(0xfd)];[_0x2ca822(0xbe)]=this[_0x2ca822(0x93)]();[_0x2ca822(0x10b)]=this[_0x2ca822(0x93)]();[_0x2ca822(0xc0)];[_0x2ca822(0x103)];[_0x2ca822(0xae)];[_0x2ca822(0xda)];[_0x2ca822(0xb6)];[_0x2ca822(0xa5)];[_0x2ca822(0xd3)];constructor(_0x23f24b,_0x3271c1){const _0x5eafe7=_0x2ca822;super(_0x23f24b),this[_0x5eafe7(0xd3)]=_0x3271c1,this[_0x5eafe7(0xbe)]=this[_0x5eafe7(0x93)](),this[_0x5eafe7(0x10b)]=this[_0x5eafe7(0x93)](),this[_0x5eafe7(0xfd)]=this[_0x5eafe7(0xac)](_0x23f24b),this[_0x5eafe7(0x103)]=this[_0x5eafe7(0x85)](_0x23f24b),this[_0x5eafe7(0xae)]=this[_0x5eafe7(0x101)](_0x23f24b),this[_0x5eafe7(0xb6)]=this[_0x5eafe7(0xa6)](_0x23f24b,_0x3271c1);const _0x4ffb41={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':go}};this[_0x5eafe7(0xc0)]=new _0x55dbab(_0x23f24b,this[_0x5eafe7(0xbe)],_0x4ffb41,this[_0x5eafe7(0xd3)],this),this[_0x5eafe7(0xa5)]={'buttonView':this[_0x5eafe7(0xfd)],'balloonView':this[_0x5eafe7(0x103)],'hideMethod':this[_0x5eafe7(0xcb)][_0x5eafe7(0xbc)](this),'showMethod':this[_0x5eafe7(0xf1)][_0x5eafe7(0xbc)](this)},this[_0x5eafe7(0xba)](),this[_0x5eafe7(0xdc)]();}[_0x2ca822(0x9d)](){const _0x587ba9=_0x2ca822;super[_0x587ba9(0x9d)](),this[_0x587ba9(0xcc)](),this[_0x587ba9(0xc0)][_0x587ba9(0x8b)](this[_0x587ba9(0xef)]),this[_0x587ba9(0xc0)][_0x587ba9(0x90)]();}[_0x2ca822(0xb5)](){const _0x2e4330=_0x2ca822;super[_0x2e4330(0xb5)](),this[_0x2e4330(0xc0)][_0x2e4330(0xb5)](),this[_0x2e4330(0xb6)][_0x2e4330(0xb5)]();}[_0x2ca822(0xa4)](_0x13b33a,_0x2b2391){const _0x5ccd13=_0x2ca822,_0x57c430=this[_0x5ccd13(0xe6)](_0x13b33a,_0x5ccd13(0x9c),!0x0,_0x2b2391);this[_0x5ccd13(0xf7)](_0x57c430,this[_0x5ccd13(0xbe)]),this[_0x5ccd13(0xc0)][_0x5ccd13(0x90)]();}[_0x2ca822(0x109)](_0x1ea3f5){const _0x952cee=_0x2ca822;this[_0x952cee(0xe8)](_0x1ea3f5,this[_0x952cee(0xbe)]),this[_0x952cee(0xe8)](_0x1ea3f5,this[_0x952cee(0xc0)][_0x952cee(0x102)]),this[_0x952cee(0xc0)][_0x952cee(0x90)]();}[_0x2ca822(0xb4)](_0x3e30e0,_0x413509){const _0x1f9798=_0x2ca822;let _0x178571=this[_0x1f9798(0xbe)][_0x1f9798(0xb3)](_0xcf2192=>_0xcf2192['id']===_0x3e30e0);_0x178571||(_0x178571=this[_0x1f9798(0xc0)][_0x1f9798(0x102)][_0x1f9798(0xb3)](_0x4ad5cc=>_0x4ad5cc['id']===_0x3e30e0)),_0x178571&&(_0x178571[_0x1f9798(0xe0)]=_0x413509);}[_0x2ca822(0xaa)](_0x49f786){const _0x2404ce=_0x2ca822;this[_0x2404ce(0x10b)][_0x2404ce(0xfc)]();for(const _0x22ff5c of _0x49f786){const _0x1d229e=this[_0x2404ce(0xe6)](_0x22ff5c,_0x2404ce(0xb2),!0x1,!0x1);this[_0x2404ce(0xf7)](_0x1d229e,this[_0x2404ce(0x10b)]);}}[_0x2ca822(0xcf)](){const _0x2cd87c=_0x2ca822;this[_0x2cd87c(0xbe)][_0x2cd87c(0xfc)](),this[_0x2cd87c(0xc0)][_0x2cd87c(0xfc)]();}[_0x2ca822(0x89)](){const _0x43c8fe=_0x2ca822;this[_0x43c8fe(0x10b)][_0x43c8fe(0xfc)]();}[_0x2ca822(0x8a)](_0x129710,_0x423fe5,_0x357227){const _0x23b443=_0x2ca822;this[_0x23b443(0xb6)][_0x23b443(0x8a)](_0x129710,_0x423fe5,_0x357227);}[_0x2ca822(0xcb)](){const _0x1bd0be=_0x2ca822;this[_0x1bd0be(0x83)](!0x1);}[_0x2ca822(0xf1)](){const _0xda8dc6=_0x2ca822;this[_0xda8dc6(0x83)](!0x0);}[_0x2ca822(0xc8)](){const _0xb0ce4=_0x2ca822;this[_0xb0ce4(0xae)][_0xb0ce4(0x10d)](),this[_0xb0ce4(0xfd)][_0xb0ce4(0xd2)]=!0x1,this[_0xb0ce4(0xda)]&&this[_0xb0ce4(0xda)][_0xb0ce4(0xfc)]();}[_0x2ca822(0xc5)](){const _0x238319=_0x2ca822;this[_0x238319(0xae)][_0x238319(0x8d)](),this[_0x238319(0xfd)][_0x238319(0xd2)]=!0x0;}[_0x2ca822(0xf2)](_0xe108dd){const _0x279859=_0x2ca822;this[_0x279859(0xb6)][_0x279859(0x84)](_0xe108dd),this[_0x279859(0xfd)][_0x279859(0xd2)]=!0x0;}[_0x2ca822(0x10c)](_0x1c3d1f,_0x26ad3a,_0x598892,_0x4ca988){const _0x486ef8=_0x2ca822;this[_0x486ef8(0xb6)][_0x486ef8(0x10c)](_0x1c3d1f,_0x598892,_0x4ca988);}[_0x2ca822(0xfa)](_0x5aef9e){const _0x51c477=_0x2ca822;this[_0x51c477(0xb6)][_0x51c477(0xfa)](_0x5aef9e),this[_0x51c477(0xfd)][_0x51c477(0xd2)]=!0x1;}[_0x2ca822(0xec)](_0x5c8b72){const _0x33911a=_0x2ca822;this[_0x33911a(0xc3)](this[_0x33911a(0x103)],this[_0x33911a(0x106)],_0x5c8b72),this[_0x33911a(0x104)](_0x5c8b72);}[_0x2ca822(0x104)](_0x52f9b8){const _0x2fa272=_0x2ca822,_0x2eb34c=!_0x52f9b8[_0x2fa272(0xee)][_0x2fa272(0xbf)]&&_0x52f9b8[_0x2fa272(0xee)][_0x2fa272(0x87)],_0x5585dd=_0x52f9b8[_0x2fa272(0xce)][_0x2fa272(0x87)],_0x170e78=_0x52f9b8[_0x2fa272(0xad)][_0x2fa272(0x87)];this[_0x2fa272(0xfd)][_0x2fa272(0xc6)]=_0x2eb34c||_0x5585dd||_0x170e78;}[_0x2ca822(0xba)](){const _0x3e1fa8=_0x2ca822;this[_0x3e1fa8(0xc1)]({'tag':_0x3e1fa8(0x99),'attributes':{'class':[Bo,_0x3e1fa8(0x107)]},'children':[{'tag':_0x3e1fa8(0x99),'attributes':{'class':bo},'children':this[_0x3e1fa8(0xbe)]}]});}[_0x2ca822(0xdc)](){const _0x15ba29=_0x2ca822;this[_0x15ba29(0xfd)]['on'](_0x15ba29(0xa9),()=>{const _0x5e55ae=_0x15ba29;this[_0x5e55ae(0x8e)]();});}[_0x2ca822(0xac)](_0x554753){const _0x273739=_0x2ca822,_0x3a9adc=new _0x273dfd(_0x554753);return _0x3a9adc[_0x273739(0xca)]({'label':_0x22cc11(_0x554753,_0x273739(0xf6)),'class':go+'\x20'+Ao,'icon':_0x55d586,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3a9adc;}[_0x2ca822(0x85)](_0x59567a){const _0x449bc2=_0x2ca822;return this[_0x449bc2(0xf8)](_0x59567a,To);}[_0x2ca822(0x101)](_0x5a8d68){const _0xb5e5bf=_0x2ca822,_0x57ffd4=this[_0xb5e5bf(0xf8)](_0x5a8d68,ko);return this[_0xb5e5bf(0x105)](_0x57ffd4,_0x5a8d68),_0x57ffd4;}[_0x2ca822(0xa6)](_0x32ad5a,_0x2f4333){const _0x555780=_0x2ca822;return new _0x238d7b(_0x32ad5a,_0x2f4333,{'onBackToContext':()=>{const _0x1c4b89=_0x22fc;this[_0x1c4b89(0xf1)](),this[_0x1c4b89(0x103)][_0x1c4b89(0xd6)]({'target':this[_0x1c4b89(0xfd)][_0x1c4b89(0xef)],'limiter':this[_0x1c4b89(0xaf)](),'positions':Ro});},'onResourceSelected':(_0x91713e,_0x19e0e5)=>{const _0x1c4ce1=_0x22fc;this[_0x1c4ce1(0xfb)](_0x1c4ce1(0x97),{'source':_0x91713e,'resource':_0x19e0e5});},'onLoadSourceResources':_0x15d2d6=>{const _0x256250=_0x22fc;this[_0x256250(0xfb)](_0x256250(0xd5),_0x15d2d6);},'onBalloonClosed':()=>{const _0x2a3019=_0x22fc;this[_0x2a3019(0xfd)][_0x2a3019(0xd2)]=!0x1;},'getLimiterElement':()=>this[_0x555780(0xaf)](),'getTargetElement':()=>this[_0x555780(0xfd)][_0x555780(0xef)]});}[_0x2ca822(0xaf)](){const _0x4a5a0c=_0x2ca822;return this[_0x4a5a0c(0xef)]?.[_0x4a5a0c(0x82)]('.'+Po)||document[_0x4a5a0c(0xf5)];}[_0x2ca822(0xf8)](_0x26ba0e,_0x145230){const _0x3ee8ac=_0x2ca822,_0xf6019f=new _0x401041(_0x26ba0e);return _0xf6019f[_0x3ee8ac(0xe9)]({'attributes':{'class':_0x145230}}),this[_0x3ee8ac(0xd3)][_0x3ee8ac(0xea)](_0xf6019f),_0xf6019f;}[_0x2ca822(0xc3)](_0x553551,_0x5c48f2,_0x167832){const _0x1a0902=_0x2ca822;if(_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xfc)](),!_0x167832[_0x1a0902(0xee)][_0x1a0902(0xbf)]&&_0x167832[_0x1a0902(0xee)][_0x1a0902(0x87)]){const _0x3d006a=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x22cc11(_0x5c48f2,_0x1a0902(0xfe)),'icon':_0xc8a123});_0x3d006a['on'](_0x1a0902(0xa9),()=>{const _0x2d5039=_0x1a0902;this[_0x2d5039(0xfb)](_0x2d5039(0x9e)),this[_0x2d5039(0xcb)]();}),_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x3d006a);}if(_0x167832[_0x1a0902(0xce)][_0x1a0902(0x87)]){const _0x130cdc=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x22cc11(_0x5c48f2,_0x1a0902(0xcd)),'icon':_0xa0f7df});_0x130cdc['on'](_0x1a0902(0xa9),()=>{const _0x50955e=_0x1a0902;this[_0x50955e(0xcb)](),this[_0x50955e(0xc5)](),this[_0x50955e(0xae)][_0x50955e(0xd6)]({'target':this[_0x50955e(0xfd)][_0x50955e(0xef)],'limiter':this[_0x50955e(0xaf)](),'positions':Ro}),this[_0x50955e(0xda)][_0x50955e(0xd4)]();}),_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x130cdc);}if(_0x167832[_0x1a0902(0xad)][_0x1a0902(0x87)]){const _0x349696=new _0x13e297(_0x5c48f2);_0x349696[_0x1a0902(0xca)]({'label':_0x22cc11(_0x5c48f2,_0x1a0902(0x94)),'icon':_0x1c4317,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x349696['on'](_0x1a0902(0xdf),(_0x52de69,_0x360823)=>{const _0x181d2c=_0x1a0902;this[_0x181d2c(0xfb)](_0x181d2c(0xeb),_0x360823),this[_0x181d2c(0xcb)]();}),_0x349696[_0x1a0902(0xdd)]=!0x0,_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x349696);}for(const _0x44d14c of _0x167832[_0x1a0902(0xf3)]){const _0x216ebb=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x44d14c[_0x1a0902(0x95)],'icon':_0x44d14c[_0x1a0902(0xb9)]||_0x5eb0fb,'type':_0x1a0902(0x9b)});_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x216ebb),_0x216ebb['on'](_0x1a0902(0xa9),()=>{const _0x24ceaf=_0x1a0902;this[_0x24ceaf(0xcb)](),this[_0x24ceaf(0xf2)](_0x44d14c);});}}[_0x2ca822(0x105)](_0x524494,_0x43886a){const _0x1042f0=_0x2ca822;this[_0x1042f0(0xda)]=new _0x571f35(_0x43886a),this[_0x1042f0(0xda)]['on'](_0x1042f0(0x100),(_0x39a251,_0x51785b)=>{const _0x741c28=_0x1042f0;this[_0x741c28(0x80)](_0x51785b);}),this[_0x1042f0(0xda)]['on'](_0x1042f0(0xa0),()=>{const _0x4ee6a9=_0x1042f0;this[_0x4ee6a9(0xc8)](),this[_0x4ee6a9(0xf1)](),this[_0x4ee6a9(0x103)][_0x4ee6a9(0xd6)]({'target':this[_0x4ee6a9(0xfd)][_0x4ee6a9(0xef)],'limiter':this[_0x4ee6a9(0xaf)](),'positions':Ro});}),this[_0x1042f0(0xda)]['on'](_0x1042f0(0x91),()=>{const _0x5c67c5=_0x1042f0;this[_0x5c67c5(0xae)][_0x5c67c5(0x8f)]&&this[_0x5c67c5(0xae)][_0x5c67c5(0xd6)]({'target':this[_0x5c67c5(0xfd)][_0x5c67c5(0xef)],'limiter':this[_0x5c67c5(0xaf)](),'positions':Ro});}),_0x524494[_0x1042f0(0xf4)][_0x1042f0(0xea)](this[_0x1042f0(0xda)]);}[_0x2ca822(0xe1)](_0x57e194,_0x1e7a42){const _0x409beb=_0x2ca822,_0x19a030=_0x409beb(0x9b)===_0x1e7a42[_0x409beb(0xc2)]?new SourcesBalloonButtonView(_0x57e194):new _0x273dfd(_0x57e194);return _0x19a030[_0x409beb(0xca)]({'label':_0x1e7a42[_0x409beb(0x95)],'icon':_0x1e7a42[_0x409beb(0xb9)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x19a030;}[_0x2ca822(0xcc)](){const _0x55e594=_0x2ca822;this[_0x55e594(0x108)](),this[_0x55e594(0x8c)]();}[_0x2ca822(0x8c)](){const _0x2a1372=_0x2ca822;_0x251fd1({'emitter':this[_0x2a1372(0xae)],'contextElements':[this[_0x2a1372(0xae)][_0x2a1372(0xef)]],'callback':()=>{const _0x209be6=_0x2a1372;this[_0x209be6(0xc8)]();},'activator':()=>this[_0x2a1372(0xae)][_0x2a1372(0x8f)]});}[_0x2ca822(0x83)](_0x397404){const _0x3c6019=_0x2ca822,_0x45a62e=this[_0x3c6019(0xa5)];_0x45a62e[_0x3c6019(0x98)][_0x3c6019(0xd2)]=_0x397404,_0x397404?_0x45a62e[_0x3c6019(0xb0)][_0x3c6019(0x8d)]():_0x45a62e[_0x3c6019(0xb0)][_0x3c6019(0x10d)]();}[_0x2ca822(0x108)](){const _0x4f007a=_0x2ca822,{balloonView:_0x38d9bc,buttonView:_0x40cfa7,hideMethod:_0x5e3a65}=this[_0x4f007a(0xa5)];_0x251fd1({'emitter':_0x38d9bc,'contextElements':[_0x38d9bc[_0x4f007a(0xef)],_0x40cfa7[_0x4f007a(0xef)]],'callback':()=>{_0x5e3a65();},'activator':()=>_0x40cfa7[_0x4f007a(0xd2)]&&!this[_0x4f007a(0xae)][_0x4f007a(0x8f)]&&!this[_0x4f007a(0xb6)][_0x4f007a(0xa1)]()});}[_0x2ca822(0xe6)](_0x5e0cf0,_0x5d7c21,_0x1544d1=!0x1,_0xa2b390=!0x1){const _0x3fbb1f=_0x2ca822,_0x1699be=_0x3fbb1f(0xb2)===_0x5d7c21||!0x0===_0x5e0cf0[_0x3fbb1f(0x10a)],_0x3bc5a0=new _0x1c7391(this[_0x3fbb1f(0x106)],_0x5e0cf0,_0x1699be,_0x1544d1,_0xa2b390);return _0x1699be||_0x3bc5a0['on'](_0x3fbb1f(0xb1),()=>{const _0x26315c=_0x3fbb1f;this[_0x26315c(0xfb)](_0x26315c(0x109),_0x3bc5a0['id']);}),_0x3bc5a0;}[_0x2ca822(0xf7)](_0x6b2c1d,_0x5cfdc9){const _0x31be5c=_0x2ca822;_0x5cfdc9[_0x31be5c(0xea)](_0x6b2c1d,0x0);}[_0x2ca822(0xe8)](_0x2d1efb,_0x269b36){const _0x4579ce=_0x2ca822,_0x1ecb91=_0x269b36[_0x4579ce(0xb3)](_0x263585=>_0x263585['id']===_0x2d1efb);_0x1ecb91&&_0x269b36[_0x4579ce(0xc7)](_0x1ecb91);}[_0x2ca822(0x8e)](){const _0x105144=_0x2ca822;this[_0x105144(0xfd)][_0x105144(0xd2)]?this[_0x105144(0xcb)]():(this[_0x105144(0xf1)](),this[_0x105144(0x103)][_0x105144(0xd6)]({'target':this[_0x105144(0xfd)][_0x105144(0xef)],'limiter':this[_0x105144(0xaf)](),'positions':Ro}));}[_0x2ca822(0x80)](_0x5f5dce){const _0x57482b=_0x2ca822;this[_0x57482b(0xda)][_0x57482b(0xfc)](),this[_0x57482b(0xc8)](),this[_0x57482b(0xfb)](_0x57482b(0xa7),_0x5f5dce);}}export class SourcesBalloonButtonView extends _0x273dfd{[_0x2ca822(0x96)];constructor(_0xab925){const _0x3532d0=_0x2ca822;super(_0xab925),this[_0x3532d0(0xca)]({'withText':!0x0,'role':_0x3532d0(0x88)}),this[_0x3532d0(0x96)]=this[_0x3532d0(0xd0)](),this[_0x3532d0(0xe9)]({'attributes':{'class':[vo]}});}[_0x2ca822(0x9d)](){const _0x4e16ce=_0x2ca822;super[_0x4e16ce(0x9d)](),this[_0x4e16ce(0xa2)][_0x4e16ce(0xea)](this[_0x4e16ce(0x96)]);}[_0x2ca822(0xd0)](){const _0x23ccf6=_0x2ca822,_0x57142e=new _0xd14263();return _0x57142e[_0x23ccf6(0xf4)]=_0x22a845,_0x57142e[_0x23ccf6(0xe9)]({'attributes':{'class':vo+_0x23ccf6(0xd1)}}),_0x57142e;}}
23
+ const _0x84dda9=_0x389d;(function(_0x246b87,_0x39c574){const _0x3e2e3a=_0x389d,_0x4a3caa=_0x246b87();while(!![]){try{const _0x20e755=-parseInt(_0x3e2e3a(0x1b8))/0x1+-parseInt(_0x3e2e3a(0x1a9))/0x2*(parseInt(_0x3e2e3a(0x1dd))/0x3)+-parseInt(_0x3e2e3a(0x1b2))/0x4*(parseInt(_0x3e2e3a(0x1e9))/0x5)+parseInt(_0x3e2e3a(0x1cb))/0x6*(parseInt(_0x3e2e3a(0x16d))/0x7)+-parseInt(_0x3e2e3a(0x183))/0x8*(-parseInt(_0x3e2e3a(0x1a3))/0x9)+-parseInt(_0x3e2e3a(0x1f9))/0xa*(-parseInt(_0x3e2e3a(0x1b5))/0xb)+parseInt(_0x3e2e3a(0x1a4))/0xc;if(_0x20e755===_0x39c574)break;else _0x4a3caa['push'](_0x4a3caa['shift']());}catch(_0x5ccd9b){_0x4a3caa['push'](_0x4a3caa['shift']());}}}(_0x3dc8,0xeb4f6));function _0x389d(_0x309092,_0x19e0ad){const _0x3dc8ae=_0x3dc8();return _0x389d=function(_0x389d2b,_0x2dbe71){_0x389d2b=_0x389d2b-0x169;let _0x3cf4d2=_0x3dc8ae[_0x389d2b];return _0x3cf4d2;},_0x389d(_0x309092,_0x19e0ad);}import{BalloonPanelView as _0x5af0aa,ButtonView as _0x455f47,clickOutsideHandler as _0x525405,FileDialogButtonView as _0x32df22,IconView as _0x435def,View as _0x58153e}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3b078c,IconDocument as _0x2ae25e,IconDocumentOutline as _0x41aa6f,IconDropdownArrow as _0x3ede3c,IconLink as _0x3f96c8,IconPaperClip as _0x31a6df}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x7a8c6a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x22cb32}from'./aichatcontextpanelurlinputview.js';function _0x3dc8(){const _0x521cd0=['566106ZzMOhM','buttonView','southArrowNorthEast','loadSourceResources','AI_CHAT_CONTEXT_URL_LABEL','_overflowManager','label','sources','_setAddContextButtonEnabled','setContextItemLoading','element','setContainerElement','clearConversationContextItems','_currentContextsChips','clearCurrentContextItems','_conversationContextsChips','showSourceResourcesBalloon','execute','31449nPxouW','updateResourceState','isAnyResourceBalloonVisible','hideUrlBalloonPanel','find','ck-ai-chat-context-controls__add-context-balloon-panel','northArrowSouthEast','refreshBalloon','files','fire','render','_removeContextFromCollection','5rXfZwp','clear','ck-ai-chat-context-controls__url-balloon-panel','showAddContextBalloonPanel','_resourcesBalloonView','_getLimiterElement','_toggleAddContextBalloon','_setupAllBalloonClickOutsideHandlers','locale','_createArrowView','addContextButtonView','setConversationContext','ck-ai-chat-context-controls__show-more-balloon-panel','reorganizeChips','bind','type','10pepkah','addFileToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls__balloon-button','_createContextButton','133nQxKGe','addResourceToContext','body','extendTemplate','icon','ck-ai-chat-controls-button','submitUrl','northArrowSouth','_handleUrlSubmit','addContextItem','_urlInputView','hide','ck-ai-chat-context-controls__balloon-button-source','AI_CHAT_CONTEXT_FILE_LABEL','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','closest','balloonView','current','_setupAddContextBalloonClickOutsideHandler','_createBalloonButton','_setupTemplate','closeSourceResourceBalloon','8XUNwPR','document','menuitem','setAddContextOptions','isVisible','isEnabled','_bindEventHandlers','_createAddContextButtonView','children','defaultPositions','urls','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','__arrow','enabled','add','southArrowNorthWest','isLoading','remove','showUrlBalloonPanel','_createAddContextBalloonPanelView','northArrowSouthWest','bodyCollection','tooltip','set','_createResourcesBalloonView','_addContextToCollection','source','addUrlToContext','removeContextItemChip','isReadOnly','_createBaseBalloonPanel','3474045HsuNNJ','5215284jKTfeH','setTemplate','ck-ai-chat-controls_context_show-more-button','_urlBalloonPanelView','conversation','282VrDsQF','hideAddContextBalloonPanel','_addUrlContent','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-context-controls','ck-ai-chat-context-controls__pending-contexts','populateSourceResourceBalloon','isHidden','ck-ai-chat','418728gTqrjo','createCollection','ck-ai-chat-context-chips-wrapper-balloon','19905325hzZaAK','_setupUrlBalloonClickOutsideHandler','div','1876241lRiDff','removeContextItem','done','isOn','show','_createUrlBalloonPanelView','arrowView','destroy','_setBalloonPanelContent','_handleAddContextButtonClick','cancel','southArrowNorth','content','focus','pin','overflowChips','_addContextBalloonConfig','ck-reset_all-excluded','_addContextBalloonPanelView'];_0x3dc8=function(){return _0x521cd0;};return _0x3dc8();}import{AIChatChipsOverflowManager as _0x47f623}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4ffe96}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2085ee}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x84dda9(0x18e),_0x84dda9(0x169),_0x84dda9(0x19f),_0x84dda9(0x16e),_0x84dda9(0x1b9),_0x84dda9(0x1ce)];const bo=_0x84dda9(0x1ad),To=_0x84dda9(0x1ae),Ao=_0x84dda9(0x1e2),ko=_0x84dda9(0x18f),Eo=_0x84dda9(0x1eb),vo=_0x84dda9(0x16b),go=_0x84dda9(0x179),Vo=_0x84dda9(0x172),fo=_0x84dda9(0x1b4),Io=_0x84dda9(0x1a6),Po=_0x84dda9(0x1f5),Ro=_0x84dda9(0x1b1),So=[_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x198)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x174)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1e3)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x193)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1c3)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1cd)]];export class AIChatContextPanelView extends _0x58153e{[_0x84dda9(0x1f3)];[_0x84dda9(0x1d8)]=this[_0x84dda9(0x1b3)]();[_0x84dda9(0x1da)]=this[_0x84dda9(0x1b3)]();[_0x84dda9(0x1d0)];[_0x84dda9(0x1ca)];[_0x84dda9(0x1a7)];[_0x84dda9(0x177)];[_0x84dda9(0x1ed)];[_0x84dda9(0x1c8)];[_0x84dda9(0x199)];constructor(_0x27078c,_0x423fea){const _0x54d317=_0x84dda9;super(_0x27078c),this[_0x54d317(0x199)]=_0x423fea,this[_0x54d317(0x1d8)]=this[_0x54d317(0x1b3)](),this[_0x54d317(0x1da)]=this[_0x54d317(0x1b3)](),this[_0x54d317(0x1f3)]=this[_0x54d317(0x18a)](_0x27078c),this[_0x54d317(0x1ca)]=this[_0x54d317(0x197)](_0x27078c),this[_0x54d317(0x1a7)]=this[_0x54d317(0x1bd)](_0x27078c),this[_0x54d317(0x1ed)]=this[_0x54d317(0x19c)](_0x27078c,_0x423fea);const _0x27b6b6={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x54d317(0x1d0)]=new _0x47f623(_0x27078c,this[_0x54d317(0x1d8)],_0x27b6b6,this[_0x54d317(0x199)],this),this[_0x54d317(0x1c8)]={'buttonView':this[_0x54d317(0x1f3)],'balloonView':this[_0x54d317(0x1ca)],'hideMethod':this[_0x54d317(0x1aa)][_0x54d317(0x1f7)](this),'showMethod':this[_0x54d317(0x1ec)][_0x54d317(0x1f7)](this)},this[_0x54d317(0x181)](),this[_0x54d317(0x189)]();}[_0x84dda9(0x1e7)](){const _0x3c0694=_0x84dda9;super[_0x3c0694(0x1e7)](),this[_0x3c0694(0x1f0)](),this[_0x3c0694(0x1d0)][_0x3c0694(0x1d6)](this[_0x3c0694(0x1d5)]),this[_0x3c0694(0x1d0)][_0x3c0694(0x1f6)]();}[_0x84dda9(0x1bf)](){const _0x30d3e8=_0x84dda9;super[_0x30d3e8(0x1bf)](),this[_0x30d3e8(0x1d0)][_0x30d3e8(0x1bf)](),this[_0x30d3e8(0x1ed)][_0x30d3e8(0x1bf)]();}[_0x84dda9(0x176)](_0x1a5290,_0x61847b){const _0x20b057=_0x84dda9,_0xc9f4f1=this[_0x20b057(0x16c)](_0x1a5290,_0x20b057(0x17e),!0x0,_0x61847b);this[_0x20b057(0x19d)](_0xc9f4f1,this[_0x20b057(0x1d8)]),this[_0x20b057(0x1d0)][_0x20b057(0x1f6)]();}[_0x84dda9(0x1b9)](_0x252243){const _0x1363c6=_0x84dda9;this[_0x1363c6(0x1e8)](_0x252243,this[_0x1363c6(0x1d8)]),this[_0x1363c6(0x1e8)](_0x252243,this[_0x1363c6(0x1d0)][_0x1363c6(0x1c7)]),this[_0x1363c6(0x1d0)][_0x1363c6(0x1f6)]();}[_0x84dda9(0x1d4)](_0xbde7e9,_0x5cfd60){const _0x4eae89=_0x84dda9;let _0x29f430=this[_0x4eae89(0x1d8)][_0x4eae89(0x1e1)](_0x291a36=>_0x291a36['id']===_0xbde7e9);_0x29f430||(_0x29f430=this[_0x4eae89(0x1d0)][_0x4eae89(0x1c7)][_0x4eae89(0x1e1)](_0x2aae8f=>_0x2aae8f['id']===_0xbde7e9)),_0x29f430&&(_0x29f430[_0x4eae89(0x194)]=_0x5cfd60);}[_0x84dda9(0x1f4)](_0x41f502){const _0x9e11b1=_0x84dda9;this[_0x9e11b1(0x1da)][_0x9e11b1(0x1ea)]();for(const _0x54e031 of _0x41f502){const _0x40f52a=this[_0x9e11b1(0x16c)](_0x54e031,_0x9e11b1(0x1a8),!0x1,!0x1);this[_0x9e11b1(0x19d)](_0x40f52a,this[_0x9e11b1(0x1da)]);}}[_0x84dda9(0x1d9)](){const _0x21b4a7=_0x84dda9;this[_0x21b4a7(0x1d8)][_0x21b4a7(0x1ea)](),this[_0x21b4a7(0x1d0)][_0x21b4a7(0x1ea)]();}[_0x84dda9(0x1d7)](){const _0x287499=_0x84dda9;this[_0x287499(0x1da)][_0x287499(0x1ea)]();}[_0x84dda9(0x1de)](_0x4ec77b,_0x16d296,_0x57a90c){const _0xe08db4=_0x84dda9;this[_0xe08db4(0x1ed)][_0xe08db4(0x1de)](_0x4ec77b,_0x16d296,_0x57a90c);}[_0x84dda9(0x1aa)](){const _0x15d679=_0x84dda9;this[_0x15d679(0x1ef)](!0x1);}[_0x84dda9(0x1ec)](){const _0x5e6657=_0x84dda9;this[_0x5e6657(0x1ef)](!0x0);}[_0x84dda9(0x1e0)](){const _0x2ef6a7=_0x84dda9;this[_0x2ef6a7(0x1a7)][_0x2ef6a7(0x178)](),this[_0x2ef6a7(0x1f3)][_0x2ef6a7(0x1bb)]=!0x1,this[_0x2ef6a7(0x177)]&&this[_0x2ef6a7(0x177)][_0x2ef6a7(0x1ea)]();}[_0x84dda9(0x196)](){const _0x4f2f8a=_0x84dda9;this[_0x4f2f8a(0x1a7)][_0x4f2f8a(0x1bc)](),this[_0x4f2f8a(0x1f3)][_0x4f2f8a(0x1bb)]=!0x0;}[_0x84dda9(0x16a)](_0x49bd92){const _0x279f60=_0x84dda9;this[_0x279f60(0x1ed)][_0x279f60(0x1db)](_0x49bd92),this[_0x279f60(0x1f3)][_0x279f60(0x1bb)]=!0x0;}[_0x84dda9(0x1af)](_0x598058,_0x43376d,_0x32323c,_0xc185f6){const _0x3fcb60=_0x84dda9;this[_0x3fcb60(0x1ed)][_0x3fcb60(0x1af)](_0x598058,_0x32323c,_0xc185f6);}[_0x84dda9(0x182)](_0x35c4f9){const _0x222d8d=_0x84dda9;this[_0x222d8d(0x1ed)][_0x222d8d(0x182)](_0x35c4f9),this[_0x222d8d(0x1f3)][_0x222d8d(0x1bb)]=!0x1;}[_0x84dda9(0x186)](_0x108e4c){const _0x154623=_0x84dda9;this[_0x154623(0x1c0)](this[_0x154623(0x1ca)],this[_0x154623(0x1f1)],_0x108e4c),this[_0x154623(0x1d3)](_0x108e4c);}[_0x84dda9(0x1d3)](_0x4fda12){const _0x433c5c=_0x84dda9,_0xc67d79=!_0x4fda12[_0x433c5c(0x184)][_0x433c5c(0x1b0)]&&_0x4fda12[_0x433c5c(0x184)][_0x433c5c(0x191)],_0x475c71=_0x4fda12[_0x433c5c(0x18d)][_0x433c5c(0x191)],_0x49ed4c=_0x4fda12[_0x433c5c(0x1e5)][_0x433c5c(0x191)];this[_0x433c5c(0x1f3)][_0x433c5c(0x188)]=_0xc67d79||_0x475c71||_0x49ed4c;}[_0x84dda9(0x181)](){const _0x4a7f3e=_0x84dda9;this[_0x4a7f3e(0x1a5)]({'tag':_0x4a7f3e(0x1b7),'attributes':{'class':[bo,_0x4a7f3e(0x1c9)]},'children':[{'tag':_0x4a7f3e(0x1b7),'attributes':{'class':To},'children':this[_0x4a7f3e(0x1d8)]}]});}[_0x84dda9(0x189)](){const _0x15854a=_0x84dda9;this[_0x15854a(0x1f3)]['on'](_0x15854a(0x1dc),()=>{const _0x44f1e8=_0x15854a;this[_0x44f1e8(0x1c1)]();});}[_0x84dda9(0x18a)](_0x8c5cce){const _0x883ea2=_0x84dda9,_0x353e58=new _0x455f47(_0x8c5cce);return _0x353e58[_0x883ea2(0x19b)]({'label':_0x4ffe96(_0x8c5cce,_0x883ea2(0x1ac)),'class':Vo+'\x20'+ko,'icon':_0x31a6df,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x353e58;}[_0x84dda9(0x197)](_0x435700){const _0x447587=_0x84dda9;return this[_0x447587(0x1a2)](_0x435700,Ao);}[_0x84dda9(0x1bd)](_0x272fac){const _0x186d20=_0x84dda9,_0x5e4488=this[_0x186d20(0x1a2)](_0x272fac,Eo);return this[_0x186d20(0x1ab)](_0x5e4488,_0x272fac),_0x5e4488;}[_0x84dda9(0x19c)](_0x14153c,_0x1543aa){const _0x168909=_0x84dda9;return new _0x2085ee(_0x14153c,_0x1543aa,{'onBackToContext':()=>{const _0x30c472=_0x389d;this[_0x30c472(0x1ec)](),this[_0x30c472(0x1ca)][_0x30c472(0x1c6)]({'target':this[_0x30c472(0x1f3)][_0x30c472(0x1d5)],'limiter':this[_0x30c472(0x1ee)](),'positions':So});},'onResourceSelected':(_0x31b3fc,_0x518aea)=>{const _0x384476=_0x389d;this[_0x384476(0x1e6)](_0x384476(0x16e),{'source':_0x31b3fc,'resource':_0x518aea});},'onLoadSourceResources':_0x29523d=>{const _0x10ec79=_0x389d;this[_0x10ec79(0x1e6)](_0x10ec79(0x1ce),_0x29523d);},'onBalloonClosed':()=>{const _0x100ef9=_0x389d;this[_0x100ef9(0x1f3)][_0x100ef9(0x1bb)]=!0x1;},'getLimiterElement':()=>this[_0x168909(0x1ee)](),'getTargetElement':()=>this[_0x168909(0x1f3)][_0x168909(0x1d5)]});}[_0x84dda9(0x1ee)](){const _0x152546=_0x84dda9;return this[_0x152546(0x1d5)]?.[_0x152546(0x17c)]('.'+Ro)||document[_0x152546(0x16f)];}[_0x84dda9(0x1a2)](_0x3c0e0d,_0x5d5f5a){const _0x71be5=_0x84dda9,_0x9875a0=new _0x5af0aa(_0x3c0e0d);return _0x9875a0[_0x71be5(0x170)]({'attributes':{'class':_0x5d5f5a}}),this[_0x71be5(0x199)][_0x71be5(0x192)](_0x9875a0),_0x9875a0;}[_0x84dda9(0x1c0)](_0x3438e8,_0x599501,_0x28a81f){const _0x5cc0dd=_0x84dda9;if(_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x1ea)](),!_0x28a81f[_0x5cc0dd(0x184)][_0x5cc0dd(0x1b0)]&&_0x28a81f[_0x5cc0dd(0x184)][_0x5cc0dd(0x191)]){const _0x3a8602=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x17b)),'icon':_0x2ae25e});_0x3a8602['on'](_0x5cc0dd(0x1dc),()=>{const _0x551500=_0x5cc0dd;this[_0x551500(0x1e6)](_0x551500(0x18e)),this[_0x551500(0x1aa)]();}),_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x3a8602);}if(_0x28a81f[_0x5cc0dd(0x18d)][_0x5cc0dd(0x191)]){const _0xeb2c9f=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x1cf)),'icon':_0x3f96c8});_0xeb2c9f['on'](_0x5cc0dd(0x1dc),()=>{const _0x21f753=_0x5cc0dd;this[_0x21f753(0x1aa)](),this[_0x21f753(0x196)](),this[_0x21f753(0x1a7)][_0x21f753(0x1c6)]({'target':this[_0x21f753(0x1f3)][_0x21f753(0x1d5)],'limiter':this[_0x21f753(0x1ee)](),'positions':So}),this[_0x21f753(0x177)][_0x21f753(0x1c5)]();}),_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0xeb2c9f);}if(_0x28a81f[_0x5cc0dd(0x1e5)][_0x5cc0dd(0x191)]){const _0x10a096=new _0x32df22(_0x599501);_0x10a096[_0x5cc0dd(0x19b)]({'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x17a)),'icon':_0x3b078c,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x10a096['on'](_0x5cc0dd(0x1ba),(_0x5d63a4,_0x43b841)=>{const _0x50a78b=_0x5cc0dd;this[_0x50a78b(0x1e6)](_0x50a78b(0x169),_0x43b841),this[_0x50a78b(0x1aa)]();}),_0x10a096[_0x5cc0dd(0x19a)]=!0x0,_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x10a096);}for(const _0x52a62c of _0x28a81f[_0x5cc0dd(0x1d2)]){const _0x489c5=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x52a62c[_0x5cc0dd(0x1d1)],'icon':_0x52a62c[_0x5cc0dd(0x171)]||_0x41aa6f,'type':_0x5cc0dd(0x19e)});_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x489c5),_0x489c5['on'](_0x5cc0dd(0x1dc),()=>{const _0x3004e7=_0x5cc0dd;this[_0x3004e7(0x1aa)](),this[_0x3004e7(0x16a)](_0x52a62c);});}}[_0x84dda9(0x1ab)](_0x52f1fd,_0x3ba454){const _0xbf0af2=_0x84dda9;this[_0xbf0af2(0x177)]=new _0x22cb32(_0x3ba454),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x173),(_0x1e21cd,_0x3f844e)=>{const _0x24e459=_0xbf0af2;this[_0x24e459(0x175)](_0x3f844e);}),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x1c2),()=>{const _0x5b0de9=_0xbf0af2;this[_0x5b0de9(0x1e0)](),this[_0x5b0de9(0x1ec)](),this[_0x5b0de9(0x1ca)][_0x5b0de9(0x1c6)]({'target':this[_0x5b0de9(0x1f3)][_0x5b0de9(0x1d5)],'limiter':this[_0x5b0de9(0x1ee)](),'positions':So});}),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x1e4),()=>{const _0x1f0222=_0xbf0af2;this[_0x1f0222(0x1a7)][_0x1f0222(0x187)]&&this[_0x1f0222(0x1a7)][_0x1f0222(0x1c6)]({'target':this[_0x1f0222(0x1f3)][_0x1f0222(0x1d5)],'limiter':this[_0x1f0222(0x1ee)](),'positions':So});}),_0x52f1fd[_0xbf0af2(0x1c4)][_0xbf0af2(0x192)](this[_0xbf0af2(0x177)]);}[_0x84dda9(0x180)](_0xb4bb8f,_0xa505ac){const _0x95a5e4=_0x84dda9,_0x475a17=_0x95a5e4(0x19e)===_0xa505ac[_0x95a5e4(0x1f8)]?new SourcesBalloonButtonView(_0xb4bb8f):new _0x455f47(_0xb4bb8f);return _0x475a17[_0x95a5e4(0x19b)]({'label':_0xa505ac[_0x95a5e4(0x1d1)],'icon':_0xa505ac[_0x95a5e4(0x171)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x475a17;}[_0x84dda9(0x1f0)](){const _0x58b311=_0x84dda9;this[_0x58b311(0x17f)](),this[_0x58b311(0x1b6)]();}[_0x84dda9(0x1b6)](){const _0x22b652=_0x84dda9;_0x525405({'emitter':this[_0x22b652(0x1a7)],'contextElements':[this[_0x22b652(0x1a7)][_0x22b652(0x1d5)]],'callback':()=>{const _0x9e45b9=_0x22b652;this[_0x9e45b9(0x1e0)]();},'activator':()=>this[_0x22b652(0x1a7)][_0x22b652(0x187)]});}[_0x84dda9(0x1ef)](_0x2a0443){const _0x51149c=_0x84dda9,_0x435444=this[_0x51149c(0x1c8)];_0x435444[_0x51149c(0x1cc)][_0x51149c(0x1bb)]=_0x2a0443,_0x2a0443?_0x435444[_0x51149c(0x17d)][_0x51149c(0x1bc)]():_0x435444[_0x51149c(0x17d)][_0x51149c(0x178)]();}[_0x84dda9(0x17f)](){const _0x40a7f8=_0x84dda9,{balloonView:_0x1538a7,buttonView:_0xfef65c,hideMethod:_0x83463f}=this[_0x40a7f8(0x1c8)];_0x525405({'emitter':_0x1538a7,'contextElements':[_0x1538a7[_0x40a7f8(0x1d5)],_0xfef65c[_0x40a7f8(0x1d5)]],'callback':()=>{_0x83463f();},'activator':()=>_0xfef65c[_0x40a7f8(0x1bb)]&&!this[_0x40a7f8(0x1a7)][_0x40a7f8(0x187)]&&!this[_0x40a7f8(0x1ed)][_0x40a7f8(0x1df)]()});}[_0x84dda9(0x16c)](_0x8e107,_0x4a3cab,_0x31b697=!0x1,_0x51b4bc=!0x1){const _0x408fc3=_0x84dda9,_0x2655f9=_0x408fc3(0x1a8)===_0x4a3cab||!0x0===_0x8e107[_0x408fc3(0x1a1)],_0x43192f=new _0x7a8c6a(this[_0x408fc3(0x1f1)],_0x8e107,_0x2655f9,_0x31b697,_0x51b4bc);return _0x2655f9||_0x43192f['on'](_0x408fc3(0x1a0),()=>{const _0x57ad88=_0x408fc3;this[_0x57ad88(0x1e6)](_0x57ad88(0x1b9),_0x43192f['id']);}),_0x43192f;}[_0x84dda9(0x19d)](_0x30940f,_0x1f02df){const _0x5b0706=_0x84dda9;_0x1f02df[_0x5b0706(0x192)](_0x30940f,0x0);}[_0x84dda9(0x1e8)](_0x5bdd1a,_0x356c0b){const _0x262708=_0x84dda9,_0x1ed083=_0x356c0b[_0x262708(0x1e1)](_0x5e1df7=>_0x5e1df7['id']===_0x5bdd1a);_0x1ed083&&_0x356c0b[_0x262708(0x195)](_0x1ed083);}[_0x84dda9(0x1c1)](){const _0xe20e09=_0x84dda9;this[_0xe20e09(0x1f3)][_0xe20e09(0x1bb)]?this[_0xe20e09(0x1aa)]():(this[_0xe20e09(0x1ec)](),this[_0xe20e09(0x1ca)][_0xe20e09(0x1c6)]({'target':this[_0xe20e09(0x1f3)][_0xe20e09(0x1d5)],'limiter':this[_0xe20e09(0x1ee)](),'positions':So}));}[_0x84dda9(0x175)](_0x497943){const _0x1fc20b=_0x84dda9;this[_0x1fc20b(0x177)][_0x1fc20b(0x1ea)](),this[_0x1fc20b(0x1e0)](),this[_0x1fc20b(0x1e6)](_0x1fc20b(0x19f),_0x497943);}}export class SourcesBalloonButtonView extends _0x455f47{[_0x84dda9(0x1be)];constructor(_0xdec8bc){const _0x5676fa=_0x84dda9;super(_0xdec8bc),this[_0x5676fa(0x19b)]({'withText':!0x0,'role':_0x5676fa(0x185)}),this[_0x5676fa(0x1be)]=this[_0x5676fa(0x1f2)](),this[_0x5676fa(0x170)]({'attributes':{'class':[go]}});}[_0x84dda9(0x1e7)](){const _0x52f0c7=_0x84dda9;super[_0x52f0c7(0x1e7)](),this[_0x52f0c7(0x18b)][_0x52f0c7(0x192)](this[_0x52f0c7(0x1be)]);}[_0x84dda9(0x1f2)](){const _0x341aeb=_0x84dda9,_0x378998=new _0x435def();return _0x378998[_0x341aeb(0x1c4)]=_0x3ede3c,_0x378998[_0x341aeb(0x170)]({'attributes':{'class':go+_0x341aeb(0x190)}}),_0x378998;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5606(){const _0x316036=['abortPromptStream','3292slaVvj','ck-reset_all','609065LKKGPz','ai-chat-controls-loader__cancel-button','set','fire','ck-ai-chat-controls-loader-icon','4199922bckszR','587480HSGaKY','div','execute','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader','AI_CHAT_IS_WRITING','33832gmBQeK','AI_CHAT_STOP_GENERATING','_loaderView','_cancelButtonView','_createLoaderView','2SizgJg','1408068oveUAe','231MIyEsm','152957KXHbzy','_createCancelButtonView','ck-ai-chat-controls-loader-wrapper','setTemplate','locale'];_0x5606=function(){return _0x316036;};return _0x5606();}const _0x5ef391=_0x6b6b;(function(_0x243840,_0x13e913){const _0x263dcc=_0x6b6b,_0x45aeac=_0x243840();while(!![]){try{const _0x47f206=parseInt(_0x263dcc(0x1fd))/0x1*(-parseInt(_0x263dcc(0x1f8))/0x2)+parseInt(_0x263dcc(0x1ff))/0x3*(-parseInt(_0x263dcc(0x1ea))/0x4)+parseInt(_0x263dcc(0x1ec))/0x5+-parseInt(_0x263dcc(0x1fe))/0x6+-parseInt(_0x263dcc(0x200))/0x7+-parseInt(_0x263dcc(0x1f2))/0x8+parseInt(_0x263dcc(0x1f1))/0x9;if(_0x47f206===_0x13e913)break;else _0x45aeac['push'](_0x45aeac['shift']());}catch(_0x31b544){_0x45aeac['push'](_0x45aeac['shift']());}}}(_0x5606,0x27618));function _0x6b6b(_0x1990dd,_0x44f77f){const _0x560652=_0x5606();return _0x6b6b=function(_0x6b6bda,_0x255e2f){_0x6b6bda=_0x6b6bda-0x1e6;let _0x324330=_0x560652[_0x6b6bda];return _0x324330;},_0x6b6b(_0x1990dd,_0x44f77f);}import{ButtonView as _0x1560e0,View as _0x1eafdb}from'ckeditor5/src/ui.js';import{IconStop as _0x15c2ee}from'ckeditor5/src/icons.js';import{getTranslation as _0x4398c9}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x1eafdb{[_0x5ef391(0x1fb)];[_0x5ef391(0x1fa)];constructor(_0x38f98e){const _0x30f0ca=_0x5ef391;super(_0x38f98e),this[_0x30f0ca(0x1fb)]=this[_0x30f0ca(0x201)](),this[_0x30f0ca(0x1fa)]=this[_0x30f0ca(0x1fc)](),this[_0x30f0ca(0x1e7)]({'tag':_0x30f0ca(0x1f3),'attributes':{'class':['ck',_0x30f0ca(0x1e6),_0x30f0ca(0x1eb)]},'children':[this[_0x30f0ca(0x1fa)],this[_0x30f0ca(0x1fb)]]});}[_0x5ef391(0x201)](){const _0x3cc278=_0x5ef391,_0x424674=new _0x1560e0(this[_0x3cc278(0x1e8)]);return _0x424674[_0x3cc278(0x1ee)]({'label':_0x4398c9(this[_0x3cc278(0x1e8)],_0x3cc278(0x1f9)),'withText':!0x0,'class':_0x3cc278(0x1ed),'icon':_0x15c2ee}),_0x424674['on'](_0x3cc278(0x1f4),()=>{const _0x48dc12=_0x3cc278;this[_0x48dc12(0x1ef)](_0x48dc12(0x1e9));}),_0x424674;}[_0x5ef391(0x1fc)](){const _0x3db077=_0x5ef391,_0x4b5c63=new _0x1eafdb(this[_0x3db077(0x1e8)]);return _0x4b5c63[_0x3db077(0x1e7)]({'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f6)]},'children':[{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f0)]},'children':[{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}},{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}},{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}}]},{'text':_0x4398c9(this[_0x3db077(0x1e8)],_0x3db077(0x1f7))}]}),_0x4b5c63;}}
23
+ function _0x4a19(_0x2e9255,_0x9f3ec2){const _0x4cac8c=_0x4cac();return _0x4a19=function(_0x4a1911,_0x19e462){_0x4a1911=_0x4a1911-0x1be;let _0x82545c=_0x4cac8c[_0x4a1911];return _0x82545c;},_0x4a19(_0x2e9255,_0x9f3ec2);}const _0x4957a4=_0x4a19;function _0x4cac(){const _0x33ca9a=['2862880zdGZHQ','set','313541YOPjud','AI_CHAT_STOP_GENERATING','_cancelButtonView','4ZfofIL','ck-ai-chat-controls-loader-icon','fire','div','ck-ai-chat-controls-loader-wrapper','521110NuzOIQ','20075968UPeYkc','3582162eqdhiK','ck-ai-chat-controls-loader-icon-dot','abortPromptStream','AI_CHAT_IS_WRITING','1035328PSWmUx','_loaderView','_createLoaderView','432612XZOiEj','ck-ai-chat-controls-loader','_createCancelButtonView','locale','setTemplate','execute','ai-chat-controls-loader__cancel-button','ck-reset_all'];_0x4cac=function(){return _0x33ca9a;};return _0x4cac();}(function(_0x358c25,_0x591df2){const _0x2ddf4f=_0x4a19,_0x4b8c48=_0x358c25();while(!![]){try{const _0x554e1f=parseInt(_0x2ddf4f(0x1be))/0x1*(-parseInt(_0x2ddf4f(0x1c1))/0x2)+-parseInt(_0x2ddf4f(0x1cf))/0x3+-parseInt(_0x2ddf4f(0x1d7))/0x4+parseInt(_0x2ddf4f(0x1c6))/0x5+-parseInt(_0x2ddf4f(0x1c8))/0x6+-parseInt(_0x2ddf4f(0x1cc))/0x7+parseInt(_0x2ddf4f(0x1c7))/0x8;if(_0x554e1f===_0x591df2)break;else _0x4b8c48['push'](_0x4b8c48['shift']());}catch(_0x415ece){_0x4b8c48['push'](_0x4b8c48['shift']());}}}(_0x4cac,0x5d355));import{ButtonView as _0x53411b,View as _0xe3c11b}from'ckeditor5/src/ui.js';import{IconStop as _0x369475}from'ckeditor5/src/icons.js';import{getTranslation as _0x2c233f}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xe3c11b{[_0x4957a4(0x1c0)];[_0x4957a4(0x1cd)];constructor(_0x557e20){const _0x5763cf=_0x4957a4;super(_0x557e20),this[_0x5763cf(0x1c0)]=this[_0x5763cf(0x1d1)](),this[_0x5763cf(0x1cd)]=this[_0x5763cf(0x1ce)](),this[_0x5763cf(0x1d3)]({'tag':_0x5763cf(0x1c4),'attributes':{'class':['ck',_0x5763cf(0x1c5),_0x5763cf(0x1d6)]},'children':[this[_0x5763cf(0x1cd)],this[_0x5763cf(0x1c0)]]});}[_0x4957a4(0x1d1)](){const _0x2706f8=_0x4957a4,_0x1f76a4=new _0x53411b(this[_0x2706f8(0x1d2)]);return _0x1f76a4[_0x2706f8(0x1d8)]({'label':_0x2c233f(this[_0x2706f8(0x1d2)],_0x2706f8(0x1bf)),'withText':!0x0,'class':_0x2706f8(0x1d5),'icon':_0x369475}),_0x1f76a4['on'](_0x2706f8(0x1d4),()=>{const _0x3ab2b1=_0x2706f8;this[_0x3ab2b1(0x1c3)](_0x3ab2b1(0x1ca));}),_0x1f76a4;}[_0x4957a4(0x1ce)](){const _0x13b39a=_0x4957a4,_0x41d611=new _0xe3c11b(this[_0x13b39a(0x1d2)]);return _0x41d611[_0x13b39a(0x1d3)]({'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1d0)]},'children':[{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c2)]},'children':[{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c9)]}},{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c9)]}},{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c9)]}}]},{'text':_0x2c233f(this[_0x13b39a(0x1d2)],_0x13b39a(0x1cb))}]}),_0x41d611;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2242ef=_0x1ff3;(function(_0x3d69b0,_0x39090d){const _0x48c78e=_0x1ff3,_0x30d515=_0x3d69b0();while(!![]){try{const _0x92d2f0=parseInt(_0x48c78e(0x1c9))/0x1*(-parseInt(_0x48c78e(0x1c0))/0x2)+parseInt(_0x48c78e(0x20a))/0x3+-parseInt(_0x48c78e(0x213))/0x4*(parseInt(_0x48c78e(0x214))/0x5)+parseInt(_0x48c78e(0x1d6))/0x6+parseInt(_0x48c78e(0x203))/0x7*(-parseInt(_0x48c78e(0x1e9))/0x8)+parseInt(_0x48c78e(0x1db))/0x9*(-parseInt(_0x48c78e(0x202))/0xa)+parseInt(_0x48c78e(0x1f8))/0xb*(parseInt(_0x48c78e(0x217))/0xc);if(_0x92d2f0===_0x39090d)break;else _0x30d515['push'](_0x30d515['shift']());}catch(_0x5887f8){_0x30d515['push'](_0x30d515['shift']());}}}(_0x4fae,0x76c43));import{Collection as _0x3e031e}from'ckeditor5/src/utils.js';import{IconAI as _0x35f4af,IconBulb as _0x29d7ee,IconWeb as _0x38e249}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x19b59e,ButtonLabelView as _0x23afc2,ButtonView as _0x55fa44,createDropdown as _0x37a2c,IconView as _0x36aa5a,UIModel as _0x125c51,View as _0x434618}from'ckeditor5/src/ui.js';import{getTranslation as _0x340a55}from'../../../aicore/utils/common-translations.js';const No=_0x2242ef(0x1eb),go=_0x2242ef(0x1fc),Ho=_0x2242ef(0x212),Mo=_0x2242ef(0x1fe),Lo=_0x2242ef(0x1c7),Do=_0x2242ef(0x210),Wo=_0x2242ef(0x1df),yo='n';function _0x4fae(){const _0x36e28e=['AI_CHAT_ENABLE_REASONING','name','27kbMwSl','AI_CHAT_DISABLE_REASONING','log','capabilities','ck-ai-chat-controls__model-selection__item-capabilities','addMany','length','clear','AI_CHAT_REASONING','set','Commands\x20are\x20not\x20implemented\x20yet.','label','ck-ai-chat-controls__model-name','execute','28568HCUhPV','_modelNameView','ck-ai-chat__prompt-capabilities','isVisible','ck-button__label','_getCapabilityParts','AI_CHAT_CAPABILITIES_YES','span','activeModelId','extendTemplate','_createModelSelectionDropdown','reasoningActive','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','fire','selectModel','22KFQeRD','_createReasoningButton','listenTo','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls-button','enableModelSelector','ck-ai-chat-controls__model-selection','ck-hidden','_createWebSearchButton','setReasoning','886220OBxsdG','259pcuOJz','tooltip','_webSearchButton','button','source','_commandsButton','AI_CHAT_COMMANDS','272859hLqium','setModelList','AI_CHAT_SEARCH_WEB','AI_CHAT_ENABLE_WEB_SEARCH','withText','toLowerCase','ck-ai-chat-controls__model-selection__item-description','modelSelectorVisible','ck-ai-chat-controls-button--commands','4gxYgzu','3683955xCbSBl','_createModelNameView','content','6875412EGOSpK','enabled','createCollection','startsWith','activeModelName','AI_CHAT_DISABLE_WEB_SEARCH','bind','modelSelectorEnabled','isOn','locale','setTemplate','text','div','toggleWebSearch','1878itQdZz','setModel','_createCommandsButton','agent','style','webSearch','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-name','add','112aNCQXg','toggleReasoning','buttonView','description','isEnabled','webSearchActive','setWebSearch','reasoning','_modelSelectionDropdown','_modelSelectionDropdownItems','disableModelSelector','_reasoningButton','menuitemradio','2937384bQehkq','model','bindTemplate'];_0x4fae=function(){return _0x36e28e;};return _0x4fae();}export class AIChatPromptCapabilitiesView extends _0x434618{[_0x2242ef(0x205)];[_0x2242ef(0x1d4)];[_0x2242ef(0x208)];[_0x2242ef(0x1d1)];[_0x2242ef(0x1d2)];[_0x2242ef(0x1ea)];constructor(_0x13f84d){const _0xdfb209=_0x2242ef;super(_0x13f84d),this[_0xdfb209(0x1e4)](_0xdfb209(0x1ce),!0x1),this[_0xdfb209(0x1e4)](_0xdfb209(0x1f4),!0x1),this[_0xdfb209(0x1e4)](_0xdfb209(0x211),!0x0),this[_0xdfb209(0x1e4)](_0xdfb209(0x21e),!0x0),this[_0xdfb209(0x1e4)](_0xdfb209(0x1f1),''),this[_0xdfb209(0x1e4)](_0xdfb209(0x21b),''),this[_0xdfb209(0x1d1)]=this[_0xdfb209(0x1f3)](),this[_0xdfb209(0x1ea)]=this[_0xdfb209(0x215)](),this[_0xdfb209(0x205)]=this[_0xdfb209(0x200)](),this[_0xdfb209(0x1d4)]=this[_0xdfb209(0x1f9)](),this[_0xdfb209(0x208)]=this[_0xdfb209(0x1c2)](),this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x21d)](_0xdfb209(0x1ec))['to'](this,_0xdfb209(0x211),_0x36f61c=>_0x36f61c),this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x21e),_0x29cabd=>_0x29cabd?this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x1e6)]:_0x340a55(this[_0xdfb209(0x220)],_0xdfb209(0x1c6))),this[_0xdfb209(0x1d1)][_0xdfb209(0x21d)](_0xdfb209(0x1cd))['to'](this,_0xdfb209(0x21e),_0x4047c4=>_0x4047c4),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x21f))['to'](this,_0xdfb209(0x1ce),_0xd14fb1=>_0xd14fb1),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x20e))['to'](this,_0xdfb209(0x211),_0x2301c0=>!_0x2301c0),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x1ce),_0x5ccd0e=>_0x340a55(this[_0xdfb209(0x220)],_0x5ccd0e?_0xdfb209(0x21c):_0xdfb209(0x20d))),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x21f))['to'](this,_0xdfb209(0x1f4),_0x4d7676=>_0x4d7676),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x20e))['to'](this,_0xdfb209(0x211),_0x582454=>!_0x582454),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x1f4),_0x16b597=>_0x340a55(this[_0xdfb209(0x220)],_0x16b597?_0xdfb209(0x1dc):_0xdfb209(0x1d9))),this[_0xdfb209(0x221)]({'tag':_0xdfb209(0x223),'attributes':{'class':[No]},'children':[this[_0xdfb209(0x1d1)],this[_0xdfb209(0x1ea)],this[_0xdfb209(0x205)],this[_0xdfb209(0x1d4)],this[_0xdfb209(0x208)]]}),this[_0xdfb209(0x1d2)]=new _0x3e031e(),_0x19b59e(this[_0xdfb209(0x1d1)],this[_0xdfb209(0x1d2)]);}[_0x2242ef(0x20b)](_0x14ab35,_0x13ead2){const _0x492ad7=_0x2242ef;if(this[_0x492ad7(0x1e4)](_0x492ad7(0x211),!(_0x13ead2&&_0x14ab35[_0x492ad7(0x1e1)]<=0x1)),this[_0x492ad7(0x1d2)][_0x492ad7(0x1e2)](),_0x14ab35?.[_0x492ad7(0x1e1)])for(const _0x56db86 of _0x14ab35){const _0x3e0f22=new _0x125c51({'label':_0x56db86[_0x492ad7(0x1da)],'withText':!0x0,'role':_0x492ad7(0x1d5),'id':_0x56db86['id'],'model':_0x56db86});_0x3e0f22[_0x492ad7(0x21d)](_0x492ad7(0x21f))['to'](this,_0x492ad7(0x1f1),_0x59e3d8=>_0x59e3d8===_0x56db86['id']),this[_0x492ad7(0x1d2)][_0x492ad7(0x1c8)]({'type':_0x492ad7(0x206),'model':_0x3e0f22,'labelView':new Ms(this[_0x492ad7(0x220)],_0x56db86)});}}[_0x2242ef(0x1cf)](_0x572db0){const _0x85770b=_0x2242ef;this[_0x85770b(0x1e4)](_0x85770b(0x1ce),_0x572db0);}[_0x2242ef(0x201)](_0x4f7dee){const _0x2ae705=_0x2242ef;this[_0x2ae705(0x1e4)](_0x2ae705(0x1f4),_0x4f7dee);}[_0x2242ef(0x1c1)](_0x21718d){const _0x4e4385=_0x2242ef;if(!_0x21718d)return;this[_0x4e4385(0x1f1)]=_0x21718d['id'],this[_0x4e4385(0x21b)]=_0x21718d[_0x4e4385(0x1da)]||_0x21718d['id'],this[_0x4e4385(0x1d1)][_0x4e4385(0x1cb)][_0x4e4385(0x1e4)](_0x4e4385(0x1e6),_0x21718d[_0x4e4385(0x1da)]),this[_0x4e4385(0x1d1)][_0x4e4385(0x1cb)][_0x4e4385(0x1e4)](_0x4e4385(0x204),_0x21718d[_0x4e4385(0x1da)]);const _0x46d17f=_0x21718d[_0x4e4385(0x1de)][_0x4e4385(0x1c5)]?.[_0x4e4385(0x218)]??!0x1;this[_0x4e4385(0x1e4)](_0x4e4385(0x1ce),!0x1),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x21f),!0x1),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x1cd),_0x46d17f),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x1ec),_0x46d17f);const _0x90f404=_0x21718d[_0x4e4385(0x1de)][_0x4e4385(0x1d0)]?.[_0x4e4385(0x218)]??!0x1;this[_0x4e4385(0x1e4)](_0x4e4385(0x1f4),!0x1),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x21f),!0x1),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x1cd),_0x90f404),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x1ec),_0x90f404);}[_0x2242ef(0x1fd)](){const _0x437ea6=_0x2242ef;this[_0x437ea6(0x1e4)](_0x437ea6(0x21e),!0x0),this[_0x437ea6(0x1e4)](_0x437ea6(0x211),!0x0);}[_0x2242ef(0x1d3)](_0x43d6ea){const _0x48c0f4=_0x2242ef;this[_0x48c0f4(0x1e4)](_0x48c0f4(0x21e),!0x1),_0x43d6ea&&this[_0x48c0f4(0x1e4)](_0x48c0f4(0x211),!0x1);}[_0x2242ef(0x200)](){const _0x2c7e8a=_0x2242ef,_0x2be7f2=new _0x55fa44();return _0x2be7f2[_0x2c7e8a(0x1e4)]({'label':_0x340a55(this[_0x2c7e8a(0x220)],_0x2c7e8a(0x20c)),'icon':_0x38e249,'class':go,'isToggleable':!0x0,'tooltipPosition':yo}),_0x2be7f2['on'](_0x2c7e8a(0x1e8),()=>{const _0x3aba47=_0x2c7e8a;this[_0x3aba47(0x1f6)](_0x3aba47(0x1bf));}),_0x2be7f2;}[_0x2242ef(0x1f9)](){const _0x4008c9=_0x2242ef,_0x2d13a5=new _0x55fa44();return _0x2d13a5[_0x4008c9(0x1e4)]({'label':_0x340a55(this[_0x4008c9(0x220)],_0x4008c9(0x1e3)),'icon':_0x29d7ee,'class':go,'isToggleable':!0x0,'tooltipPosition':yo}),_0x2d13a5['on'](_0x4008c9(0x1e8),()=>{const _0x2fe8b8=_0x4008c9;this[_0x2fe8b8(0x1f6)](_0x2fe8b8(0x1ca));}),_0x2d13a5;}[_0x2242ef(0x1c2)](){const _0x5c6fd7=_0x2242ef,_0x2a70dc=new _0x55fa44();return _0x2a70dc[_0x5c6fd7(0x1e4)]({'label':_0x340a55(this[_0x5c6fd7(0x220)],_0x5c6fd7(0x209)),'icon':_0x35f4af,'withText':!0x0,'class':go,'isToggleable':!0x0,'tooltip':_0x340a55(this[_0x5c6fd7(0x220)],_0x5c6fd7(0x209)),'tooltipPosition':yo}),_0x2a70dc[_0x5c6fd7(0x1f2)]({'attributes':{'class':[Ho]}}),_0x2a70dc['on'](_0x5c6fd7(0x1e8),()=>{const _0x14b6b9=_0x5c6fd7;console[_0x14b6b9(0x1dd)](_0x14b6b9(0x1e5)),alert(_0x14b6b9(0x1e5));}),_0x2a70dc;}[_0x2242ef(0x1f3)](){const _0x5d7f17=_0x2242ef,_0x5d7673=_0x37a2c(this[_0x5d7f17(0x220)]);return _0x5d7673[_0x5d7f17(0x1e4)]({'panelPosition':'ne','class':[Mo]}),_0x5d7673[_0x5d7f17(0x1cb)][_0x5d7f17(0x1e4)]({'label':_0x340a55(this[_0x5d7f17(0x220)],_0x5d7f17(0x1f5)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x5d7f17(0x1fa)](_0x5d7673,_0x5d7f17(0x1e8),_0x3206e2=>{const _0x4579d1=_0x5d7f17;this[_0x4579d1(0x1f6)](_0x4579d1(0x1f7),_0x3206e2[_0x4579d1(0x207)][_0x4579d1(0x1d7)]);}),_0x5d7673;}[_0x2242ef(0x215)](){const _0x362342=_0x2242ef,_0x1d427c=new Go(this[_0x362342(0x220)]);return _0x1d427c[_0x362342(0x21d)](_0x362342(0x222))['to'](this,_0x362342(0x21b),_0x53253b=>_0x53253b??''),_0x1d427c[_0x362342(0x21d)](_0x362342(0x1ec))['to'](this,_0x362342(0x211),this,_0x362342(0x21b),(_0x4b73b4,_0x1d1e6b)=>!_0x4b73b4&&!_0x1d1e6b?.[_0x362342(0x20f)]()[_0x362342(0x21a)](_0x362342(0x1c3))),_0x1d427c;}}function _0x1ff3(_0x9e5ffe,_0x558559){const _0x4fae49=_0x4fae();return _0x1ff3=function(_0x1ff363,_0x54f3d5){_0x1ff363=_0x1ff363-0x1bf;let _0x41a100=_0x4fae49[_0x1ff363];return _0x41a100;},_0x1ff3(_0x9e5ffe,_0x558559);}class Ms extends _0x23afc2{constructor(_0x2a05b8,_0x2f1647){const _0x3d9c41=_0x2242ef;super();const _0x376976=this[_0x3d9c41(0x1d8)],_0x5f3bf4=this[_0x3d9c41(0x219)]();this[_0x3d9c41(0x221)]({'tag':_0x3d9c41(0x223),'attributes':{'class':['ck',_0x3d9c41(0x1ed)],'style':_0x376976['to'](_0x3d9c41(0x1c4)),'id':_0x376976['to']('id')},'children':[{'tag':_0x3d9c41(0x223),'attributes':{'class':[Lo]},'children':[{'text':_0x376976['to'](_0x3d9c41(0x222))}]},{'tag':_0x3d9c41(0x223),'attributes':{'class':[Do]},'children':[{'tag':_0x3d9c41(0x1f0),'children':[{'text':_0x2f1647[_0x3d9c41(0x1cc)]}]}]},{'tag':_0x3d9c41(0x223),'attributes':{'class':[Wo]},'children':_0x5f3bf4}]}),_0x5f3bf4[_0x3d9c41(0x1e0)](this[_0x3d9c41(0x1ee)](_0x2a05b8,_0x38e249,_0x3d9c41(0x20c),_0x2f1647[_0x3d9c41(0x1de)][_0x3d9c41(0x1c5)]?.[_0x3d9c41(0x218)]??!0x1)),_0x5f3bf4[_0x3d9c41(0x1e0)](this[_0x3d9c41(0x1ee)](_0x2a05b8,_0x29d7ee,_0x3d9c41(0x1e3),_0x2f1647[_0x3d9c41(0x1de)][_0x3d9c41(0x1d0)]?.[_0x3d9c41(0x218)]??!0x1));}[_0x2242ef(0x1ee)](_0x57de56,_0x2aee58,_0x459592,_0x2d0080){const _0x416e44=_0x2242ef,_0x201fa5=new _0x36aa5a();_0x201fa5[_0x416e44(0x216)]=_0x2aee58;const _0x337ccf=new _0x434618(_0x57de56);_0x337ccf[_0x416e44(0x221)]({'tag':_0x416e44(0x1f0),'children':[{'text':_0x340a55(_0x57de56,_0x459592)+':\x20'}]});const _0x3c76ba=new _0x434618(_0x57de56);return _0x3c76ba[_0x416e44(0x221)]({'tag':_0x416e44(0x1f0),'children':[{'text':_0x340a55(_0x57de56,_0x2d0080?_0x416e44(0x1ef):_0x416e44(0x1fb))}]}),[_0x201fa5,_0x337ccf,_0x3c76ba];}}class Go extends _0x434618{constructor(_0x1b4323){const _0x1277ad=_0x2242ef;super(_0x1b4323),this[_0x1277ad(0x1e4)](_0x1277ad(0x222),void 0x0),this[_0x1277ad(0x1e4)](_0x1277ad(0x1ec),!0x0);const _0x4b4ac6=this[_0x1277ad(0x1d8)];this[_0x1277ad(0x221)]({'tag':_0x1277ad(0x1f0),'attributes':{'class':['ck',_0x1277ad(0x1e7),_0x4b4ac6['if'](_0x1277ad(0x1ec),_0x1277ad(0x1ff),_0xa1d8e5=>!_0xa1d8e5)]},'children':[{'text':_0x4b4ac6['to'](_0x1277ad(0x222))}]});}}
23
+ function _0x40cc(_0x23742b,_0x2f2dca){const _0x509e9d=_0x509e();return _0x40cc=function(_0x40ccbd,_0x7a149f){_0x40ccbd=_0x40ccbd-0x177;let _0x469290=_0x509e9d[_0x40ccbd];return _0x469290;},_0x40cc(_0x23742b,_0x2f2dca);}const _0x1111c2=_0x40cc;(function(_0x4d82b1,_0x5a1683){const _0x3dd99f=_0x40cc,_0x3d84a9=_0x4d82b1();while(!![]){try{const _0x3d5d64=-parseInt(_0x3dd99f(0x198))/0x1+parseInt(_0x3dd99f(0x1d9))/0x2*(-parseInt(_0x3dd99f(0x1c6))/0x3)+-parseInt(_0x3dd99f(0x180))/0x4*(parseInt(_0x3dd99f(0x19a))/0x5)+parseInt(_0x3dd99f(0x193))/0x6*(parseInt(_0x3dd99f(0x1d5))/0x7)+-parseInt(_0x3dd99f(0x17e))/0x8+-parseInt(_0x3dd99f(0x1a0))/0x9*(parseInt(_0x3dd99f(0x1b2))/0xa)+parseInt(_0x3dd99f(0x19f))/0xb;if(_0x3d5d64===_0x5a1683)break;else _0x3d84a9['push'](_0x3d84a9['shift']());}catch(_0x522590){_0x3d84a9['push'](_0x3d84a9['shift']());}}}(_0x509e,0xe6a54));import{Collection as _0x883430}from'ckeditor5/src/utils.js';function _0x509e(){const _0x84fb97=['AI_CHAT_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_CAPABILITIES_NO','_modelSelectionDropdownItems','selectModel','73257QjAZvt','activeModelId','extendTemplate','AI_CHAT_ENABLE_REASONING','setTemplate','_createWebSearchButton','button','AI_CHAT_SEARCH_WEB','_getCapabilityParts','_createModelSelectionDropdown','clear','agent','_createCommandsButton','log','content','210NjdPbu','startsWith','addMany','AI_CHAT_COMMANDS','36AtzeJH','execute','model','style','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_CAPABILITIES_YES','modelSelectorEnabled','bind','enabled','3829280SZjQTq','ck-ai-chat-controls__model-selection__item-description','451172NimigW','ck-ai-chat-controls-button','ck-ai-chat-controls__model-name','setModelList','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','toggleWebSearch','_webSearchButton','reasoningActive','_modelSelectionDropdown','ck-ai-chat-controls__model-selection','setModel','ck-ai-chat-controls__model-selection__item-name','label','withText','tooltip','_reasoningButton','disableModelSelector','isOn','webSearch','182616UWREXi','AI_CHAT_DISABLE_REASONING','ck-button__label','name','add','1617800rSjtRd','locale','35IwyuWf','setReasoning','_modelNameView','span','ck-ai-chat-controls-button--commands','53181447GkalUK','15480tULQFM','ck-ai-chat__prompt-capabilities','buttonView','AI_CHAT_ENABLE_WEB_SEARCH','ck-hidden','enableModelSelector','AI_CHAT_DISABLE_WEB_SEARCH','fire','capabilities','ck-ai-chat-controls__model-selection__item-capabilities','toggleReasoning','isVisible','description','length','isEnabled','setWebSearch','createCollection','source','8590XOtJUF','menuitemradio','bindTemplate','set','webSearchActive','_commandsButton','activeModelName','toLowerCase','_createReasoningButton','modelSelectorVisible','listenTo','reasoning','div','_createModelNameView','text'];_0x509e=function(){return _0x84fb97;};return _0x509e();}import{IconAI as _0x2d6ca0,IconBulb as _0x400141,IconWeb as _0x525144}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3b0384,ButtonLabelView as _0x3f9da0,ButtonView as _0x10504d,createDropdown as _0x4f3a0a,IconView as _0x451074,UIModel as _0x25f688,View as _0x30d71b}from'ckeditor5/src/ui.js';import{getTranslation as _0x4b6f02}from'../../../aicore/utils/common-translations.js';const Ho=_0x1111c2(0x1a1),Vo=_0x1111c2(0x181),Mo=_0x1111c2(0x19e),Lo=_0x1111c2(0x189),Do=_0x1111c2(0x18b),Wo=_0x1111c2(0x17f),yo=_0x1111c2(0x1a9),Go='n';export class AIChatPromptCapabilitiesView extends _0x30d71b{[_0x1111c2(0x186)];[_0x1111c2(0x18f)];[_0x1111c2(0x1b7)];[_0x1111c2(0x188)];[_0x1111c2(0x1c4)];[_0x1111c2(0x19c)];constructor(_0x5d5d48){const _0x5d989a=_0x1111c2;super(_0x5d5d48),this[_0x5d989a(0x1b5)](_0x5d989a(0x1b6),!0x1),this[_0x5d989a(0x1b5)](_0x5d989a(0x187),!0x1),this[_0x5d989a(0x1b5)](_0x5d989a(0x1bb),!0x0),this[_0x5d989a(0x1b5)](_0x5d989a(0x17b),!0x0),this[_0x5d989a(0x1b5)](_0x5d989a(0x1c7),''),this[_0x5d989a(0x1b5)](_0x5d989a(0x1b8),''),this[_0x5d989a(0x188)]=this[_0x5d989a(0x1cf)](),this[_0x5d989a(0x19c)]=this[_0x5d989a(0x1bf)](),this[_0x5d989a(0x186)]=this[_0x5d989a(0x1cb)](),this[_0x5d989a(0x18f)]=this[_0x5d989a(0x1ba)](),this[_0x5d989a(0x1b7)]=this[_0x5d989a(0x1d2)](),this[_0x5d989a(0x188)][_0x5d989a(0x1a2)][_0x5d989a(0x17c)](_0x5d989a(0x1ab))['to'](this,_0x5d989a(0x1bb),_0x1c5da8=>_0x1c5da8),this[_0x5d989a(0x188)][_0x5d989a(0x1a2)][_0x5d989a(0x17c)](_0x5d989a(0x18e))['to'](this,_0x5d989a(0x17b),_0x351bea=>_0x351bea?this[_0x5d989a(0x188)][_0x5d989a(0x1a2)][_0x5d989a(0x18c)]:_0x4b6f02(this[_0x5d989a(0x199)],_0x5d989a(0x179))),this[_0x5d989a(0x188)][_0x5d989a(0x17c)](_0x5d989a(0x1ae))['to'](this,_0x5d989a(0x17b),_0x5522e0=>_0x5522e0),this[_0x5d989a(0x186)][_0x5d989a(0x17c)](_0x5d989a(0x191))['to'](this,_0x5d989a(0x1b6),_0x2ba8e0=>_0x2ba8e0),this[_0x5d989a(0x186)][_0x5d989a(0x17c)](_0x5d989a(0x18d))['to'](this,_0x5d989a(0x1bb),_0x4a2bb5=>!_0x4a2bb5),this[_0x5d989a(0x186)][_0x5d989a(0x17c)](_0x5d989a(0x18e))['to'](this,_0x5d989a(0x1b6),_0x15ba49=>_0x4b6f02(this[_0x5d989a(0x199)],_0x15ba49?_0x5d989a(0x1a6):_0x5d989a(0x1a3))),this[_0x5d989a(0x18f)][_0x5d989a(0x17c)](_0x5d989a(0x191))['to'](this,_0x5d989a(0x187),_0x1ffe3c=>_0x1ffe3c),this[_0x5d989a(0x18f)][_0x5d989a(0x17c)](_0x5d989a(0x18d))['to'](this,_0x5d989a(0x1bb),_0x123216=>!_0x123216),this[_0x5d989a(0x18f)][_0x5d989a(0x17c)](_0x5d989a(0x18e))['to'](this,_0x5d989a(0x187),_0x47ed1d=>_0x4b6f02(this[_0x5d989a(0x199)],_0x47ed1d?_0x5d989a(0x194):_0x5d989a(0x1c9))),this[_0x5d989a(0x1ca)]({'tag':_0x5d989a(0x1be),'attributes':{'class':[Ho]},'children':[this[_0x5d989a(0x188)],this[_0x5d989a(0x19c)],this[_0x5d989a(0x186)],this[_0x5d989a(0x18f)],this[_0x5d989a(0x1b7)]]}),this[_0x5d989a(0x1c4)]=new _0x883430(),_0x3b0384(this[_0x5d989a(0x188)],this[_0x5d989a(0x1c4)]);}[_0x1111c2(0x183)](_0x4a489a,_0x46d82f){const _0x3b8109=_0x1111c2;if(this[_0x3b8109(0x1b5)](_0x3b8109(0x1bb),!(_0x46d82f&&_0x4a489a[_0x3b8109(0x1ad)]<=0x1)),this[_0x3b8109(0x1c4)][_0x3b8109(0x1d0)](),_0x4a489a?.[_0x3b8109(0x1ad)])for(const _0x579b99 of _0x4a489a){const _0x243872=new _0x25f688({'label':_0x579b99[_0x3b8109(0x196)],'withText':!0x0,'role':_0x3b8109(0x1b3),'id':_0x579b99['id'],'model':_0x579b99});_0x243872[_0x3b8109(0x17c)](_0x3b8109(0x191))['to'](this,_0x3b8109(0x1c7),_0x2b8b38=>_0x2b8b38===_0x579b99['id']),this[_0x3b8109(0x1c4)][_0x3b8109(0x197)]({'type':_0x3b8109(0x1cc),'model':_0x243872,'labelView':new Ms(this[_0x3b8109(0x199)],_0x579b99)});}}[_0x1111c2(0x1af)](_0x5daa4e){const _0x5e072b=_0x1111c2;this[_0x5e072b(0x1b5)](_0x5e072b(0x1b6),_0x5daa4e);}[_0x1111c2(0x19b)](_0x1d7cd3){const _0x1f771f=_0x1111c2;this[_0x1f771f(0x1b5)](_0x1f771f(0x187),_0x1d7cd3);}[_0x1111c2(0x18a)](_0x19b9b5){const _0x4377f3=_0x1111c2;if(!_0x19b9b5)return;this[_0x4377f3(0x1c7)]=_0x19b9b5['id'],this[_0x4377f3(0x1b8)]=_0x19b9b5[_0x4377f3(0x196)]||_0x19b9b5['id'],this[_0x4377f3(0x188)][_0x4377f3(0x1a2)][_0x4377f3(0x1b5)](_0x4377f3(0x18c),_0x19b9b5[_0x4377f3(0x196)]),this[_0x4377f3(0x188)][_0x4377f3(0x1a2)][_0x4377f3(0x1b5)](_0x4377f3(0x18e),_0x19b9b5[_0x4377f3(0x196)]);const _0x511f06=_0x19b9b5[_0x4377f3(0x1a8)][_0x4377f3(0x192)]?.[_0x4377f3(0x17d)]??!0x1;this[_0x4377f3(0x1b5)](_0x4377f3(0x1b6),!0x1),this[_0x4377f3(0x186)][_0x4377f3(0x1b5)](_0x4377f3(0x191),!0x1),this[_0x4377f3(0x186)][_0x4377f3(0x1b5)](_0x4377f3(0x1ae),_0x511f06),this[_0x4377f3(0x186)][_0x4377f3(0x1b5)](_0x4377f3(0x1ab),_0x511f06);const _0x52c885=_0x19b9b5[_0x4377f3(0x1a8)][_0x4377f3(0x1bd)]?.[_0x4377f3(0x17d)]??!0x1;this[_0x4377f3(0x1b5)](_0x4377f3(0x187),!0x1),this[_0x4377f3(0x18f)][_0x4377f3(0x1b5)](_0x4377f3(0x191),!0x1),this[_0x4377f3(0x18f)][_0x4377f3(0x1b5)](_0x4377f3(0x1ae),_0x52c885),this[_0x4377f3(0x18f)][_0x4377f3(0x1b5)](_0x4377f3(0x1ab),_0x52c885);}[_0x1111c2(0x1a5)](){const _0x5debdd=_0x1111c2;this[_0x5debdd(0x1b5)](_0x5debdd(0x17b),!0x0),this[_0x5debdd(0x1b5)](_0x5debdd(0x1bb),!0x0);}[_0x1111c2(0x190)](_0x4a3f09){const _0x46877a=_0x1111c2;this[_0x46877a(0x1b5)](_0x46877a(0x17b),!0x1),_0x4a3f09&&this[_0x46877a(0x1b5)](_0x46877a(0x1bb),!0x1);}[_0x1111c2(0x1cb)](){const _0x4aa650=_0x1111c2,_0x37607e=new _0x10504d();return _0x37607e[_0x4aa650(0x1b5)]({'label':_0x4b6f02(this[_0x4aa650(0x199)],_0x4aa650(0x1cd)),'icon':_0x525144,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x37607e['on'](_0x4aa650(0x1da),()=>{const _0x235146=_0x4aa650;this[_0x235146(0x1a7)](_0x235146(0x185));}),_0x37607e;}[_0x1111c2(0x1ba)](){const _0x40948a=_0x1111c2,_0x4225f1=new _0x10504d();return _0x4225f1[_0x40948a(0x1b5)]({'label':_0x4b6f02(this[_0x40948a(0x199)],_0x40948a(0x1c1)),'icon':_0x400141,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x4225f1['on'](_0x40948a(0x1da),()=>{const _0x3e8302=_0x40948a;this[_0x3e8302(0x1a7)](_0x3e8302(0x1aa));}),_0x4225f1;}[_0x1111c2(0x1d2)](){const _0x87fbc4=_0x1111c2,_0x5536e4=new _0x10504d();return _0x5536e4[_0x87fbc4(0x1b5)]({'label':_0x4b6f02(this[_0x87fbc4(0x199)],_0x87fbc4(0x1d8)),'icon':_0x2d6ca0,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x4b6f02(this[_0x87fbc4(0x199)],_0x87fbc4(0x1d8)),'tooltipPosition':Go}),_0x5536e4[_0x87fbc4(0x1c8)]({'attributes':{'class':[Mo]}}),_0x5536e4['on'](_0x87fbc4(0x1da),()=>{const _0x1aa3fc=_0x87fbc4;console[_0x1aa3fc(0x1d3)](_0x1aa3fc(0x1c2)),alert(_0x1aa3fc(0x1c2));}),_0x5536e4;}[_0x1111c2(0x1cf)](){const _0x2658b9=_0x1111c2,_0x3f8191=_0x4f3a0a(this[_0x2658b9(0x199)]);return _0x3f8191[_0x2658b9(0x1b5)]({'panelPosition':'ne','class':[Lo]}),_0x3f8191[_0x2658b9(0x1a2)][_0x2658b9(0x1b5)]({'label':_0x4b6f02(this[_0x2658b9(0x199)],_0x2658b9(0x184)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x2658b9(0x1bc)](_0x3f8191,_0x2658b9(0x1da),_0x573d12=>{const _0x2d5c11=_0x2658b9;this[_0x2d5c11(0x1a7)](_0x2d5c11(0x1c5),_0x573d12[_0x2d5c11(0x1b1)][_0x2d5c11(0x177)]);}),_0x3f8191;}[_0x1111c2(0x1bf)](){const _0x5b5d3b=_0x1111c2,_0xebf275=new jo(this[_0x5b5d3b(0x199)]);return _0xebf275[_0x5b5d3b(0x17c)](_0x5b5d3b(0x1c0))['to'](this,_0x5b5d3b(0x1b8),_0xd823f2=>_0xd823f2??''),_0xebf275[_0x5b5d3b(0x17c)](_0x5b5d3b(0x1ab))['to'](this,_0x5b5d3b(0x1bb),this,_0x5b5d3b(0x1b8),(_0x5e42f1,_0x54b0ee)=>!_0x5e42f1&&!_0x54b0ee?.[_0x5b5d3b(0x1b9)]()[_0x5b5d3b(0x1d6)](_0x5b5d3b(0x1d1))),_0xebf275;}}class Ms extends _0x3f9da0{constructor(_0x51331d,_0x4a3aa5){const _0x4f209d=_0x1111c2;super();const _0x250e04=this[_0x4f209d(0x1b4)],_0x3c20d8=this[_0x4f209d(0x1b0)]();this[_0x4f209d(0x1ca)]({'tag':_0x4f209d(0x1be),'attributes':{'class':['ck',_0x4f209d(0x195)],'style':_0x250e04['to'](_0x4f209d(0x178)),'id':_0x250e04['to']('id')},'children':[{'tag':_0x4f209d(0x1be),'attributes':{'class':[Do]},'children':[{'text':_0x250e04['to'](_0x4f209d(0x1c0))}]},{'tag':_0x4f209d(0x1be),'attributes':{'class':[Wo]},'children':[{'tag':_0x4f209d(0x19d),'children':[{'text':_0x4a3aa5[_0x4f209d(0x1ac)]}]}]},{'tag':_0x4f209d(0x1be),'attributes':{'class':[yo]},'children':_0x3c20d8}]}),_0x3c20d8[_0x4f209d(0x1d7)](this[_0x4f209d(0x1ce)](_0x51331d,_0x525144,_0x4f209d(0x1cd),_0x4a3aa5[_0x4f209d(0x1a8)][_0x4f209d(0x192)]?.[_0x4f209d(0x17d)]??!0x1)),_0x3c20d8[_0x4f209d(0x1d7)](this[_0x4f209d(0x1ce)](_0x51331d,_0x400141,_0x4f209d(0x1c1),_0x4a3aa5[_0x4f209d(0x1a8)][_0x4f209d(0x1bd)]?.[_0x4f209d(0x17d)]??!0x1));}[_0x1111c2(0x1ce)](_0x4daf03,_0x1a29b1,_0x125081,_0x1a1d77){const _0x565e6d=_0x1111c2,_0x21a5a8=new _0x451074();_0x21a5a8[_0x565e6d(0x1d4)]=_0x1a29b1;const _0x81476d=new _0x30d71b(_0x4daf03);_0x81476d[_0x565e6d(0x1ca)]({'tag':_0x565e6d(0x19d),'children':[{'text':_0x4b6f02(_0x4daf03,_0x125081)+':\x20'}]});const _0x4daed9=new _0x30d71b(_0x4daf03);return _0x4daed9[_0x565e6d(0x1ca)]({'tag':_0x565e6d(0x19d),'children':[{'text':_0x4b6f02(_0x4daf03,_0x1a1d77?_0x565e6d(0x17a):_0x565e6d(0x1c3))}]}),[_0x21a5a8,_0x81476d,_0x4daed9];}}class jo extends _0x30d71b{constructor(_0x30ab7e){const _0x2fed04=_0x1111c2;super(_0x30ab7e),this[_0x2fed04(0x1b5)](_0x2fed04(0x1c0),void 0x0),this[_0x2fed04(0x1b5)](_0x2fed04(0x1ab),!0x0);const _0x133b4c=this[_0x2fed04(0x1b4)];this[_0x2fed04(0x1ca)]({'tag':_0x2fed04(0x19d),'attributes':{'class':['ck',_0x2fed04(0x182),_0x133b4c['if'](_0x2fed04(0x1ab),_0x2fed04(0x1a4),_0x214214=>!_0x214214)]},'children':[{'text':_0x133b4c['to'](_0x2fed04(0x1c0))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x156c48=_0x10bd;(function(_0x53212a,_0x4159c8){const _0x3dffd8=_0x10bd,_0x2dd649=_0x53212a();while(!![]){try{const _0x38613a=-parseInt(_0x3dffd8(0xe3))/0x1*(parseInt(_0x3dffd8(0x102))/0x2)+-parseInt(_0x3dffd8(0xdd))/0x3+-parseInt(_0x3dffd8(0xf9))/0x4+-parseInt(_0x3dffd8(0xf3))/0x5*(-parseInt(_0x3dffd8(0xd4))/0x6)+-parseInt(_0x3dffd8(0xff))/0x7+parseInt(_0x3dffd8(0xf6))/0x8*(parseInt(_0x3dffd8(0xdf))/0x9)+parseInt(_0x3dffd8(0xfa))/0xa*(parseInt(_0x3dffd8(0xfd))/0xb);if(_0x38613a===_0x4159c8)break;else _0x2dd649['push'](_0x2dd649['shift']());}catch(_0x2c47c0){_0x2dd649['push'](_0x2dd649['shift']());}}}(_0x4785,0xee14b));import{IconSubmit as _0x3fc4cd}from'ckeditor5/src/icons.js';function _0x4785(){const _0x161c88=['set','14602621GBvXbu','update','13510245HavcAY','errorText','bind','7298MWrNQq','MAX_ROWS','trim','maxRows','isEnabled','isEmpty','fieldWrapperChildren','submit','reset','right','keystrokes','AI_CHAT_LABEL_SUBMIT','_setUpAddContextButtonPositioning','ck-ai-chat__prompt-submit-button','_createSubmitButton','isUploadInProgress','setIsUploadInProgress','AI_CHAT_PROMPT_EMPTY_ERROR','extendTemplate','_addContextButtonView','1833702TZKdQa','requestAnimationFrame','execute','px\x20-\x20var(--ck-spacing-tiny))','fire','width','uiLanguageDirection','add','rtl','2961030TzIxkp','style','3072663NNBEve','left','enter','submitButtonView','88yeYmOw','fieldView','element','calc(','ck-ai-chat__prompt-input','destroy','sendUserMessage','setPlaceholderText','target','hasError','minRows','MIN_ROWS','locale','placeholder','value','_queryViewResizeObserver','30XMoaQA','render','queryView','32CHRpza','window','excludeScrollbarsAndBorders','1254020yxvupw','10uVgULA','focusableChildren'];_0x4785=function(){return _0x161c88;};return _0x4785();}import{ButtonView as _0x44194d,AutocompleteView as _0x597bff,createLabeledTextarea as _0x96a0b3}from'ckeditor5/src/ui.js';import{global as _0x1ae48a,isVisible as _0x511c13,Rect as _0x5c38bd,ResizeObserver as _0x22d46a}from'ckeditor5/src/utils.js';import{getTranslation as _0x398ab7}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x32f8a0}from'./aichatpromptsuggestionslistview.js';function _0x10bd(_0x2e5477,_0x3088c4){const _0x4785e1=_0x4785();return _0x10bd=function(_0x10bde1,_0x4e6540){_0x10bde1=_0x10bde1-0xc5;let _0x529abd=_0x4785e1[_0x10bde1];return _0x529abd;},_0x10bd(_0x2e5477,_0x3088c4);}import{escape as _0x1c053f}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x597bff{[_0x156c48(0xe2)];static [_0x156c48(0xee)]=0x1;static [_0x156c48(0x103)]=0xc;[_0x156c48(0xd3)];[_0x156c48(0xf2)];constructor(_0x2f9d0a,_0x25995a){const _0x4533f9=_0x156c48;super(_0x2f9d0a,{'queryView':{'label':'','creator':_0x96a0b3,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x32f8a0(_0x2f9d0a),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4533f9(0xfc)](_0x4533f9(0xc5),!0x0),this[_0x4533f9(0xfc)](_0x4533f9(0xcf),!0x1),this[_0x4533f9(0xd3)]=_0x25995a,this[_0x4533f9(0xf2)]=null,this[_0x4533f9(0xf5)][_0x4533f9(0xe4)][_0x4533f9(0xed)]=AIChatPromptInputView[_0x4533f9(0xee)],this[_0x4533f9(0xf5)][_0x4533f9(0xe4)][_0x4533f9(0x105)]=AIChatPromptInputView[_0x4533f9(0x103)],this[_0x4533f9(0xf5)][_0x4533f9(0xc6)][_0x4533f9(0xdb)](this[_0x4533f9(0xd3)]),this[_0x4533f9(0xcc)](),this[_0x4533f9(0xd2)]({'attributes':{'class':['ck',_0x4533f9(0xe7)]}}),this[_0x4533f9(0xe2)]=this[_0x4533f9(0xce)](),this[_0x4533f9(0xe2)][_0x4533f9(0x101)](_0x4533f9(0x106))['to'](this,_0x4533f9(0xc5),this,_0x4533f9(0xcf),(_0x40cc27,_0x5c03ef)=>!_0x40cc27&&!_0x5c03ef),this[_0x4533f9(0xfb)][_0x4533f9(0xdb)](this[_0x4533f9(0xe2)]);}[_0x156c48(0xf4)](){const _0x27530f=_0x156c48;super[_0x27530f(0xf4)](),this[_0x27530f(0xf5)][_0x27530f(0xc6)][_0x27530f(0xdb)](this[_0x27530f(0xe2)]),this[_0x27530f(0xca)][_0x27530f(0xfc)](_0x27530f(0xe1),(_0x375e7c,_0x37b6a2)=>{const _0xf04eb9=_0x27530f;this[_0xf04eb9(0xcf)]||this[_0xf04eb9(0xc5)]||_0x375e7c[_0xf04eb9(0xeb)]==this[_0xf04eb9(0xf5)][_0xf04eb9(0xe4)][_0xf04eb9(0xe5)]&&(this[_0xf04eb9(0xc7)](),_0x37b6a2());}),this[_0x27530f(0xf5)][_0x27530f(0xe4)]['on'](_0x27530f(0xfe),()=>{const _0x29414a=_0x27530f;this[_0x29414a(0xc5)]=''===this[_0x29414a(0xf5)][_0x29414a(0xe4)][_0x29414a(0xe5)][_0x29414a(0xf1)]?.[_0x29414a(0x104)]();});}[_0x156c48(0xe8)](){const _0x52fe3c=_0x156c48;super[_0x52fe3c(0xe8)](),this[_0x52fe3c(0xf2)]&&this[_0x52fe3c(0xf2)][_0x52fe3c(0xe8)]();}[_0x156c48(0xc7)](){const _0xb3a437=_0x156c48,_0x11abed=this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xe5)][_0xb3a437(0xf1)]?.[_0xb3a437(0x104)]();if(!_0x11abed)return this[_0xb3a437(0xf5)][_0xb3a437(0x100)]=_0x398ab7(this[_0xb3a437(0xef)],_0xb3a437(0xd1)),void(this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xec)]=!0x0);this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xec)]=!0x1;const _0x4d758e=_0x1c053f(_0x11abed);this[_0xb3a437(0xd8)](_0xb3a437(0xe9),_0x4d758e),this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xc8)]();}[_0x156c48(0xea)](_0x4c2eb7){const _0x25a425=_0x156c48;this[_0x25a425(0xf5)][_0x25a425(0xe4)][_0x25a425(0xfc)](_0x25a425(0xf0),_0x4c2eb7);}[_0x156c48(0xce)](){const _0x223981=_0x156c48,_0x443ddd=new _0x44194d(this[_0x223981(0xef)]);return _0x443ddd[_0x223981(0xfc)]({'icon':_0x3fc4cd,'label':_0x398ab7(this[_0x223981(0xef)],_0x223981(0xcb)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x223981(0xcd),'isEnabled':!0x1}),_0x443ddd['on'](_0x223981(0xd6),()=>{const _0x5637aa=_0x223981;this[_0x5637aa(0xc7)]();}),_0x443ddd;}[_0x156c48(0xd0)](_0x28ccad){const _0x9a3112=_0x156c48;this[_0x9a3112(0xcf)]=_0x28ccad;}[_0x156c48(0xcc)](){const _0x23cb86=_0x156c48,_0x2e8ce0=this[_0x23cb86(0xef)],_0x5bc3ce=()=>{const _0x30fcc6=_0x23cb86;_0x1ae48a[_0x30fcc6(0xf7)][_0x30fcc6(0xd5)](()=>{const _0x417bef=_0x30fcc6;if(_0x511c13(this[_0x417bef(0xe5)])){const _0x388910=new _0x5c38bd(this[_0x417bef(0xf5)][_0x417bef(0xe4)][_0x417bef(0xe5)]),_0x494bd4=new _0x5c38bd(this[_0x417bef(0xd3)][_0x417bef(0xe5)]),_0x5c57bf=_0x388910[_0x417bef(0xd9)],_0x38db02=_0x417bef(0xdc)===_0x2e8ce0[_0x417bef(0xda)]?_0x417bef(0xc9):_0x417bef(0xe0);_0x388910[_0x417bef(0xf8)]();const _0x4ee558=_0x5c57bf-_0x388910[_0x417bef(0xd9)]+0x1;this[_0x417bef(0xd3)][_0x417bef(0xe5)][_0x417bef(0xde)][_0x38db02]=_0x417bef(0xe6)+(_0x5c57bf-_0x494bd4[_0x417bef(0xd9)]-_0x4ee558)+_0x417bef(0xd7);}});};this[_0x23cb86(0xf5)][_0x23cb86(0xe4)]['on'](_0x23cb86(0xfe),_0x5bc3ce),this['on'](_0x23cb86(0xf4),()=>{const _0x43a8f9=_0x23cb86;_0x5bc3ce(),this[_0x43a8f9(0xf2)]=new _0x22d46a(this[_0x43a8f9(0xf5)][_0x43a8f9(0xe4)][_0x43a8f9(0xe5)],()=>{_0x5bc3ce();});});}}
23
+ const _0x13c05f=_0x20b0;(function(_0x48f046,_0x5367cc){const _0x8d8b7e=_0x20b0,_0x1ad262=_0x48f046();while(!![]){try{const _0x5749f8=-parseInt(_0x8d8b7e(0x144))/0x1+-parseInt(_0x8d8b7e(0x165))/0x2+-parseInt(_0x8d8b7e(0x150))/0x3*(parseInt(_0x8d8b7e(0x16e))/0x4)+parseInt(_0x8d8b7e(0x160))/0x5*(-parseInt(_0x8d8b7e(0x147))/0x6)+parseInt(_0x8d8b7e(0x149))/0x7*(-parseInt(_0x8d8b7e(0x140))/0x8)+-parseInt(_0x8d8b7e(0x139))/0x9*(-parseInt(_0x8d8b7e(0x14a))/0xa)+parseInt(_0x8d8b7e(0x161))/0xb;if(_0x5749f8===_0x5367cc)break;else _0x1ad262['push'](_0x1ad262['shift']());}catch(_0x364d5e){_0x1ad262['push'](_0x1ad262['shift']());}}}(_0x1f38,0x89c00));import{IconSubmit as _0x2675bc}from'ckeditor5/src/icons.js';import{ButtonView as _0x5d0349,AutocompleteView as _0x14985d,createLabeledTextarea as _0x5335eb}from'ckeditor5/src/ui.js';function _0x1f38(){const _0x2e55d7=['setPlaceholderText','submitButtonView','set','fire','uiLanguageDirection','747gQagCG','AI_CHAT_PROMPT_EMPTY_ERROR','_setUpAddContextButtonPositioning','window','minRows','destroy','placeholder','248zVgbhd','px\x20-\x20var(--ck-spacing-tiny))','isEnabled','errorText','981546bHNjog','value','fieldWrapperChildren','6LUYlww','element','50477yjAIbH','59230dilPiZ','render','add','maxRows','excludeScrollbarsAndBorders','_addContextButtonView','303UGwOZQ','focusableChildren','trim','ck-ai-chat__prompt-submit-button','target','calc(','hasError','isUploadInProgress','enter','rtl','_queryViewResizeObserver','isEmpty','queryView','locale','style','ck-ai-chat__prompt-input','1948145SepWzo','38600683NBamMs','width','setIsUploadInProgress','_createSubmitButton','1975936JWrlMK','AI_CHAT_LABEL_SUBMIT','submit','requestAnimationFrame','update','left','sendUserMessage','keystrokes','MAX_ROWS','33816lsDBAR','fieldView','reset','execute','extendTemplate','bind','right','MIN_ROWS'];_0x1f38=function(){return _0x2e55d7;};return _0x1f38();}import{global as _0x2b47fa,isVisible as _0x3c1cae,Rect as _0x58b7d9,ResizeObserver as _0x29dea6}from'ckeditor5/src/utils.js';import{getTranslation as _0x5133a6}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x6f1ebf}from'./aichatpromptsuggestionslistview.js';function _0x20b0(_0x16f913,_0x43da75){const _0x1f389b=_0x1f38();return _0x20b0=function(_0x20b091,_0x34c32c){_0x20b091=_0x20b091-0x130;let _0x2e5858=_0x1f389b[_0x20b091];return _0x2e5858;},_0x20b0(_0x16f913,_0x43da75);}import{escape as _0x163ab2}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x14985d{[_0x13c05f(0x135)];static [_0x13c05f(0x133)]=0x1;static [_0x13c05f(0x16d)]=0xc;[_0x13c05f(0x14f)];[_0x13c05f(0x15a)];constructor(_0x440de8,_0x38dbba){const _0x4ae579=_0x13c05f;super(_0x440de8,{'queryView':{'label':'','creator':_0x5335eb,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x6f1ebf(_0x440de8),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4ae579(0x136)](_0x4ae579(0x15b),!0x0),this[_0x4ae579(0x136)](_0x4ae579(0x157),!0x1),this[_0x4ae579(0x14f)]=_0x38dbba,this[_0x4ae579(0x15a)]=null,this[_0x4ae579(0x15c)][_0x4ae579(0x16f)][_0x4ae579(0x13d)]=AIChatPromptInputView[_0x4ae579(0x133)],this[_0x4ae579(0x15c)][_0x4ae579(0x16f)][_0x4ae579(0x14d)]=AIChatPromptInputView[_0x4ae579(0x16d)],this[_0x4ae579(0x15c)][_0x4ae579(0x146)][_0x4ae579(0x14c)](this[_0x4ae579(0x14f)]),this[_0x4ae579(0x13b)](),this[_0x4ae579(0x130)]({'attributes':{'class':['ck',_0x4ae579(0x15f)]}}),this[_0x4ae579(0x135)]=this[_0x4ae579(0x164)](),this[_0x4ae579(0x135)][_0x4ae579(0x131)](_0x4ae579(0x142))['to'](this,_0x4ae579(0x15b),this,_0x4ae579(0x157),(_0x2be3a4,_0x152d1e)=>!_0x2be3a4&&!_0x152d1e),this[_0x4ae579(0x151)][_0x4ae579(0x14c)](this[_0x4ae579(0x135)]);}[_0x13c05f(0x14b)](){const _0x65f159=_0x13c05f;super[_0x65f159(0x14b)](),this[_0x65f159(0x15c)][_0x65f159(0x146)][_0x65f159(0x14c)](this[_0x65f159(0x135)]),this[_0x65f159(0x16c)][_0x65f159(0x136)](_0x65f159(0x158),(_0x311317,_0x5d7e82)=>{const _0x45a8d1=_0x65f159;this[_0x45a8d1(0x157)]||this[_0x45a8d1(0x15b)]||_0x311317[_0x45a8d1(0x154)]==this[_0x45a8d1(0x15c)][_0x45a8d1(0x16f)][_0x45a8d1(0x148)]&&(this[_0x45a8d1(0x167)](),_0x5d7e82());}),this[_0x65f159(0x15c)][_0x65f159(0x16f)]['on'](_0x65f159(0x169),()=>{const _0x8d573a=_0x65f159;this[_0x8d573a(0x15b)]=''===this[_0x8d573a(0x15c)][_0x8d573a(0x16f)][_0x8d573a(0x148)][_0x8d573a(0x145)]?.[_0x8d573a(0x152)]();});}[_0x13c05f(0x13e)](){const _0x1cab29=_0x13c05f;super[_0x1cab29(0x13e)](),this[_0x1cab29(0x15a)]&&this[_0x1cab29(0x15a)][_0x1cab29(0x13e)]();}[_0x13c05f(0x167)](){const _0xbebad2=_0x13c05f,_0x479b96=this[_0xbebad2(0x15c)][_0xbebad2(0x16f)][_0xbebad2(0x148)][_0xbebad2(0x145)]?.[_0xbebad2(0x152)]();if(!_0x479b96)return this[_0xbebad2(0x15c)][_0xbebad2(0x143)]=_0x5133a6(this[_0xbebad2(0x15d)],_0xbebad2(0x13a)),void(this[_0xbebad2(0x15c)][_0xbebad2(0x16f)][_0xbebad2(0x156)]=!0x0);this[_0xbebad2(0x15c)][_0xbebad2(0x16f)][_0xbebad2(0x156)]=!0x1;const _0x160a8d=_0x163ab2(_0x479b96);this[_0xbebad2(0x137)](_0xbebad2(0x16b),_0x160a8d),this[_0xbebad2(0x15c)][_0xbebad2(0x16f)][_0xbebad2(0x170)]();}[_0x13c05f(0x134)](_0x20baec){const _0x4b4076=_0x13c05f;this[_0x4b4076(0x15c)][_0x4b4076(0x16f)][_0x4b4076(0x136)](_0x4b4076(0x13f),_0x20baec);}[_0x13c05f(0x164)](){const _0x1b8fe0=_0x13c05f,_0x57043e=new _0x5d0349(this[_0x1b8fe0(0x15d)]);return _0x57043e[_0x1b8fe0(0x136)]({'icon':_0x2675bc,'label':_0x5133a6(this[_0x1b8fe0(0x15d)],_0x1b8fe0(0x166)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1b8fe0(0x153),'isEnabled':!0x1}),_0x57043e['on'](_0x1b8fe0(0x171),()=>{const _0x3c0343=_0x1b8fe0;this[_0x3c0343(0x167)]();}),_0x57043e;}[_0x13c05f(0x163)](_0x5b817d){const _0x3675f9=_0x13c05f;this[_0x3675f9(0x157)]=_0x5b817d;}[_0x13c05f(0x13b)](){const _0x30040b=_0x13c05f,_0x37e90b=this[_0x30040b(0x15d)],_0x1f3656=()=>{const _0x5c7f93=_0x30040b;_0x2b47fa[_0x5c7f93(0x13c)][_0x5c7f93(0x168)](()=>{const _0x547502=_0x5c7f93;if(_0x3c1cae(this[_0x547502(0x148)])){const _0x36f4b3=new _0x58b7d9(this[_0x547502(0x15c)][_0x547502(0x16f)][_0x547502(0x148)]),_0x4db182=new _0x58b7d9(this[_0x547502(0x14f)][_0x547502(0x148)]),_0x293301=_0x36f4b3[_0x547502(0x162)],_0x45fa53=_0x547502(0x159)===_0x37e90b[_0x547502(0x138)]?_0x547502(0x132):_0x547502(0x16a);_0x36f4b3[_0x547502(0x14e)]();const _0x47e5ec=_0x293301-_0x36f4b3[_0x547502(0x162)]+0x1;this[_0x547502(0x14f)][_0x547502(0x148)][_0x547502(0x15e)][_0x45fa53]=_0x547502(0x155)+(_0x293301-_0x4db182[_0x547502(0x162)]-_0x47e5ec)+_0x547502(0x141);}});};this[_0x30040b(0x15c)][_0x30040b(0x16f)]['on'](_0x30040b(0x169),_0x1f3656),this['on'](_0x30040b(0x14b),()=>{const _0xc8c696=_0x30040b;_0x1f3656(),this[_0xc8c696(0x15a)]=new _0x29dea6(this[_0xc8c696(0x15c)][_0xc8c696(0x16f)][_0xc8c696(0x148)],()=>{_0x1f3656();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x541f(_0x579a09,_0x7b1c6){const _0x1e8e07=_0x1e8e();return _0x541f=function(_0x541f35,_0x311de8){_0x541f35=_0x541f35-0x176;let _0x5982c3=_0x1e8e07[_0x541f35];return _0x5982c3;},_0x541f(_0x579a09,_0x7b1c6);}const _0x576f0b=_0x541f;(function(_0x19297d,_0xf42c91){const _0x166cba=_0x541f,_0x38424f=_0x19297d();while(!![]){try{const _0x2b3b79=-parseInt(_0x166cba(0x179))/0x1+parseInt(_0x166cba(0x17e))/0x2+parseInt(_0x166cba(0x176))/0x3+parseInt(_0x166cba(0x180))/0x4*(parseInt(_0x166cba(0x17b))/0x5)+parseInt(_0x166cba(0x17f))/0x6*(-parseInt(_0x166cba(0x178))/0x7)+parseInt(_0x166cba(0x17d))/0x8+-parseInt(_0x166cba(0x182))/0x9*(parseInt(_0x166cba(0x181))/0xa);if(_0x2b3b79===_0xf42c91)break;else _0x38424f['push'](_0x38424f['shift']());}catch(_0x12a4de){_0x38424f['push'](_0x38424f['shift']());}}}(_0x1e8e,0x4bbc3));import{ListView as _0x1d52cc}from'ckeditor5/src/ui.js';function _0x1e8e(){const _0x51e114=['5eosYnQ','filter','290056njmLAk','841570mzTakq','6sjWjVz','403556TWsMst','118280eCCnqv','261jiRGTP','1434099JVwedj','length','2490061cRTLQQ','27018ZBsplZ','items'];_0x1e8e=function(){return _0x51e114;};return _0x1e8e();}export class AIChatPromptSuggestionsListView extends _0x1d52cc{[_0x576f0b(0x17c)](){const _0x2c49bd=_0x576f0b;let _0x147255=0x0;for(const _0x58c19b of this[_0x2c49bd(0x17a)])_0x147255+=_0x58c19b[_0x2c49bd(0x17a)][_0x2c49bd(0x177)];return{'resultsCount':_0x147255,'totalItemsCount':_0x147255};}}
23
+ function _0xc3be(){const _0x32d8cd=['27802ZzHLEm','911610FtZLev','216ZVsVUj','254704hsEyLv','4KcBqEw','43539cvOcnb','items','1275126QRRMFs','357590MFVjYV','filter','98904TDhFiA','length','7HplJrf'];_0xc3be=function(){return _0x32d8cd;};return _0xc3be();}const _0xefd9f4=_0x2a48;function _0x2a48(_0x35cd9a,_0xe8ec9b){const _0xc3be87=_0xc3be();return _0x2a48=function(_0x2a4888,_0x5898cf){_0x2a4888=_0x2a4888-0x108;let _0x10720a=_0xc3be87[_0x2a4888];return _0x10720a;},_0x2a48(_0x35cd9a,_0xe8ec9b);}(function(_0x1cf224,_0x3bbf2c){const _0x85e3e8=_0x2a48,_0x2dc5d1=_0x1cf224();while(!![]){try{const _0x674869=-parseInt(_0x85e3e8(0x113))/0x1+parseInt(_0x85e3e8(0x109))/0x2+parseInt(_0x85e3e8(0x10b))/0x3+-parseInt(_0x85e3e8(0x10a))/0x4*(-parseInt(_0x85e3e8(0x10e))/0x5)+-parseInt(_0x85e3e8(0x10d))/0x6*(parseInt(_0x85e3e8(0x112))/0x7)+parseInt(_0x85e3e8(0x110))/0x8*(parseInt(_0x85e3e8(0x108))/0x9)+-parseInt(_0x85e3e8(0x114))/0xa;if(_0x674869===_0x3bbf2c)break;else _0x2dc5d1['push'](_0x2dc5d1['shift']());}catch(_0x214cc8){_0x2dc5d1['push'](_0x2dc5d1['shift']());}}}(_0xc3be,0x2b9b3));import{ListView as _0x16bba0}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x16bba0{[_0xefd9f4(0x10f)](){const _0x29fd0f=_0xefd9f4;let _0x481aac=0x0;for(const _0x24a994 of this[_0x29fd0f(0x10c)])_0x481aac+=_0x24a994[_0x29fd0f(0x10c)][_0x29fd0f(0x111)];return{'resultsCount':_0x481aac,'totalItemsCount':_0x481aac};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bcbf9=_0x1254;(function(_0x420b60,_0x4eaa19){const _0x510549=_0x1254,_0x11fbfa=_0x420b60();while(!![]){try{const _0xefc6e0=-parseInt(_0x510549(0x98))/0x1*(-parseInt(_0x510549(0xa4))/0x2)+-parseInt(_0x510549(0x95))/0x3*(-parseInt(_0x510549(0xb5))/0x4)+parseInt(_0x510549(0xb3))/0x5+-parseInt(_0x510549(0x97))/0x6*(-parseInt(_0x510549(0xae))/0x7)+-parseInt(_0x510549(0xac))/0x8+parseInt(_0x510549(0x96))/0x9+-parseInt(_0x510549(0x9d))/0xa;if(_0xefc6e0===_0x4eaa19)break;else _0x11fbfa['push'](_0x11fbfa['shift']());}catch(_0x337126){_0x11fbfa['push'](_0x11fbfa['shift']());}}}(_0x55c9,0x86596));import{HighlightedTextView as _0x29f162,IconView as _0x22ff3c,ListItemView as _0x1298e9}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x394b2d}from'es-toolkit/compat';import{AIContextItemType as _0x10a073}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x480905,IconCheck as _0x4f33ca,IconDocument as _0x11fdd7,IconDocumentOutline as _0x140786,IconLink as _0xbbf8e1}from'@ckeditor/ckeditor5-icons';function _0x55c9(){const _0x798174=['resource','FILE','_createTitleView','label','180975vmANky','ck-ai-chat-resources__item','148ZZALFt','text','set','type','setTemplate','extendTemplate','isInContext','_titleView','_setupTemplate','trim','content','execute','70365FamPQP','8657253NWpszk','49404tYAbtG','15993FfpCzN','highlightText','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item-title','span','6308810CNwlHV','updateResourceState','bindTemplate','TEXT','DOCUMENT','_updateIcon','_iconView','4UTrtpG','getResourceIcon','render','_createIconView','URL','ck-ai-chat-resources__item__icon','ck-hidden','div','8566560EzLPjx','isVisible','301QpSEsY'];_0x55c9=function(){return _0x798174;};return _0x55c9();}const Rr=_0x2bcbf9(0xb4),Tr=_0x2bcbf9(0x9a),Lr=_0x2bcbf9(0x9b),qr=_0x2bcbf9(0xa9);function _0x1254(_0x5274bc,_0x51e9ea){const _0x55c925=_0x55c9();return _0x1254=function(_0x1254cd,_0x1a78b4){_0x1254cd=_0x1254cd-0x8d;let _0x4d511a=_0x55c925[_0x1254cd];return _0x4d511a;},_0x1254(_0x5274bc,_0x51e9ea);}export class AIChatResourceListItemView extends _0x1298e9{[_0x2bcbf9(0xaf)];[_0x2bcbf9(0x90)];[_0x2bcbf9(0xa3)];constructor(_0x5cdc00,_0x3827c2){const _0x2d08c9=_0x2bcbf9;super(_0x5cdc00),this[_0x2d08c9(0xaf)]=_0x3827c2,this[_0x2d08c9(0xb7)](_0x2d08c9(0x8f),!!_0x3827c2[_0x2d08c9(0x8f)]),this[_0x2d08c9(0x90)]=this[_0x2d08c9(0xb1)](),this[_0x2d08c9(0xa3)]=this[_0x2d08c9(0xa7)](),this[_0x2d08c9(0x91)]();}[_0x2bcbf9(0xa6)](){const _0x41cab8=_0x2bcbf9;super[_0x41cab8(0xa6)]();}[_0x2bcbf9(0xa5)](_0x1d95bf){const _0x4b55f4=_0x2bcbf9;if(_0x1d95bf[_0x4b55f4(0x8f)])return _0x4f33ca;switch(_0x1d95bf[_0x4b55f4(0xb8)]){case _0x10a073[_0x4b55f4(0xa1)]:return _0x11fdd7;case _0x10a073[_0x4b55f4(0xa8)]:return _0xbbf8e1;case _0x10a073[_0x4b55f4(0xb0)]:case _0x10a073[_0x4b55f4(0xa0)]:return _0x480905;default:return _0x140786;}}[_0x2bcbf9(0x99)](_0x16d4c0){const _0xd4b699=_0x2bcbf9;if(!_0x16d4c0||''===_0x16d4c0[_0xd4b699(0x92)]())return void this[_0xd4b699(0x90)][_0xd4b699(0x99)](null);const _0x5ca58c=new RegExp(_0x394b2d(_0x16d4c0),'gi');this[_0xd4b699(0x90)][_0xd4b699(0x99)](_0x5ca58c);}[_0x2bcbf9(0x9e)](_0x1cc93f){const _0x5e4b23=_0x2bcbf9;this[_0x5e4b23(0xaf)][_0x5e4b23(0x8f)]=_0x1cc93f,this[_0x5e4b23(0x8f)]=_0x1cc93f,this[_0x5e4b23(0xa2)]();}[_0x2bcbf9(0xb1)](){const _0x4d0d53=_0x2bcbf9,_0x284dd5=new _0x29f162();return _0x284dd5[_0x4d0d53(0xb6)]=this[_0x4d0d53(0xaf)][_0x4d0d53(0xb2)],_0x284dd5[_0x4d0d53(0x8e)]({'tag':_0x4d0d53(0x9c),'attributes':{'class':[Lr]}}),_0x284dd5;}[_0x2bcbf9(0xa7)](){const _0x2a044f=_0x2bcbf9,_0x30f388=new _0x22ff3c();return _0x30f388[_0x2a044f(0x93)]=this[_0x2a044f(0xa5)](this[_0x2a044f(0xaf)]),_0x30f388;}[_0x2bcbf9(0x91)](){const _0x190f99=_0x2bcbf9,_0x3a4844=this[_0x190f99(0x9f)];this[_0x190f99(0x8d)]({'tag':_0x190f99(0xab),'attributes':{'class':[Rr,_0x3a4844['if'](_0x190f99(0xad),_0x190f99(0xaa),_0x1ce861=>!_0x1ce861),_0x3a4844['if'](_0x190f99(0x8f),Tr)]},'children':[{'tag':_0x190f99(0xab),'attributes':{'class':[qr]},'children':[this[_0x190f99(0xa3)]]},this[_0x190f99(0x90)]],'on':{'click':_0x3a4844['to'](_0x190f99(0x94))}});}[_0x2bcbf9(0xa2)](){const _0x579458=_0x2bcbf9;this[_0x579458(0xa3)][_0x579458(0x93)]=this[_0x579458(0xa5)](this[_0x579458(0xaf)]);}}
23
+ const _0x168e83=_0x52f2;function _0x257d(){const _0x3f1494=['highlightText','set','div','ck-ai-chat-resources__item','isVisible','ck-ai-chat-resources__item-title','144vHpdMk','3481809nBSgwh','span','trim','_createTitleView','render','5231484xurwsi','label','3052324Fobvnc','getResourceIcon','_titleView','_updateIcon','TEXT','DOCUMENT','bindTemplate','resource','extendTemplate','ck-hidden','execute','49UMboMc','FILE','_setupTemplate','ck-ai-chat-resources__item__icon','URL','809214sNeTjY','3413370ATvqVS','content','type','text','62695mwLEUn','isInContext','ck-ai-chat-resources__item--in-context','_createIconView','1337048XGQGLp','updateResourceState','setTemplate','_iconView','40zcZUfA'];_0x257d=function(){return _0x3f1494;};return _0x257d();}(function(_0x500b80,_0x33bb89){const _0x292bd6=_0x52f2,_0x18eb3e=_0x500b80();while(!![]){try{const _0x2d089e=-parseInt(_0x292bd6(0x125))/0x1+-parseInt(_0x292bd6(0x126))/0x2+parseInt(_0x292bd6(0x13a))/0x3+parseInt(_0x292bd6(0x141))/0x4+-parseInt(_0x292bd6(0x12a))/0x5*(-parseInt(_0x292bd6(0x139))/0x6)+-parseInt(_0x292bd6(0x120))/0x7*(parseInt(_0x292bd6(0x12e))/0x8)+parseInt(_0x292bd6(0x13f))/0x9*(parseInt(_0x292bd6(0x132))/0xa);if(_0x2d089e===_0x33bb89)break;else _0x18eb3e['push'](_0x18eb3e['shift']());}catch(_0x302c39){_0x18eb3e['push'](_0x18eb3e['shift']());}}}(_0x257d,0xd2ea4));import{HighlightedTextView as _0x181ed2,IconView as _0x4affdd,ListItemView as _0x4a9c1f}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x22568a}from'es-toolkit/compat';function _0x52f2(_0x6eb64d,_0x2c10df){const _0x257d4e=_0x257d();return _0x52f2=function(_0x52f254,_0x6ea0e1){_0x52f254=_0x52f254-0x116;let _0x57b429=_0x257d4e[_0x52f254];return _0x57b429;},_0x52f2(_0x6eb64d,_0x2c10df);}import{AIContextItemType as _0x5b74aa}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x5e9148,IconCheck as _0x113e8d,IconDocument as _0x575303,IconDocumentOutline as _0x53fe0a,IconLink as _0x16b442}from'@ckeditor/ckeditor5-icons';const Rr=_0x168e83(0x136),Tr=_0x168e83(0x12c),Lr=_0x168e83(0x138),qr=_0x168e83(0x123);export class AIChatResourceListItemView extends _0x4a9c1f{[_0x168e83(0x11c)];[_0x168e83(0x117)];[_0x168e83(0x131)];constructor(_0x3619cb,_0x496a85){const _0x3ef88d=_0x168e83;super(_0x3619cb),this[_0x3ef88d(0x11c)]=_0x496a85,this[_0x3ef88d(0x134)](_0x3ef88d(0x12b),!!_0x496a85[_0x3ef88d(0x12b)]),this[_0x3ef88d(0x117)]=this[_0x3ef88d(0x13d)](),this[_0x3ef88d(0x131)]=this[_0x3ef88d(0x12d)](),this[_0x3ef88d(0x122)]();}[_0x168e83(0x13e)](){const _0x48a70e=_0x168e83;super[_0x48a70e(0x13e)]();}[_0x168e83(0x116)](_0x309c2e){const _0x1201ab=_0x168e83;if(_0x309c2e[_0x1201ab(0x12b)])return _0x113e8d;switch(_0x309c2e[_0x1201ab(0x128)]){case _0x5b74aa[_0x1201ab(0x11a)]:return _0x575303;case _0x5b74aa[_0x1201ab(0x124)]:return _0x16b442;case _0x5b74aa[_0x1201ab(0x121)]:case _0x5b74aa[_0x1201ab(0x119)]:return _0x5e9148;default:return _0x53fe0a;}}[_0x168e83(0x133)](_0x523fff){const _0x49dde2=_0x168e83;if(!_0x523fff||''===_0x523fff[_0x49dde2(0x13c)]())return void this[_0x49dde2(0x117)][_0x49dde2(0x133)](null);const _0x5f0860=new RegExp(_0x22568a(_0x523fff),'gi');this[_0x49dde2(0x117)][_0x49dde2(0x133)](_0x5f0860);}[_0x168e83(0x12f)](_0x49a233){const _0x42c4f0=_0x168e83;this[_0x42c4f0(0x11c)][_0x42c4f0(0x12b)]=_0x49a233,this[_0x42c4f0(0x12b)]=_0x49a233,this[_0x42c4f0(0x118)]();}[_0x168e83(0x13d)](){const _0x3b63a4=_0x168e83,_0x52331c=new _0x181ed2();return _0x52331c[_0x3b63a4(0x129)]=this[_0x3b63a4(0x11c)][_0x3b63a4(0x140)],_0x52331c[_0x3b63a4(0x11d)]({'tag':_0x3b63a4(0x13b),'attributes':{'class':[Lr]}}),_0x52331c;}[_0x168e83(0x12d)](){const _0x493590=_0x168e83,_0x8e220c=new _0x4affdd();return _0x8e220c[_0x493590(0x127)]=this[_0x493590(0x116)](this[_0x493590(0x11c)]),_0x8e220c;}[_0x168e83(0x122)](){const _0x4a8637=_0x168e83,_0xa358d7=this[_0x4a8637(0x11b)];this[_0x4a8637(0x130)]({'tag':_0x4a8637(0x135),'attributes':{'class':[Rr,_0xa358d7['if'](_0x4a8637(0x137),_0x4a8637(0x11e),_0x2fceb2=>!_0x2fceb2),_0xa358d7['if'](_0x4a8637(0x12b),Tr)]},'children':[{'tag':_0x4a8637(0x135),'attributes':{'class':[qr]},'children':[this[_0x4a8637(0x131)]]},this[_0x4a8637(0x117)]],'on':{'click':_0xa358d7['to'](_0x4a8637(0x11f))}});}[_0x168e83(0x118)](){const _0x3a296d=_0x168e83;this[_0x3a296d(0x131)][_0x3a296d(0x127)]=this[_0x3a296d(0x116)](this[_0x3a296d(0x11c)]);}}