@ckeditor/ckeditor5-ai 47.6.0-alpha.2 → 47.6.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.d.ts +8 -4
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13d428=_0x2e2b;function _0x2e2b(_0x48ee7e,_0x44e087){const _0x12cdab=_0x12cd();return _0x2e2b=function(_0x2e2b75,_0x161a19){_0x2e2b75=_0x2e2b75-0x173;let _0x436965=_0x12cdab[_0x2e2b75];return _0x436965;},_0x2e2b(_0x48ee7e,_0x44e087);}function _0x12cd(){const _0x3036f9=['some','_locale','3291903jKYKcd','_updateBalloonContent','_parentView','2016102eUVIue','block\x20!important','_calculateOverflowInContainer','createElement','pin','showMoreLabelPrefix','calculationContainer','pointerEvents','_overflowChips','_restoreAncestorVisibility','isOn','toLowerCase','hide','opacity','length','element','maxVisibleRows','_createShowMoreButton','_ancestorsToRestore','rowDetectionTolerance','content','div','_updateShowMoreButtonVisibility','ck-calculation-container','offsetWidth','_testButtonFit','className','_config','execute','5kzcrZO','_showMoreButtonView','visible','top','set','160988WnDfoi','left','_containerElement','show','filter','destroy','children','pop','8qXiuAC','undefined','parentElement','showMoreButtonView','_visibleChips','.ck-ai-chat','setContainerElement','slice','documentElement','body','reorganizeChips','getBoundingClientRect','add','236733VuCJES','bottom','zIndex','abs','setTemplate','push','width','_calculateContainerWidth','block','_handleShowMoreButtonClick','_createMockButton','_createShowMoreButtonView','height','_distributeChips','_createShowMoreBalloonPanelView','position','innerWidth','appendChild','boxSizing','clientWidth','display','observe','tagName','hidden','_targetContainer','style','300px','getComputedStyle','_createContainerElements','visibility','_setupVisibilityObserver','remove','classList','50px','isIntersecting','_findTargetContainer','_makeAncestorsVisible','_updateOverflowUI','overflowChips','showBalloonPanel','_isContainerVisible','cloneNode','controlsButton','_showMoreBalloonPanelView','querySelector','+\x201','auto','_renderChipsAndCountRows','absolute','_createCalculationContainer','overflowContainer','hideBalloonPanel','render','label','none','_applyCalculationStyles','1062570faWBjr','cssClasses','border-box','0px','_pendingCalculation','clear','showMoreBalloon','_applyOverflowResults','clientHeight','disableAnimationOnEnter','showMoreButton','from','includes','textContent','_checkAndHandleOverflow','-9999px','isVisible','2111704yfVyEe','_intersectionObserver','extendTemplate','276862AMGxLO','innerHeight','forEach','disconnect','visible\x20!important','button','_bodyCollection','right','isConnected','innerHTML','_repinBalloonPanel'];_0x12cd=function(){return _0x3036f9;};return _0x12cd();}(function(_0x3bacaf,_0x5f25cb){const _0x128462=_0x2e2b,_0x4220b6=_0x3bacaf();while(!![]){try{const _0x4bcd15=-parseInt(_0x128462(0x17a))/0x1+-parseInt(_0x128462(0x1c6))/0x2+parseInt(_0x128462(0x1b2))/0x3+-parseInt(_0x128462(0x1f8))/0x4*(parseInt(_0x128462(0x1f3))/0x5)+-parseInt(_0x128462(0x1d6))/0x6+parseInt(_0x128462(0x1c3))/0x7+-parseInt(_0x128462(0x200))/0x8*(-parseInt(_0x128462(0x1d3))/0x9);if(_0x4bcd15===_0x5f25cb)break;else _0x4220b6['push'](_0x4220b6['shift']());}catch(_0x23a285){_0x4220b6['push'](_0x4220b6['shift']());}}}(_0x12cd,0x41f79));import{View as _0x201a90,BalloonPanelView as _0x262859,ButtonView as _0x22eef0,clickOutsideHandler as _0x181a1b}from'ckeditor5/src/ui.js';import{Collection as _0x57ecd6}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},_n=_0x13d428(0x194);export class AIChatChipsOverflowManager{[_0x13d428(0x1d2)];[_0x13d428(0x1f1)];[_0x13d428(0x204)];[_0x13d428(0x1de)];[_0x13d428(0x1f4)]=null;[_0x13d428(0x1a5)]=null;[_0x13d428(0x1fa)]=null;[_0x13d428(0x1cc)];[_0x13d428(0x1d5)]=null;[_0x13d428(0x1c4)]=null;[_0x13d428(0x1b6)]=!0x1;constructor(_0x61397e,_0x163a9e,_0x5d05cd,_0x2053db,_0x26238b){const _0x12efee=_0x13d428;this[_0x12efee(0x1d2)]=_0x61397e,this[_0x12efee(0x204)]=_0x163a9e,this[_0x12efee(0x1f1)]={...wn,..._0x5d05cd,'cssClasses':{'controlsButton':'','calculationContainer':_0x12efee(0x1ed),..._0x5d05cd[_0x12efee(0x1b3)]}},this[_0x12efee(0x1de)]=new _0x57ecd6(),this[_0x12efee(0x1cc)]=_0x2053db,this[_0x12efee(0x1d5)]=_0x26238b||null;}[_0x13d428(0x173)](_0x5748a2){const _0x50e085=_0x13d428;this[_0x50e085(0x1c4)]&&(this[_0x50e085(0x1c4)][_0x50e085(0x1c9)](),this[_0x50e085(0x1c4)]=null),this[_0x50e085(0x1fa)]=_0x5748a2,this[_0x50e085(0x198)]();}get[_0x13d428(0x203)](){const _0x7d93d7=_0x13d428;return this[_0x7d93d7(0x1f4)];}get[_0x13d428(0x1a0)](){const _0x4a977f=_0x13d428;return this[_0x4a977f(0x1de)];}[_0x13d428(0x177)](){requestAnimationFrame(()=>{const _0x25eb04=_0x2e2b;this[_0x25eb04(0x1c0)]();});}[_0x13d428(0x1a1)](){const _0x16a22f=_0x13d428;this[_0x16a22f(0x1f4)]&&this[_0x16a22f(0x1a5)]&&(this[_0x16a22f(0x1d4)](),this[_0x16a22f(0x1f4)][_0x16a22f(0x1e0)]=!0x0,this[_0x16a22f(0x1a5)][_0x16a22f(0x1fb)](),this[_0x16a22f(0x1a5)][_0x16a22f(0x1da)]({'target':this[_0x16a22f(0x1f4)][_0x16a22f(0x1e5)],'limiter':document[_0x16a22f(0x1a6)](_0x16a22f(0x205))}));}[_0x13d428(0x1ad)](){const _0x2b7be6=_0x13d428;this[_0x2b7be6(0x1f4)]&&this[_0x2b7be6(0x1a5)]&&(this[_0x2b7be6(0x1f4)][_0x2b7be6(0x1e0)]=!0x1,this[_0x2b7be6(0x1a5)][_0x2b7be6(0x1e2)]());}[_0x13d428(0x1b7)](){const _0x59d67d=_0x13d428;this[_0x59d67d(0x1de)][_0x59d67d(0x1b7)](),this[_0x59d67d(0x1ad)](),this[_0x59d67d(0x1ec)](),this[_0x59d67d(0x1f4)]&&(this[_0x59d67d(0x1f4)][_0x59d67d(0x1af)]=''),this[_0x59d67d(0x1a5)]&&this[_0x59d67d(0x1a5)][_0x59d67d(0x1ea)][_0x59d67d(0x1b7)]();}[_0x13d428(0x1fd)](){const _0x1aa292=_0x13d428;this[_0x1aa292(0x1c4)]&&(this[_0x1aa292(0x1c4)][_0x1aa292(0x1c9)](),this[_0x1aa292(0x1c4)]=null),this[_0x1aa292(0x1f4)]&&(this[_0x1aa292(0x1f4)][_0x1aa292(0x1fd)](),this[_0x1aa292(0x1f4)]=null),this[_0x1aa292(0x1a5)]&&(this[_0x1aa292(0x1a5)][_0x1aa292(0x1fd)](),this[_0x1aa292(0x1a5)]=null);}[_0x13d428(0x1c0)](){const _0x2e8b4c=_0x13d428;if(!this[_0x2e8b4c(0x1fa)])return;if(!this[_0x2e8b4c(0x1a2)]())return void(this[_0x2e8b4c(0x1b6)]=!0x0);this[_0x2e8b4c(0x1b6)]=!0x1;const _0x1f0dd6=[...this[_0x2e8b4c(0x204)],...this[_0x2e8b4c(0x1de)]],_0x341192=this[_0x2e8b4c(0x1ab)](),_0x503784=this[_0x2e8b4c(0x1d8)](_0x341192,_0x1f0dd6),_0x1f1b2f=_0x341192[_0x2e8b4c(0x1e8)];_0x1f1b2f&&this[_0x2e8b4c(0x1df)](_0x1f1b2f),_0x341192[_0x2e8b4c(0x199)](),this[_0x2e8b4c(0x1b9)](_0x1f0dd6,_0x503784);}[_0x13d428(0x1e7)](){const _0x6d9c5b=_0x13d428;this[_0x6d9c5b(0x1f4)]=this[_0x6d9c5b(0x185)](),this[_0x6d9c5b(0x1a5)]=this[_0x6d9c5b(0x188)](),this[_0x6d9c5b(0x1f4)][_0x6d9c5b(0x1ae)](),this[_0x6d9c5b(0x1fa)][_0x6d9c5b(0x18b)](this[_0x6d9c5b(0x1f4)][_0x6d9c5b(0x1e5)]),this[_0x6d9c5b(0x1f4)]['on'](_0x6d9c5b(0x1f2),()=>{const _0xc6dad3=_0x6d9c5b;this[_0xc6dad3(0x183)]();}),_0x181a1b({'emitter':this[_0x6d9c5b(0x1a5)],'contextElements':[this[_0x6d9c5b(0x1a5)][_0x6d9c5b(0x1e5)],this[_0x6d9c5b(0x1f4)][_0x6d9c5b(0x1e5)]],'callback':()=>this[_0x6d9c5b(0x1ad)](),'activator':()=>this[_0x6d9c5b(0x1f4)][_0x6d9c5b(0x1e0)]});}[_0x13d428(0x185)](){const _0x2b2ec1=_0x13d428,_0x320f3a=new _0x22eef0(this[_0x2b2ec1(0x1d2)]);_0x320f3a[_0x2b2ec1(0x1f7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x41bf46=[this[_0x2b2ec1(0x1f1)][_0x2b2ec1(0x1b3)][_0x2b2ec1(0x1bc)]];return this[_0x2b2ec1(0x1f1)][_0x2b2ec1(0x1b3)][_0x2b2ec1(0x1a4)]&&_0x41bf46[_0x2b2ec1(0x17f)](this[_0x2b2ec1(0x1f1)][_0x2b2ec1(0x1b3)][_0x2b2ec1(0x1a4)]),_0x320f3a[_0x2b2ec1(0x1c5)]({'attributes':{'class':_0x41bf46}}),_0x320f3a;}[_0x13d428(0x188)](){const _0x4bfa32=_0x13d428,_0x3f67e5=new _0x262859(this[_0x4bfa32(0x1d2)]);return _0x3f67e5[_0x4bfa32(0x1c5)]({'attributes':{'class':this[_0x4bfa32(0x1f1)][_0x4bfa32(0x1b3)][_0x4bfa32(0x1b8)]}}),this[_0x4bfa32(0x1cc)][_0x4bfa32(0x179)](_0x3f67e5),_0x3f67e5;}[_0x13d428(0x1d4)](){const _0x4337ce=_0x13d428;if(this[_0x4337ce(0x1a5)]&&(this[_0x4337ce(0x1a5)][_0x4337ce(0x1ea)][_0x4337ce(0x1b7)](),this[_0x4337ce(0x1de)][_0x4337ce(0x1e4)]>0x0)){this[_0x4337ce(0x1de)][_0x4337ce(0x1c8)](_0x302fac=>{const _0x399f3f=_0x4337ce;_0x302fac[_0x399f3f(0x1bb)]();});const _0x4d090e=new _0x201a90(this[_0x4337ce(0x1d2)]);_0x4d090e[_0x4337ce(0x17e)]({'tag':_0x4337ce(0x1eb),'attributes':{'class':this[_0x4337ce(0x1f1)][_0x4337ce(0x1b3)][_0x4337ce(0x1ac)]},'children':this[_0x4337ce(0x1de)]}),this[_0x4337ce(0x1a5)][_0x4337ce(0x1ea)][_0x4337ce(0x179)](_0x4d090e);}}[_0x13d428(0x183)](){const _0x30ee2a=_0x13d428;this[_0x30ee2a(0x1f4)][_0x30ee2a(0x1e0)]?this[_0x30ee2a(0x1ad)]():this[_0x30ee2a(0x1a1)]();}[_0x13d428(0x1ec)](){const _0x4baa19=_0x13d428,_0x4076d9=this[_0x4baa19(0x1de)][_0x4baa19(0x1e4)]>0x0;this[_0x4baa19(0x1f4)]?.[_0x4baa19(0x1e5)]&&(this[_0x4baa19(0x1f4)][_0x4baa19(0x1e5)][_0x4baa19(0x193)][_0x4baa19(0x18e)]=_0x4076d9?'':_0x4baa19(0x1b0));}[_0x13d428(0x1d0)](){const _0x476773=_0x13d428;this[_0x476773(0x1f4)]?.[_0x476773(0x1e0)]&&this[_0x476773(0x1a5)]?.[_0x476773(0x1c2)]&&this[_0x476773(0x1f4)][_0x476773(0x1e5)]&&this[_0x476773(0x1a5)][_0x476773(0x1da)]({'target':this[_0x476773(0x1f4)][_0x476773(0x1e5)],'limiter':document[_0x476773(0x1a6)](_0x476773(0x205))});}[_0x13d428(0x19d)](_0x5a014c){const _0x3d23be=_0x13d428,_0x5d85bb=this[_0x3d23be(0x1fa)]?.[_0x3d23be(0x190)][_0x3d23be(0x1e1)]()||_0x3d23be(0x1eb),_0x31da68=this[_0x3d23be(0x1fa)]?.[_0x3d23be(0x19a)];if(_0x31da68){const _0x1b73f6=_0x31da68[0x0]||'',_0x4ceeef=_0x5a014c[_0x3d23be(0x1a6)]('.'+_0x1b73f6),_0x150b59=_0x5a014c[_0x3d23be(0x1a6)](_0x5d85bb);return _0x4ceeef||_0x150b59||_0x5a014c;}return _0x5a014c[_0x3d23be(0x1a6)](_0x5d85bb)||_0x5a014c;}[_0x13d428(0x181)](){const _0x460beb=_0x13d428,_0xfb2e94=this[_0x460beb(0x1d5)]?.[_0x460beb(0x1e5)]||this[_0x460beb(0x1fa)];if(!_0xfb2e94)return _n;const _0x2364d9=window[_0x460beb(0x195)](_0xfb2e94)[_0x460beb(0x180)];if(_0x460beb(0x1a8)===_0x2364d9||_0x460beb(0x1b5)===_0x2364d9||!_0x2364d9){const _0x3418a2=_0xfb2e94[_0x460beb(0x202)];if(_0x3418a2){const _0x13e6a8=window[_0x460beb(0x195)](_0x3418a2);return _0x460beb(0x1a8)!==_0x13e6a8[_0x460beb(0x180)]?_0x13e6a8[_0x460beb(0x180)]:_n;}return _n;}return _0x2364d9;}[_0x13d428(0x1b1)](_0x34fd30,_0x16e5cb){const _0x240261=_0x13d428;this[_0x240261(0x1f1)][_0x240261(0x1b3)][_0x240261(0x1dc)]&&_0x34fd30[_0x240261(0x19a)][_0x240261(0x179)](this[_0x240261(0x1f1)][_0x240261(0x1b3)][_0x240261(0x1dc)]),_0x34fd30[_0x240261(0x193)][_0x240261(0x180)]=_0x16e5cb,_0x34fd30[_0x240261(0x193)][_0x240261(0x189)]=_0x240261(0x1aa),_0x34fd30[_0x240261(0x193)][_0x240261(0x1f6)]=_0x240261(0x1c1),_0x34fd30[_0x240261(0x193)][_0x240261(0x1f9)]=_0x240261(0x1c1),_0x34fd30[_0x240261(0x193)][_0x240261(0x1e3)]='0',_0x34fd30[_0x240261(0x193)][_0x240261(0x1dd)]=_0x240261(0x1b0),_0x34fd30[_0x240261(0x193)][_0x240261(0x17c)]='-1',_0x34fd30[_0x240261(0x193)][_0x240261(0x197)]=_0x240261(0x1ca),_0x34fd30[_0x240261(0x193)][_0x240261(0x18e)]=_0x240261(0x1d7),_0x34fd30[_0x240261(0x193)][_0x240261(0x18c)]=_0x240261(0x1b4);}[_0x13d428(0x1df)](_0x1b2b61){const _0x3618f4=_0x13d428;_0x1b2b61[_0x3618f4(0x1c8)](({element:_0x11e761,originalDisplay:_0x1e7922,originalVisibility:_0x5167a8})=>{const _0x51a7f7=_0x3618f4;_0x11e761[_0x51a7f7(0x193)][_0x51a7f7(0x18e)]=_0x1e7922,_0x11e761[_0x51a7f7(0x193)][_0x51a7f7(0x197)]=_0x5167a8;});}[_0x13d428(0x19e)](_0x53776e){const _0x2462f2=_0x13d428,_0x2d426f=[];let _0x8cc1cc=_0x53776e;for(;_0x8cc1cc&&_0x8cc1cc!==document[_0x2462f2(0x176)];){const _0xd32ac0=window[_0x2462f2(0x195)](_0x8cc1cc);_0x2462f2(0x1b0)!==_0xd32ac0[_0x2462f2(0x18e)]&&_0x2462f2(0x191)!==_0xd32ac0[_0x2462f2(0x197)]||(_0x2d426f[_0x2462f2(0x17f)]({'element':_0x8cc1cc,'originalDisplay':_0x8cc1cc[_0x2462f2(0x193)][_0x2462f2(0x18e)],'originalVisibility':_0x8cc1cc[_0x2462f2(0x193)][_0x2462f2(0x197)]}),_0x8cc1cc[_0x2462f2(0x193)][_0x2462f2(0x18e)]=_0x2462f2(0x182),_0x8cc1cc[_0x2462f2(0x193)][_0x2462f2(0x197)]=_0x2462f2(0x1f5)),_0x8cc1cc=_0x8cc1cc[_0x2462f2(0x202)];}return _0x2d426f;}[_0x13d428(0x196)](){const _0x1ac413=_0x13d428;let _0x98128b,_0x240a65;return this[_0x1ac413(0x1d5)]?.[_0x1ac413(0x1e5)]?(_0x98128b=this[_0x1ac413(0x1d5)][_0x1ac413(0x1e5)][_0x1ac413(0x1a3)](!0x0),_0x240a65=this[_0x1ac413(0x19d)](_0x98128b)):(_0x98128b=document[_0x1ac413(0x1d9)](_0x1ac413(0x1eb)),_0x240a65=_0x98128b),{'calculationContainer':_0x98128b,'targetContainer':_0x240a65};}[_0x13d428(0x1ab)](){const _0x65ed78=_0x13d428,{calculationContainer:_0x108e87,targetContainer:_0xac7512}=this[_0x65ed78(0x196)](),_0x50dbc4=this[_0x65ed78(0x181)]();this[_0x65ed78(0x1b1)](_0x108e87,_0x50dbc4);const _0x8db2e4=this[_0x65ed78(0x1d5)]?.[_0x65ed78(0x1e5)]||this[_0x65ed78(0x1fa)],_0x5218aa=_0x8db2e4?.[_0x65ed78(0x202)];_0x5218aa?_0x5218aa[_0x65ed78(0x18b)](_0x108e87):document[_0x65ed78(0x176)][_0x65ed78(0x18b)](_0x108e87),_0x108e87[_0x65ed78(0x192)]=_0xac7512;const _0x20f7d4=this[_0x65ed78(0x19e)](_0x5218aa||null);return _0x108e87[_0x65ed78(0x1ee)],_0x108e87[_0x65ed78(0x1e8)]=_0x20f7d4,_0x108e87;}[_0x13d428(0x1d8)](_0x2ba8a5,_0x524d5c){const _0x55e58f=_0x13d428,_0x1ee182=_0x2ba8a5[_0x55e58f(0x192)]||_0x2ba8a5,_0x5133f8=[],{rowCount:_0x118373}=this[_0x55e58f(0x1a9)](_0x1ee182,_0x524d5c);if(_0x118373<=this[_0x55e58f(0x1f1)][_0x55e58f(0x1e6)])return _0x5133f8;const _0x21464e=_0x524d5c[_0x55e58f(0x174)]();for(;_0x21464e[_0x55e58f(0x1e4)]>0x0;){if(this[_0x55e58f(0x1ef)](_0x2ba8a5,_0x1ee182,_0x21464e)){const _0x4b2430=_0x524d5c[_0x55e58f(0x1fc)](_0x3d2b7b=>!_0x21464e[_0x55e58f(0x1be)](_0x3d2b7b));_0x5133f8[_0x55e58f(0x17f)](..._0x4b2430);break;}if(!_0x21464e[_0x55e58f(0x1ff)]())break;}return _0x5133f8;}[_0x13d428(0x1a9)](_0xdf0302,_0x3b595b){const _0x1085d5=_0x13d428;_0xdf0302[_0x1085d5(0x1cf)]='',_0x3b595b[_0x1085d5(0x1c8)](_0x5dbc2e=>{const _0x454e6e=_0x1085d5;if(_0x5dbc2e[_0x454e6e(0x1e5)]){const _0x42c8fb=_0x5dbc2e[_0x454e6e(0x1e5)][_0x454e6e(0x1a3)](!0x0);_0xdf0302[_0x454e6e(0x18b)](_0x42c8fb);}}),_0xdf0302[_0x1085d5(0x1ee)];const _0xb3cd18=_0xdf0302[_0x1085d5(0x1fe)],_0x3c4ff3=[];return Array[_0x1085d5(0x1bd)](_0xb3cd18)[_0x1085d5(0x1c8)](_0x24df6d=>{const _0x2fb5a1=_0x1085d5,_0x2537d4=_0x24df6d[_0x2fb5a1(0x178)]()[_0x2fb5a1(0x1f6)];_0x3c4ff3[_0x2fb5a1(0x1d1)](_0x403032=>Math[_0x2fb5a1(0x17d)](_0x403032-_0x2537d4)<this[_0x2fb5a1(0x1f1)][_0x2fb5a1(0x1e9)])||_0x3c4ff3[_0x2fb5a1(0x17f)](_0x2537d4);}),{'rowCount':_0x3c4ff3[_0x1085d5(0x1e4)]};}[_0x13d428(0x184)](){const _0x3a6799=_0x13d428,_0x1e0e61=document[_0x3a6799(0x1d9)](_0x3a6799(0x1cb));return _0x1e0e61[_0x3a6799(0x1f0)]=this[_0x3a6799(0x1f1)][_0x3a6799(0x1b3)][_0x3a6799(0x1bc)],this[_0x3a6799(0x1f1)][_0x3a6799(0x1b3)][_0x3a6799(0x1a4)]&&_0x1e0e61[_0x3a6799(0x19a)][_0x3a6799(0x179)](this[_0x3a6799(0x1f1)][_0x3a6799(0x1b3)][_0x3a6799(0x1a4)]),_0x1e0e61[_0x3a6799(0x1bf)]=_0x3a6799(0x1a7),_0x1e0e61;}[_0x13d428(0x1ef)](_0x3ff216,_0x323fbf,_0x187aee){const _0xf1d8b5=_0x13d428;this[_0xf1d8b5(0x1a9)](_0x323fbf,_0x187aee);const _0x45f855=this[_0xf1d8b5(0x184)]();_0x3ff216[_0xf1d8b5(0x18b)](_0x45f855),_0x3ff216[_0xf1d8b5(0x1ee)];const _0x45e4cc=[..._0x323fbf[_0xf1d8b5(0x1fe)],_0x45f855],_0x55c439=[];_0x45e4cc[_0xf1d8b5(0x1c8)](_0x33e1a9=>{const _0x3deff2=_0xf1d8b5,_0x3b9790=_0x33e1a9[_0x3deff2(0x178)]()[_0x3deff2(0x1f6)];_0x55c439[_0x3deff2(0x1d1)](_0x32698a=>Math[_0x3deff2(0x17d)](_0x32698a-_0x3b9790)<this[_0x3deff2(0x1f1)][_0x3deff2(0x1e9)])||_0x55c439[_0x3deff2(0x17f)](_0x3b9790);});const _0xc3edab=_0x55c439[_0xf1d8b5(0x1e4)];return _0x45f855[_0xf1d8b5(0x199)](),_0xc3edab<=this[_0xf1d8b5(0x1f1)][_0xf1d8b5(0x1e6)];}[_0x13d428(0x187)](_0x366d2b,_0x374a50){const _0xd1597=_0x13d428;this[_0xd1597(0x204)][_0xd1597(0x1b7)](),this[_0xd1597(0x1de)][_0xd1597(0x1b7)](),_0x366d2b[_0xd1597(0x1c8)](_0x2f1112=>{const _0x2ec46a=_0xd1597;_0x374a50[_0x2ec46a(0x1be)](_0x2f1112)?this[_0x2ec46a(0x1de)][_0x2ec46a(0x179)](_0x2f1112):this[_0x2ec46a(0x204)][_0x2ec46a(0x179)](_0x2f1112);});}[_0x13d428(0x19f)](_0x118717){const _0x498c44=_0x13d428;if(_0x118717>0x0&&!this[_0x498c44(0x1f4)]&&this[_0x498c44(0x1e7)](),_0x118717>0x0&&this[_0x498c44(0x1f4)]){const _0x2b8b8b=''+this[_0x498c44(0x1f1)][_0x498c44(0x1db)]+(_0x118717<0x63?_0x118717:'99');this[_0x498c44(0x1f4)][_0x498c44(0x1af)]=_0x2b8b8b;}this[_0x498c44(0x1d4)](),this[_0x498c44(0x1ec)](),this[_0x498c44(0x1d0)]();}[_0x13d428(0x1b9)](_0x4ecdbd,_0x2f9be4){const _0x5efec5=_0x13d428;this[_0x5efec5(0x187)](_0x4ecdbd,_0x2f9be4),this[_0x5efec5(0x19f)](_0x2f9be4[_0x5efec5(0x1e4)]);}[_0x13d428(0x198)](){const _0x6fb4c4=_0x13d428;this[_0x6fb4c4(0x1fa)]&&_0x6fb4c4(0x201)!=typeof IntersectionObserver&&(this[_0x6fb4c4(0x1c4)]=new IntersectionObserver(_0x18ac07=>{const _0x419877=_0x6fb4c4;_0x18ac07[0x0][_0x419877(0x19c)]&&this[_0x419877(0x1b6)]&&requestAnimationFrame(()=>{const _0x421b17=_0x419877;this[_0x421b17(0x1c0)]();});},{'threshold':0.01,'rootMargin':_0x6fb4c4(0x19b)}),this[_0x6fb4c4(0x1c4)][_0x6fb4c4(0x18f)](this[_0x6fb4c4(0x1fa)]));}[_0x13d428(0x1a2)](){const _0x176146=_0x13d428;if(!this[_0x176146(0x1fa)])return!0x1;if(!this[_0x176146(0x1fa)][_0x176146(0x1ce)])return!0x1;const _0x18eb12=this[_0x176146(0x1fa)][_0x176146(0x178)]();if(0x0===_0x18eb12[_0x176146(0x180)]||0x0===_0x18eb12[_0x176146(0x186)])return!0x1;const _0x2788fb=window[_0x176146(0x1c7)]||document[_0x176146(0x175)][_0x176146(0x1ba)],_0x147c91=window[_0x176146(0x18a)]||document[_0x176146(0x175)][_0x176146(0x18d)],_0x52d116=0xc8;return _0x18eb12[_0x176146(0x17b)]>=-0xc8&&_0x18eb12[_0x176146(0x1f6)]<=_0x2788fb+_0x52d116&&_0x18eb12[_0x176146(0x1cd)]>=-0xc8&&_0x18eb12[_0x176146(0x1f9)]<=_0x147c91+_0x52d116;}}
23
+ function _0x75cf(){const _0x429db3=['includes','querySelector','reorganizeChips','tagName','300px','element','display','disconnect','_handleShowMoreButtonClick','auto','innerHTML','_showMoreButtonView','_calculateOverflowInContainer','forEach','41926nTrrKw','.ck-ai-chat','0px','_applyCalculationStyles','pin','toLowerCase','cssClasses','_ancestorsToRestore','_createContainerElements','_checkAndHandleOverflow','cloneNode','_applyOverflowResults','564849FkFTrG','11fgiqPV','_pendingCalculation','_targetContainer','hideBalloonPanel','visible\x20!important','observe','_updateOverflowUI','innerHeight','_locale','getComputedStyle','_createShowMoreBalloonPanelView','482892cTJVUo','zIndex','_setupVisibilityObserver','length','documentElement','label','classList','17LWVriH','_makeAncestorsVisible','appendChild','absolute','_calculateContainerWidth','_isContainerVisible','set','15PaWSOq','show','opacity','showMoreLabelPrefix','pop','from','+\x201','calculationContainer','3183300cOTwEF','destroy','undefined','createElement','offsetWidth','visible','parentElement','13242228BySuzK','setContainerElement','pointerEvents','_createShowMoreButtonView','slice','execute','_createMockButton','add','hide','boxSizing','button','children','_config','_renderChipsAndCountRows','_bodyCollection','abs','_createShowMoreButton','position','_repinBalloonPanel','visibility','_overflowChips','clientHeight','showMoreBalloon','_findTargetContainer','overflowChips','rowDetectionTolerance','className','bottom','innerWidth','_createCalculationContainer','div','showBalloonPanel','showMoreButtonView','isConnected','top','textContent','_testButtonFit','overflowContainer','none','content','hidden','border-box','height','setTemplate','render','maxVisibleRows','-9999px','1060003dtoObe','left','clear','12kqMlCy','disableAnimationOnEnter','remove','isIntersecting','some','style','body','width','getBoundingClientRect','_intersectionObserver','_distributeChips','ck-calculation-container','block\x20!important','clientWidth','push','extendTemplate','_updateBalloonContent','isOn','_parentView','_visibleChips','controlsButton','_containerElement','filter','block','50px','8KLLuFg','_updateShowMoreButtonVisibility','_showMoreBalloonPanelView','_restoreAncestorVisibility','4129632MDYHoC','right','showMoreButton','isVisible'];_0x75cf=function(){return _0x429db3;};return _0x75cf();}const _0x5959ad=_0xc1fc;function _0xc1fc(_0x53bf19,_0x4a2012){const _0x75cff1=_0x75cf();return _0xc1fc=function(_0xc1fc51,_0x2f5fc7){_0xc1fc51=_0xc1fc51-0x18d;let _0x518d53=_0x75cff1[_0xc1fc51];return _0x518d53;},_0xc1fc(_0x53bf19,_0x4a2012);}(function(_0x5d6747,_0x4e30db){const _0x147700=_0xc1fc,_0x235392=_0x5d6747();while(!![]){try{const _0x3dced9=parseInt(_0x147700(0x1f8))/0x1*(parseInt(_0x147700(0x1d9))/0x2)+parseInt(_0x147700(0x1e5))/0x3*(-parseInt(_0x147700(0x1aa))/0x4)+-parseInt(_0x147700(0x1ff))/0x5*(-parseInt(_0x147700(0x1f1))/0x6)+-parseInt(_0x147700(0x1a7))/0x7*(-parseInt(_0x147700(0x1c3))/0x8)+-parseInt(_0x147700(0x1c7))/0x9+-parseInt(_0x147700(0x207))/0xa+-parseInt(_0x147700(0x1e6))/0xb*(-parseInt(_0x147700(0x20e))/0xc);if(_0x3dced9===_0x4e30db)break;else _0x235392['push'](_0x235392['shift']());}catch(_0x1e2ebb){_0x235392['push'](_0x235392['shift']());}}}(_0x75cf,0x7cb12));import{View as _0x23d79a,BalloonPanelView as _0x482977,ButtonView as _0x1100fc,clickOutsideHandler as _0x6643e}from'ckeditor5/src/ui.js';import{Collection as _0x1339a7}from'ckeditor5/src/utils.js';const an={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x5959ad(0x1cf);export class AIChatChipsOverflowManager{[_0x5959ad(0x1ee)];[_0x5959ad(0x21a)];[_0x5959ad(0x1bd)];[_0x5959ad(0x222)];[_0x5959ad(0x1d6)]=null;[_0x5959ad(0x1c5)]=null;[_0x5959ad(0x1bf)]=null;[_0x5959ad(0x21c)];[_0x5959ad(0x1bc)]=null;[_0x5959ad(0x1b3)]=null;[_0x5959ad(0x1e7)]=!0x1;constructor(_0x2cfa4e,_0x501248,_0x5f2817,_0x169f92,_0x593746){const _0x2908bf=_0x5959ad;this[_0x2908bf(0x1ee)]=_0x2cfa4e,this[_0x2908bf(0x1bd)]=_0x501248,this[_0x2908bf(0x21a)]={...an,..._0x5f2817,'cssClasses':{'controlsButton':'','calculationContainer':_0x2908bf(0x1b5),..._0x5f2817[_0x2908bf(0x1df)]}},this[_0x2908bf(0x222)]=new _0x1339a7(),this[_0x2908bf(0x21c)]=_0x169f92,this[_0x2908bf(0x1bc)]=_0x593746||null;}[_0x5959ad(0x20f)](_0x230f27){const _0x527e04=_0x5959ad;this[_0x527e04(0x1b3)]&&(this[_0x527e04(0x1b3)][_0x527e04(0x1d2)](),this[_0x527e04(0x1b3)]=null),this[_0x527e04(0x1bf)]=_0x230f27,this[_0x527e04(0x1f3)]();}get[_0x5959ad(0x198)](){const _0x25cdf0=_0x5959ad;return this[_0x25cdf0(0x1d6)];}get[_0x5959ad(0x190)](){const _0xa27723=_0x5959ad;return this[_0xa27723(0x222)];}[_0x5959ad(0x1cd)](){requestAnimationFrame(()=>{const _0x3eefee=_0xc1fc;this[_0x3eefee(0x1e2)]();});}[_0x5959ad(0x197)](){const _0x17183d=_0x5959ad;this[_0x17183d(0x1d6)]&&this[_0x17183d(0x1c5)]&&(this[_0x17183d(0x1ba)](),this[_0x17183d(0x1d6)][_0x17183d(0x1bb)]=!0x0,this[_0x17183d(0x1c5)][_0x17183d(0x200)](),this[_0x17183d(0x1c5)][_0x17183d(0x1dd)]({'target':this[_0x17183d(0x1d6)][_0x17183d(0x1d0)],'limiter':document[_0x17183d(0x1cc)](_0x17183d(0x1da))}));}[_0x5959ad(0x1e9)](){const _0xd2c143=_0x5959ad;this[_0xd2c143(0x1d6)]&&this[_0xd2c143(0x1c5)]&&(this[_0xd2c143(0x1d6)][_0xd2c143(0x1bb)]=!0x1,this[_0xd2c143(0x1c5)][_0xd2c143(0x216)]());}[_0x5959ad(0x1a9)](){const _0x31fa70=_0x5959ad;this[_0x31fa70(0x222)][_0x31fa70(0x1a9)](),this[_0x31fa70(0x1e9)](),this[_0x31fa70(0x1c4)](),this[_0x31fa70(0x1d6)]&&(this[_0x31fa70(0x1d6)][_0x31fa70(0x1f6)]=''),this[_0x31fa70(0x1c5)]&&this[_0x31fa70(0x1c5)][_0x31fa70(0x19f)][_0x31fa70(0x1a9)]();}[_0x5959ad(0x208)](){const _0x3c74c2=_0x5959ad;this[_0x3c74c2(0x1b3)]&&(this[_0x3c74c2(0x1b3)][_0x3c74c2(0x1d2)](),this[_0x3c74c2(0x1b3)]=null),this[_0x3c74c2(0x1d6)]&&(this[_0x3c74c2(0x1d6)][_0x3c74c2(0x208)](),this[_0x3c74c2(0x1d6)]=null),this[_0x3c74c2(0x1c5)]&&(this[_0x3c74c2(0x1c5)][_0x3c74c2(0x208)](),this[_0x3c74c2(0x1c5)]=null);}[_0x5959ad(0x1e2)](){const _0x1e7b76=_0x5959ad;if(!this[_0x1e7b76(0x1bf)])return;if(!this[_0x1e7b76(0x1fd)]())return void(this[_0x1e7b76(0x1e7)]=!0x0);this[_0x1e7b76(0x1e7)]=!0x1;const _0x55aaa5=[...this[_0x1e7b76(0x1bd)],...this[_0x1e7b76(0x222)]],_0x13ee48=this[_0x1e7b76(0x195)](),_0x55f9bf=this[_0x1e7b76(0x1d7)](_0x13ee48,_0x55aaa5),_0x5e5d33=_0x13ee48[_0x1e7b76(0x1e0)];_0x5e5d33&&this[_0x1e7b76(0x1c6)](_0x5e5d33),_0x13ee48[_0x1e7b76(0x1ac)](),this[_0x1e7b76(0x1e4)](_0x55aaa5,_0x55f9bf);}[_0x5959ad(0x21e)](){const _0x3c2e5b=_0x5959ad;this[_0x3c2e5b(0x1d6)]=this[_0x3c2e5b(0x211)](),this[_0x3c2e5b(0x1c5)]=this[_0x3c2e5b(0x1f0)](),this[_0x3c2e5b(0x1d6)][_0x3c2e5b(0x1a4)](),this[_0x3c2e5b(0x1bf)][_0x3c2e5b(0x1fa)](this[_0x3c2e5b(0x1d6)][_0x3c2e5b(0x1d0)]),this[_0x3c2e5b(0x1d6)]['on'](_0x3c2e5b(0x213),()=>{const _0x39ca42=_0x3c2e5b;this[_0x39ca42(0x1d3)]();}),_0x6643e({'emitter':this[_0x3c2e5b(0x1c5)],'contextElements':[this[_0x3c2e5b(0x1c5)][_0x3c2e5b(0x1d0)],this[_0x3c2e5b(0x1d6)][_0x3c2e5b(0x1d0)]],'callback':()=>this[_0x3c2e5b(0x1e9)](),'activator':()=>this[_0x3c2e5b(0x1d6)][_0x3c2e5b(0x1bb)]});}[_0x5959ad(0x211)](){const _0x3f928a=_0x5959ad,_0x35abb8=new _0x1100fc(this[_0x3f928a(0x1ee)]);_0x35abb8[_0x3f928a(0x1fe)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x546a77=[this[_0x3f928a(0x21a)][_0x3f928a(0x1df)][_0x3f928a(0x1c9)]];return this[_0x3f928a(0x21a)][_0x3f928a(0x1df)][_0x3f928a(0x1be)]&&_0x546a77[_0x3f928a(0x1b8)](this[_0x3f928a(0x21a)][_0x3f928a(0x1df)][_0x3f928a(0x1be)]),_0x35abb8[_0x3f928a(0x1b9)]({'attributes':{'class':_0x546a77}}),_0x35abb8;}[_0x5959ad(0x1f0)](){const _0x764adc=_0x5959ad,_0xac5732=new _0x482977(this[_0x764adc(0x1ee)]);return _0xac5732[_0x764adc(0x1b9)]({'attributes':{'class':this[_0x764adc(0x21a)][_0x764adc(0x1df)][_0x764adc(0x18e)]}}),this[_0x764adc(0x21c)][_0x764adc(0x215)](_0xac5732),_0xac5732;}[_0x5959ad(0x1ba)](){const _0x2154bd=_0x5959ad;if(this[_0x2154bd(0x1c5)]&&(this[_0x2154bd(0x1c5)][_0x2154bd(0x19f)][_0x2154bd(0x1a9)](),this[_0x2154bd(0x222)][_0x2154bd(0x1f4)]>0x0)){this[_0x2154bd(0x222)][_0x2154bd(0x1d8)](_0x2d8bcb=>{const _0x45b298=_0x2154bd;_0x2d8bcb[_0x45b298(0x1ab)]();});const _0x2e375c=new _0x23d79a(this[_0x2154bd(0x1ee)]);_0x2e375c[_0x2154bd(0x1a3)]({'tag':_0x2154bd(0x196),'attributes':{'class':this[_0x2154bd(0x21a)][_0x2154bd(0x1df)][_0x2154bd(0x19d)]},'children':this[_0x2154bd(0x222)]}),this[_0x2154bd(0x1c5)][_0x2154bd(0x19f)][_0x2154bd(0x215)](_0x2e375c);}}[_0x5959ad(0x1d3)](){const _0x457ecc=_0x5959ad;this[_0x457ecc(0x1d6)][_0x457ecc(0x1bb)]?this[_0x457ecc(0x1e9)]():this[_0x457ecc(0x197)]();}[_0x5959ad(0x1c4)](){const _0x43882e=_0x5959ad,_0x371381=this[_0x43882e(0x222)][_0x43882e(0x1f4)]>0x0;this[_0x43882e(0x1d6)]?.[_0x43882e(0x1d0)]&&(this[_0x43882e(0x1d6)][_0x43882e(0x1d0)][_0x43882e(0x1af)][_0x43882e(0x1d1)]=_0x371381?'':_0x43882e(0x19e));}[_0x5959ad(0x220)](){const _0x3d26ff=_0x5959ad;this[_0x3d26ff(0x1d6)]?.[_0x3d26ff(0x1bb)]&&this[_0x3d26ff(0x1c5)]?.[_0x3d26ff(0x1ca)]&&this[_0x3d26ff(0x1d6)][_0x3d26ff(0x1d0)]&&this[_0x3d26ff(0x1c5)][_0x3d26ff(0x1dd)]({'target':this[_0x3d26ff(0x1d6)][_0x3d26ff(0x1d0)],'limiter':document[_0x3d26ff(0x1cc)](_0x3d26ff(0x1da))});}[_0x5959ad(0x18f)](_0x49e57c){const _0x5057fc=_0x5959ad,_0x26daf6=this[_0x5057fc(0x1bf)]?.[_0x5057fc(0x1ce)][_0x5057fc(0x1de)]()||_0x5057fc(0x196),_0x3bae06=this[_0x5057fc(0x1bf)]?.[_0x5057fc(0x1f7)];if(_0x3bae06){const _0x441e7e=_0x3bae06[0x0]||'',_0xff08c9=_0x49e57c[_0x5057fc(0x1cc)]('.'+_0x441e7e),_0x5c0146=_0x49e57c[_0x5057fc(0x1cc)](_0x26daf6);return _0xff08c9||_0x5c0146||_0x49e57c;}return _0x49e57c[_0x5057fc(0x1cc)](_0x26daf6)||_0x49e57c;}[_0x5959ad(0x1fc)](){const _0xde719e=_0x5959ad,_0x4e31d2=this[_0xde719e(0x1bc)]?.[_0xde719e(0x1d0)]||this[_0xde719e(0x1bf)];if(!_0x4e31d2)return wn;const _0x103e09=window[_0xde719e(0x1ef)](_0x4e31d2)[_0xde719e(0x1b1)];if(_0xde719e(0x1d4)===_0x103e09||_0xde719e(0x1db)===_0x103e09||!_0x103e09){const _0x4ab890=_0x4e31d2[_0xde719e(0x20d)];if(_0x4ab890){const _0x5c2b23=window[_0xde719e(0x1ef)](_0x4ab890);return _0xde719e(0x1d4)!==_0x5c2b23[_0xde719e(0x1b1)]?_0x5c2b23[_0xde719e(0x1b1)]:wn;}return wn;}return _0x103e09;}[_0x5959ad(0x1dc)](_0x165b47,_0x306cfc){const _0x2a9d56=_0x5959ad;this[_0x2a9d56(0x21a)][_0x2a9d56(0x1df)][_0x2a9d56(0x206)]&&_0x165b47[_0x2a9d56(0x1f7)][_0x2a9d56(0x215)](this[_0x2a9d56(0x21a)][_0x2a9d56(0x1df)][_0x2a9d56(0x206)]),_0x165b47[_0x2a9d56(0x1af)][_0x2a9d56(0x1b1)]=_0x306cfc,_0x165b47[_0x2a9d56(0x1af)][_0x2a9d56(0x21f)]=_0x2a9d56(0x1fb),_0x165b47[_0x2a9d56(0x1af)][_0x2a9d56(0x19a)]=_0x2a9d56(0x1a6),_0x165b47[_0x2a9d56(0x1af)][_0x2a9d56(0x1a8)]=_0x2a9d56(0x1a6),_0x165b47[_0x2a9d56(0x1af)][_0x2a9d56(0x201)]='0',_0x165b47[_0x2a9d56(0x1af)][_0x2a9d56(0x210)]=_0x2a9d56(0x19e),_0x165b47[_0x2a9d56(0x1af)][_0x2a9d56(0x1f2)]='-1',_0x165b47[_0x2a9d56(0x1af)][_0x2a9d56(0x221)]=_0x2a9d56(0x1ea),_0x165b47[_0x2a9d56(0x1af)][_0x2a9d56(0x1d1)]=_0x2a9d56(0x1b6),_0x165b47[_0x2a9d56(0x1af)][_0x2a9d56(0x217)]=_0x2a9d56(0x1a1);}[_0x5959ad(0x1c6)](_0x580bde){const _0x4ca0c7=_0x5959ad;_0x580bde[_0x4ca0c7(0x1d8)](({element:_0x2f3633,originalDisplay:_0x150fdc,originalVisibility:_0x23418f})=>{const _0x13fd1c=_0x4ca0c7;_0x2f3633[_0x13fd1c(0x1af)][_0x13fd1c(0x1d1)]=_0x150fdc,_0x2f3633[_0x13fd1c(0x1af)][_0x13fd1c(0x221)]=_0x23418f;});}[_0x5959ad(0x1f9)](_0x22f02f){const _0x24fefd=_0x5959ad,_0x5932bf=[];let _0x4c2163=_0x22f02f;for(;_0x4c2163&&_0x4c2163!==document[_0x24fefd(0x1b0)];){const _0x13ef1a=window[_0x24fefd(0x1ef)](_0x4c2163);_0x24fefd(0x19e)!==_0x13ef1a[_0x24fefd(0x1d1)]&&_0x24fefd(0x1a0)!==_0x13ef1a[_0x24fefd(0x221)]||(_0x5932bf[_0x24fefd(0x1b8)]({'element':_0x4c2163,'originalDisplay':_0x4c2163[_0x24fefd(0x1af)][_0x24fefd(0x1d1)],'originalVisibility':_0x4c2163[_0x24fefd(0x1af)][_0x24fefd(0x221)]}),_0x4c2163[_0x24fefd(0x1af)][_0x24fefd(0x1d1)]=_0x24fefd(0x1c1),_0x4c2163[_0x24fefd(0x1af)][_0x24fefd(0x221)]=_0x24fefd(0x20c)),_0x4c2163=_0x4c2163[_0x24fefd(0x20d)];}return _0x5932bf;}[_0x5959ad(0x1e1)](){const _0x44e33f=_0x5959ad;let _0x3acb88,_0x32768a;return this[_0x44e33f(0x1bc)]?.[_0x44e33f(0x1d0)]?(_0x3acb88=this[_0x44e33f(0x1bc)][_0x44e33f(0x1d0)][_0x44e33f(0x1e3)](!0x0),_0x32768a=this[_0x44e33f(0x18f)](_0x3acb88)):(_0x3acb88=document[_0x44e33f(0x20a)](_0x44e33f(0x196)),_0x32768a=_0x3acb88),{'calculationContainer':_0x3acb88,'targetContainer':_0x32768a};}[_0x5959ad(0x195)](){const _0x5b0922=_0x5959ad,{calculationContainer:_0x3ee18c,targetContainer:_0x386d07}=this[_0x5b0922(0x1e1)](),_0x3aea5a=this[_0x5b0922(0x1fc)]();this[_0x5b0922(0x1dc)](_0x3ee18c,_0x3aea5a);const _0x4a176c=this[_0x5b0922(0x1bc)]?.[_0x5b0922(0x1d0)]||this[_0x5b0922(0x1bf)],_0x90f299=_0x4a176c?.[_0x5b0922(0x20d)];_0x90f299?_0x90f299[_0x5b0922(0x1fa)](_0x3ee18c):document[_0x5b0922(0x1b0)][_0x5b0922(0x1fa)](_0x3ee18c),_0x3ee18c[_0x5b0922(0x1e8)]=_0x386d07;const _0x1355a6=this[_0x5b0922(0x1f9)](_0x90f299||null);return _0x3ee18c[_0x5b0922(0x20b)],_0x3ee18c[_0x5b0922(0x1e0)]=_0x1355a6,_0x3ee18c;}[_0x5959ad(0x1d7)](_0x4cc144,_0x39ef97){const _0x1fcd5d=_0x5959ad,_0x1bab25=_0x4cc144[_0x1fcd5d(0x1e8)]||_0x4cc144,_0x365a69=[],{rowCount:_0x26fabc}=this[_0x1fcd5d(0x21b)](_0x1bab25,_0x39ef97);if(_0x26fabc<=this[_0x1fcd5d(0x21a)][_0x1fcd5d(0x1a5)])return _0x365a69;const _0x5f0d44=_0x39ef97[_0x1fcd5d(0x212)]();for(;_0x5f0d44[_0x1fcd5d(0x1f4)]>0x0;){if(this[_0x1fcd5d(0x19c)](_0x4cc144,_0x1bab25,_0x5f0d44)){const _0xaa17b5=_0x39ef97[_0x1fcd5d(0x1c0)](_0x4d1252=>!_0x5f0d44[_0x1fcd5d(0x1cb)](_0x4d1252));_0x365a69[_0x1fcd5d(0x1b8)](..._0xaa17b5);break;}if(!_0x5f0d44[_0x1fcd5d(0x203)]())break;}return _0x365a69;}[_0x5959ad(0x21b)](_0x43c01a,_0xcdfcc6){const _0x3a0727=_0x5959ad;_0x43c01a[_0x3a0727(0x1d5)]='',_0xcdfcc6[_0x3a0727(0x1d8)](_0x5ddef5=>{const _0x1f2edf=_0x3a0727;if(_0x5ddef5[_0x1f2edf(0x1d0)]){const _0x4fcac7=_0x5ddef5[_0x1f2edf(0x1d0)][_0x1f2edf(0x1e3)](!0x0);_0x43c01a[_0x1f2edf(0x1fa)](_0x4fcac7);}}),_0x43c01a[_0x3a0727(0x20b)];const _0x1006ad=_0x43c01a[_0x3a0727(0x219)],_0x404773=[];return Array[_0x3a0727(0x204)](_0x1006ad)[_0x3a0727(0x1d8)](_0x4ad6eb=>{const _0x2554ae=_0x3a0727,_0x58bf4a=_0x4ad6eb[_0x2554ae(0x1b2)]()[_0x2554ae(0x19a)];_0x404773[_0x2554ae(0x1ae)](_0x30a978=>Math[_0x2554ae(0x21d)](_0x30a978-_0x58bf4a)<this[_0x2554ae(0x21a)][_0x2554ae(0x191)])||_0x404773[_0x2554ae(0x1b8)](_0x58bf4a);}),{'rowCount':_0x404773[_0x3a0727(0x1f4)]};}[_0x5959ad(0x214)](){const _0x580b2f=_0x5959ad,_0x3f14d1=document[_0x580b2f(0x20a)](_0x580b2f(0x218));return _0x3f14d1[_0x580b2f(0x192)]=this[_0x580b2f(0x21a)][_0x580b2f(0x1df)][_0x580b2f(0x1c9)],this[_0x580b2f(0x21a)][_0x580b2f(0x1df)][_0x580b2f(0x1be)]&&_0x3f14d1[_0x580b2f(0x1f7)][_0x580b2f(0x215)](this[_0x580b2f(0x21a)][_0x580b2f(0x1df)][_0x580b2f(0x1be)]),_0x3f14d1[_0x580b2f(0x19b)]=_0x580b2f(0x205),_0x3f14d1;}[_0x5959ad(0x19c)](_0x3c4c9a,_0x5ecc57,_0x2993c3){const _0x55be89=_0x5959ad;this[_0x55be89(0x21b)](_0x5ecc57,_0x2993c3);const _0x34de06=this[_0x55be89(0x214)]();_0x3c4c9a[_0x55be89(0x1fa)](_0x34de06),_0x3c4c9a[_0x55be89(0x20b)];const _0x1c738a=[..._0x5ecc57[_0x55be89(0x219)],_0x34de06],_0x4576e5=[];_0x1c738a[_0x55be89(0x1d8)](_0x54c3df=>{const _0x80f2a8=_0x55be89,_0x71723e=_0x54c3df[_0x80f2a8(0x1b2)]()[_0x80f2a8(0x19a)];_0x4576e5[_0x80f2a8(0x1ae)](_0x22219f=>Math[_0x80f2a8(0x21d)](_0x22219f-_0x71723e)<this[_0x80f2a8(0x21a)][_0x80f2a8(0x191)])||_0x4576e5[_0x80f2a8(0x1b8)](_0x71723e);});const _0x1a001a=_0x4576e5[_0x55be89(0x1f4)];return _0x34de06[_0x55be89(0x1ac)](),_0x1a001a<=this[_0x55be89(0x21a)][_0x55be89(0x1a5)];}[_0x5959ad(0x1b4)](_0x560b1f,_0x7cf1c7){const _0x575980=_0x5959ad;this[_0x575980(0x1bd)][_0x575980(0x1a9)](),this[_0x575980(0x222)][_0x575980(0x1a9)](),_0x560b1f[_0x575980(0x1d8)](_0xa49b=>{const _0x3a09cc=_0x575980;_0x7cf1c7[_0x3a09cc(0x1cb)](_0xa49b)?this[_0x3a09cc(0x222)][_0x3a09cc(0x215)](_0xa49b):this[_0x3a09cc(0x1bd)][_0x3a09cc(0x215)](_0xa49b);});}[_0x5959ad(0x1ec)](_0x49e7bd){const _0x5d8f84=_0x5959ad;if(_0x49e7bd>0x0&&!this[_0x5d8f84(0x1d6)]&&this[_0x5d8f84(0x21e)](),_0x49e7bd>0x0&&this[_0x5d8f84(0x1d6)]){const _0x34f5a6=''+this[_0x5d8f84(0x21a)][_0x5d8f84(0x202)]+(_0x49e7bd<0x63?_0x49e7bd:'99');this[_0x5d8f84(0x1d6)][_0x5d8f84(0x1f6)]=_0x34f5a6;}this[_0x5d8f84(0x1ba)](),this[_0x5d8f84(0x1c4)](),this[_0x5d8f84(0x220)]();}[_0x5959ad(0x1e4)](_0x38bd5a,_0x11e77e){const _0xefede4=_0x5959ad;this[_0xefede4(0x1b4)](_0x38bd5a,_0x11e77e),this[_0xefede4(0x1ec)](_0x11e77e[_0xefede4(0x1f4)]);}[_0x5959ad(0x1f3)](){const _0x29ee38=_0x5959ad;this[_0x29ee38(0x1bf)]&&_0x29ee38(0x209)!=typeof IntersectionObserver&&(this[_0x29ee38(0x1b3)]=new IntersectionObserver(_0x1e17e4=>{const _0x58fccd=_0x29ee38;_0x1e17e4[0x0][_0x58fccd(0x1ad)]&&this[_0x58fccd(0x1e7)]&&requestAnimationFrame(()=>{const _0x1af892=_0x58fccd;this[_0x1af892(0x1e2)]();});},{'threshold':0.01,'rootMargin':_0x29ee38(0x1c2)}),this[_0x29ee38(0x1b3)][_0x29ee38(0x1eb)](this[_0x29ee38(0x1bf)]));}[_0x5959ad(0x1fd)](){const _0x1bb26c=_0x5959ad;if(!this[_0x1bb26c(0x1bf)])return!0x1;if(!this[_0x1bb26c(0x1bf)][_0x1bb26c(0x199)])return!0x1;const _0x434913=this[_0x1bb26c(0x1bf)][_0x1bb26c(0x1b2)]();if(0x0===_0x434913[_0x1bb26c(0x1b1)]||0x0===_0x434913[_0x1bb26c(0x1a2)])return!0x1;const _0x223c9d=window[_0x1bb26c(0x1ed)]||document[_0x1bb26c(0x1f5)][_0x1bb26c(0x18d)],_0x8bcc9a=window[_0x1bb26c(0x194)]||document[_0x1bb26c(0x1f5)][_0x1bb26c(0x1b7)],_0x1c9bf7=0xc8;return _0x434913[_0x1bb26c(0x193)]>=-0xc8&&_0x434913[_0x1bb26c(0x19a)]<=_0x223c9d+_0x1c9bf7&&_0x434913[_0x1bb26c(0x1c8)]>=-0xc8&&_0x434913[_0x1bb26c(0x1a8)]<=_0x8bcc9a+_0x1c9bf7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x174f14=_0xa252;(function(_0xe5e81f,_0x5c9838){const _0x296412=_0xa252,_0x29f4bf=_0xe5e81f();while(!![]){try{const _0x23a65c=-parseInt(_0x296412(0x1a4))/0x1+parseInt(_0x296412(0x19e))/0x2*(-parseInt(_0x296412(0x1ba))/0x3)+-parseInt(_0x296412(0x1b3))/0x4+-parseInt(_0x296412(0x18b))/0x5*(-parseInt(_0x296412(0x1c0))/0x6)+-parseInt(_0x296412(0x190))/0x7*(-parseInt(_0x296412(0x1b2))/0x8)+parseInt(_0x296412(0x1aa))/0x9+parseInt(_0x296412(0x18f))/0xa*(parseInt(_0x296412(0x1a8))/0xb);if(_0x23a65c===_0x5c9838)break;else _0x29f4bf['push'](_0x29f4bf['shift']());}catch(_0x5ca533){_0x29f4bf['push'](_0x29f4bf['shift']());}}}(_0x50c2,0x29cf3));import{ButtonView as _0x2bcd9a,IconView as _0x587e89}from'ckeditor5/src/ui.js';import{IconClose as _0x153a49,IconDocument as _0x657399,IconFileUpload as _0x4c7589,IconLink as _0x6247d8,IconSelection as _0x4e55cf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x47dc71}from'../../../aicore/utils/common-translations.js';function _0xa252(_0x946424,_0x300f57){const _0x50c2cf=_0x50c2();return _0xa252=function(_0xa25214,_0x334bcf){_0xa25214=_0xa25214-0x182;let _0x15b605=_0x50c2cf[_0xa25214];return _0x15b605;},_0xa252(_0x946424,_0x300f57);}function _0x50c2(){const _0xcdc58b=['246924dBlFFn','add','_createTemplateChildren','readonly','_createIconView','ck-ai-chat-context-chip__type-icon','tooltip','119553pJKGrf','extendTemplate','_createLoaderIcon','disableAnimationOnEnter','render','ck-ai-chat-context-chip_document','7914jtKJUt','addEventListener','isLoading','lastIndexOf','label','_handleAnimationEndOnce','ck-ai-chat-context-chip__label','_setupRemoveButtonEvent','removeContextItemChip','setTemplate','fire','uiId','execute','slice','200EjLxsw','_createRemoveButton','bindTemplate','ck-hidden','41970MYFUPT','2758ParffU','webkitAnimationEnd','_setupTemplate','content','removeEventListener','ck-ai-chat-context-controls__chip-tooltip','bind','ck-ai-chat-context-chip_wide','span','document','set','type','ck-ai-chat-context-chip','length','4UnwGml','_createTemplateAttributes','ck-ai-chat-context-chip_new-chip','locale','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','itemType','259594iSrEDn','remove','_createLabelElement','element','143snpcoX','selection','1564119GlHIwx','animationend','_isAnimationOnEnterEnabled','div','classList','isVisible','small','_initializeProperties','5912MKAeXq'];_0x50c2=function(){return _0xcdc58b;};return _0x50c2();}import{AISpinnerView as _0x88f436}from'../../../aicore/ui/aispinner.js';const En={'file':_0x4c7589,'document':_0x657399,'web-resource':_0x6247d8,'text':_0x4c7589,'selection':_0x4e55cf,'mcp-tool-context':_0x657399},An=_0x174f14(0x19c),Cn=_0x174f14(0x197),In=_0x174f14(0x1bf),On=_0x174f14(0x183),gn=_0x174f14(0x1b8),vn=_0x174f14(0x195),yn='n';export class AIChatContextItemButtonView extends _0x2bcd9a{constructor(_0x4f53c8,_0x37cc0e,_0x3f886d,_0x1ba6c2,_0x28a75a=!0x1){const _0x248cef=_0x174f14;super(_0x4f53c8),this[_0x248cef(0x1ac)]=_0x1ba6c2,this[_0x248cef(0x1b1)](_0x37cc0e,_0x3f886d,_0x28a75a),this[_0x248cef(0x192)]();}[_0x174f14(0x1be)](){const _0x2f4daf=_0x174f14;super[_0x2f4daf(0x1be)](),this[_0x2f4daf(0x1ac)]&&this[_0x2f4daf(0x1a7)]&&(this[_0x2f4daf(0x1a7)][_0x2f4daf(0x1ae)][_0x2f4daf(0x1b4)](_0x2f4daf(0x1a0)),this[_0x2f4daf(0x182)](this[_0x2f4daf(0x1a7)],()=>{const _0x3b92c7=_0x2f4daf;this[_0x3b92c7(0x1a7)]&&this[_0x3b92c7(0x1a7)][_0x3b92c7(0x1ae)][_0x3b92c7(0x1a5)](_0x3b92c7(0x1a0));}));}[_0x174f14(0x1bd)](){const _0x5879c1=_0x174f14;this[_0x5879c1(0x1ac)]=!0x1,this[_0x5879c1(0x1a7)]&&this[_0x5879c1(0x1a7)][_0x5879c1(0x1ae)][_0x5879c1(0x1a5)](_0x5879c1(0x1a0));}[_0x174f14(0x1b1)](_0x3d56bb,_0x1b4970,_0xeafb49){const _0x123905=_0x174f14;this[_0x123905(0x19a)](_0x123905(0x1c4),_0x3d56bb[_0x123905(0x1c4)]),this[_0x123905(0x19a)](_0x123905(0x1b9),!0x0),this[_0x123905(0x19a)](_0x123905(0x1a3),_0x3d56bb[_0x123905(0x19b)]),this[_0x123905(0x19a)]('id',_0x3d56bb[_0x123905(0x188)]),this[_0x123905(0x19a)](_0x123905(0x1b6),_0x1b4970),this[_0x123905(0x19a)](_0x123905(0x1c2),_0xeafb49);}[_0x174f14(0x192)](){const _0x3be2ca=_0x174f14,_0x69e183=this[_0x3be2ca(0x1b7)](),_0x23a568=this[_0x3be2ca(0x18c)](),_0x376f00=this[_0x3be2ca(0x18d)];this[_0x3be2ca(0x186)]({'tag':_0x3be2ca(0x1ad),'attributes':this[_0x3be2ca(0x19f)](_0x376f00),'children':this[_0x3be2ca(0x1b5)](_0x69e183,_0x23a568,_0x376f00)});}[_0x174f14(0x19f)](_0x3526f5){const _0x51bd4f=_0x174f14;return{'class':[An,_0x3526f5['if'](_0x51bd4f(0x1a3),In,_0x3f3221=>_0x51bd4f(0x199)==_0x3f3221),_0x3526f5['if'](_0x51bd4f(0x1a3),Cn,_0x11031f=>_0x51bd4f(0x1a9)==_0x11031f)],'data-cke-tooltip-text':_0x3526f5['to'](_0x51bd4f(0x1c4),Ln),'data-cke-tooltip-position':yn,'data-cke-tooltip-class':vn};}[_0x174f14(0x1b5)](_0x3d2d38,_0x318968,_0x1ef674){const _0x2ae1e7=_0x174f14,_0x22eea9=this[_0x2ae1e7(0x1a6)](_0x1ef674),_0x12b791=this[_0x2ae1e7(0x1bc)]();return this[_0x2ae1e7(0x1b6)]?[_0x3d2d38,_0x22eea9]:[_0x3d2d38,_0x12b791,_0x22eea9,_0x318968];}[_0x174f14(0x1a6)](_0x1f288d){const _0x49138c=_0x174f14;return{'tag':_0x49138c(0x198),'attributes':{'class':On},'children':[{'text':_0x1f288d['to'](_0x49138c(0x1c4))}]};}[_0x174f14(0x18c)](){const _0xe8ca02=_0x174f14,_0x478d01=new _0x2bcd9a(this[_0xe8ca02(0x1a1)]);return _0x478d01[_0xe8ca02(0x19a)]({'label':_0x47dc71(this[_0xe8ca02(0x1a1)],_0xe8ca02(0x1a2)),'icon':_0x153a49}),this[_0xe8ca02(0x184)](_0x478d01),_0x478d01;}[_0x174f14(0x184)](_0x2a41b9){const _0x4b1df8=_0x174f14;_0x2a41b9['on'](_0x4b1df8(0x189),()=>{const _0x1bd55b=_0x4b1df8;this[_0x1bd55b(0x187)](_0x1bd55b(0x185),this['id']);});}[_0x174f14(0x1b7)](){const _0x3f12d9=_0x174f14,_0x41cdee=this[_0x3f12d9(0x18d)],_0x545581=new _0x587e89();return _0x545581[_0x3f12d9(0x193)]=En[this[_0x3f12d9(0x1a3)]],_0x545581[_0x3f12d9(0x1bb)]({'attributes':{'class':[gn,_0x41cdee['if'](_0x3f12d9(0x1c2),_0x3f12d9(0x18e),_0x72dafc=>_0x72dafc)]}}),_0x545581;}[_0x174f14(0x182)](_0x5e9495,_0x2f35d9){const _0x11cf96=_0x174f14;if(!_0x5e9495)return;const _0x5e2c57=()=>{const _0x86c2b=_0xa252;_0x2f35d9(),_0x5e9495[_0x86c2b(0x194)](_0x86c2b(0x1ab),_0x5e2c57),_0x5e9495[_0x86c2b(0x194)](_0x86c2b(0x191),_0x5e2c57);};_0x5e9495[_0x11cf96(0x1c1)](_0x11cf96(0x1ab),_0x5e2c57),_0x5e9495[_0x11cf96(0x1c1)](_0x11cf96(0x191),_0x5e2c57);}[_0x174f14(0x1bc)](){const _0x31dfa4=_0x174f14,_0x5cfee6=new _0x88f436(_0x31dfa4(0x1b0));return _0x5cfee6[_0x31dfa4(0x196)](_0x31dfa4(0x1af))['to'](this,_0x31dfa4(0x1c2),_0x102f92=>_0x102f92),_0x5cfee6;}}function Ln(_0x1b3c60){const _0x15718b=_0x174f14;if(!_0x1b3c60)return _0x1b3c60;if(_0x1b3c60[_0x15718b(0x19d)]<=0x78)return _0x1b3c60;const _0x9c4465=_0x1b3c60[_0x15718b(0x18a)](0x0,0x78),_0x2ab982=_0x9c4465[_0x15718b(0x1c3)]('\x20');return(_0x2ab982>0x0?_0x9c4465[_0x15718b(0x18a)](0x0,_0x2ab982):_0x9c4465)+'…';}
23
+ const _0x1b0312=_0x52b5;function _0x451a(){const _0x1539ee=['small','15579080ubxrXC','selection','locale','extendTemplate','isLoading','slice','1867713XisYfe','_createTemplateAttributes','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-controls__chip-tooltip','ck-ai-chat-context-chip_new-chip','setTemplate','ck-ai-chat-context-chip_document','1996664WfZKrg','56bkfmso','addEventListener','readonly','fire','add','removeContextItemChip','content','_handleAnimationEndOnce','type','document','ck-ai-chat-context-chip','60yWAYPr','render','ck-hidden','_initializeProperties','_createLabelElement','execute','lastIndexOf','5jRoDkU','_setupTemplate','remove','_setupRemoveButtonEvent','9866tuxVlb','length','webkitAnimationEnd','_createRemoveButton','itemType','4499383ZxYWyD','406035PCphil','tooltip','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip_wide','bindTemplate','set','_createTemplateChildren','label','bind','removeEventListener','3748140uWyqqs','element','animationend','div','disableAnimationOnEnter','_createLoaderIcon','uiId','_isAnimationOnEnterEnabled','classList','isVisible','ck-ai-chat-context-chip__label','_createIconView','span'];_0x451a=function(){return _0x1539ee;};return _0x451a();}(function(_0x1a8ed6,_0x4ad289){const _0x62308b=_0x52b5,_0x357616=_0x1a8ed6();while(!![]){try{const _0x1c79f9=parseInt(_0x62308b(0xb9))/0x1*(parseInt(_0x62308b(0xc4))/0x2)+-parseInt(_0x62308b(0xe8))/0x3+parseInt(_0x62308b(0xef))/0x4*(-parseInt(_0x62308b(0xc0))/0x5)+parseInt(_0x62308b(0xd4))/0x6+-parseInt(_0x62308b(0xc9))/0x7+-parseInt(_0x62308b(0xf0))/0x8*(parseInt(_0x62308b(0xca))/0x9)+parseInt(_0x62308b(0xe2))/0xa;if(_0x1c79f9===_0x4ad289)break;else _0x357616['push'](_0x357616['shift']());}catch(_0x1179ca){_0x357616['push'](_0x357616['shift']());}}}(_0x451a,0x613bb));import{ButtonView as _0x1faca6,IconView as _0x1c8522}from'ckeditor5/src/ui.js';import{IconClose as _0x52f497,IconDocument as _0x10d1f3,IconFileUpload as _0x2fc050,IconLink as _0x373ea8,IconSelection as _0x5c84cd}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x485cfe}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x589091}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x2fc050,'document':_0x10d1f3,'web-resource':_0x373ea8,'text':_0x2fc050,'selection':_0x5c84cd,'mcp-tool-context':_0x10d1f3},bn=_0x1b0312(0xb8),Tn=_0x1b0312(0xcd),En=_0x1b0312(0xee),fn=_0x1b0312(0xde),An=_0x1b0312(0xcc),Cn=_0x1b0312(0xeb),In='n';function _0x52b5(_0x37c1c8,_0x1ac950){const _0x451a84=_0x451a();return _0x52b5=function(_0x52b5e5,_0x36c5ed){_0x52b5e5=_0x52b5e5-0xb7;let _0xf566b5=_0x451a84[_0x52b5e5];return _0xf566b5;},_0x52b5(_0x37c1c8,_0x1ac950);}export class AIChatContextItemButtonView extends _0x1faca6{constructor(_0x46982a,_0x47cf73,_0x57f29f,_0x113009,_0x4d8ab0=!0x1){const _0x2d8e58=_0x1b0312;super(_0x46982a),this[_0x2d8e58(0xdb)]=_0x113009,this[_0x2d8e58(0xbc)](_0x47cf73,_0x57f29f,_0x4d8ab0),this[_0x2d8e58(0xc1)]();}[_0x1b0312(0xba)](){const _0x6ed94a=_0x1b0312;super[_0x6ed94a(0xba)](),this[_0x6ed94a(0xdb)]&&this[_0x6ed94a(0xd5)]&&(this[_0x6ed94a(0xd5)][_0x6ed94a(0xdc)][_0x6ed94a(0xf4)](_0x6ed94a(0xec)),this[_0x6ed94a(0xf7)](this[_0x6ed94a(0xd5)],()=>{const _0x401884=_0x6ed94a;this[_0x401884(0xd5)]&&this[_0x401884(0xd5)][_0x401884(0xdc)][_0x401884(0xc2)](_0x401884(0xec));}));}[_0x1b0312(0xd8)](){const _0x4190c1=_0x1b0312;this[_0x4190c1(0xdb)]=!0x1,this[_0x4190c1(0xd5)]&&this[_0x4190c1(0xd5)][_0x4190c1(0xdc)][_0x4190c1(0xc2)](_0x4190c1(0xec));}[_0x1b0312(0xbc)](_0x5f348a,_0x29fda3,_0x4e9203){const _0x2cc6c7=_0x1b0312;this[_0x2cc6c7(0xcf)](_0x2cc6c7(0xd1),_0x5f348a[_0x2cc6c7(0xd1)]),this[_0x2cc6c7(0xcf)](_0x2cc6c7(0xcb),!0x0),this[_0x2cc6c7(0xcf)](_0x2cc6c7(0xc8),_0x5f348a[_0x2cc6c7(0xf8)]),this[_0x2cc6c7(0xcf)]('id',_0x5f348a[_0x2cc6c7(0xda)]),this[_0x2cc6c7(0xcf)](_0x2cc6c7(0xf2),_0x29fda3),this[_0x2cc6c7(0xcf)](_0x2cc6c7(0xe6),_0x4e9203);}[_0x1b0312(0xc1)](){const _0x1b9f26=_0x1b0312,_0x3be5cb=this[_0x1b9f26(0xdf)](),_0x5a6c2d=this[_0x1b9f26(0xc7)](),_0x1fdd3d=this[_0x1b9f26(0xce)];this[_0x1b9f26(0xed)]({'tag':_0x1b9f26(0xd7),'attributes':this[_0x1b9f26(0xe9)](_0x1fdd3d),'children':this[_0x1b9f26(0xd0)](_0x3be5cb,_0x5a6c2d,_0x1fdd3d)});}[_0x1b0312(0xe9)](_0x687973){const _0x59e227=_0x1b0312;return{'class':[bn,_0x687973['if'](_0x59e227(0xc8),En,_0x5579ae=>_0x59e227(0xb7)==_0x5579ae),_0x687973['if'](_0x59e227(0xc8),Tn,_0x3a329d=>_0x59e227(0xe3)==_0x3a329d)],'data-cke-tooltip-text':_0x687973['to'](_0x59e227(0xd1),On),'data-cke-tooltip-position':In,'data-cke-tooltip-class':Cn};}[_0x1b0312(0xd0)](_0xe37b4f,_0x37bb76,_0x4dbafd){const _0x4dffc7=_0x1b0312,_0x11a871=this[_0x4dffc7(0xbd)](_0x4dbafd),_0x52ef0c=this[_0x4dffc7(0xd9)]();return this[_0x4dffc7(0xf2)]?[_0xe37b4f,_0x11a871]:[_0xe37b4f,_0x52ef0c,_0x11a871,_0x37bb76];}[_0x1b0312(0xbd)](_0x2312b8){const _0x3cbf85=_0x1b0312;return{'tag':_0x3cbf85(0xe0),'attributes':{'class':fn},'children':[{'text':_0x2312b8['to'](_0x3cbf85(0xd1))}]};}[_0x1b0312(0xc7)](){const _0x592521=_0x1b0312,_0x1e1703=new _0x1faca6(this[_0x592521(0xe4)]);return _0x1e1703[_0x592521(0xcf)]({'label':_0x485cfe(this[_0x592521(0xe4)],_0x592521(0xea)),'icon':_0x52f497}),this[_0x592521(0xc3)](_0x1e1703),_0x1e1703;}[_0x1b0312(0xc3)](_0xfc837d){const _0x36e80f=_0x1b0312;_0xfc837d['on'](_0x36e80f(0xbe),()=>{const _0x3acdb1=_0x36e80f;this[_0x3acdb1(0xf3)](_0x3acdb1(0xf5),this['id']);});}[_0x1b0312(0xdf)](){const _0xa8f2f7=_0x1b0312,_0x41a93c=this[_0xa8f2f7(0xce)],_0x493cf3=new _0x1c8522();return _0x493cf3[_0xa8f2f7(0xf6)]=xn[this[_0xa8f2f7(0xc8)]],_0x493cf3[_0xa8f2f7(0xe5)]({'attributes':{'class':[An,_0x41a93c['if'](_0xa8f2f7(0xe6),_0xa8f2f7(0xbb),_0x4f06f6=>_0x4f06f6)]}}),_0x493cf3;}[_0x1b0312(0xf7)](_0x4d392c,_0x23327f){const _0x44c11f=_0x1b0312;if(!_0x4d392c)return;const _0x5d70af=()=>{const _0x339c49=_0x52b5;_0x23327f(),_0x4d392c[_0x339c49(0xd3)](_0x339c49(0xd6),_0x5d70af),_0x4d392c[_0x339c49(0xd3)](_0x339c49(0xc6),_0x5d70af);};_0x4d392c[_0x44c11f(0xf1)](_0x44c11f(0xd6),_0x5d70af),_0x4d392c[_0x44c11f(0xf1)](_0x44c11f(0xc6),_0x5d70af);}[_0x1b0312(0xd9)](){const _0x1fada3=_0x1b0312,_0x510bfd=new _0x589091(_0x1fada3(0xe1));return _0x510bfd[_0x1fada3(0xd2)](_0x1fada3(0xdd))['to'](this,_0x1fada3(0xe6),_0xf9574d=>_0xf9574d),_0x510bfd;}}function On(_0x3c0655){const _0x1b4943=_0x1b0312;if(!_0x3c0655)return _0x3c0655;if(_0x3c0655[_0x1b4943(0xc5)]<=0x78)return _0x3c0655;const _0x3ae2b4=_0x3c0655[_0x1b4943(0xe7)](0x0,0x78),_0x25e3fb=_0x3ae2b4[_0x1b4943(0xbf)]('\x20');return(_0x25e3fb>0x0?_0x3ae2b4[_0x1b4943(0xe7)](0x0,_0x25e3fb):_0x3ae2b4)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4c90(_0x3c2597,_0x30d8ea){const _0xa47a2e=_0xa47a();return _0x4c90=function(_0x4c90fc,_0x48b853){_0x4c90fc=_0x4c90fc-0x141;let _0x25bd2f=_0xa47a2e[_0x4c90fc];return _0x25bd2f;},_0x4c90(_0x3c2597,_0x30d8ea);}const _0x482b88=_0x4c90;(function(_0x1d29f6,_0x1b7f83){const _0x1b5de5=_0x4c90,_0x334cda=_0x1d29f6();while(!![]){try{const _0x15510b=-parseInt(_0x1b5de5(0x14a))/0x1+-parseInt(_0x1b5de5(0x168))/0x2*(parseInt(_0x1b5de5(0x178))/0x3)+parseInt(_0x1b5de5(0x160))/0x4*(-parseInt(_0x1b5de5(0x15f))/0x5)+parseInt(_0x1b5de5(0x163))/0x6*(parseInt(_0x1b5de5(0x174))/0x7)+parseInt(_0x1b5de5(0x146))/0x8+parseInt(_0x1b5de5(0x147))/0x9*(-parseInt(_0x1b5de5(0x15c))/0xa)+-parseInt(_0x1b5de5(0x165))/0xb*(-parseInt(_0x1b5de5(0x176))/0xc);if(_0x15510b===_0x1b7f83)break;else _0x334cda['push'](_0x334cda['shift']());}catch(_0x26da7e){_0x334cda['push'](_0x334cda['shift']());}}}(_0xa47a,0x308d3));import{FocusTracker as _0x3359fb,KeystrokeHandler as _0x2c41b3}from'ckeditor5/src/utils.js';import{ButtonView as _0x19a7ad,FocusCycler as _0x3be8e7,LabeledFieldView as _0xd10073,View as _0x58be01,FormHeaderView as _0x4ba5cd,createLabeledInputText as _0x586c18,submitHandler as _0x4ac004}from'ckeditor5/src/ui.js';function _0xa47a(){const _0x480fe9=['add','ck-ai-chat-context-controls__url-form','withBackButton','fieldView','isEnabled','div','backButton','_setupEventHandlers','focusTracker','fire','AI_CHAT_CONTEXT_URL_PLACEHOLDER','forEach','value','clearError','input','listenTo','esc','trim','_isValidUrl','ck-labeled-field-view_empty','_createBackButton','_focusables','focus','set','cancel','submitUrl','1756928LPgUEc','1098gVSGey','_setupTemplate','_createConfirmButton','394061krbesh','urlInputField','AI_CHAT_CONTEXT_URL_INVALID_ERROR','children','ck-button-icon\x20ck-button-back','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_createUrlInputField','execute','destroy','locale','element','createCollection','submit','render','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','shift+tab','stop','_setupKeystrokes','25400tpNhqe','ck-button-icon','form','965zICgLi','5528PKoQWY','focusCycler','AI_CHAT_CONTEXT_URL_LABEL','18DrlSNK','clear','44AaZlCX','ck-ai-chat-context-controls__url-input-section','keystrokes','2LDuMWQ','refreshBalloon','confirmButton','setError','length','_updateConfirmButtonState','AI_CHAT_CONTEXT_URL_ADD_URL','getValue','setTemplate','tab','change:withBackButton','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','321741sULeQb','errorText','3532860EoFQkl','\x20ck-hidden','1096773AftVLV','_handleSubmit'];_0xa47a=function(){return _0x480fe9;};return _0xa47a();}import{IconCheck as _0x25b7c6,IconPreviousArrow as _0x44ae59}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1b6b1b}from'../../../aicore/utils/common-translations.js';const oh=_0x482b88(0x17b),ch=_0x482b88(0x166);export class AIChatContextPanelUrlInputView extends _0x58be01{[_0x482b88(0x182)];[_0x482b88(0x167)];[_0x482b88(0x141)];[_0x482b88(0x161)];[_0x482b88(0x14b)];[_0x482b88(0x180)];[_0x482b88(0x16a)];constructor(_0x5b1d30){const _0x342bcb=_0x482b88;super(_0x5b1d30),this[_0x342bcb(0x182)]=new _0x3359fb(),this[_0x342bcb(0x167)]=new _0x2c41b3(),this[_0x342bcb(0x180)]=this[_0x342bcb(0x18e)](),this[_0x342bcb(0x14b)]=this[_0x342bcb(0x150)](),this[_0x342bcb(0x16a)]=this[_0x342bcb(0x149)](),this[_0x342bcb(0x141)]=this[_0x342bcb(0x155)]([this[_0x342bcb(0x180)],this[_0x342bcb(0x14b)],this[_0x342bcb(0x16a)]]),this[_0x342bcb(0x161)]=new _0x3be8e7({'focusables':this[_0x342bcb(0x141)],'focusTracker':this[_0x342bcb(0x182)],'keystrokeHandler':this[_0x342bcb(0x167)],'actions':{'focusPrevious':_0x342bcb(0x159),'focusNext':_0x342bcb(0x171)}}),this[_0x342bcb(0x143)](_0x342bcb(0x17c),!0x0),this[_0x342bcb(0x148)](),this[_0x342bcb(0x181)](),this[_0x342bcb(0x15b)]();}[_0x482b88(0x157)](){const _0x25010a=_0x482b88;super[_0x25010a(0x157)](),this[_0x25010a(0x141)][_0x25010a(0x185)](_0x43c759=>{const _0x239483=_0x25010a;this[_0x239483(0x182)][_0x239483(0x17a)](_0x43c759[_0x239483(0x154)]),this[_0x239483(0x167)][_0x239483(0x189)](_0x43c759[_0x239483(0x154)]);}),_0x4ac004({'view':this}),this[_0x25010a(0x142)]();}[_0x482b88(0x152)](){const _0xab6f8a=_0x482b88;super[_0xab6f8a(0x152)](),this[_0xab6f8a(0x182)][_0xab6f8a(0x152)](),this[_0xab6f8a(0x167)][_0xab6f8a(0x152)]();}[_0x482b88(0x142)](){const _0x1e0049=_0x482b88;this[_0x1e0049(0x14b)][_0x1e0049(0x142)]();}[_0x482b88(0x16f)](){const _0x5d9a4d=_0x482b88;return this[_0x5d9a4d(0x14b)][_0x5d9a4d(0x17d)][_0x5d9a4d(0x154)]?.[_0x5d9a4d(0x186)]?.[_0x5d9a4d(0x18b)]()||'';}[_0x482b88(0x164)](){const _0x70a3a0=_0x482b88;this[_0x70a3a0(0x14b)][_0x70a3a0(0x17d)][_0x70a3a0(0x154)][_0x70a3a0(0x186)]='',this[_0x70a3a0(0x14b)][_0x70a3a0(0x175)]=null,this[_0x70a3a0(0x16a)][_0x70a3a0(0x17e)]=!0x1;}[_0x482b88(0x16b)](_0x2ca5cc){const _0x51b2c4=_0x482b88;this[_0x51b2c4(0x14b)][_0x51b2c4(0x175)]=_0x2ca5cc,this[_0x51b2c4(0x16d)](),this[_0x51b2c4(0x183)](_0x51b2c4(0x169));}[_0x482b88(0x187)](){const _0x240cde=_0x482b88;this[_0x240cde(0x14b)][_0x240cde(0x175)]=null,this[_0x240cde(0x16d)]();}[_0x482b88(0x18e)](){const _0xfd3d6a=_0x482b88,_0x467096=new _0x19a7ad(this[_0xfd3d6a(0x153)]);return _0x467096[_0xfd3d6a(0x143)]({'icon':_0x44ae59,'tooltip':_0x1b6b1b(this[_0xfd3d6a(0x153)],_0xfd3d6a(0x173)),'tooltipPosition':'n','class':[_0xfd3d6a(0x14e)]}),this['on'](_0xfd3d6a(0x172),(_0x4320be,_0x2655ca,_0xee1a5b)=>{const _0x32da02=_0xfd3d6a;_0x467096[_0x32da02(0x143)]({'class':[_0x32da02(0x14e)+(_0xee1a5b?'':_0x32da02(0x177))]});}),_0x467096;}[_0x482b88(0x150)](){const _0x2ac49e=_0x482b88,_0x1dff15=new _0xd10073(this[_0x2ac49e(0x153)],_0x586c18);return _0x1dff15[_0x2ac49e(0x143)]({'label':_0x1b6b1b(this[_0x2ac49e(0x153)],_0x2ac49e(0x162)),'class':_0x2ac49e(0x18d)}),_0x1dff15[_0x2ac49e(0x17d)][_0x2ac49e(0x143)]({'placeholder':_0x1b6b1b(this[_0x2ac49e(0x153)],_0x2ac49e(0x184))}),_0x1dff15;}[_0x482b88(0x149)](){const _0x135ec5=_0x482b88,_0x39b56a=new _0x19a7ad(this[_0x135ec5(0x153)]);return _0x39b56a[_0x135ec5(0x143)]({'icon':_0x25b7c6,'tooltip':_0x1b6b1b(this[_0x135ec5(0x153)],_0x135ec5(0x16e)),'tooltipPosition':'n','class':_0x135ec5(0x15d),'type':_0x135ec5(0x156),'isEnabled':!0x1}),_0x39b56a;}[_0x482b88(0x148)](){const _0x558bd3=_0x482b88,_0x4fac45=new _0x4ba5cd(this[_0x558bd3(0x153)],{'label':_0x1b6b1b(this[_0x558bd3(0x153)],_0x558bd3(0x16e)),'class':_0x558bd3(0x14f)});_0x4fac45[_0x558bd3(0x14d)][_0x558bd3(0x17a)](this[_0x558bd3(0x180)],0x0),this[_0x558bd3(0x170)]({'tag':_0x558bd3(0x15e),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x4fac45,{'tag':_0x558bd3(0x17f),'attributes':{'class':ch},'children':[this[_0x558bd3(0x14b)],this[_0x558bd3(0x16a)]]}]});}[_0x482b88(0x181)](){const _0x34f769=_0x482b88;this[_0x34f769(0x180)]['on'](_0x34f769(0x151),()=>{const _0x5e7783=_0x34f769;this[_0x5e7783(0x164)](),this[_0x5e7783(0x183)](_0x5e7783(0x144));}),this[_0x34f769(0x14b)][_0x34f769(0x17d)]['on'](_0x34f769(0x188),()=>{const _0x54053e=_0x34f769;this[_0x54053e(0x187)](),this[_0x54053e(0x16d)](),this[_0x54053e(0x183)](_0x54053e(0x169));}),this['on'](_0x34f769(0x156),_0x4aa7ae=>{const _0x2aac56=_0x34f769;_0x4aa7ae[_0x2aac56(0x15a)](),this[_0x2aac56(0x179)]();});}[_0x482b88(0x15b)](){const _0x2d8b51=_0x482b88;this[_0x2d8b51(0x167)][_0x2d8b51(0x143)](_0x2d8b51(0x18a),(_0x3d6c32,_0x48c380)=>{const _0x3bca01=_0x2d8b51;this[_0x3bca01(0x164)](),this[_0x3bca01(0x183)](_0x3bca01(0x144)),_0x48c380();});}[_0x482b88(0x179)](){const _0x3e0b08=_0x482b88,_0x1c0881=this[_0x3e0b08(0x16f)]()[_0x3e0b08(0x18b)]();_0x1c0881?this[_0x3e0b08(0x18c)](_0x1c0881)?(this[_0x3e0b08(0x187)](),this[_0x3e0b08(0x183)](_0x3e0b08(0x145),_0x1c0881)):this[_0x3e0b08(0x16b)](_0x1b6b1b(this[_0x3e0b08(0x153)],_0x3e0b08(0x14c))):this[_0x3e0b08(0x16b)](_0x1b6b1b(this[_0x3e0b08(0x153)],_0x3e0b08(0x158)));}[_0x482b88(0x16d)](){const _0x201bf5=_0x482b88,_0x343c31=this[_0x201bf5(0x16f)]()[_0x201bf5(0x18b)](),_0x5dc0ab=!!this[_0x201bf5(0x14b)][_0x201bf5(0x175)];this[_0x201bf5(0x16a)][_0x201bf5(0x17e)]=_0x343c31[_0x201bf5(0x16c)]>0x0&&!_0x5dc0ab;}[_0x482b88(0x18c)](_0x523742){try{return!!new URL(_0x523742);}catch{return!0x1;}}}
23
+ const _0x3a2aeb=_0x1b29;(function(_0x5017a8,_0x2b8541){const _0x2baeb0=_0x1b29,_0x366131=_0x5017a8();while(!![]){try{const _0x309f15=parseInt(_0x2baeb0(0x145))/0x1+-parseInt(_0x2baeb0(0x130))/0x2+-parseInt(_0x2baeb0(0x143))/0x3*(-parseInt(_0x2baeb0(0x157))/0x4)+parseInt(_0x2baeb0(0x152))/0x5*(-parseInt(_0x2baeb0(0x11a))/0x6)+-parseInt(_0x2baeb0(0x127))/0x7*(-parseInt(_0x2baeb0(0x12f))/0x8)+-parseInt(_0x2baeb0(0x134))/0x9+parseInt(_0x2baeb0(0x124))/0xa;if(_0x309f15===_0x2b8541)break;else _0x366131['push'](_0x366131['shift']());}catch(_0x5ad0cd){_0x366131['push'](_0x366131['shift']());}}}(_0x50b5,0x88ecc));import{FocusTracker as _0x46ba0e,KeystrokeHandler as _0x2eddef}from'ckeditor5/src/utils.js';import{ButtonView as _0x2c28ab,FocusCycler as _0xe1c0a6,LabeledFieldView as _0x4dad41,View as _0x2f32e8,FormHeaderView as _0x2b8901,createLabeledInputText as _0x3e7d4a,submitHandler as _0x7469b3}from'ckeditor5/src/ui.js';import{IconCheck as _0x450995,IconPreviousArrow as _0x1c1615}from'@ckeditor/ckeditor5-icons';function _0x50b5(){const _0x28653e=['focus','refreshBalloon','submit','destroy','confirmButton','_focusables','AI_CHAT_CONTEXT_URL_ADD_URL','length','412866gHpnSl','shift+tab','_handleSubmit','_createUrlInputField','_isValidUrl','ck-button-icon\x20ck-button-back','input','trim','getValue','value','2140380ydZBvk','esc','div','33929STdiMV','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_createBackButton','fieldView','fire','tab','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','setTemplate','1792btddIN','535812AhVDbj','focusTracker','clear','AI_CHAT_CONTEXT_URL_PLACEHOLDER','4369041hFSGny','createCollection','focusCycler','clearError','execute','ck-button-icon','withBackButton','setError','locale','urlInputField','AI_CHAT_CONTEXT_URL_LABEL','\x20ck-hidden','cancel','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_setupTemplate','9nKNYRL','keystrokes','79584MpDfGn','_setupEventHandlers','render','element','form','ck-ai-chat-context-controls__url-input-section','children','ck-ai-chat-context-controls__url-form','backButton','errorText','set','change:withBackButton','listenTo','60XltJLh','isEnabled','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','add','ck-labeled-field-view_empty','1014108evoQJo','forEach','stop','_createConfirmButton','_updateConfirmButtonState','submitUrl','_setupKeystrokes'];_0x50b5=function(){return _0x28653e;};return _0x50b5();}import{getTranslation as _0xed7484}from'../../../aicore/utils/common-translations.js';function _0x1b29(_0x4e640c,_0x406332){const _0x50b580=_0x50b5();return _0x1b29=function(_0x1b29e4,_0x340f4e){_0x1b29e4=_0x1b29e4-0x11a;let _0x3a95db=_0x50b580[_0x1b29e4];return _0x3a95db;},_0x1b29(_0x4e640c,_0x406332);}const nh=_0x3a2aeb(0x14c),lh=_0x3a2aeb(0x14a);export class AIChatContextPanelUrlInputView extends _0x2f32e8{[_0x3a2aeb(0x131)];[_0x3a2aeb(0x144)];[_0x3a2aeb(0x163)];[_0x3a2aeb(0x136)];[_0x3a2aeb(0x13d)];[_0x3a2aeb(0x14d)];[_0x3a2aeb(0x162)];constructor(_0x1a5c68){const _0x19e529=_0x3a2aeb;super(_0x1a5c68),this[_0x19e529(0x131)]=new _0x46ba0e(),this[_0x19e529(0x144)]=new _0x2eddef(),this[_0x19e529(0x14d)]=this[_0x19e529(0x129)](),this[_0x19e529(0x13d)]=this[_0x19e529(0x11d)](),this[_0x19e529(0x162)]=this[_0x19e529(0x15a)](),this[_0x19e529(0x163)]=this[_0x19e529(0x135)]([this[_0x19e529(0x14d)],this[_0x19e529(0x13d)],this[_0x19e529(0x162)]]),this[_0x19e529(0x136)]=new _0xe1c0a6({'focusables':this[_0x19e529(0x163)],'focusTracker':this[_0x19e529(0x131)],'keystrokeHandler':this[_0x19e529(0x144)],'actions':{'focusPrevious':_0x19e529(0x11b),'focusNext':_0x19e529(0x12c)}}),this[_0x19e529(0x14f)](_0x19e529(0x13a),!0x0),this[_0x19e529(0x142)](),this[_0x19e529(0x146)](),this[_0x19e529(0x15d)]();}[_0x3a2aeb(0x147)](){const _0x56b364=_0x3a2aeb;super[_0x56b364(0x147)](),this[_0x56b364(0x163)][_0x56b364(0x158)](_0x54d08a=>{const _0x6fbb76=_0x56b364;this[_0x6fbb76(0x131)][_0x6fbb76(0x155)](_0x54d08a[_0x6fbb76(0x148)]),this[_0x6fbb76(0x144)][_0x6fbb76(0x151)](_0x54d08a[_0x6fbb76(0x148)]);}),_0x7469b3({'view':this}),this[_0x56b364(0x15e)]();}[_0x3a2aeb(0x161)](){const _0x1882ab=_0x3a2aeb;super[_0x1882ab(0x161)](),this[_0x1882ab(0x131)][_0x1882ab(0x161)](),this[_0x1882ab(0x144)][_0x1882ab(0x161)]();}[_0x3a2aeb(0x15e)](){const _0x300f5b=_0x3a2aeb;this[_0x300f5b(0x13d)][_0x300f5b(0x15e)]();}[_0x3a2aeb(0x122)](){const _0x4af5cc=_0x3a2aeb;return this[_0x4af5cc(0x13d)][_0x4af5cc(0x12a)][_0x4af5cc(0x148)]?.[_0x4af5cc(0x123)]?.[_0x4af5cc(0x121)]()||'';}[_0x3a2aeb(0x132)](){const _0x467e36=_0x3a2aeb;this[_0x467e36(0x13d)][_0x467e36(0x12a)][_0x467e36(0x148)][_0x467e36(0x123)]='',this[_0x467e36(0x13d)][_0x467e36(0x14e)]=null,this[_0x467e36(0x162)][_0x467e36(0x153)]=!0x1;}[_0x3a2aeb(0x13b)](_0x1c9340){const _0x580839=_0x3a2aeb;this[_0x580839(0x13d)][_0x580839(0x14e)]=_0x1c9340,this[_0x580839(0x15b)](),this[_0x580839(0x12b)](_0x580839(0x15f));}[_0x3a2aeb(0x137)](){const _0x18fbea=_0x3a2aeb;this[_0x18fbea(0x13d)][_0x18fbea(0x14e)]=null,this[_0x18fbea(0x15b)]();}[_0x3a2aeb(0x129)](){const _0x2df7a1=_0x3a2aeb,_0x19114e=new _0x2c28ab(this[_0x2df7a1(0x13c)]);return _0x19114e[_0x2df7a1(0x14f)]({'icon':_0x1c1615,'tooltip':_0xed7484(this[_0x2df7a1(0x13c)],_0x2df7a1(0x141)),'tooltipPosition':'n','class':[_0x2df7a1(0x11f)]}),this['on'](_0x2df7a1(0x150),(_0x474847,_0x4151b8,_0x3b015c)=>{const _0x32e91e=_0x2df7a1;_0x19114e[_0x32e91e(0x14f)]({'class':[_0x32e91e(0x11f)+(_0x3b015c?'':_0x32e91e(0x13f))]});}),_0x19114e;}[_0x3a2aeb(0x11d)](){const _0x2e19dd=_0x3a2aeb,_0xb90275=new _0x4dad41(this[_0x2e19dd(0x13c)],_0x3e7d4a);return _0xb90275[_0x2e19dd(0x14f)]({'label':_0xed7484(this[_0x2e19dd(0x13c)],_0x2e19dd(0x13e)),'class':_0x2e19dd(0x156)}),_0xb90275[_0x2e19dd(0x12a)][_0x2e19dd(0x14f)]({'placeholder':_0xed7484(this[_0x2e19dd(0x13c)],_0x2e19dd(0x133))}),_0xb90275;}[_0x3a2aeb(0x15a)](){const _0x3463b7=_0x3a2aeb,_0x48e090=new _0x2c28ab(this[_0x3463b7(0x13c)]);return _0x48e090[_0x3463b7(0x14f)]({'icon':_0x450995,'tooltip':_0xed7484(this[_0x3463b7(0x13c)],_0x3463b7(0x164)),'tooltipPosition':'n','class':_0x3463b7(0x139),'type':_0x3463b7(0x160),'isEnabled':!0x1}),_0x48e090;}[_0x3a2aeb(0x142)](){const _0x33cd82=_0x3a2aeb,_0x38a59c=new _0x2b8901(this[_0x33cd82(0x13c)],{'label':_0xed7484(this[_0x33cd82(0x13c)],_0x33cd82(0x164)),'class':_0x33cd82(0x12d)});_0x38a59c[_0x33cd82(0x14b)][_0x33cd82(0x155)](this[_0x33cd82(0x14d)],0x0),this[_0x33cd82(0x12e)]({'tag':_0x33cd82(0x149),'attributes':{'class':nh,'tabindex':'-1'},'children':[_0x38a59c,{'tag':_0x33cd82(0x126),'attributes':{'class':lh},'children':[this[_0x33cd82(0x13d)],this[_0x33cd82(0x162)]]}]});}[_0x3a2aeb(0x146)](){const _0xa53558=_0x3a2aeb;this[_0xa53558(0x14d)]['on'](_0xa53558(0x138),()=>{const _0x58770d=_0xa53558;this[_0x58770d(0x132)](),this[_0x58770d(0x12b)](_0x58770d(0x140));}),this[_0xa53558(0x13d)][_0xa53558(0x12a)]['on'](_0xa53558(0x120),()=>{const _0x1c2d79=_0xa53558;this[_0x1c2d79(0x137)](),this[_0x1c2d79(0x15b)](),this[_0x1c2d79(0x12b)](_0x1c2d79(0x15f));}),this['on'](_0xa53558(0x160),_0x285896=>{const _0x25a7a5=_0xa53558;_0x285896[_0x25a7a5(0x159)](),this[_0x25a7a5(0x11c)]();});}[_0x3a2aeb(0x15d)](){const _0x1f6343=_0x3a2aeb;this[_0x1f6343(0x144)][_0x1f6343(0x14f)](_0x1f6343(0x125),(_0x792f24,_0x6f0f0a)=>{const _0xc5ac24=_0x1f6343;this[_0xc5ac24(0x132)](),this[_0xc5ac24(0x12b)](_0xc5ac24(0x140)),_0x6f0f0a();});}[_0x3a2aeb(0x11c)](){const _0x1508c6=_0x3a2aeb,_0x1456b1=this[_0x1508c6(0x122)]()[_0x1508c6(0x121)]();_0x1456b1?this[_0x1508c6(0x11e)](_0x1456b1)?(this[_0x1508c6(0x137)](),this[_0x1508c6(0x12b)](_0x1508c6(0x15c),_0x1456b1)):this[_0x1508c6(0x13b)](_0xed7484(this[_0x1508c6(0x13c)],_0x1508c6(0x128))):this[_0x1508c6(0x13b)](_0xed7484(this[_0x1508c6(0x13c)],_0x1508c6(0x154)));}[_0x3a2aeb(0x15b)](){const _0x3b2843=_0x3a2aeb,_0x5b373f=this[_0x3b2843(0x122)]()[_0x3b2843(0x121)](),_0x59f4bc=!!this[_0x3b2843(0x13d)][_0x3b2843(0x14e)];this[_0x3b2843(0x162)][_0x3b2843(0x153)]=_0x5b373f[_0x3b2843(0x165)]>0x0&&!_0x59f4bc;}[_0x3a2aeb(0x11e)](_0x16b388){try{return!!new URL(_0x16b388);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a53f2=_0x26cd;(function(_0x5b8776,_0x1dde60){const _0x3aad01=_0x26cd,_0x52fb46=_0x5b8776();while(!![]){try{const _0x35d1de=-parseInt(_0x3aad01(0x8d))/0x1+parseInt(_0x3aad01(0xec))/0x2*(-parseInt(_0x3aad01(0x8b))/0x3)+parseInt(_0x3aad01(0xc4))/0x4*(-parseInt(_0x3aad01(0xb6))/0x5)+-parseInt(_0x3aad01(0xa8))/0x6*(-parseInt(_0x3aad01(0xde))/0x7)+-parseInt(_0x3aad01(0xce))/0x8*(parseInt(_0x3aad01(0xee))/0x9)+parseInt(_0x3aad01(0xdf))/0xa*(parseInt(_0x3aad01(0xc7))/0xb)+parseInt(_0x3aad01(0x10b))/0xc;if(_0x35d1de===_0x1dde60)break;else _0x52fb46['push'](_0x52fb46['shift']());}catch(_0x28faf2){_0x52fb46['push'](_0x52fb46['shift']());}}}(_0x42fa,0x374da));import{BalloonPanelView as _0x4974b3,ButtonView as _0x43d939,clickOutsideHandler as _0x4bec7d,FileDialogButtonView as _0x15a650,IconView as _0x45322d,View as _0x4ea4e1}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x225f92,IconDocument as _0x4b3a68,IconDocumentOutline as _0x5a3268,IconDropdownArrow as _0x2b8dfe,IconLink as _0x1de5db,IconPaperClip as _0x2e1d95}from'@ckeditor/ckeditor5-icons';function _0x26cd(_0x5ae217,_0x25bdca){const _0x42faab=_0x42fa();return _0x26cd=function(_0x26cdf3,_0x45ac89){_0x26cdf3=_0x26cdf3-0x7c;let _0x2d26ef=_0x42faab[_0x26cdf3];return _0x2d26ef;},_0x26cd(_0x5ae217,_0x25bdca);}import{AIChatContextItemButtonView as _0x3c174c}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5f2e57}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5689dc}from'./aichatchipsoverflowmanager.js';function _0x42fa(){const _0x343750=['executeCustomItemCallback','hideUrlBalloonPanel','add','submitUrl','_setAddContextButtonEnabled','setContainerElement','2368261uomZoo','883010YWjbRt','children','AI_CHAT_CONTEXT_FILE_LABEL','files','isEnabled','setTemplate','addDocumentToContext','closest','menuitem','_createBalloonButton','northArrowSouthEast','ck-ai-chat-context-controls__pending-contexts','_createContextButton','664264JLyMUq','extendTemplate','972LDigeF','setAddContextOptions','ck-ai-chat-context-controls__add-context-button','locale','_handleUrlSubmit','get','removeContextItemChip','sources','_addContextBalloonConfig','isHidden','balloonView','render','ck-ai-chat-controls-button','showSourceResourcesBalloon','ck-ai-chat-context-chips-wrapper-balloon','isOn','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','__arrow','northArrowSouth','content','isLoading','AI_CHAT_CONTEXT_URL_LABEL','overflowChips','_showSourceResourcesBalloon','hideAddContextBalloonPanel','focus','_createResourcesBalloonView','pin','setContextItemLoading','11064648oURMjA','clear','showAddContextBalloonPanel','clearConversationContextItems','tooltip','closeSourceResourceBalloon','searchInputVisibleFrom','set','_conversationContextsChips','ck-ai-chat-context-controls__url-balloon-panel','document','source','element','bind','div','populateSourceResourceBalloon','addUrlToContext','fire','ck-ai-chat-controls_context_show-more-button','updateResourceState','_createArrowView','ck-ai-chat-context-controls__balloon-button','southArrowNorthWest','icon','addContextButtonView','3JaIGGW','_setupTemplate','444125cOUOia','execute','ck-ai-chat-context-controls__show-more-balloon-panel','northArrowSouthWest','_removeContextFromCollection','urls','remove','loadSourceResources','southArrowNorthEast','ck-ai-chat-context-controls__add-context-balloon-panel','_handleAddContextButtonClick','_toggleAddContextBalloon','ck-ai-chat','reorganizeChips','_resourcesBalloonView','addContextItem','removeContextItem','setConversationContext','_createAddContextBalloonPanelView','enabled','_addContextBalloonPanelView','cancel','_bindEventHandlers','destroy','ck-reset_all-excluded','_setBalloonPanelContent','isVisible','6cFoJJh','_addContextToCollection','hide','_urlInputView','withBackButton','body','show','_setupAddContextBalloonClickOutsideHandler','done','AI_CHAT_CONTEXT_ADD_CONTEXT','find','type','_currentContextsChips','clearCurrentContextItems','234805sFkBUp','addResourceToContext','arrowView','current','_setupUrlBalloonClickOutsideHandler','_addUrlContent','_createAddContextButtonView','label','addFileToContext','bodyCollection','isReadOnly','createCollection','ck-ai-chat-context-controls','_setupAllBalloonClickOutsideHandlers','28Igxctv','length','isAnyResourceBalloonVisible','11SGxBiB','_createBaseBalloonPanel','defaultPositions','_getLimiterElement','southArrowNorth','_overflowManager','_urlBalloonPanelView','1272CPIgkr','ck-ai-chat-context-controls__balloon-button-source','_createUrlBalloonPanelView','customItem','conversation','refreshBalloon','showUrlBalloonPanel','buttonView','_hasExactlyOneSource','customItems'];_0x42fa=function(){return _0x343750;};return _0x42fa();}import{getTranslation as _0x4993f7}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x4e951a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2a53f2(0xe5),_0x2a53f2(0xbe),_0x2a53f2(0x82),_0x2a53f2(0xb7),_0x2a53f2(0x9d),_0x2a53f2(0x94),_0x2a53f2(0xd8)];const Uo=_0x2a53f2(0xc2),Lo=_0x2a53f2(0xea),No=_0x2a53f2(0x96),Mo=_0x2a53f2(0xf0),Ho=_0x2a53f2(0x114),jo=_0x2a53f2(0x87),Fo=_0x2a53f2(0xcf),Xo=_0x2a53f2(0xfa),Do=_0x2a53f2(0xfc),$o=_0x2a53f2(0x84),Wo=_0x2a53f2(0x8f),qo=_0x2a53f2(0x99),zo=[_0x4974b3[_0x2a53f2(0xc9)][_0x2a53f2(0x90)],_0x4974b3[_0x2a53f2(0xc9)][_0x2a53f2(0x100)],_0x4974b3[_0x2a53f2(0xc9)][_0x2a53f2(0xe9)],_0x4974b3[_0x2a53f2(0xc9)][_0x2a53f2(0x88)],_0x4974b3[_0x2a53f2(0xc9)][_0x2a53f2(0xcb)],_0x4974b3[_0x2a53f2(0xc9)][_0x2a53f2(0x95)]];export class AIChatContextPanelView extends _0x4ea4e1{[_0x2a53f2(0x8a)];[_0x2a53f2(0xb4)]=this[_0x2a53f2(0xc1)]();[_0x2a53f2(0x113)]=this[_0x2a53f2(0xc1)]();[_0x2a53f2(0xcc)];[_0x2a53f2(0xa1)];[_0x2a53f2(0xcd)];[_0x2a53f2(0xab)];[_0x2a53f2(0x9b)];[_0x2a53f2(0xf6)];[_0x2a53f2(0xd6)]=!0x1;[_0x2a53f2(0xbf)];constructor(_0x8b5100,_0x4580af){const _0x524228=_0x2a53f2;super(_0x8b5100),this[_0x524228(0xbf)]=_0x4580af[_0x524228(0xbf)],this[_0x524228(0xb4)]=this[_0x524228(0xc1)](),this[_0x524228(0x113)]=this[_0x524228(0xc1)](),this[_0x524228(0x8a)]=this[_0x524228(0xbc)](_0x8b5100),this[_0x524228(0xa1)]=this[_0x524228(0x9f)](_0x8b5100),this[_0x524228(0xcd)]=this[_0x524228(0xd0)](_0x8b5100),this[_0x524228(0x9b)]=this[_0x524228(0x108)](_0x8b5100,_0x4580af);const _0x5a05df={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x524228(0xcc)]=new _0x5689dc(_0x8b5100,this[_0x524228(0xb4)],_0x5a05df,this[_0x524228(0xbf)],this),this[_0x524228(0xf6)]={'buttonView':this[_0x524228(0x8a)],'balloonView':this[_0x524228(0xa1)],'hideMethod':this[_0x524228(0x106)][_0x524228(0x7f)](this),'showMethod':this[_0x524228(0x10d)][_0x524228(0x7f)](this)},this[_0x524228(0x8c)](),this[_0x524228(0xa3)]();}[_0x2a53f2(0xf9)](){const _0x4a7820=_0x2a53f2;super[_0x4a7820(0xf9)](),this[_0x4a7820(0xc3)](),this[_0x4a7820(0xcc)][_0x4a7820(0xdd)](this[_0x4a7820(0x7e)]),this[_0x4a7820(0xcc)][_0x4a7820(0x9a)]();}[_0x2a53f2(0xa4)](){const _0x510c1e=_0x2a53f2;super[_0x510c1e(0xa4)](),this[_0x510c1e(0xcc)][_0x510c1e(0xa4)](),this[_0x510c1e(0x9b)][_0x510c1e(0xa4)]();}[_0x2a53f2(0x9c)](_0xe86ffa,_0x5c11c3){const _0x59c923=_0x2a53f2,_0xa5d30c=this[_0x59c923(0xeb)](_0xe86ffa,_0x59c923(0xb9),!0x0,_0x5c11c3);this[_0x59c923(0xa9)](_0xa5d30c,this[_0x59c923(0xb4)]),this[_0x59c923(0xcc)][_0x59c923(0x9a)]();}[_0x2a53f2(0x9d)](_0x3036f6){const _0x25ec82=_0x2a53f2;this[_0x25ec82(0x91)](_0x3036f6,this[_0x25ec82(0xb4)]),this[_0x25ec82(0x91)](_0x3036f6,this[_0x25ec82(0xcc)][_0x25ec82(0x104)]),this[_0x25ec82(0xcc)][_0x25ec82(0x9a)]();}[_0x2a53f2(0x10a)](_0x3b55c6,_0x2c6fd9){const _0x27ab24=_0x2a53f2;let _0x3f606c=this[_0x27ab24(0xb4)][_0x27ab24(0xb2)](_0x5ef77a=>_0x5ef77a['id']===_0x3b55c6);_0x3f606c||(_0x3f606c=this[_0x27ab24(0xcc)][_0x27ab24(0x104)][_0x27ab24(0xb2)](_0x572258=>_0x572258['id']===_0x3b55c6)),_0x3f606c&&(_0x3f606c[_0x27ab24(0x102)]=_0x2c6fd9);}[_0x2a53f2(0x9e)](_0x54d55e){const _0x2c37d9=_0x2a53f2;this[_0x2c37d9(0x113)][_0x2c37d9(0x10c)]();for(const _0x223565 of _0x54d55e){const _0x2c1d03=this[_0x2c37d9(0xeb)](_0x223565,_0x2c37d9(0xd2),!0x1,!0x1);this[_0x2c37d9(0xa9)](_0x2c1d03,this[_0x2c37d9(0x113)]);}}[_0x2a53f2(0xb5)](){const _0x5a295c=_0x2a53f2;this[_0x5a295c(0xb4)][_0x5a295c(0x10c)](),this[_0x5a295c(0xcc)][_0x5a295c(0x10c)]();}[_0x2a53f2(0x10e)](){const _0x2c13d9=_0x2a53f2;this[_0x2c13d9(0x113)][_0x2c13d9(0x10c)]();}[_0x2a53f2(0x85)](_0x1c6ced,_0x247f3b,_0x148f5a){const _0x26f400=_0x2a53f2;this[_0x26f400(0x9b)][_0x26f400(0x85)](_0x1c6ced,_0x247f3b,_0x148f5a);}[_0x2a53f2(0x106)](){const _0x143e36=_0x2a53f2;this[_0x143e36(0x98)](!0x1);}[_0x2a53f2(0x10d)](){const _0x44055c=_0x2a53f2;this[_0x44055c(0x98)](!0x0);}[_0x2a53f2(0xd9)](){const _0x448276=_0x2a53f2;this[_0x448276(0xcd)][_0x448276(0xaa)](),this[_0x448276(0x8a)][_0x448276(0xfd)]=!0x1,this[_0x448276(0xab)]&&this[_0x448276(0xab)][_0x448276(0x10c)]();}[_0x2a53f2(0xd4)](){const _0x1fbe06=_0x2a53f2;this[_0x1fbe06(0xcd)][_0x1fbe06(0xae)](),this[_0x1fbe06(0x8a)][_0x1fbe06(0xfd)]=!0x0;}[_0x2a53f2(0x105)]({source:_0x3dfc4f,withBackButton:_0x28c1bf}){const _0x493775=_0x2a53f2;this[_0x493775(0x9b)][_0x493775(0xfb)]({'source':_0x3dfc4f,'withBackButton':_0x28c1bf}),this[_0x493775(0x8a)][_0x493775(0xfd)]=!0x0;}[_0x2a53f2(0x81)](_0xd26906,_0xac03a2,_0x3c71cc,_0x2f38ff){const _0x59f660=_0x2a53f2;this[_0x59f660(0x9b)][_0x59f660(0x81)](_0xd26906,_0x3c71cc,_0x2f38ff);}[_0x2a53f2(0x110)](_0x45545c){const _0x58d2a8=_0x2a53f2;this[_0x58d2a8(0x9b)][_0x58d2a8(0x110)](_0x45545c),this[_0x58d2a8(0x8a)][_0x58d2a8(0xfd)]=!0x1;}[_0x2a53f2(0xef)](_0x5117fa){const _0x69a6e3=_0x2a53f2;this[_0x69a6e3(0xa6)](this[_0x69a6e3(0xa1)],this[_0x69a6e3(0xf1)],_0x5117fa),this[_0x69a6e3(0xdc)](_0x5117fa);}[_0x2a53f2(0xdc)](_0x7b5c1f){const _0x396605=_0x2a53f2,_0x2b9c0c=!_0x7b5c1f[_0x396605(0x7c)][_0x396605(0xf7)]&&_0x7b5c1f[_0x396605(0x7c)][_0x396605(0xa0)],_0x43e97a=_0x7b5c1f[_0x396605(0x92)][_0x396605(0xa0)],_0x57dbd9=_0x7b5c1f[_0x396605(0xe2)][_0x396605(0xa0)],_0x199c77=_0x7b5c1f[_0x396605(0xf5)][_0x396605(0xc5)]>0x0,_0x2dd9ae=_0x7b5c1f[_0x396605(0xd7)]&&_0x7b5c1f[_0x396605(0xd7)][_0x396605(0xc5)]>0x0;this[_0x396605(0x8a)][_0x396605(0xe3)]=_0x2b9c0c||_0x43e97a||_0x57dbd9||_0x199c77||_0x2dd9ae;}[_0x2a53f2(0x8c)](){const _0x28ee35=_0x2a53f2;this[_0x28ee35(0xe4)]({'tag':_0x28ee35(0x80),'attributes':{'class':[Uo,_0x28ee35(0xa5)]},'children':[{'tag':_0x28ee35(0x80),'attributes':{'class':Lo},'children':this[_0x28ee35(0xb4)]}]});}[_0x2a53f2(0xa3)](){const _0x58ea28=_0x2a53f2;this[_0x58ea28(0x8a)]['on'](_0x58ea28(0x8e),()=>{const _0x2970c6=_0x58ea28;this[_0x2970c6(0x97)]();});}[_0x2a53f2(0xbc)](_0x297fd6){const _0xcaf9c=_0x2a53f2,_0x12440b=new _0x43d939(_0x297fd6);return _0x12440b[_0xcaf9c(0x112)]({'label':_0x4993f7(_0x297fd6,_0xcaf9c(0xb1)),'class':Xo+'\x20'+Mo,'icon':_0x2e1d95,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x12440b;}[_0x2a53f2(0x9f)](_0x2dc9d2){const _0x67c58c=_0x2a53f2;return this[_0x67c58c(0xc8)](_0x2dc9d2,No);}[_0x2a53f2(0xd0)](_0x315ba3){const _0x2684f8=_0x2a53f2,_0x35bf48=this[_0x2684f8(0xc8)](_0x315ba3,Ho);return this[_0x2684f8(0xbb)](_0x35bf48,_0x315ba3),_0x35bf48;}[_0x2a53f2(0x108)](_0x4c4d18,_0x37d8f0){const _0x449997=_0x2a53f2,_0x24a9ed={'searchInputVisibleFrom':_0x37d8f0[_0x449997(0x111)],'onBackToContext':()=>{const _0x9c3a9c=_0x449997;this[_0x9c3a9c(0x10d)](),this[_0x9c3a9c(0xa1)][_0x9c3a9c(0x109)]({'target':this[_0x9c3a9c(0x8a)][_0x9c3a9c(0x7e)],'limiter':this[_0x9c3a9c(0xca)](),'positions':zo});},'onResourceSelected':(_0x4c1526,_0x5306da)=>{const _0x22efa1=_0x449997;this[_0x22efa1(0x83)](_0x22efa1(0xb7),{'source':_0x4c1526,'resource':_0x5306da});},'onLoadSourceResources':_0x23fb4c=>{const _0x292f37=_0x449997;this[_0x292f37(0x83)](_0x292f37(0x94),_0x23fb4c);},'onBalloonClosed':()=>{const _0x1f5185=_0x449997;this[_0x1f5185(0x8a)][_0x1f5185(0xfd)]=!0x1;},'getLimiterElement':()=>this[_0x449997(0xca)](),'getTargetElement':()=>this[_0x449997(0x8a)][_0x449997(0x7e)]};return new _0x4e951a(_0x4c4d18,_0x37d8f0[_0x449997(0xbf)],_0x24a9ed);}[_0x2a53f2(0xca)](){const _0x327d85=_0x2a53f2;return this[_0x327d85(0x7e)]?.[_0x327d85(0xe6)]('.'+qo)||document[_0x327d85(0xad)];}[_0x2a53f2(0xc8)](_0x277a94,_0x205c15){const _0x4cbfcd=_0x2a53f2,_0x4ba219=new _0x4974b3(_0x277a94);return _0x4ba219[_0x4cbfcd(0xed)]({'attributes':{'class':_0x205c15}}),this[_0x4cbfcd(0xbf)][_0x4cbfcd(0xda)](_0x4ba219),_0x4ba219;}[_0x2a53f2(0xa6)](_0x1e26e1,_0xe99087,_0x470eb1){const _0x32aa65=_0x2a53f2;if(_0x1e26e1[_0x32aa65(0x101)][_0x32aa65(0x10c)](),!_0x470eb1[_0x32aa65(0x7c)][_0x32aa65(0xf7)]&&_0x470eb1[_0x32aa65(0x7c)][_0x32aa65(0xa0)]){const _0x5ab5cb=this[_0x32aa65(0xe8)](_0xe99087,{'label':_0x4993f7(_0xe99087,_0x32aa65(0xfe)),'icon':_0x4b3a68});_0x5ab5cb['on'](_0x32aa65(0x8e),()=>{const _0x39f08a=_0x32aa65;this[_0x39f08a(0x83)](_0x39f08a(0xe5)),this[_0x39f08a(0x106)]();}),_0x1e26e1[_0x32aa65(0x101)][_0x32aa65(0xda)](_0x5ab5cb);}if(_0x470eb1[_0x32aa65(0x92)][_0x32aa65(0xa0)]){const _0x25c2cd=this[_0x32aa65(0xe8)](_0xe99087,{'label':_0x4993f7(_0xe99087,_0x32aa65(0x103)),'icon':_0x1de5db});_0x25c2cd['on'](_0x32aa65(0x8e),()=>{const _0x4c7b60=_0x32aa65;this[_0x4c7b60(0x106)](),this[_0x4c7b60(0xd4)](),this[_0x4c7b60(0xcd)][_0x4c7b60(0x109)]({'target':this[_0x4c7b60(0x8a)][_0x4c7b60(0x7e)],'limiter':this[_0x4c7b60(0xca)](),'positions':zo}),this[_0x4c7b60(0xab)][_0x4c7b60(0x107)]();}),_0x1e26e1[_0x32aa65(0x101)][_0x32aa65(0xda)](_0x25c2cd);}if(_0x470eb1[_0x32aa65(0xe2)][_0x32aa65(0xa0)]){const _0xd74f01=new _0x15a650(_0xe99087);_0xd74f01[_0x32aa65(0x112)]({'label':_0x4993f7(_0xe99087,_0x32aa65(0xe1)),'icon':_0x225f92,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0xd74f01['on'](_0x32aa65(0x8e),()=>{const _0x44e60=_0x32aa65;this[_0x44e60(0x106)]();}),_0xd74f01['on'](_0x32aa65(0xb0),(_0x4157ff,_0x5e7dce)=>{const _0x4bc395=_0x32aa65;this[_0x4bc395(0x83)](_0x4bc395(0xbe),_0x5e7dce);}),_0xd74f01[_0x32aa65(0x10f)]=!0x0,_0x1e26e1[_0x32aa65(0x101)][_0x32aa65(0xda)](_0xd74f01);}for(const _0xc8fc0d of _0x470eb1[_0x32aa65(0xf5)]){const _0x114227=this[_0x32aa65(0xe8)](_0xe99087,{'label':_0xc8fc0d[_0x32aa65(0xbd)],'icon':_0xc8fc0d[_0x32aa65(0x89)]||_0x5a3268,'type':_0x32aa65(0x7d)});_0x1e26e1[_0x32aa65(0x101)][_0x32aa65(0xda)](_0x114227),_0x114227['on'](_0x32aa65(0x8e),()=>{const _0x36a417=_0x32aa65;this[_0x36a417(0x106)](),this[_0x36a417(0x105)]({'source':_0xc8fc0d,'withBackButton':!this[_0x36a417(0xd6)]});});}for(const _0x81e15 of _0x470eb1[_0x32aa65(0xd7)]||[]){const _0x16638e=this[_0x32aa65(0xe8)](_0xe99087,{'label':_0x81e15[_0x32aa65(0xbd)],'icon':_0x81e15[_0x32aa65(0x89)]||_0x5a3268,'type':_0x32aa65(0xd1)});_0x1e26e1[_0x32aa65(0x101)][_0x32aa65(0xda)](_0x16638e),_0x16638e['on'](_0x32aa65(0x8e),()=>{const _0x613f43=_0x32aa65;this[_0x613f43(0x106)](),this[_0x613f43(0x83)](_0x613f43(0xd8),_0x81e15);});}this[_0x32aa65(0xd6)]=0x1===_0x1e26e1[_0x32aa65(0x101)][_0x32aa65(0xc5)],this[_0x32aa65(0xab)][_0x32aa65(0xac)]=!this[_0x32aa65(0xd6)];}[_0x2a53f2(0xbb)](_0x68ad29,_0x570137){const _0x37fa59=_0x2a53f2;this[_0x37fa59(0xab)]=new _0x5f2e57(_0x570137),this[_0x37fa59(0xab)]['on'](_0x37fa59(0xdb),(_0x444cac,_0x5e9b08)=>{const _0x572fd8=_0x37fa59;this[_0x572fd8(0xf2)](_0x5e9b08);}),this[_0x37fa59(0xab)]['on'](_0x37fa59(0xa2),()=>{const _0x54b0ab=_0x37fa59;this[_0x54b0ab(0xd9)](),this[_0x54b0ab(0xd6)]||(this[_0x54b0ab(0x10d)](),this[_0x54b0ab(0xa1)][_0x54b0ab(0x109)]({'target':this[_0x54b0ab(0x8a)][_0x54b0ab(0x7e)],'limiter':this[_0x54b0ab(0xca)](),'positions':zo}));}),this[_0x37fa59(0xab)]['on'](_0x37fa59(0xd3),()=>{const _0x3e17cd=_0x37fa59;this[_0x3e17cd(0xcd)][_0x3e17cd(0xa7)]&&this[_0x3e17cd(0xcd)][_0x3e17cd(0x109)]({'target':this[_0x3e17cd(0x8a)][_0x3e17cd(0x7e)],'limiter':this[_0x3e17cd(0xca)](),'positions':zo});}),_0x68ad29[_0x37fa59(0x101)][_0x37fa59(0xda)](this[_0x37fa59(0xab)]);}[_0x2a53f2(0xe8)](_0x23e5fb,_0x2704fa){const _0x2bead8=_0x2a53f2,_0x5380fb=_0x2bead8(0x7d)===_0x2704fa[_0x2bead8(0xb3)]?new SourcesBalloonButtonView(_0x23e5fb):new _0x43d939(_0x23e5fb);return _0x5380fb[_0x2bead8(0x112)]({'label':_0x2704fa[_0x2bead8(0xbd)],'icon':_0x2704fa[_0x2bead8(0x89)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x5380fb;}[_0x2a53f2(0xc3)](){const _0x5b5b60=_0x2a53f2;this[_0x5b5b60(0xaf)](),this[_0x5b5b60(0xba)]();}[_0x2a53f2(0xba)](){const _0x29c5eb=_0x2a53f2;_0x4bec7d({'emitter':this[_0x29c5eb(0xcd)],'contextElements':[this[_0x29c5eb(0xcd)][_0x29c5eb(0x7e)]],'callback':()=>{const _0x39d72b=_0x29c5eb;this[_0x39d72b(0xd9)]();},'activator':()=>this[_0x29c5eb(0xcd)][_0x29c5eb(0xa7)]});}[_0x2a53f2(0x98)](_0x5a7c72){const _0x487f78=_0x2a53f2,_0x56468d=this[_0x487f78(0xf6)];_0x56468d[_0x487f78(0xd5)][_0x487f78(0xfd)]=_0x5a7c72,_0x5a7c72?_0x56468d[_0x487f78(0xf8)][_0x487f78(0xae)]():_0x56468d[_0x487f78(0xf8)][_0x487f78(0xaa)]();}[_0x2a53f2(0xaf)](){const _0x373259=_0x2a53f2,{balloonView:_0x144622,buttonView:_0x5ca439,hideMethod:_0x337579}=this[_0x373259(0xf6)];_0x4bec7d({'emitter':_0x144622,'contextElements':[_0x144622[_0x373259(0x7e)],_0x5ca439[_0x373259(0x7e)]],'callback':()=>{_0x337579();},'activator':()=>_0x5ca439[_0x373259(0xfd)]&&!this[_0x373259(0xcd)][_0x373259(0xa7)]&&!this[_0x373259(0x9b)][_0x373259(0xc6)]()});}[_0x2a53f2(0xeb)](_0x148491,_0x4e7c49,_0x1d48a0=!0x1,_0x403f51=!0x1){const _0x350d56=_0x2a53f2,_0x50173d=_0x350d56(0xd2)===_0x4e7c49||!0x0===_0x148491[_0x350d56(0xc0)],_0x5ca68d=new _0x3c174c(this[_0x350d56(0xf1)],_0x148491,_0x50173d,_0x1d48a0,_0x403f51);return _0x50173d||_0x5ca68d['on'](_0x350d56(0xf4),()=>{const _0x5150a5=_0x350d56;this[_0x5150a5(0x83)](_0x5150a5(0x9d),_0x5ca68d['id']);}),_0x5ca68d;}[_0x2a53f2(0xa9)](_0x382f94,_0x2275f1){const _0x14d8a2=_0x2a53f2;_0x2275f1[_0x14d8a2(0xda)](_0x382f94,0x0);}[_0x2a53f2(0x91)](_0x86548c,_0x3696d5){const _0x4c132d=_0x2a53f2,_0x3790fe=_0x3696d5[_0x4c132d(0xb2)](_0x2ca322=>_0x2ca322['id']===_0x86548c);_0x3790fe&&_0x3696d5[_0x4c132d(0x93)](_0x3790fe);}[_0x2a53f2(0x97)](){const _0x3978db=_0x2a53f2;this[_0x3978db(0x8a)][_0x3978db(0xfd)]?this[_0x3978db(0x106)]():(this[_0x3978db(0x10d)](),this[_0x3978db(0xa1)][_0x3978db(0x109)]({'target':this[_0x3978db(0x8a)][_0x3978db(0x7e)],'limiter':this[_0x3978db(0xca)](),'positions':zo}),this[_0x3978db(0xd6)]&&this[_0x3978db(0xa1)][_0x3978db(0x101)][_0x3978db(0xf3)](0x0)?.[_0x3978db(0x83)](_0x3978db(0x8e)));}[_0x2a53f2(0xf2)](_0x337eb1){const _0x2f7545=_0x2a53f2;this[_0x2f7545(0xab)][_0x2f7545(0x10c)](),this[_0x2f7545(0xd9)](),this[_0x2f7545(0x83)](_0x2f7545(0x82),_0x337eb1);}}export class SourcesBalloonButtonView extends _0x43d939{[_0x2a53f2(0xb8)];constructor(_0x5d3001){const _0x5da2ba=_0x2a53f2;super(_0x5d3001),this[_0x5da2ba(0x112)]({'withText':!0x0,'role':_0x5da2ba(0xe7)}),this[_0x5da2ba(0xb8)]=this[_0x5da2ba(0x86)](),this[_0x5da2ba(0xed)]({'attributes':{'class':[Fo]}});}[_0x2a53f2(0xf9)](){const _0x14dca9=_0x2a53f2;super[_0x14dca9(0xf9)](),this[_0x14dca9(0xe0)][_0x14dca9(0xda)](this[_0x14dca9(0xb8)]);}[_0x2a53f2(0x86)](){const _0x3bcae7=_0x2a53f2,_0x555b84=new _0x45322d();return _0x555b84[_0x3bcae7(0x101)]=_0x2b8dfe,_0x555b84[_0x3bcae7(0xed)]({'attributes':{'class':Fo+_0x3bcae7(0xff)}}),_0x555b84;}}
23
+ function _0x2873(_0x5494e1,_0x1f0afe){const _0x4a7902=_0x4a79();return _0x2873=function(_0x287349,_0x4c2143){_0x287349=_0x287349-0x93;let _0x35e29e=_0x4a7902[_0x287349];return _0x35e29e;},_0x2873(_0x5494e1,_0x1f0afe);}const _0x3b2da0=_0x2873;(function(_0x5e8f86,_0x51efe3){const _0x5264c3=_0x2873,_0x52074=_0x5e8f86();while(!![]){try{const _0x4cab0b=parseInt(_0x5264c3(0xe3))/0x1*(-parseInt(_0x5264c3(0xd3))/0x2)+parseInt(_0x5264c3(0x95))/0x3+parseInt(_0x5264c3(0x105))/0x4*(parseInt(_0x5264c3(0x120))/0x5)+parseInt(_0x5264c3(0xf3))/0x6*(-parseInt(_0x5264c3(0x123))/0x7)+-parseInt(_0x5264c3(0x108))/0x8+-parseInt(_0x5264c3(0xcf))/0x9+-parseInt(_0x5264c3(0xf2))/0xa*(-parseInt(_0x5264c3(0x9f))/0xb);if(_0x4cab0b===_0x51efe3)break;else _0x52074['push'](_0x52074['shift']());}catch(_0x1cfde8){_0x52074['push'](_0x52074['shift']());}}}(_0x4a79,0xc04b6));import{BalloonPanelView as _0x1c9512,ButtonView as _0x2c76fd,clickOutsideHandler as _0x5e7194,FileDialogButtonView as _0x5150b7,IconView as _0x599d58,View as _0x56767f}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x28ce17,IconDocument as _0x2b0ccb,IconDocumentOutline as _0x34cf5f,IconDropdownArrow as _0x4002c4,IconLink as _0x1b9f37,IconPaperClip as _0x1a4ded}from'@ckeditor/ckeditor5-icons';function _0x4a79(){const _0x285cf4=['source','_currentContextsChips','_addContextBalloonPanelView','icon','tooltip','pin','setConversationContext','AI_CHAT_CONTEXT_URL_LABEL','isLoading','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__url-balloon-panel','870030Xcaolu','isVisible','_showSourceResourcesBalloon','14GzrXPv','populateSourceResourceBalloon','createCollection','loadSourceResources','urls','type','ck-ai-chat-context-controls__balloon-button-source','hideAddContextBalloonPanel','files','div','918786YHSujL','isEnabled','_addContextToCollection','_hasExactlyOneSource','showAddContextBalloonPanel','isAnyResourceBalloonVisible','extendTemplate','customItems','_bindEventHandlers','find','22gMNjuy','balloonView','showSourceResourcesBalloon','show','isHidden','updateResourceState','ck-ai-chat-context-controls__add-context-balloon-panel','_createUrlBalloonPanelView','_addContextBalloonConfig','_getLimiterElement','addResourceToContext','_setupTemplate','addUrlToContext','clear','_createBalloonButton','buttonView','customItem','searchInputVisibleFrom','setContainerElement','showUrlBalloonPanel','northArrowSouth','withBackButton','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','hide','_setupUrlBalloonClickOutsideHandler','_urlBalloonPanelView','ck-ai-chat-context-controls__show-more-balloon-panel','addContextItem','closeSourceResourceBalloon','_toggleAddContextBalloon','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-controls_context_show-more-button','overflowChips','sources','_handleAddContextButtonClick','southArrowNorthWest','isOn','_handleUrlSubmit','ck-ai-chat','render','_addUrlContent','ck-ai-chat-controls-button','_removeContextFromCollection','refreshBalloon','execute','defaultPositions','current','setTemplate','4685922DIfXsG','fire','northArrowSouthEast','_urlInputView','6hysHCK','ck-reset_all-excluded','menuitem','_createArrowView','_conversationContextsChips','clearConversationContextItems','submitUrl','ck-ai-chat-context-controls','setAddContextOptions','add','ck-ai-chat-context-controls__balloon-button','_createAddContextButtonView','_setBalloonPanelContent','_setupAddContextBalloonClickOutsideHandler','_createBaseBalloonPanel','element','214835YhJoIN','hideUrlBalloonPanel','set','label','destroy','children','_setupAllBalloonClickOutsideHandlers','content','clearCurrentContextItems','southArrowNorth','remove','removeContextItemChip','get','conversation','done','11597350TXDZWJ','2019114VUhwkI','_createContextButton','addContextButtonView','_createResourcesBalloonView','northArrowSouthWest','body','isReadOnly','AI_CHAT_CONTEXT_ADD_CONTEXT','reorganizeChips','addDocumentToContext','bodyCollection','southArrowNorthEast','setContextItemLoading','_setAddContextButtonEnabled','_overflowManager','removeContextItem','executeCustomItemCallback','document','8qaofDR','AI_CHAT_CONTEXT_FILE_LABEL','__arrow','2783240sNiZTS','enabled','focus','locale','addFileToContext','arrowView','cancel','ck-ai-chat-context-controls__pending-contexts','_resourcesBalloonView','closest','_createAddContextBalloonPanelView','length','bind'];_0x4a79=function(){return _0x285cf4;};return _0x4a79();}import{AIChatContextItemButtonView as _0x27e16a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x78a142}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x14acfb}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4ed12b}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x36b3b4}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x3b2da0(0xfc),_0x3b2da0(0x10c),_0x3b2da0(0xab),_0x3b2da0(0xa9),_0x3b2da0(0x102),_0x3b2da0(0x126),_0x3b2da0(0x103)];const Lo=_0x3b2da0(0xda),No=_0x3b2da0(0x10f),Ho=_0x3b2da0(0xa5),Xo=_0x3b2da0(0x11e),Do=_0x3b2da0(0x11f),Wo=_0x3b2da0(0xdd),zo=_0x3b2da0(0x129),Vo=_0x3b2da0(0xc8),Go=_0x3b2da0(0xbd),$o=_0x3b2da0(0xbe),qo=_0x3b2da0(0xb9),Jo=_0x3b2da0(0xc5),Ko=[_0x1c9512[_0x3b2da0(0xcc)][_0x3b2da0(0xf7)],_0x1c9512[_0x3b2da0(0xcc)][_0x3b2da0(0xb3)],_0x1c9512[_0x3b2da0(0xcc)][_0x3b2da0(0xd1)],_0x1c9512[_0x3b2da0(0xcc)][_0x3b2da0(0xc2)],_0x1c9512[_0x3b2da0(0xcc)][_0x3b2da0(0xec)],_0x1c9512[_0x3b2da0(0xcc)][_0x3b2da0(0xfe)]];export class AIChatContextPanelView extends _0x56767f{[_0x3b2da0(0xf5)];[_0x3b2da0(0x116)]=this[_0x3b2da0(0x125)]();[_0x3b2da0(0xd7)]=this[_0x3b2da0(0x125)]();[_0x3b2da0(0x101)];[_0x3b2da0(0x117)];[_0x3b2da0(0xb8)];[_0x3b2da0(0xd2)];[_0x3b2da0(0x110)];[_0x3b2da0(0xa7)];[_0x3b2da0(0x98)]=!0x1;[_0x3b2da0(0xfd)];constructor(_0x5d8ccc,_0x2b18b4){const _0x27040c=_0x3b2da0;super(_0x5d8ccc),this[_0x27040c(0xfd)]=_0x2b18b4[_0x27040c(0xfd)],this[_0x27040c(0x116)]=this[_0x27040c(0x125)](),this[_0x27040c(0xd7)]=this[_0x27040c(0x125)](),this[_0x27040c(0xf5)]=this[_0x27040c(0xde)](_0x5d8ccc),this[_0x27040c(0x117)]=this[_0x27040c(0x112)](_0x5d8ccc),this[_0x27040c(0xb8)]=this[_0x27040c(0xa6)](_0x5d8ccc),this[_0x27040c(0x110)]=this[_0x27040c(0xf6)](_0x5d8ccc,_0x2b18b4);const _0xeaa8b1={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':qo,'overflowContainer':Go,'controlsButton':Vo}};this[_0x27040c(0x101)]=new _0x14acfb(_0x5d8ccc,this[_0x27040c(0x116)],_0xeaa8b1,this[_0x27040c(0xfd)],this),this[_0x27040c(0xa7)]={'buttonView':this[_0x27040c(0xf5)],'balloonView':this[_0x27040c(0x117)],'hideMethod':this[_0x27040c(0x12a)][_0x27040c(0x114)](this),'showMethod':this[_0x27040c(0x99)][_0x27040c(0x114)](this)},this[_0x27040c(0xaa)](),this[_0x27040c(0x9d)]();}[_0x3b2da0(0xc6)](){const _0x2b738b=_0x3b2da0;super[_0x2b738b(0xc6)](),this[_0x2b738b(0xe9)](),this[_0x2b738b(0x101)][_0x2b738b(0xb1)](this[_0x2b738b(0xe2)]),this[_0x2b738b(0x101)][_0x2b738b(0xfb)]();}[_0x3b2da0(0xe7)](){const _0x2c3eaf=_0x3b2da0;super[_0x2c3eaf(0xe7)](),this[_0x2c3eaf(0x101)][_0x2c3eaf(0xe7)](),this[_0x2c3eaf(0x110)][_0x2c3eaf(0xe7)]();}[_0x3b2da0(0xba)](_0x3a1cc7,_0x4367e9){const _0x3d52a2=_0x3b2da0,_0x4a52d8=this[_0x3d52a2(0xf4)](_0x3a1cc7,_0x3d52a2(0xcd),!0x0,_0x4367e9);this[_0x3d52a2(0x97)](_0x4a52d8,this[_0x3d52a2(0x116)]),this[_0x3d52a2(0x101)][_0x3d52a2(0xfb)]();}[_0x3b2da0(0x102)](_0x21ec25){const _0x123a4c=_0x3b2da0;this[_0x123a4c(0xc9)](_0x21ec25,this[_0x123a4c(0x116)]),this[_0x123a4c(0xc9)](_0x21ec25,this[_0x123a4c(0x101)][_0x123a4c(0xbf)]),this[_0x123a4c(0x101)][_0x123a4c(0xfb)]();}[_0x3b2da0(0xff)](_0x354d21,_0x255a0d){const _0x4f08b3=_0x3b2da0;let _0x51f59f=this[_0x4f08b3(0x116)][_0x4f08b3(0x9e)](_0x1c0abf=>_0x1c0abf['id']===_0x354d21);_0x51f59f||(_0x51f59f=this[_0x4f08b3(0x101)][_0x4f08b3(0xbf)][_0x4f08b3(0x9e)](_0x3a10ff=>_0x3a10ff['id']===_0x354d21)),_0x51f59f&&(_0x51f59f[_0x4f08b3(0x11d)]=_0x255a0d);}[_0x3b2da0(0x11b)](_0x3f7156){const _0x42533c=_0x3b2da0;this[_0x42533c(0xd7)][_0x42533c(0xac)]();for(const _0x3af4a1 of _0x3f7156){const _0x597f97=this[_0x42533c(0xf4)](_0x3af4a1,_0x42533c(0xf0),!0x1,!0x1);this[_0x42533c(0x97)](_0x597f97,this[_0x42533c(0xd7)]);}}[_0x3b2da0(0xeb)](){const _0x17ec31=_0x3b2da0;this[_0x17ec31(0x116)][_0x17ec31(0xac)](),this[_0x17ec31(0x101)][_0x17ec31(0xac)]();}[_0x3b2da0(0xd8)](){const _0x586d13=_0x3b2da0;this[_0x586d13(0xd7)][_0x586d13(0xac)]();}[_0x3b2da0(0xa4)](_0x2bf490,_0x442419,_0x2aa790){const _0x281549=_0x3b2da0;this[_0x281549(0x110)][_0x281549(0xa4)](_0x2bf490,_0x442419,_0x2aa790);}[_0x3b2da0(0x12a)](){const _0x3f18c6=_0x3b2da0;this[_0x3f18c6(0xbc)](!0x1);}[_0x3b2da0(0x99)](){const _0x46a48c=_0x3b2da0;this[_0x46a48c(0xbc)](!0x0);}[_0x3b2da0(0xe4)](){const _0x50ba2=_0x3b2da0;this[_0x50ba2(0xb8)][_0x50ba2(0xb6)](),this[_0x50ba2(0xf5)][_0x50ba2(0xc3)]=!0x1,this[_0x50ba2(0xd2)]&&this[_0x50ba2(0xd2)][_0x50ba2(0xac)]();}[_0x3b2da0(0xb2)](){const _0x5de6b1=_0x3b2da0;this[_0x5de6b1(0xb8)][_0x5de6b1(0xa2)](),this[_0x5de6b1(0xf5)][_0x5de6b1(0xc3)]=!0x0;}[_0x3b2da0(0x122)]({source:_0x2bde1b,withBackButton:_0xae0bb3}){const _0x3b0e81=_0x3b2da0;this[_0x3b0e81(0x110)][_0x3b0e81(0xa1)]({'source':_0x2bde1b,'withBackButton':_0xae0bb3}),this[_0x3b0e81(0xf5)][_0x3b0e81(0xc3)]=!0x0;}[_0x3b2da0(0x124)](_0x371e0e,_0x313956,_0x3e5c82,_0x5b2bb9){const _0x2c4e33=_0x3b2da0;this[_0x2c4e33(0x110)][_0x2c4e33(0x124)](_0x371e0e,_0x3e5c82,_0x5b2bb9);}[_0x3b2da0(0xbb)](_0x1f5781){const _0xd9532b=_0x3b2da0;this[_0xd9532b(0x110)][_0xd9532b(0xbb)](_0x1f5781),this[_0xd9532b(0xf5)][_0xd9532b(0xc3)]=!0x1;}[_0x3b2da0(0xdb)](_0x146bf6){const _0x6b33=_0x3b2da0;this[_0x6b33(0xdf)](this[_0x6b33(0x117)],this[_0x6b33(0x10b)],_0x146bf6),this[_0x6b33(0x100)](_0x146bf6);}[_0x3b2da0(0x100)](_0x13865f){const _0x1abf29=_0x3b2da0,_0x52c961=!_0x13865f[_0x1abf29(0x104)][_0x1abf29(0xa3)]&&_0x13865f[_0x1abf29(0x104)][_0x1abf29(0x109)],_0x20f3fb=_0x13865f[_0x1abf29(0x127)][_0x1abf29(0x109)],_0x22e05d=_0x13865f[_0x1abf29(0x93)][_0x1abf29(0x109)],_0x3b980b=_0x13865f[_0x1abf29(0xc0)][_0x1abf29(0x113)]>0x0,_0x1e4dee=_0x13865f[_0x1abf29(0x9c)]&&_0x13865f[_0x1abf29(0x9c)][_0x1abf29(0x113)]>0x0;this[_0x1abf29(0xf5)][_0x1abf29(0x96)]=_0x52c961||_0x20f3fb||_0x22e05d||_0x3b980b||_0x1e4dee;}[_0x3b2da0(0xaa)](){const _0x42fd6c=_0x3b2da0;this[_0x42fd6c(0xce)]({'tag':_0x42fd6c(0x94),'attributes':{'class':[Lo,_0x42fd6c(0xd4)]},'children':[{'tag':_0x42fd6c(0x94),'attributes':{'class':No},'children':this[_0x42fd6c(0x116)]}]});}[_0x3b2da0(0x9d)](){const _0x1c14b2=_0x3b2da0;this[_0x1c14b2(0xf5)]['on'](_0x1c14b2(0xcb),()=>{const _0x244c5f=_0x1c14b2;this[_0x244c5f(0xc1)]();});}[_0x3b2da0(0xde)](_0x993d6d){const _0x56efb0=_0x3b2da0,_0x44de79=new _0x2c76fd(_0x993d6d);return _0x44de79[_0x56efb0(0xe5)]({'label':_0x4ed12b(_0x993d6d,_0x56efb0(0xfa)),'class':Vo+'\x20'+Xo,'icon':_0x1a4ded,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x44de79;}[_0x3b2da0(0x112)](_0x9f9a88){const _0x2b4802=_0x3b2da0;return this[_0x2b4802(0xe1)](_0x9f9a88,Ho);}[_0x3b2da0(0xa6)](_0x298cc8){const _0x20cc9e=_0x3b2da0,_0x19cbf4=this[_0x20cc9e(0xe1)](_0x298cc8,Do);return this[_0x20cc9e(0xc7)](_0x19cbf4,_0x298cc8),_0x19cbf4;}[_0x3b2da0(0xf6)](_0x32aaf5,_0x453565){const _0x3248b4=_0x3b2da0,_0x5d7479={'searchInputVisibleFrom':_0x453565[_0x3248b4(0xb0)],'onBackToContext':()=>{const _0x2346be=_0x3248b4;this[_0x2346be(0x99)](),this[_0x2346be(0x117)][_0x2346be(0x11a)]({'target':this[_0x2346be(0xf5)][_0x2346be(0xe2)],'limiter':this[_0x2346be(0xa8)](),'positions':Ko});},'onResourceSelected':(_0x2bc1cb,_0x12e004)=>{const _0x178640=_0x3248b4;this[_0x178640(0xd0)](_0x178640(0xa9),{'source':_0x2bc1cb,'resource':_0x12e004});},'onLoadSourceResources':_0x587146=>{const _0x23b522=_0x3248b4;this[_0x23b522(0xd0)](_0x23b522(0x126),_0x587146);},'onBalloonClosed':()=>{const _0x5ea909=_0x3248b4;this[_0x5ea909(0xf5)][_0x5ea909(0xc3)]=!0x1;},'getLimiterElement':()=>this[_0x3248b4(0xa8)](),'getTargetElement':()=>this[_0x3248b4(0xf5)][_0x3248b4(0xe2)]};return new _0x36b3b4(_0x32aaf5,_0x453565[_0x3248b4(0xfd)],_0x5d7479);}[_0x3b2da0(0xa8)](){const _0x56b260=_0x3b2da0;return this[_0x56b260(0xe2)]?.[_0x56b260(0x111)]('.'+Jo)||document[_0x56b260(0xf8)];}[_0x3b2da0(0xe1)](_0x4f8ae2,_0x1a0324){const _0x3a0b67=_0x3b2da0,_0xd0a68b=new _0x1c9512(_0x4f8ae2);return _0xd0a68b[_0x3a0b67(0x9b)]({'attributes':{'class':_0x1a0324}}),this[_0x3a0b67(0xfd)][_0x3a0b67(0xdc)](_0xd0a68b),_0xd0a68b;}[_0x3b2da0(0xdf)](_0x498147,_0xda031d,_0x41d02c){const _0x292834=_0x3b2da0;if(_0x498147[_0x292834(0xea)][_0x292834(0xac)](),!_0x41d02c[_0x292834(0x104)][_0x292834(0xa3)]&&_0x41d02c[_0x292834(0x104)][_0x292834(0x109)]){const _0x93fb9=this[_0x292834(0xad)](_0xda031d,{'label':_0x4ed12b(_0xda031d,_0x292834(0xb5)),'icon':_0x2b0ccb});_0x93fb9['on'](_0x292834(0xcb),()=>{const _0x38d58c=_0x292834;this[_0x38d58c(0xd0)](_0x38d58c(0xfc)),this[_0x38d58c(0x12a)]();}),_0x498147[_0x292834(0xea)][_0x292834(0xdc)](_0x93fb9);}if(_0x41d02c[_0x292834(0x127)][_0x292834(0x109)]){const _0x240803=this[_0x292834(0xad)](_0xda031d,{'label':_0x4ed12b(_0xda031d,_0x292834(0x11c)),'icon':_0x1b9f37});_0x240803['on'](_0x292834(0xcb),()=>{const _0x33343b=_0x292834;this[_0x33343b(0x12a)](),this[_0x33343b(0xb2)](),this[_0x33343b(0xb8)][_0x33343b(0x11a)]({'target':this[_0x33343b(0xf5)][_0x33343b(0xe2)],'limiter':this[_0x33343b(0xa8)](),'positions':Ko}),this[_0x33343b(0xd2)][_0x33343b(0x10a)]();}),_0x498147[_0x292834(0xea)][_0x292834(0xdc)](_0x240803);}if(_0x41d02c[_0x292834(0x93)][_0x292834(0x109)]){const _0x95972c=new _0x5150b7(_0xda031d);_0x95972c[_0x292834(0xe5)]({'label':_0x4ed12b(_0xda031d,_0x292834(0x106)),'icon':_0x28ce17,'withText':!0x0,'tooltip':!0x0,'class':Wo,'allowMultipleFiles':!0x0}),_0x95972c['on'](_0x292834(0xcb),()=>{const _0x4f6420=_0x292834;this[_0x4f6420(0x12a)]();}),_0x95972c['on'](_0x292834(0xf1),(_0x8e6ead,_0x227c81)=>{const _0x24e39b=_0x292834;this[_0x24e39b(0xd0)](_0x24e39b(0x10c),_0x227c81);}),_0x95972c[_0x292834(0x119)]=!0x0,_0x498147[_0x292834(0xea)][_0x292834(0xdc)](_0x95972c);}for(const _0x51c9a0 of _0x41d02c[_0x292834(0xc0)]){const _0x4f0a11=this[_0x292834(0xad)](_0xda031d,{'label':_0x51c9a0[_0x292834(0xe6)],'icon':_0x51c9a0[_0x292834(0x118)]||_0x34cf5f,'type':_0x292834(0x115)});_0x498147[_0x292834(0xea)][_0x292834(0xdc)](_0x4f0a11),_0x4f0a11['on'](_0x292834(0xcb),()=>{const _0x477847=_0x292834;this[_0x477847(0x12a)](),this[_0x477847(0x122)]({'source':_0x51c9a0,'withBackButton':!this[_0x477847(0x98)]});});}for(const _0x3adf33 of _0x41d02c[_0x292834(0x9c)]||[]){const _0x7d8efe=this[_0x292834(0xad)](_0xda031d,{'label':_0x3adf33[_0x292834(0xe6)],'icon':_0x3adf33[_0x292834(0x118)]||_0x34cf5f,'type':_0x292834(0xaf)});_0x498147[_0x292834(0xea)][_0x292834(0xdc)](_0x7d8efe),_0x7d8efe['on'](_0x292834(0xcb),()=>{const _0x171496=_0x292834;this[_0x171496(0x12a)](),this[_0x171496(0xd0)](_0x171496(0x103),_0x3adf33);});}this[_0x292834(0x98)]=0x1===_0x498147[_0x292834(0xea)][_0x292834(0x113)],this[_0x292834(0xd2)][_0x292834(0xb4)]=!this[_0x292834(0x98)];}[_0x3b2da0(0xc7)](_0x107a93,_0x3e9478){const _0x5e16b7=_0x3b2da0;this[_0x5e16b7(0xd2)]=new _0x78a142(_0x3e9478),this[_0x5e16b7(0xd2)]['on'](_0x5e16b7(0xd9),(_0x4012c1,_0xb28980)=>{const _0x3f33cd=_0x5e16b7;this[_0x3f33cd(0xc4)](_0xb28980);}),this[_0x5e16b7(0xd2)]['on'](_0x5e16b7(0x10e),()=>{const _0x21104a=_0x5e16b7;this[_0x21104a(0xe4)](),this[_0x21104a(0x98)]||(this[_0x21104a(0x99)](),this[_0x21104a(0x117)][_0x21104a(0x11a)]({'target':this[_0x21104a(0xf5)][_0x21104a(0xe2)],'limiter':this[_0x21104a(0xa8)](),'positions':Ko}));}),this[_0x5e16b7(0xd2)]['on'](_0x5e16b7(0xca),()=>{const _0x44e9bc=_0x5e16b7;this[_0x44e9bc(0xb8)][_0x44e9bc(0x121)]&&this[_0x44e9bc(0xb8)][_0x44e9bc(0x11a)]({'target':this[_0x44e9bc(0xf5)][_0x44e9bc(0xe2)],'limiter':this[_0x44e9bc(0xa8)](),'positions':Ko});}),_0x107a93[_0x5e16b7(0xea)][_0x5e16b7(0xdc)](this[_0x5e16b7(0xd2)]);}[_0x3b2da0(0xad)](_0x36e122,_0x2afdc5){const _0x42d362=_0x3b2da0,_0x544554=_0x42d362(0x115)===_0x2afdc5[_0x42d362(0x128)]?new SourcesBalloonButtonView(_0x36e122):new _0x2c76fd(_0x36e122);return _0x544554[_0x42d362(0xe5)]({'label':_0x2afdc5[_0x42d362(0xe6)],'icon':_0x2afdc5[_0x42d362(0x118)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Wo}),_0x544554;}[_0x3b2da0(0xe9)](){const _0x1fb0b2=_0x3b2da0;this[_0x1fb0b2(0xe0)](),this[_0x1fb0b2(0xb7)]();}[_0x3b2da0(0xb7)](){const _0x2cf2a9=_0x3b2da0;_0x5e7194({'emitter':this[_0x2cf2a9(0xb8)],'contextElements':[this[_0x2cf2a9(0xb8)][_0x2cf2a9(0xe2)]],'callback':()=>{const _0x507d13=_0x2cf2a9;this[_0x507d13(0xe4)]();},'activator':()=>this[_0x2cf2a9(0xb8)][_0x2cf2a9(0x121)]});}[_0x3b2da0(0xbc)](_0x32d9fa){const _0x484e14=_0x3b2da0,_0x43db9b=this[_0x484e14(0xa7)];_0x43db9b[_0x484e14(0xae)][_0x484e14(0xc3)]=_0x32d9fa,_0x32d9fa?_0x43db9b[_0x484e14(0xa0)][_0x484e14(0xa2)]():_0x43db9b[_0x484e14(0xa0)][_0x484e14(0xb6)]();}[_0x3b2da0(0xe0)](){const _0x1472af=_0x3b2da0,{balloonView:_0x1ca6d5,buttonView:_0x387d41,hideMethod:_0x1744ed}=this[_0x1472af(0xa7)];_0x5e7194({'emitter':_0x1ca6d5,'contextElements':[_0x1ca6d5[_0x1472af(0xe2)],_0x387d41[_0x1472af(0xe2)]],'callback':()=>{_0x1744ed();},'activator':()=>_0x387d41[_0x1472af(0xc3)]&&!this[_0x1472af(0xb8)][_0x1472af(0x121)]&&!this[_0x1472af(0x110)][_0x1472af(0x9a)]()});}[_0x3b2da0(0xf4)](_0x22c55c,_0x1a7369,_0x581f0d=!0x1,_0x5acb31=!0x1){const _0x436fcb=_0x3b2da0,_0x5266bb=_0x436fcb(0xf0)===_0x1a7369||!0x0===_0x22c55c[_0x436fcb(0xf9)],_0x569ada=new _0x27e16a(this[_0x436fcb(0x10b)],_0x22c55c,_0x5266bb,_0x581f0d,_0x5acb31);return _0x5266bb||_0x569ada['on'](_0x436fcb(0xee),()=>{const _0x450778=_0x436fcb;this[_0x450778(0xd0)](_0x450778(0x102),_0x569ada['id']);}),_0x569ada;}[_0x3b2da0(0x97)](_0xbf6c20,_0x1b960f){const _0x33da86=_0x3b2da0;_0x1b960f[_0x33da86(0xdc)](_0xbf6c20,0x0);}[_0x3b2da0(0xc9)](_0xd6c8a8,_0x599683){const _0x5d36b0=_0x3b2da0,_0x2f0aa8=_0x599683[_0x5d36b0(0x9e)](_0x1ea5c6=>_0x1ea5c6['id']===_0xd6c8a8);_0x2f0aa8&&_0x599683[_0x5d36b0(0xed)](_0x2f0aa8);}[_0x3b2da0(0xc1)](){const _0x5d4020=_0x3b2da0;this[_0x5d4020(0xf5)][_0x5d4020(0xc3)]?this[_0x5d4020(0x12a)]():(this[_0x5d4020(0x99)](),this[_0x5d4020(0x117)][_0x5d4020(0x11a)]({'target':this[_0x5d4020(0xf5)][_0x5d4020(0xe2)],'limiter':this[_0x5d4020(0xa8)](),'positions':Ko}),this[_0x5d4020(0x98)]&&this[_0x5d4020(0x117)][_0x5d4020(0xea)][_0x5d4020(0xef)](0x0)?.[_0x5d4020(0xd0)](_0x5d4020(0xcb)));}[_0x3b2da0(0xc4)](_0x199b39){const _0x55a8a9=_0x3b2da0;this[_0x55a8a9(0xd2)][_0x55a8a9(0xac)](),this[_0x55a8a9(0xe4)](),this[_0x55a8a9(0xd0)](_0x55a8a9(0xab),_0x199b39);}}export class SourcesBalloonButtonView extends _0x2c76fd{[_0x3b2da0(0x10d)];constructor(_0x22a8c6){const _0x52e640=_0x3b2da0;super(_0x22a8c6),this[_0x52e640(0xe5)]({'withText':!0x0,'role':_0x52e640(0xd5)}),this[_0x52e640(0x10d)]=this[_0x52e640(0xd6)](),this[_0x52e640(0x9b)]({'attributes':{'class':[zo]}});}[_0x3b2da0(0xc6)](){const _0x3fe9ed=_0x3b2da0;super[_0x3fe9ed(0xc6)](),this[_0x3fe9ed(0xe8)][_0x3fe9ed(0xdc)](this[_0x3fe9ed(0x10d)]);}[_0x3b2da0(0xd6)](){const _0x24e7b6=_0x3b2da0,_0xb2b0a9=new _0x599d58();return _0xb2b0a9[_0x24e7b6(0xea)]=_0x4002c4,_0xb2b0a9[_0x24e7b6(0x9b)]({'attributes':{'class':zo+_0x24e7b6(0x107)}}),_0xb2b0a9;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28996f=_0x123d;function _0x123d(_0x1797db,_0xc95b5f){const _0x32ac1d=_0x32ac();return _0x123d=function(_0x123dcf,_0x5e7fcf){_0x123dcf=_0x123dcf-0x1bd;let _0xb4d4bc=_0x32ac1d[_0x123dcf];return _0xb4d4bc;},_0x123d(_0x1797db,_0xc95b5f);}(function(_0x1f0ba9,_0x4e30c2){const _0x431105=_0x123d,_0x11421b=_0x1f0ba9();while(!![]){try{const _0x5e4587=parseInt(_0x431105(0x1cc))/0x1+parseInt(_0x431105(0x1d0))/0x2*(-parseInt(_0x431105(0x1ce))/0x3)+parseInt(_0x431105(0x1c0))/0x4+parseInt(_0x431105(0x1be))/0x5+-parseInt(_0x431105(0x1c3))/0x6+-parseInt(_0x431105(0x1cb))/0x7+parseInt(_0x431105(0x1c7))/0x8;if(_0x5e4587===_0x4e30c2)break;else _0x11421b['push'](_0x11421b['shift']());}catch(_0xbf1490){_0x11421b['push'](_0x11421b['shift']());}}}(_0x32ac,0x54be5));import{ButtonView as _0x1fbf68,View as _0x45109b}from'ckeditor5/src/ui.js';import{IconStop as _0x5d6199}from'ckeditor5/src/icons.js';import{getTranslation as _0xc82552}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x45109b{[_0x28996f(0x1d2)];[_0x28996f(0x1cd)];constructor(_0x20e943){const _0x880b8d=_0x28996f;super(_0x20e943),this[_0x880b8d(0x1d2)]=this[_0x880b8d(0x1c8)](),this[_0x880b8d(0x1cd)]=this[_0x880b8d(0x1bd)](),this[_0x880b8d(0x1d3)]({'tag':_0x880b8d(0x1c2),'attributes':{'class':['ck',_0x880b8d(0x1d6),_0x880b8d(0x1d4)]},'children':[this[_0x880b8d(0x1cd)],this[_0x880b8d(0x1d2)]]});}[_0x28996f(0x1c8)](){const _0x46332c=_0x28996f,_0xc7ff32=new _0x1fbf68(this[_0x46332c(0x1c1)]);return _0xc7ff32[_0x46332c(0x1d5)]({'label':_0xc82552(this[_0x46332c(0x1c1)],_0x46332c(0x1d1)),'withText':!0x0,'class':_0x46332c(0x1c5),'icon':_0x5d6199}),_0xc7ff32['on'](_0x46332c(0x1c9),()=>{const _0x3a8334=_0x46332c;this[_0x3a8334(0x1d7)](_0x3a8334(0x1c6));}),_0xc7ff32;}[_0x28996f(0x1bd)](){const _0xd1587d=_0x28996f,_0x1d6edd=new _0x45109b(this[_0xd1587d(0x1c1)]);return _0x1d6edd[_0xd1587d(0x1d3)]({'tag':_0xd1587d(0x1c2),'attributes':{'class':[_0xd1587d(0x1ca)]},'children':[{'tag':_0xd1587d(0x1c2),'attributes':{'class':[_0xd1587d(0x1cf)]},'children':[{'tag':_0xd1587d(0x1c2),'attributes':{'class':[_0xd1587d(0x1c4)]}},{'tag':_0xd1587d(0x1c2),'attributes':{'class':[_0xd1587d(0x1c4)]}},{'tag':_0xd1587d(0x1c2),'attributes':{'class':[_0xd1587d(0x1c4)]}}]},{'text':_0xc82552(this[_0xd1587d(0x1c1)],_0xd1587d(0x1bf))}]}),_0x1d6edd;}}function _0x32ac(){const _0x268a58=['execute','ck-ai-chat-controls-loader','1693734bkDpnQ','76440bpMhFE','_loaderView','353502UImJbm','ck-ai-chat-controls-loader-icon','10LHjFoF','AI_CHAT_STOP_GENERATING','_cancelButtonView','setTemplate','ck-reset_all','set','ck-ai-chat-controls-loader-wrapper','fire','_createLoaderView','2837595AMXZrC','AI_CHAT_IS_WRITING','360964POIjiv','locale','div','3521622aGVfmZ','ck-ai-chat-controls-loader-icon-dot','ck-ai-button-secondary\x20ck-ai-button-stop-generating','abortPromptStream','8247824DWBggH','_createCancelButtonView'];_0x32ac=function(){return _0x268a58;};return _0x32ac();}
23
+ function _0x17a7(){const _0x50d89a=['ck-ai-chat-controls-loader','_createCancelButtonView','fire','254520oRTXfS','ck-ai-chat-controls-loader-wrapper','26613vzrFLS','690wVFYhZ','AI_CHAT_STOP_GENERATING','AI_CHAT_IS_WRITING','set','locale','ck-ai-chat-controls-loader-icon-dot','_cancelButtonView','1806684yjZrZs','2126792LkfriB','5nwufvF','div','ck-ai-chat-controls-loader-icon','setTemplate','81375YcsDgL','_createLoaderView','execute','3tkhqSC','60CsTMbR','95740tpIDIk','abortPromptStream','_loaderView','ck-ai-button-secondary\x20ck-ai-button-stop-generating','83602jarWok','ck-reset_all'];_0x17a7=function(){return _0x50d89a;};return _0x17a7();}const _0x12eef4=_0x2af9;(function(_0x2f011e,_0x4d9660){const _0x57a284=_0x2af9,_0x2280f6=_0x2f011e();while(!![]){try{const _0x3b9e2f=parseInt(_0x57a284(0x12b))/0x1*(parseInt(_0x57a284(0x11a))/0x2)+-parseInt(_0x57a284(0x114))/0x3*(-parseInt(_0x57a284(0x116))/0x4)+parseInt(_0x57a284(0x111))/0x5*(-parseInt(_0x57a284(0x115))/0x6)+parseInt(_0x57a284(0x11f))/0x7+parseInt(_0x57a284(0x12a))/0x8+-parseInt(_0x57a284(0x121))/0x9*(parseInt(_0x57a284(0x122))/0xa)+parseInt(_0x57a284(0x129))/0xb;if(_0x3b9e2f===_0x4d9660)break;else _0x2280f6['push'](_0x2280f6['shift']());}catch(_0x1151c9){_0x2280f6['push'](_0x2280f6['shift']());}}}(_0x17a7,0x51342));function _0x2af9(_0x3c58a9,_0x1247b3){const _0x17a78a=_0x17a7();return _0x2af9=function(_0x2af94f,_0x1339ff){_0x2af94f=_0x2af94f-0x110;let _0x2444d2=_0x17a78a[_0x2af94f];return _0x2444d2;},_0x2af9(_0x3c58a9,_0x1247b3);}import{ButtonView as _0x2cc072,View as _0x3ead73}from'ckeditor5/src/ui.js';import{IconStop as _0x3c7308}from'ckeditor5/src/icons.js';import{getTranslation as _0x3ee145}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x3ead73{[_0x12eef4(0x128)];[_0x12eef4(0x118)];constructor(_0x5d3796){const _0x3cd403=_0x12eef4;super(_0x5d3796),this[_0x3cd403(0x128)]=this[_0x3cd403(0x11d)](),this[_0x3cd403(0x118)]=this[_0x3cd403(0x112)](),this[_0x3cd403(0x110)]({'tag':_0x3cd403(0x12c),'attributes':{'class':['ck',_0x3cd403(0x120),_0x3cd403(0x11b)]},'children':[this[_0x3cd403(0x118)],this[_0x3cd403(0x128)]]});}[_0x12eef4(0x11d)](){const _0x273fc0=_0x12eef4,_0x120e89=new _0x2cc072(this[_0x273fc0(0x126)]);return _0x120e89[_0x273fc0(0x125)]({'label':_0x3ee145(this[_0x273fc0(0x126)],_0x273fc0(0x123)),'withText':!0x0,'class':_0x273fc0(0x119),'icon':_0x3c7308}),_0x120e89['on'](_0x273fc0(0x113),()=>{const _0x51fb84=_0x273fc0;this[_0x51fb84(0x11e)](_0x51fb84(0x117));}),_0x120e89;}[_0x12eef4(0x112)](){const _0xbd5147=_0x12eef4,_0x1fa516=new _0x3ead73(this[_0xbd5147(0x126)]);return _0x1fa516[_0xbd5147(0x110)]({'tag':_0xbd5147(0x12c),'attributes':{'class':[_0xbd5147(0x11c)]},'children':[{'tag':_0xbd5147(0x12c),'attributes':{'class':[_0xbd5147(0x12d)]},'children':[{'tag':_0xbd5147(0x12c),'attributes':{'class':[_0xbd5147(0x127)]}},{'tag':_0xbd5147(0x12c),'attributes':{'class':[_0xbd5147(0x127)]}},{'tag':_0xbd5147(0x12c),'attributes':{'class':[_0xbd5147(0x127)]}}]},{'text':_0x3ee145(this[_0xbd5147(0x126)],_0xbd5147(0x124))}]}),_0x1fa516;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x333d68=_0xe824;(function(_0x393360,_0xa4e551){const _0x31bc10=_0xe824,_0xc15040=_0x393360();while(!![]){try{const _0x5ca118=-parseInt(_0x31bc10(0x1ec))/0x1*(parseInt(_0x31bc10(0x216))/0x2)+parseInt(_0x31bc10(0x1ea))/0x3+parseInt(_0x31bc10(0x1f4))/0x4+parseInt(_0x31bc10(0x206))/0x5+-parseInt(_0x31bc10(0x212))/0x6+parseInt(_0x31bc10(0x1f9))/0x7+-parseInt(_0x31bc10(0x1d1))/0x8;if(_0x5ca118===_0xa4e551)break;else _0xc15040['push'](_0xc15040['shift']());}catch(_0xb032eb){_0xc15040['push'](_0xc15040['shift']());}}}(_0x10e6,0x5d87f));function _0xe824(_0x18c740,_0x45b635){const _0x10e6f4=_0x10e6();return _0xe824=function(_0xe824bc,_0x17bf4b){_0xe824bc=_0xe824bc-0x1bf;let _0x8eca3d=_0x10e6f4[_0xe824bc];return _0x8eca3d;},_0xe824(_0x18c740,_0x45b635);}import{Collection as _0x35fd17}from'ckeditor5/src/utils.js';import{IconAI as _0x17d01d,IconBulb as _0x1725e6,IconWeb as _0x44f820}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3d9b41,ButtonLabelView as _0x180d25,ButtonView as _0x4e4a34,createDropdown as _0x14335a,IconView as _0x10e22c,UIModel as _0x3fbc9a,View as _0x4505f4}from'ckeditor5/src/ui.js';import{getTranslation as _0x2ea691}from'../../../aicore/utils/common-translations.js';function _0x10e6(){const _0x4b9d74=['_modelSelectionDropdownItems','activeModelName','isOn','2670116zmLxqA','ck-ai-chat-controls__model-name','listenTo','setModel','modelSelectorEnabled','1602055aQteOm','AI_CHAT_CAPABILITIES_NO','_createReasoningButton','description','webSearchActive','_createWebSearchButton','toggleReasoning','name','_modelSelectionDropdown','fire','isVisible','_createCommandsButton','setModelList','3524425nOZRnu','_commandsButton','AI_CHAT_CAPABILITIES_YES','setReasoning','model','ck-ai-button-tertiary','disableModelSelector','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_createModelNameView','div','clear','activeModelId','3488850EyMMGP','setTemplate','ck-ai-chat-controls__model-selection','AI_CHAT_SEARCH_WEB','43454Uextwk','set','_webSearchButton','bind','reasoning','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection__item-description','menuitemradio','createCollection','_reasoningButton','ck-ai-chat-controls-button','span','content','bindTemplate','selectModel','selector','capabilities','label','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','enableModelSelector','isEnabled','AI_CHAT_DISABLE_REASONING','toggleWebSearch','ck-ai-chat__prompt-capabilities','ck-ai-chat-controls__model-selection__item-capabilities','length','hidden','4791184ESNgIo','text','reasoningActive','enabled','log','extendTemplate','AI_CHAT_ENABLE_REASONING','ck-button__label','AI_CHAT_REASONING','webSearch','add','addMany','source','execute','setWebSearch','_modelNameView','tooltip','ck-hidden','AI_CHAT_ENABLE_WEB_SEARCH','_getCapabilityParts','button','_createModelSelectionDropdown','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_COMMANDS','buttonView','16953sApjSR','style','2hjHZtK','locale','ck-ai-chat-controls-button--commands','Commands\x20are\x20not\x20implemented\x20yet.','modelDisplayMode'];_0x10e6=function(){return _0x4b9d74;};return _0x10e6();}const Ko=_0x333d68(0x1cd),Xo=_0x333d68(0x1c0),Qo=_0x333d68(0x1ee),Zo=_0x333d68(0x20b),tl=_0x333d68(0x214),el=_0x333d68(0x1e7),il=_0x333d68(0x21c),sl=_0x333d68(0x1ce),ol='n';export class AIChatPromptCapabilitiesView extends _0x4505f4{[_0x333d68(0x218)];[_0x333d68(0x1bf)];[_0x333d68(0x207)];[_0x333d68(0x201)];[_0x333d68(0x1f1)];[_0x333d68(0x1e0)];constructor(_0x5caad2){const _0x3148cb=_0x333d68;super(_0x5caad2),this[_0x3148cb(0x217)](_0x3148cb(0x1fd),!0x1),this[_0x3148cb(0x217)](_0x3148cb(0x1d3),!0x1),this[_0x3148cb(0x217)](_0x3148cb(0x1f0),_0x3148cb(0x1c5)),this[_0x3148cb(0x217)](_0x3148cb(0x1f8),!0x0),this[_0x3148cb(0x217)](_0x3148cb(0x211),null),this[_0x3148cb(0x217)](_0x3148cb(0x1f2),null),this[_0x3148cb(0x201)]=this[_0x3148cb(0x1e6)](),this[_0x3148cb(0x1e0)]=this[_0x3148cb(0x20e)](),this[_0x3148cb(0x218)]=this[_0x3148cb(0x1fe)](),this[_0x3148cb(0x1bf)]=this[_0x3148cb(0x1fb)](),this[_0x3148cb(0x207)]=this[_0x3148cb(0x204)](),this[_0x3148cb(0x201)][_0x3148cb(0x1e9)][_0x3148cb(0x219)](_0x3148cb(0x203))['to'](this,_0x3148cb(0x1f0),_0x179ee5=>_0x3148cb(0x1c5)===_0x179ee5),this[_0x3148cb(0x201)][_0x3148cb(0x1e9)][_0x3148cb(0x219)](_0x3148cb(0x1e1))['to'](this,_0x3148cb(0x1f8),_0x3aad28=>_0x3aad28?this[_0x3148cb(0x201)][_0x3148cb(0x1e9)][_0x3148cb(0x1c7)]:_0x2ea691(this[_0x3148cb(0x1ed)],_0x3148cb(0x20d))),this[_0x3148cb(0x201)][_0x3148cb(0x219)](_0x3148cb(0x1ca))['to'](this,_0x3148cb(0x1f8),_0x1c76a0=>_0x1c76a0),this[_0x3148cb(0x218)][_0x3148cb(0x219)](_0x3148cb(0x1f3))['to'](this,_0x3148cb(0x1fd),_0x3b1efb=>_0x3b1efb),this[_0x3148cb(0x218)][_0x3148cb(0x219)](_0x3148cb(0x1e1))['to'](this,_0x3148cb(0x1fd),_0x4e1b65=>_0x2ea691(this[_0x3148cb(0x1ed)],_0x4e1b65?_0x3148cb(0x21b):_0x3148cb(0x1e3))),this[_0x3148cb(0x1bf)][_0x3148cb(0x219)](_0x3148cb(0x1f3))['to'](this,_0x3148cb(0x1d3),_0x3ad5b2=>_0x3ad5b2),this[_0x3148cb(0x1bf)][_0x3148cb(0x219)](_0x3148cb(0x1e1))['to'](this,_0x3148cb(0x1d3),_0x41ed32=>_0x2ea691(this[_0x3148cb(0x1ed)],_0x41ed32?_0x3148cb(0x1cb):_0x3148cb(0x1d7))),this[_0x3148cb(0x213)]({'tag':_0x3148cb(0x20f),'attributes':{'class':[Ko]},'children':[this[_0x3148cb(0x201)],this[_0x3148cb(0x1e0)],this[_0x3148cb(0x218)],this[_0x3148cb(0x1bf)],this[_0x3148cb(0x207)]]}),this[_0x3148cb(0x1f1)]=new _0x35fd17(),_0x3d9b41(this[_0x3148cb(0x201)],this[_0x3148cb(0x1f1)]);}[_0x333d68(0x205)](_0x54f7ad,_0x1a986d){const _0x26abd1=_0x333d68;if(_0x1a986d)this[_0x26abd1(0x217)](_0x26abd1(0x1f0),_0x26abd1(0x1d0));else{const _0x11ad51=0x1===_0x54f7ad[_0x26abd1(0x1cf)];this[_0x26abd1(0x217)](_0x26abd1(0x1f0),_0x11ad51?_0x26abd1(0x200):_0x26abd1(0x1c5));}if(this[_0x26abd1(0x1f1)][_0x26abd1(0x210)](),_0x54f7ad?.[_0x26abd1(0x1cf)])for(const _0xd2e01f of _0x54f7ad){const _0x1b0997=new _0x3fbc9a({'label':_0xd2e01f[_0x26abd1(0x200)],'withText':!0x0,'role':_0x26abd1(0x21d),'id':_0xd2e01f['id'],'model':_0xd2e01f});_0x1b0997[_0x26abd1(0x219)](_0x26abd1(0x1f3))['to'](this,_0x26abd1(0x211),_0x45457f=>_0x45457f===_0xd2e01f['id']),this[_0x26abd1(0x1f1)][_0x26abd1(0x1db)]({'type':_0x26abd1(0x1e5),'model':_0x1b0997,'labelView':new ko(this[_0x26abd1(0x1ed)],_0xd2e01f)});}}[_0x333d68(0x1df)](_0x417483){const _0x21c8c6=_0x333d68;this[_0x21c8c6(0x217)](_0x21c8c6(0x1fd),_0x417483);}[_0x333d68(0x209)](_0x18f28f){const _0x4e92b5=_0x333d68;this[_0x4e92b5(0x217)](_0x4e92b5(0x1d3),_0x18f28f);}[_0x333d68(0x1f7)](_0x3da3e4){const _0x199ba4=_0x333d68;if(!_0x3da3e4)return;this[_0x199ba4(0x211)]=_0x3da3e4['id'],this[_0x199ba4(0x1f2)]=_0x3da3e4[_0x199ba4(0x200)]||_0x3da3e4['id'],this[_0x199ba4(0x201)][_0x199ba4(0x1e9)][_0x199ba4(0x217)](_0x199ba4(0x1c7),_0x3da3e4[_0x199ba4(0x200)]),this[_0x199ba4(0x201)][_0x199ba4(0x1e9)][_0x199ba4(0x217)](_0x199ba4(0x1e1),_0x3da3e4[_0x199ba4(0x200)]);const _0x598c16=_0x3da3e4[_0x199ba4(0x1c6)][_0x199ba4(0x1da)]?.[_0x199ba4(0x1d4)]??!0x1;this[_0x199ba4(0x217)](_0x199ba4(0x1fd),!0x1),this[_0x199ba4(0x218)][_0x199ba4(0x217)](_0x199ba4(0x1f3),!0x1),this[_0x199ba4(0x218)][_0x199ba4(0x217)](_0x199ba4(0x1ca),_0x598c16),this[_0x199ba4(0x218)][_0x199ba4(0x217)](_0x199ba4(0x203),_0x598c16);const _0x5e2708=_0x3da3e4[_0x199ba4(0x1c6)][_0x199ba4(0x21a)]?.[_0x199ba4(0x1d4)]??!0x1;this[_0x199ba4(0x217)](_0x199ba4(0x1d3),!0x1),this[_0x199ba4(0x1bf)][_0x199ba4(0x217)](_0x199ba4(0x1f3),!0x1),this[_0x199ba4(0x1bf)][_0x199ba4(0x217)](_0x199ba4(0x1ca),_0x5e2708),this[_0x199ba4(0x1bf)][_0x199ba4(0x217)](_0x199ba4(0x203),_0x5e2708);}[_0x333d68(0x1c9)](){const _0x3f8400=_0x333d68;this[_0x3f8400(0x217)](_0x3f8400(0x1f8),!0x0);}[_0x333d68(0x20c)](_0x52c874){const _0x460b80=_0x333d68;this[_0x460b80(0x217)](_0x460b80(0x1f8),!0x1),_0x52c874&&this[_0x460b80(0x217)](_0x460b80(0x1f0),_0x460b80(0x1d0));}[_0x333d68(0x1fe)](){const _0x21556c=_0x333d68,_0x208b5a=new _0x4e4a34();return _0x208b5a[_0x21556c(0x217)]({'label':_0x2ea691(this[_0x21556c(0x1ed)],_0x21556c(0x215)),'icon':_0x44f820,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x208b5a['on'](_0x21556c(0x1de),()=>{const _0x5a7f28=_0x21556c;this[_0x5a7f28(0x202)](_0x5a7f28(0x1cc));}),_0x208b5a;}[_0x333d68(0x1fb)](){const _0x588476=_0x333d68,_0x41898c=new _0x4e4a34();return _0x41898c[_0x588476(0x217)]({'label':_0x2ea691(this[_0x588476(0x1ed)],_0x588476(0x1d9)),'icon':_0x1725e6,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x41898c['on'](_0x588476(0x1de),()=>{const _0x1a750e=_0x588476;this[_0x1a750e(0x202)](_0x1a750e(0x1ff));}),_0x41898c;}[_0x333d68(0x204)](){const _0x4a6049=_0x333d68,_0x1dbcf7=new _0x4e4a34();return _0x1dbcf7[_0x4a6049(0x217)]({'label':_0x2ea691(this[_0x4a6049(0x1ed)],_0x4a6049(0x1e8)),'icon':_0x17d01d,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x2ea691(this[_0x4a6049(0x1ed)],_0x4a6049(0x1e8)),'tooltipPosition':ol}),_0x1dbcf7[_0x4a6049(0x1d6)]({'attributes':{'class':[Qo]}}),_0x1dbcf7['on'](_0x4a6049(0x1de),()=>{const _0x1543d0=_0x4a6049;console[_0x1543d0(0x1d5)](_0x1543d0(0x1ef)),alert(_0x1543d0(0x1ef));}),_0x1dbcf7;}[_0x333d68(0x1e6)](){const _0x378007=_0x333d68,_0x168c7e=_0x14335a(this[_0x378007(0x1ed)]);return _0x168c7e[_0x378007(0x217)]({'panelPosition':'ne','class':[tl]}),_0x168c7e[_0x378007(0x1e9)][_0x378007(0x217)]({'label':_0x2ea691(this[_0x378007(0x1ed)],_0x378007(0x1c8)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x378007(0x1f6)](_0x168c7e,_0x378007(0x1de),_0x1b1c6c=>{const _0x2606b9=_0x378007;this[_0x2606b9(0x202)](_0x2606b9(0x1c4),_0x1b1c6c[_0x2606b9(0x1dd)][_0x2606b9(0x20a)]);}),_0x168c7e;}[_0x333d68(0x20e)](){const _0x2cca24=_0x333d68,_0x40b16d=new _o(this[_0x2cca24(0x1ed)]);return _0x40b16d[_0x2cca24(0x219)](_0x2cca24(0x1d2))['to'](this,_0x2cca24(0x1f2),_0x1cfa2b=>_0x1cfa2b??''),_0x40b16d[_0x2cca24(0x219)](_0x2cca24(0x203))['to'](this,_0x2cca24(0x1f0),_0x274911=>_0x2cca24(0x200)===_0x274911),_0x40b16d;}}class ko extends _0x180d25{constructor(_0x4cfd5c,_0xce4a53){const _0x2772b5=_0x333d68;super();const _0x90c81f=this[_0x2772b5(0x1c3)],_0x2ee34d=this[_0x2772b5(0x21e)]();this[_0x2772b5(0x213)]({'tag':_0x2772b5(0x20f),'attributes':{'class':['ck',_0x2772b5(0x1d8)],'style':_0x90c81f['to'](_0x2772b5(0x1eb)),'id':_0x90c81f['to']('id')},'children':[{'tag':_0x2772b5(0x20f),'attributes':{'class':[el]},'children':[{'text':_0x90c81f['to'](_0x2772b5(0x1d2))}]},{'tag':_0x2772b5(0x20f),'attributes':{'class':[il]},'children':[{'tag':_0x2772b5(0x1c1),'children':[{'text':_0xce4a53[_0x2772b5(0x1fc)]}]}]},{'tag':_0x2772b5(0x20f),'attributes':{'class':[sl]},'children':_0x2ee34d}]}),_0x2ee34d[_0x2772b5(0x1dc)](this[_0x2772b5(0x1e4)](_0x4cfd5c,_0x44f820,_0x2772b5(0x215),_0xce4a53[_0x2772b5(0x1c6)][_0x2772b5(0x1da)]?.[_0x2772b5(0x1d4)]??!0x1)),_0x2ee34d[_0x2772b5(0x1dc)](this[_0x2772b5(0x1e4)](_0x4cfd5c,_0x1725e6,_0x2772b5(0x1d9),_0xce4a53[_0x2772b5(0x1c6)][_0x2772b5(0x21a)]?.[_0x2772b5(0x1d4)]??!0x1));}[_0x333d68(0x1e4)](_0x3512dc,_0x17d92e,_0x30b3e2,_0x5bb98d){const _0x4ae4b9=_0x333d68,_0x570a81=new _0x10e22c();_0x570a81[_0x4ae4b9(0x1c2)]=_0x17d92e;const _0x2183b8=new _0x4505f4(_0x3512dc);_0x2183b8[_0x4ae4b9(0x213)]({'tag':_0x4ae4b9(0x1c1),'children':[{'text':_0x2ea691(_0x3512dc,_0x30b3e2)+':\x20'}]});const _0x329399=new _0x4505f4(_0x3512dc);return _0x329399[_0x4ae4b9(0x213)]({'tag':_0x4ae4b9(0x1c1),'children':[{'text':_0x2ea691(_0x3512dc,_0x5bb98d?_0x4ae4b9(0x208):_0x4ae4b9(0x1fa))}]}),[_0x570a81,_0x2183b8,_0x329399];}}class _o extends _0x4505f4{constructor(_0x5e6595){const _0x493c78=_0x333d68;super(_0x5e6595),this[_0x493c78(0x217)](_0x493c78(0x1d2),void 0x0),this[_0x493c78(0x217)](_0x493c78(0x203),!0x0);const _0x54485d=this[_0x493c78(0x1c3)];this[_0x493c78(0x213)]({'tag':_0x493c78(0x1c1),'attributes':{'class':['ck',_0x493c78(0x1f5),_0x54485d['if'](_0x493c78(0x203),_0x493c78(0x1e2),_0xa90511=>!_0xa90511)]},'children':[{'text':_0x54485d['to'](_0x493c78(0x1d2))}]});}}
23
+ function _0x1687(_0xa9dc40,_0x4735d9){const _0x4581cc=_0x4581();return _0x1687=function(_0x1687db,_0x3a78f4){_0x1687db=_0x1687db-0xaf;let _0x5702d7=_0x4581cc[_0x1687db];return _0x5702d7;},_0x1687(_0xa9dc40,_0x4735d9);}const _0x458150=_0x1687;(function(_0x4937c9,_0xa23c43){const _0x324647=_0x1687,_0x5d24d5=_0x4937c9();while(!![]){try{const _0x2b583c=parseInt(_0x324647(0xc2))/0x1*(-parseInt(_0x324647(0xba))/0x2)+-parseInt(_0x324647(0xfe))/0x3+parseInt(_0x324647(0xd3))/0x4*(-parseInt(_0x324647(0xb7))/0x5)+parseInt(_0x324647(0x101))/0x6*(parseInt(_0x324647(0x10e))/0x7)+parseInt(_0x324647(0xd0))/0x8*(-parseInt(_0x324647(0x10b))/0x9)+-parseInt(_0x324647(0xd7))/0xa*(parseInt(_0x324647(0xda))/0xb)+parseInt(_0x324647(0xe3))/0xc;if(_0x2b583c===_0xa23c43)break;else _0x5d24d5['push'](_0x5d24d5['shift']());}catch(_0x4f9c80){_0x5d24d5['push'](_0x5d24d5['shift']());}}}(_0x4581,0x54437));import{Collection as _0x56bde9}from'ckeditor5/src/utils.js';import{IconAI as _0x4b9d08,IconBulb as _0x50894f,IconWeb as _0x218644}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x34e903,ButtonLabelView as _0x94dc18,ButtonView as _0x4464ba,createDropdown as _0x1c510b,IconView as _0x2fe599,UIModel as _0x4ac2c3,View as _0x4c11ee}from'ckeditor5/src/ui.js';import{getTranslation as _0xcfb39a}from'../../../aicore/utils/common-translations.js';const Qo=_0x458150(0xb9),Vo=_0x458150(0xdc),Zo=_0x458150(0xb2),tl=_0x458150(0xd1),el=_0x458150(0xf5),il=_0x458150(0xe8),sl=_0x458150(0x105),ol=_0x458150(0xcc),ll='n';export class AIChatPromptCapabilitiesView extends _0x4c11ee{[_0x458150(0xaf)];[_0x458150(0xb4)];[_0x458150(0x111)];[_0x458150(0xe7)];[_0x458150(0xb3)];[_0x458150(0x10f)];constructor(_0x5e2420){const _0x59092c=_0x458150;super(_0x5e2420),this[_0x59092c(0x103)](_0x59092c(0xf2),!0x1),this[_0x59092c(0x103)](_0x59092c(0xf3),!0x1),this[_0x59092c(0x103)](_0x59092c(0xd8),_0x59092c(0xfc)),this[_0x59092c(0x103)](_0x59092c(0xd2),!0x0),this[_0x59092c(0x103)](_0x59092c(0xbc),null),this[_0x59092c(0x103)](_0x59092c(0xff),null),this[_0x59092c(0xe7)]=this[_0x59092c(0xb6)](),this[_0x59092c(0x10f)]=this[_0x59092c(0xc3)](),this[_0x59092c(0xaf)]=this[_0x59092c(0x104)](),this[_0x59092c(0xb4)]=this[_0x59092c(0x102)](),this[_0x59092c(0x111)]=this[_0x59092c(0xf1)](),this[_0x59092c(0xe7)][_0x59092c(0xed)][_0x59092c(0xfd)](_0x59092c(0xbd))['to'](this,_0x59092c(0xd8),_0x3f1887=>_0x59092c(0xfc)===_0x3f1887),this[_0x59092c(0xe7)][_0x59092c(0xed)][_0x59092c(0xfd)](_0x59092c(0xfa))['to'](this,_0x59092c(0xd2),_0x1f0e0d=>_0x1f0e0d?this[_0x59092c(0xe7)][_0x59092c(0xed)][_0x59092c(0x108)]:_0xcfb39a(this[_0x59092c(0x100)],_0x59092c(0xca))),this[_0x59092c(0xe7)][_0x59092c(0xfd)](_0x59092c(0xf4))['to'](this,_0x59092c(0xd2),_0x210d3f=>_0x210d3f),this[_0x59092c(0xaf)][_0x59092c(0xfd)](_0x59092c(0xc1))['to'](this,_0x59092c(0xf2),_0x1b3b6e=>_0x1b3b6e),this[_0x59092c(0xaf)][_0x59092c(0xfd)](_0x59092c(0xfa))['to'](this,_0x59092c(0xf2),_0x50600d=>_0xcfb39a(this[_0x59092c(0x100)],_0x50600d?_0x59092c(0x109):_0x59092c(0xf8))),this[_0x59092c(0xb4)][_0x59092c(0xfd)](_0x59092c(0xc1))['to'](this,_0x59092c(0xf3),_0x5a3956=>_0x5a3956),this[_0x59092c(0xb4)][_0x59092c(0xfd)](_0x59092c(0xfa))['to'](this,_0x59092c(0xf3),_0x2e2ea0=>_0xcfb39a(this[_0x59092c(0x100)],_0x2e2ea0?_0x59092c(0xd6):_0x59092c(0xe2))),this[_0x59092c(0xc7)]({'tag':_0x59092c(0xde),'attributes':{'class':[Qo]},'children':[this[_0x59092c(0xe7)],this[_0x59092c(0x10f)],this[_0x59092c(0xaf)],this[_0x59092c(0xb4)],this[_0x59092c(0x111)]]}),this[_0x59092c(0xb3)]=new _0x56bde9(),_0x34e903(this[_0x59092c(0xe7)],this[_0x59092c(0xb3)]);}[_0x458150(0xc0)](_0x1d2698,_0x5dc541){const _0x233b95=_0x458150;if(_0x5dc541)this[_0x233b95(0x103)](_0x233b95(0xd8),_0x233b95(0xe4));else{const _0x58303c=0x1===_0x1d2698[_0x233b95(0xe0)];this[_0x233b95(0x103)](_0x233b95(0xd8),_0x58303c?_0x233b95(0xee):_0x233b95(0xfc));}if(this[_0x233b95(0xb3)][_0x233b95(0xcd)](),_0x1d2698?.[_0x233b95(0xe0)])for(const _0x449019 of _0x1d2698){const _0x56094c=new _0x4ac2c3({'label':_0x449019[_0x233b95(0xee)],'withText':!0x0,'role':_0x233b95(0xce),'id':_0x449019['id'],'model':_0x449019});_0x56094c[_0x233b95(0xfd)](_0x233b95(0xc1))['to'](this,_0x233b95(0xbc),_0x10688f=>_0x10688f===_0x449019['id']),this[_0x233b95(0xb3)][_0x233b95(0xbb)]({'type':_0x233b95(0xe9),'model':_0x56094c,'labelView':new ko(this[_0x233b95(0x100)],_0x449019)});}}[_0x458150(0xe1)](_0x21a797){const _0x47d87a=_0x458150;this[_0x47d87a(0x103)](_0x47d87a(0xf2),_0x21a797);}[_0x458150(0x10a)](_0xa18ab9){const _0x462ed3=_0x458150;this[_0x462ed3(0x103)](_0x462ed3(0xf3),_0xa18ab9);}[_0x458150(0xcb)](_0x48ffcc){const _0x179f45=_0x458150;if(!_0x48ffcc)return;this[_0x179f45(0xbc)]=_0x48ffcc['id'],this[_0x179f45(0xff)]=_0x48ffcc[_0x179f45(0xee)]||_0x48ffcc['id'],this[_0x179f45(0xe7)][_0x179f45(0xed)][_0x179f45(0x103)](_0x179f45(0x108),_0x48ffcc[_0x179f45(0xee)]),this[_0x179f45(0xe7)][_0x179f45(0xed)][_0x179f45(0x103)](_0x179f45(0xfa),_0x48ffcc[_0x179f45(0xee)]);const _0x183307=_0x48ffcc[_0x179f45(0x10d)][_0x179f45(0xbe)]?.[_0x179f45(0xe6)]??!0x1;this[_0x179f45(0x103)](_0x179f45(0xf2),!0x1),this[_0x179f45(0xaf)][_0x179f45(0x103)](_0x179f45(0xc1),!0x1),this[_0x179f45(0xaf)][_0x179f45(0x103)](_0x179f45(0xf4),_0x183307),this[_0x179f45(0xaf)][_0x179f45(0x103)](_0x179f45(0xbd),_0x183307);const _0x245ba3=_0x48ffcc[_0x179f45(0x10d)][_0x179f45(0xbf)]?.[_0x179f45(0xe6)]??!0x1;this[_0x179f45(0x103)](_0x179f45(0xf3),!0x1),this[_0x179f45(0xb4)][_0x179f45(0x103)](_0x179f45(0xc1),!0x1),this[_0x179f45(0xb4)][_0x179f45(0x103)](_0x179f45(0xf4),_0x245ba3),this[_0x179f45(0xb4)][_0x179f45(0x103)](_0x179f45(0xbd),_0x245ba3);}[_0x458150(0xc9)](){const _0x3e96ad=_0x458150;this[_0x3e96ad(0x103)](_0x3e96ad(0xd2),!0x0);}[_0x458150(0xc5)](_0x59deb1){const _0x56570e=_0x458150;this[_0x56570e(0x103)](_0x56570e(0xd2),!0x1),_0x59deb1&&this[_0x56570e(0x103)](_0x56570e(0xd8),_0x56570e(0xe4));}[_0x458150(0x104)](){const _0x30ee3f=_0x458150,_0x5e62a9=new _0x4464ba();return _0x5e62a9[_0x30ee3f(0x103)]({'label':_0xcfb39a(this[_0x30ee3f(0x100)],_0x30ee3f(0xef)),'icon':_0x218644,'class':Vo,'isToggleable':!0x0,'tooltipPosition':ll}),_0x5e62a9['on'](_0x30ee3f(0xdd),()=>{const _0x3a47a7=_0x30ee3f;this[_0x3a47a7(0xfb)](_0x3a47a7(0xb8));}),_0x5e62a9;}[_0x458150(0x102)](){const _0x11b736=_0x458150,_0x45fae9=new _0x4464ba();return _0x45fae9[_0x11b736(0x103)]({'label':_0xcfb39a(this[_0x11b736(0x100)],_0x11b736(0xeb)),'icon':_0x50894f,'class':Vo,'isToggleable':!0x0,'tooltipPosition':ll}),_0x45fae9['on'](_0x11b736(0xdd),()=>{const _0x979292=_0x11b736;this[_0x979292(0xfb)](_0x979292(0x107));}),_0x45fae9;}[_0x458150(0xf1)](){const _0x133e22=_0x458150,_0x51b5e1=new _0x4464ba();return _0x51b5e1[_0x133e22(0x103)]({'label':_0xcfb39a(this[_0x133e22(0x100)],_0x133e22(0xd4)),'icon':_0x4b9d08,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0xcfb39a(this[_0x133e22(0x100)],_0x133e22(0xd4)),'tooltipPosition':ll}),_0x51b5e1[_0x133e22(0xdb)]({'attributes':{'class':[Zo]}}),_0x51b5e1['on'](_0x133e22(0xdd),()=>{const _0x2d42fa=_0x133e22;console[_0x2d42fa(0xb1)](_0x2d42fa(0xcf)),alert(_0x2d42fa(0xcf));}),_0x51b5e1;}[_0x458150(0xb6)](){const _0x13647c=_0x458150,_0x20f770=_0x1c510b(this[_0x13647c(0x100)]);return _0x20f770[_0x13647c(0x103)]({'panelPosition':'ne','class':[el]}),_0x20f770[_0x13647c(0xed)][_0x13647c(0x103)]({'label':_0xcfb39a(this[_0x13647c(0x100)],_0x13647c(0x10c)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ll,'class':tl}),this[_0x13647c(0x112)](_0x20f770,_0x13647c(0xdd),_0x3a0faf=>{const _0x513bc6=_0x13647c;this[_0x513bc6(0xfb)](_0x513bc6(0xec),_0x3a0faf[_0x513bc6(0xf0)][_0x513bc6(0xe5)]);}),_0x20f770;}[_0x458150(0xc3)](){const _0x266b80=_0x458150,_0x43aedd=new _o(this[_0x266b80(0x100)]);return _0x43aedd[_0x266b80(0xfd)](_0x266b80(0xb0))['to'](this,_0x266b80(0xff),_0x329f14=>_0x329f14??''),_0x43aedd[_0x266b80(0xfd)](_0x266b80(0xbd))['to'](this,_0x266b80(0xd8),_0x104bc3=>_0x266b80(0xee)===_0x104bc3),_0x43aedd;}}class ko extends _0x94dc18{constructor(_0x16f27b,_0xe8b852){const _0x162226=_0x458150;super();const _0x1e9833=this[_0x162226(0xc8)],_0x504cba=this[_0x162226(0xb5)]();this[_0x162226(0xc7)]({'tag':_0x162226(0xde),'attributes':{'class':['ck',_0x162226(0xf7)],'style':_0x1e9833['to'](_0x162226(0x106)),'id':_0x1e9833['to']('id')},'children':[{'tag':_0x162226(0xde),'attributes':{'class':[il]},'children':[{'text':_0x1e9833['to'](_0x162226(0xb0))}]},{'tag':_0x162226(0xde),'attributes':{'class':[sl]},'children':[{'tag':_0x162226(0xea),'children':[{'text':_0xe8b852[_0x162226(0xf9)]}]}]},{'tag':_0x162226(0xde),'attributes':{'class':[ol]},'children':_0x504cba}]}),_0x504cba[_0x162226(0xd5)](this[_0x162226(0xdf)](_0x16f27b,_0x218644,_0x162226(0xef),_0xe8b852[_0x162226(0x10d)][_0x162226(0xbe)]?.[_0x162226(0xe6)]??!0x1)),_0x504cba[_0x162226(0xd5)](this[_0x162226(0xdf)](_0x16f27b,_0x50894f,_0x162226(0xeb),_0xe8b852[_0x162226(0x10d)][_0x162226(0xbf)]?.[_0x162226(0xe6)]??!0x1));}[_0x458150(0xdf)](_0x22dabf,_0x512c31,_0x24990a,_0x4adc57){const _0x285d0d=_0x458150,_0x5bd966=new _0x2fe599();_0x5bd966[_0x285d0d(0xd9)]=_0x512c31;const _0x1f2b0b=new _0x4c11ee(_0x22dabf);_0x1f2b0b[_0x285d0d(0xc7)]({'tag':_0x285d0d(0xea),'children':[{'text':_0xcfb39a(_0x22dabf,_0x24990a)+':\x20'}]});const _0x31d4b9=new _0x4c11ee(_0x22dabf);return _0x31d4b9[_0x285d0d(0xc7)]({'tag':_0x285d0d(0xea),'children':[{'text':_0xcfb39a(_0x22dabf,_0x4adc57?_0x285d0d(0xc4):_0x285d0d(0x110))}]}),[_0x5bd966,_0x1f2b0b,_0x31d4b9];}}class _o extends _0x4c11ee{constructor(_0x18a1c5){const _0x3e38c2=_0x458150;super(_0x18a1c5),this[_0x3e38c2(0x103)](_0x3e38c2(0xb0),void 0x0),this[_0x3e38c2(0x103)](_0x3e38c2(0xbd),!0x0);const _0x59890a=this[_0x3e38c2(0xc8)];this[_0x3e38c2(0xc7)]({'tag':_0x3e38c2(0xea),'attributes':{'class':['ck',_0x3e38c2(0xc6),_0x59890a['if'](_0x3e38c2(0xbd),_0x3e38c2(0xf6),_0x22c477=>!_0x22c477)]},'children':[{'text':_0x59890a['to'](_0x3e38c2(0xb0))}]});}}function _0x4581(){const _0x4c4a0e=['AI_CHAT_REASONING','selectModel','buttonView','name','AI_CHAT_SEARCH_WEB','source','_createCommandsButton','webSearchActive','reasoningActive','isEnabled','ck-ai-chat-controls__model-selection','ck-hidden','ck-button__label','AI_CHAT_ENABLE_WEB_SEARCH','description','tooltip','fire','selector','bind','1270875sqLRpo','activeModelName','locale','108BjOWXq','_createReasoningButton','set','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-description','style','toggleReasoning','label','AI_CHAT_DISABLE_WEB_SEARCH','setReasoning','131292vPGpTE','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','capabilities','2233YhspWH','_modelNameView','AI_CHAT_CAPABILITIES_NO','_commandsButton','listenTo','_webSearchButton','text','log','ck-ai-chat-controls-button--commands','_modelSelectionDropdownItems','_reasoningButton','createCollection','_createModelSelectionDropdown','80215NmagOk','toggleWebSearch','ck-ai-chat__prompt-capabilities','29122IbjeXl','add','activeModelId','isVisible','webSearch','reasoning','setModelList','isOn','30WfgXWi','_createModelNameView','AI_CHAT_CAPABILITIES_YES','disableModelSelector','ck-ai-chat-controls__model-name','setTemplate','bindTemplate','enableModelSelector','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','setModel','ck-ai-chat-controls__model-selection__item-capabilities','clear','menuitemradio','Commands\x20are\x20not\x20implemented\x20yet.','272UvlBFC','ck-ai-button-tertiary','modelSelectorEnabled','72nfMdOB','AI_CHAT_COMMANDS','addMany','AI_CHAT_DISABLE_REASONING','30luqGCM','modelDisplayMode','content','233332BLVYbT','extendTemplate','ck-ai-chat-controls-button','execute','div','_getCapabilityParts','length','setWebSearch','AI_CHAT_ENABLE_REASONING','24579096HcPjCI','hidden','model','enabled','_modelSelectionDropdown','ck-ai-chat-controls__model-selection__item-name','button','span'];_0x4581=function(){return _0x4c4a0e;};return _0x4581();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x551811=_0x517d;(function(_0x463920,_0x11abfd){const _0x124ef0=_0x517d,_0x24a6a=_0x463920();while(!![]){try{const _0x3f62c6=-parseInt(_0x124ef0(0x92))/0x1*(-parseInt(_0x124ef0(0x89))/0x2)+-parseInt(_0x124ef0(0x8c))/0x3+-parseInt(_0x124ef0(0xaf))/0x4+parseInt(_0x124ef0(0x71))/0x5+-parseInt(_0x124ef0(0x8f))/0x6+-parseInt(_0x124ef0(0x8a))/0x7+-parseInt(_0x124ef0(0x90))/0x8*(-parseInt(_0x124ef0(0x84))/0x9);if(_0x3f62c6===_0x11abfd)break;else _0x24a6a['push'](_0x24a6a['shift']());}catch(_0x45ad42){_0x24a6a['push'](_0x24a6a['shift']());}}}(_0x4b05,0xc21f8));import{IconSubmit as _0x229f47}from'ckeditor5/src/icons.js';import{ButtonView as _0x22290e,AutocompleteView as _0x13af26,createLabeledTextarea as _0x290926}from'ckeditor5/src/ui.js';import{global as _0x130ee5,isVisible as _0x397fb6,Rect as _0x3470aa,ResizeObserver as _0x100aee}from'ckeditor5/src/utils.js';function _0x4b05(){const _0x362855=['_createSubmitButton','hasError','ck-ai-chat__prompt-submit-button','fire','isEnabled','keystrokes','_queryViewResizeObserver','classList','_setUpAddContextButtonPositioning','set','fieldView','28361178XtWzVS','style','isUploadInProgress','queryView','update','746yzWpqr','1976037SnzgFm','requestAnimationFrame','4173810GMLPix','trim','window','2575878JUkEDi','8pXhDBc','minRows','1646nlkWaQ','ck-ai-chat__prompt-input','locale','submitButtonView','target','px\x20-\x20var(--ck-spacing-tiny))','destroy','focus','reset','execute','focusableChildren','sendUserMessage','_addContextButtonView','bind','submit','placeholder','calc(','fieldWrapperChildren','errorText','add','excludeScrollbarsAndBorders','uiLanguageDirection','rtl','width','extendTemplate','AI_CHAT_PROMPT_EMPTY_ERROR','element','right','ck-ai-chat__prompt-input_highlighted','4256472uWobEX','MIN_ROWS','remove','setPlaceholderText','render','left','AI_CHAT_LABEL_SUBMIT','984600tZvvqv','contains','isEmpty','maxRows','enter','MAX_ROWS','value','setIsUploadInProgress'];_0x4b05=function(){return _0x362855;};return _0x4b05();}import{getTranslation as _0x2549e9}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x2981ca}from'./aichatpromptsuggestionslistview.js';import{escape as _0x39a720}from'es-toolkit/compat';const ah=_0x551811(0xae);function _0x517d(_0x57959f,_0x5c2ac3){const _0x4b054b=_0x4b05();return _0x517d=function(_0x517da2,_0x350cc2){_0x517da2=_0x517da2-0x6f;let _0x504a6f=_0x4b054b[_0x517da2];return _0x504a6f;},_0x517d(_0x57959f,_0x5c2ac3);}export class AIChatPromptInputView extends _0x13af26{[_0x551811(0x95)];static [_0x551811(0xb0)]=0x1;static [_0x551811(0x76)]=0xc;[_0x551811(0x9e)];[_0x551811(0x7f)];constructor(_0x370065,_0x3ac98d){const _0x53eb77=_0x551811;super(_0x370065,{'queryView':{'label':'','creator':_0x290926,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x2981ca(_0x370065),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x53eb77(0x82)](_0x53eb77(0x73),!0x0),this[_0x53eb77(0x82)](_0x53eb77(0x86),!0x1),this[_0x53eb77(0x9e)]=_0x3ac98d,this[_0x53eb77(0x7f)]=null,this[_0x53eb77(0x87)][_0x53eb77(0x83)][_0x53eb77(0x91)]=AIChatPromptInputView[_0x53eb77(0xb0)],this[_0x53eb77(0x87)][_0x53eb77(0x83)][_0x53eb77(0x74)]=AIChatPromptInputView[_0x53eb77(0x76)],this[_0x53eb77(0x87)][_0x53eb77(0xa3)][_0x53eb77(0xa5)](this[_0x53eb77(0x9e)]),this[_0x53eb77(0x81)](),this[_0x53eb77(0xaa)]({'attributes':{'class':['ck',_0x53eb77(0x93)]}}),this[_0x53eb77(0x95)]=this[_0x53eb77(0x79)](),this[_0x53eb77(0x95)][_0x53eb77(0x9f)](_0x53eb77(0x7d))['to'](this,_0x53eb77(0x73),this,_0x53eb77(0x86),(_0x2a9b5f,_0x43d67c)=>!_0x2a9b5f&&!_0x43d67c),this[_0x53eb77(0x9c)][_0x53eb77(0xa5)](this[_0x53eb77(0x95)]);}[_0x551811(0xb3)](){const _0x30f146=_0x551811;super[_0x30f146(0xb3)](),this[_0x30f146(0x87)][_0x30f146(0xa3)][_0x30f146(0xa5)](this[_0x30f146(0x95)]),this[_0x30f146(0x7e)][_0x30f146(0x82)](_0x30f146(0x75),(_0x41ade1,_0x1f3dde)=>{const _0x39c69a=_0x30f146;this[_0x39c69a(0x86)]||this[_0x39c69a(0x73)]||_0x41ade1[_0x39c69a(0x96)]==this[_0x39c69a(0x87)][_0x39c69a(0x83)][_0x39c69a(0xac)]&&(this[_0x39c69a(0xa0)](),_0x1f3dde());}),this[_0x30f146(0x87)][_0x30f146(0x83)]['on'](_0x30f146(0x88),()=>{const _0x494caa=_0x30f146;this[_0x494caa(0x73)]=''===this[_0x494caa(0x87)][_0x494caa(0x83)][_0x494caa(0xac)][_0x494caa(0x77)]?.[_0x494caa(0x8d)]();});}[_0x551811(0x98)](){const _0x42acb6=_0x551811;super[_0x42acb6(0x98)](),this[_0x42acb6(0x7f)]&&this[_0x42acb6(0x7f)][_0x42acb6(0x98)]();}[_0x551811(0xa0)](){const _0xe935b4=_0x551811,_0x162d95=this[_0xe935b4(0x87)][_0xe935b4(0x83)][_0xe935b4(0xac)][_0xe935b4(0x77)]?.[_0xe935b4(0x8d)]();if(!_0x162d95)return this[_0xe935b4(0x87)][_0xe935b4(0xa4)]=_0x2549e9(this[_0xe935b4(0x94)],_0xe935b4(0xab)),void(this[_0xe935b4(0x87)][_0xe935b4(0x83)][_0xe935b4(0x7a)]=!0x0);this[_0xe935b4(0x87)][_0xe935b4(0x83)][_0xe935b4(0x7a)]=!0x1;const _0x4dbc11=_0x39a720(_0x162d95);this[_0xe935b4(0x7c)](_0xe935b4(0x9d),_0x4dbc11),this[_0xe935b4(0x87)][_0xe935b4(0x83)][_0xe935b4(0x9a)]();}[_0x551811(0xb2)](_0x19be1b){const _0x1b3c02=_0x551811;this[_0x1b3c02(0x87)][_0x1b3c02(0x83)][_0x1b3c02(0x82)](_0x1b3c02(0xa1),_0x19be1b);}[_0x551811(0x99)](_0x41f1cb=!0x1){const _0x319e3a=_0x551811;super[_0x319e3a(0x99)](),_0x41f1cb&&(this[_0x319e3a(0xac)][_0x319e3a(0x80)][_0x319e3a(0x72)](ah)||(this[_0x319e3a(0xac)][_0x319e3a(0x80)][_0x319e3a(0xa5)](ah),setTimeout(()=>{const _0x4ceb16=_0x319e3a;this[_0x4ceb16(0xac)][_0x4ceb16(0x80)][_0x4ceb16(0xb1)](ah);},0x320)));}[_0x551811(0x79)](){const _0x1a1dba=_0x551811,_0x191bf3=new _0x22290e(this[_0x1a1dba(0x94)]);return _0x191bf3[_0x1a1dba(0x82)]({'icon':_0x229f47,'label':_0x2549e9(this[_0x1a1dba(0x94)],_0x1a1dba(0x70)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1a1dba(0x7b),'isEnabled':!0x1}),_0x191bf3['on'](_0x1a1dba(0x9b),()=>{const _0x9e922c=_0x1a1dba;this[_0x9e922c(0xa0)]();}),_0x191bf3;}[_0x551811(0x78)](_0x2183d2){const _0x34ff21=_0x551811;this[_0x34ff21(0x86)]=_0x2183d2;}[_0x551811(0x81)](){const _0x5883be=_0x551811,_0x55fe18=this[_0x5883be(0x94)],_0x1fda06=()=>{const _0x221487=_0x5883be;_0x130ee5[_0x221487(0x8e)][_0x221487(0x8b)](()=>{const _0x171142=_0x221487;if(_0x397fb6(this[_0x171142(0xac)])){const _0x5c9c9d=new _0x3470aa(this[_0x171142(0x87)][_0x171142(0x83)][_0x171142(0xac)]),_0x2e38bb=new _0x3470aa(this[_0x171142(0x9e)][_0x171142(0xac)]),_0x3f19de=_0x5c9c9d[_0x171142(0xa9)],_0x2238b7=_0x171142(0xa8)===_0x55fe18[_0x171142(0xa7)]?_0x171142(0xad):_0x171142(0x6f);_0x5c9c9d[_0x171142(0xa6)]();const _0x19ca49=_0x3f19de-_0x5c9c9d[_0x171142(0xa9)]+0x1;this[_0x171142(0x9e)][_0x171142(0xac)][_0x171142(0x85)][_0x2238b7]=_0x171142(0xa2)+(_0x3f19de-_0x2e38bb[_0x171142(0xa9)]-_0x19ca49)+_0x171142(0x97);}});};this[_0x5883be(0x87)][_0x5883be(0x83)]['on'](_0x5883be(0x88),_0x1fda06),this['on'](_0x5883be(0xb3),()=>{const _0x25d0f8=_0x5883be;_0x1fda06(),this[_0x25d0f8(0x7f)]=new _0x100aee(this[_0x25d0f8(0x87)][_0x25d0f8(0x83)][_0x25d0f8(0xac)],()=>{_0x1fda06();});});}}
23
+ const _0x12bfb7=_0x97ae;(function(_0x2e2c07,_0x45442b){const _0x573633=_0x97ae,_0x3a8241=_0x2e2c07();while(!![]){try{const _0x46ff99=parseInt(_0x573633(0x12f))/0x1*(parseInt(_0x573633(0x12d))/0x2)+-parseInt(_0x573633(0x118))/0x3+-parseInt(_0x573633(0x10e))/0x4+-parseInt(_0x573633(0x119))/0x5+-parseInt(_0x573633(0x10d))/0x6+-parseInt(_0x573633(0x103))/0x7+parseInt(_0x573633(0x10f))/0x8;if(_0x46ff99===_0x45442b)break;else _0x3a8241['push'](_0x3a8241['shift']());}catch(_0x48b171){_0x3a8241['push'](_0x3a8241['shift']());}}}(_0x3e0e,0xe843a));import{IconSubmit as _0x527afb}from'ckeditor5/src/icons.js';import{ButtonView as _0x5b65f2,AutocompleteView as _0x21b28b,createLabeledTextarea as _0x4ba8ce}from'ckeditor5/src/ui.js';import{global as _0x33c82a,isVisible as _0x568227,Rect as _0x354508,ResizeObserver as _0x3ef26d}from'ckeditor5/src/utils.js';function _0x3e0e(){const _0x93c26=['ck-ai-chat__prompt-input','calc(','submitButtonView','errorText','set','style','bind','fire','remove','queryView','extendTemplate','placeholder','sendUserMessage','ck-ai-chat__prompt-submit-button','render','reset','locale','add','setIsUploadInProgress','setPlaceholderText','px\x20-\x20var(--ck-spacing-tiny))','5474077PLxPKv','left','destroy','AI_CHAT_LABEL_SUBMIT','rtl','value','update','hasError','trim','ck-ai-chat__prompt-input_highlighted','3580110UbeoRL','5422864BLNYZU','41938544LzPmLh','right','_setUpAddContextButtonPositioning','_createSubmitButton','execute','excludeScrollbarsAndBorders','_queryViewResizeObserver','enter','focus','1439826KPwhbf','6918905KtuJCP','isUploadInProgress','_addContextButtonView','width','maxRows','fieldWrapperChildren','target','fieldView','focusableChildren','AI_CHAT_PROMPT_EMPTY_ERROR','MIN_ROWS','isEnabled','keystrokes','minRows','classList','requestAnimationFrame','MAX_ROWS','contains','element','isEmpty','614342oSANlx','window','1GTFMvq','uiLanguageDirection','submit'];_0x3e0e=function(){return _0x93c26;};return _0x3e0e();}function _0x97ae(_0x176a8c,_0x378348){const _0x3e0ea3=_0x3e0e();return _0x97ae=function(_0x97aed5,_0xcf13f8){_0x97aed5=_0x97aed5-0xf1;let _0x419141=_0x3e0ea3[_0x97aed5];return _0x419141;},_0x97ae(_0x176a8c,_0x378348);}import{getTranslation as _0x560ff6}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x11d35e}from'./aichatpromptsuggestionslistview.js';import{escape as _0x475f59}from'es-toolkit/compat';const mh=_0x12bfb7(0x10c);export class AIChatPromptInputView extends _0x21b28b{[_0x12bfb7(0x134)];static [_0x12bfb7(0x123)]=0x1;static [_0x12bfb7(0x129)]=0xc;[_0x12bfb7(0x11b)];[_0x12bfb7(0x115)];constructor(_0x282dab,_0x40f4b6){const _0x504d02=_0x12bfb7;super(_0x282dab,{'queryView':{'label':'','creator':_0x4ba8ce,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x11d35e(_0x282dab),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x504d02(0xf2)](_0x504d02(0x12c),!0x0),this[_0x504d02(0xf2)](_0x504d02(0x11a),!0x1),this[_0x504d02(0x11b)]=_0x40f4b6,this[_0x504d02(0x115)]=null,this[_0x504d02(0xf7)][_0x504d02(0x120)][_0x504d02(0x126)]=AIChatPromptInputView[_0x504d02(0x123)],this[_0x504d02(0xf7)][_0x504d02(0x120)][_0x504d02(0x11d)]=AIChatPromptInputView[_0x504d02(0x129)],this[_0x504d02(0xf7)][_0x504d02(0x11e)][_0x504d02(0xff)](this[_0x504d02(0x11b)]),this[_0x504d02(0x111)](),this[_0x504d02(0xf8)]({'attributes':{'class':['ck',_0x504d02(0x132)]}}),this[_0x504d02(0x134)]=this[_0x504d02(0x112)](),this[_0x504d02(0x134)][_0x504d02(0xf4)](_0x504d02(0x124))['to'](this,_0x504d02(0x12c),this,_0x504d02(0x11a),(_0x5ebdc0,_0x470882)=>!_0x5ebdc0&&!_0x470882),this[_0x504d02(0x121)][_0x504d02(0xff)](this[_0x504d02(0x134)]);}[_0x12bfb7(0xfc)](){const _0x4cf12e=_0x12bfb7;super[_0x4cf12e(0xfc)](),this[_0x4cf12e(0xf7)][_0x4cf12e(0x11e)][_0x4cf12e(0xff)](this[_0x4cf12e(0x134)]),this[_0x4cf12e(0x125)][_0x4cf12e(0xf2)](_0x4cf12e(0x116),(_0x25ad6f,_0x1e0daa)=>{const _0x2e507d=_0x4cf12e;this[_0x2e507d(0x11a)]||this[_0x2e507d(0x12c)]||_0x25ad6f[_0x2e507d(0x11f)]==this[_0x2e507d(0xf7)][_0x2e507d(0x120)][_0x2e507d(0x12b)]&&(this[_0x2e507d(0x131)](),_0x1e0daa());}),this[_0x4cf12e(0xf7)][_0x4cf12e(0x120)]['on'](_0x4cf12e(0x109),()=>{const _0x1bdc4e=_0x4cf12e;this[_0x1bdc4e(0x12c)]=''===this[_0x1bdc4e(0xf7)][_0x1bdc4e(0x120)][_0x1bdc4e(0x12b)][_0x1bdc4e(0x108)]?.[_0x1bdc4e(0x10b)]();});}[_0x12bfb7(0x105)](){const _0x270db9=_0x12bfb7;super[_0x270db9(0x105)](),this[_0x270db9(0x115)]&&this[_0x270db9(0x115)][_0x270db9(0x105)]();}[_0x12bfb7(0x131)](){const _0xeec068=_0x12bfb7,_0x30bbd7=this[_0xeec068(0xf7)][_0xeec068(0x120)][_0xeec068(0x12b)][_0xeec068(0x108)]?.[_0xeec068(0x10b)]();if(!_0x30bbd7)return this[_0xeec068(0xf7)][_0xeec068(0xf1)]=_0x560ff6(this[_0xeec068(0xfe)],_0xeec068(0x122)),void(this[_0xeec068(0xf7)][_0xeec068(0x120)][_0xeec068(0x10a)]=!0x0);this[_0xeec068(0xf7)][_0xeec068(0x120)][_0xeec068(0x10a)]=!0x1;const _0x190358=_0x475f59(_0x30bbd7);this[_0xeec068(0xf5)](_0xeec068(0xfa),_0x190358),this[_0xeec068(0xf7)][_0xeec068(0x120)][_0xeec068(0xfd)]();}[_0x12bfb7(0x101)](_0x1d55e7){const _0x30b6a0=_0x12bfb7;this[_0x30b6a0(0xf7)][_0x30b6a0(0x120)][_0x30b6a0(0xf2)](_0x30b6a0(0xf9),_0x1d55e7);}[_0x12bfb7(0x117)](_0x24b603=!0x1){const _0x262d7b=_0x12bfb7;super[_0x262d7b(0x117)](),_0x24b603&&(this[_0x262d7b(0x12b)][_0x262d7b(0x127)][_0x262d7b(0x12a)](mh)||(this[_0x262d7b(0x12b)][_0x262d7b(0x127)][_0x262d7b(0xff)](mh),setTimeout(()=>{const _0x5b5f75=_0x262d7b;this[_0x5b5f75(0x12b)][_0x5b5f75(0x127)][_0x5b5f75(0xf6)](mh);},0x320)));}[_0x12bfb7(0x112)](){const _0x5a4254=_0x12bfb7,_0x43c99f=new _0x5b65f2(this[_0x5a4254(0xfe)]);return _0x43c99f[_0x5a4254(0xf2)]({'icon':_0x527afb,'label':_0x560ff6(this[_0x5a4254(0xfe)],_0x5a4254(0x106)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5a4254(0xfb),'isEnabled':!0x1}),_0x43c99f['on'](_0x5a4254(0x113),()=>{const _0x4dd213=_0x5a4254;this[_0x4dd213(0x131)]();}),_0x43c99f;}[_0x12bfb7(0x100)](_0x4ff798){const _0x3eea3e=_0x12bfb7;this[_0x3eea3e(0x11a)]=_0x4ff798;}[_0x12bfb7(0x111)](){const _0x451023=_0x12bfb7,_0x19c502=this[_0x451023(0xfe)],_0x1f710f=()=>{const _0x167656=_0x451023;_0x33c82a[_0x167656(0x12e)][_0x167656(0x128)](()=>{const _0x537c6b=_0x167656;if(_0x568227(this[_0x537c6b(0x12b)])){const _0x1095f9=new _0x354508(this[_0x537c6b(0xf7)][_0x537c6b(0x120)][_0x537c6b(0x12b)]),_0x25cb83=new _0x354508(this[_0x537c6b(0x11b)][_0x537c6b(0x12b)]),_0x66e54f=_0x1095f9[_0x537c6b(0x11c)],_0x6b2eb=_0x537c6b(0x107)===_0x19c502[_0x537c6b(0x130)]?_0x537c6b(0x110):_0x537c6b(0x104);_0x1095f9[_0x537c6b(0x114)]();const _0x2dbe35=_0x66e54f-_0x1095f9[_0x537c6b(0x11c)]+0x1;this[_0x537c6b(0x11b)][_0x537c6b(0x12b)][_0x537c6b(0xf3)][_0x6b2eb]=_0x537c6b(0x133)+(_0x66e54f-_0x25cb83[_0x537c6b(0x11c)]-_0x2dbe35)+_0x537c6b(0x102);}});};this[_0x451023(0xf7)][_0x451023(0x120)]['on'](_0x451023(0x109),_0x1f710f),this['on'](_0x451023(0xfc),()=>{const _0x4d09fc=_0x451023;_0x1f710f(),this[_0x4d09fc(0x115)]=new _0x3ef26d(this[_0x4d09fc(0xf7)][_0x4d09fc(0x120)][_0x4d09fc(0x12b)],()=>{_0x1f710f();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2da3=_0x2b67;(function(_0x3e8fef,_0x3b421d){const _0x4b368b=_0x2b67,_0x2378e2=_0x3e8fef();while(!![]){try{const _0x254688=-parseInt(_0x4b368b(0x134))/0x1+parseInt(_0x4b368b(0x133))/0x2*(parseInt(_0x4b368b(0x12f))/0x3)+parseInt(_0x4b368b(0x136))/0x4+parseInt(_0x4b368b(0x135))/0x5+parseInt(_0x4b368b(0x12e))/0x6+parseInt(_0x4b368b(0x12c))/0x7+parseInt(_0x4b368b(0x12d))/0x8*(-parseInt(_0x4b368b(0x130))/0x9);if(_0x254688===_0x3b421d)break;else _0x2378e2['push'](_0x2378e2['shift']());}catch(_0x5cab2e){_0x2378e2['push'](_0x2378e2['shift']());}}}(_0x3e70,0xa9d7e));function _0x2b67(_0x66c382,_0x318c11){const _0x3e7059=_0x3e70();return _0x2b67=function(_0x2b6700,_0x5c4bd5){_0x2b6700=_0x2b6700-0x12c;let _0x400e4d=_0x3e7059[_0x2b6700];return _0x400e4d;},_0x2b67(_0x66c382,_0x318c11);}import{ListView as _0x2dc95e}from'ckeditor5/src/ui.js';function _0x3e70(){const _0x65a795=['115064rjjaeD','2580360HaVPyF','152373nWMlCe','603jMKKvZ','items','length','16hwBGuk','521913ZldfnP','313395pbMyoB','3154988ZKoCYI','filter','3454066ynALkZ'];_0x3e70=function(){return _0x65a795;};return _0x3e70();}export class AIChatPromptSuggestionsListView extends _0x2dc95e{[_0x2da3(0x137)](){const _0x26972b=_0x2da3;let _0x178e20=0x0;for(const _0x160a23 of this[_0x26972b(0x131)])_0x178e20+=_0x160a23[_0x26972b(0x131)][_0x26972b(0x132)];return{'resultsCount':_0x178e20,'totalItemsCount':_0x178e20};}}
23
+ function _0x258a(_0x1781ce,_0x4f39ef){const _0x1b4f8c=_0x1b4f();return _0x258a=function(_0x258a1c,_0x53de50){_0x258a1c=_0x258a1c-0x154;let _0x1c3831=_0x1b4f8c[_0x258a1c];return _0x1c3831;},_0x258a(_0x1781ce,_0x4f39ef);}const _0x4fa720=_0x258a;function _0x1b4f(){const _0x2be13f=['1548iHyJAa','78DsgQAI','92081UqxUrv','filter','584832ruTHJY','16nBXocQ','652822TibCje','50FWfyus','3qjiCqH','70535eiUGjC','1310818YcVMRk','1177605doSgvI','length','464604ewzHxk','items'];_0x1b4f=function(){return _0x2be13f;};return _0x1b4f();}(function(_0x29a4a7,_0x1212ba){const _0x32a655=_0x258a,_0x145d9f=_0x29a4a7();while(!![]){try{const _0x4553ee=parseInt(_0x32a655(0x15d))/0x1+-parseInt(_0x32a655(0x161))/0x2+parseInt(_0x32a655(0x15f))/0x3*(-parseInt(_0x32a655(0x15b))/0x4)+parseInt(_0x32a655(0x160))/0x5*(parseInt(_0x32a655(0x158))/0x6)+-parseInt(_0x32a655(0x155))/0x7*(-parseInt(_0x32a655(0x15c))/0x8)+parseInt(_0x32a655(0x162))/0x9*(-parseInt(_0x32a655(0x15e))/0xa)+parseInt(_0x32a655(0x159))/0xb*(parseInt(_0x32a655(0x157))/0xc);if(_0x4553ee===_0x1212ba)break;else _0x145d9f['push'](_0x145d9f['shift']());}catch(_0x1b898f){_0x145d9f['push'](_0x145d9f['shift']());}}}(_0x1b4f,0x90c4e));import{ListView as _0x51610c}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x51610c{[_0x4fa720(0x15a)](){const _0x3368b7=_0x4fa720;let _0x56312f=0x0;for(const _0x23dce8 of this[_0x3368b7(0x156)])_0x56312f+=_0x23dce8[_0x3368b7(0x156)][_0x3368b7(0x154)];return{'resultsCount':_0x56312f,'totalItemsCount':_0x56312f};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4a49(_0x586363,_0x5ef47c){const _0x13399a=_0x1339();return _0x4a49=function(_0x4a4998,_0x544602){_0x4a4998=_0x4a4998-0x86;let _0x2b109a=_0x13399a[_0x4a4998];return _0x2b109a;},_0x4a49(_0x586363,_0x5ef47c);}const _0x542dd9=_0x4a49;(function(_0x121b95,_0x533b2a){const _0x2119a7=_0x4a49,_0x593e85=_0x121b95();while(!![]){try{const _0x541c21=-parseInt(_0x2119a7(0xa1))/0x1*(parseInt(_0x2119a7(0x9a))/0x2)+-parseInt(_0x2119a7(0x8f))/0x3+-parseInt(_0x2119a7(0x9f))/0x4*(parseInt(_0x2119a7(0x93))/0x5)+-parseInt(_0x2119a7(0x89))/0x6+parseInt(_0x2119a7(0x8b))/0x7+parseInt(_0x2119a7(0x87))/0x8+parseInt(_0x2119a7(0x9b))/0x9*(parseInt(_0x2119a7(0xa3))/0xa);if(_0x541c21===_0x533b2a)break;else _0x593e85['push'](_0x593e85['shift']());}catch(_0x48d282){_0x593e85['push'](_0x593e85['shift']());}}}(_0x1339,0xa75ab));import{ListView as _0x1735c1}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x8b2333}from'./aichatresourcelistitemview.js';function _0x1339(){const _0x356eba=['highlightText','6962HxfXWD','useDefaultFiltering','19719140KXoptn','_source','ck-ai-chat-resources__list','replace','locale','3937184mUcSUH','clear','4837410CcCQkG','filter','478779CAhcnm','forEach','label','execute','607590nixMUB','setResources','extendTemplate','resource','30275GjZQkI','items','fire','_handleResourceSelection','\x5c$&','updateResourceState','add','166kDJoPP','9FbmSHF','trim','addResourceToContext','test','172alqYeZ'];_0x1339=function(){return _0x356eba;};return _0x1339();}const uc=_0x542dd9(0xa5);export class AIChatContextResourcesListView extends _0x1735c1{[_0x542dd9(0xa4)];constructor(_0x32eb16,_0x17f6e0){const _0x55f93f=_0x542dd9;super(_0x32eb16),this[_0x55f93f(0xa4)]=_0x17f6e0,this[_0x55f93f(0x91)]({'attributes':{'class':[uc]}});}[_0x542dd9(0x90)](_0x45a64f,_0x1ee9de){const _0x34e2ce=_0x542dd9;this[_0x34e2ce(0x94)][_0x34e2ce(0x88)]();let _0x3a72d7=_0x45a64f;if(this[_0x34e2ce(0xa4)][_0x34e2ce(0xa2)]&&_0x1ee9de&&''!==_0x1ee9de[_0x34e2ce(0x9c)]()){const _0x23bb1a=new RegExp(_0x1ee9de[_0x34e2ce(0xa6)](/[.*+?^${}()|[\]\\]/g,_0x34e2ce(0x97)),'gi');_0x3a72d7=_0x45a64f[_0x34e2ce(0x8a)](_0x15e3cf=>_0x23bb1a[_0x34e2ce(0x9e)](_0x15e3cf[_0x34e2ce(0x8d)]));}for(const _0x45c08a of _0x3a72d7){const _0xf6543=new _0x8b2333(this[_0x34e2ce(0x86)],_0x45c08a);_0xf6543['on'](_0x34e2ce(0x8e),()=>{const _0x4a32ed=_0x34e2ce;this[_0x4a32ed(0x96)](this[_0x4a32ed(0xa4)],_0x45c08a);}),this[_0x34e2ce(0x94)][_0x34e2ce(0x99)](_0xf6543);}this[_0x34e2ce(0xa4)][_0x34e2ce(0xa2)]&&this[_0x34e2ce(0xa0)](_0x1ee9de);}[_0x542dd9(0xa0)](_0x35d93e){const _0xfb776=_0x542dd9;this[_0xfb776(0xa4)][_0xfb776(0xa2)]&&this[_0xfb776(0x94)][_0xfb776(0x8c)](_0x22341a=>{const _0xbc1bbd=_0xfb776;_0x22341a[_0xbc1bbd(0xa0)](_0x35d93e);});}[_0x542dd9(0x98)](_0x4c0d03,_0x531ffa){const _0x8d8b8c=_0x542dd9;for(const _0x586569 of this[_0x8d8b8c(0x94)]){const _0x50a24a=_0x586569;_0x50a24a[_0x8d8b8c(0x92)]['id']===_0x4c0d03&&_0x50a24a[_0x8d8b8c(0x98)](_0x531ffa);}}[_0x542dd9(0x96)](_0x41f1f8,_0x5b5ab4){const _0x4e28c1=_0x542dd9;this[_0x4e28c1(0x95)](_0x4e28c1(0x9d),{'source':_0x41f1f8,'resource':_0x5b5ab4});}}
23
+ function _0x3bd0(){const _0x30d527=['updateResourceState','fire','addResourceToContext','clear','extendTemplate','\x5c$&','6636690yFqNcJ','forEach','label','filter','52nimTUJ','4762626agAEIU','trim','259495iPkaUS','1694ZhWBGb','_source','locale','resource','test','add','useDefaultFiltering','replace','ck-ai-chat-resources__list','execute','_handleResourceSelection','highlightText','32240wscRpV','1556058hGEBVx','660100lkYQNN','setResources','items','2166226mwlEpe'];_0x3bd0=function(){return _0x30d527;};return _0x3bd0();}const _0x201448=_0x4f5e;(function(_0x1f3fd4,_0x3fc270){const _0x2359bf=_0x4f5e,_0x210e23=_0x1f3fd4();while(!![]){try{const _0x2f8a61=-parseInt(_0x2359bf(0x1b5))/0x1+parseInt(_0x2359bf(0x1b8))/0x2+parseInt(_0x2359bf(0x1b4))/0x3+parseInt(_0x2359bf(0x1a3))/0x4*(parseInt(_0x2359bf(0x1a6))/0x5)+-parseInt(_0x2359bf(0x1a4))/0x6+-parseInt(_0x2359bf(0x1a7))/0x7*(parseInt(_0x2359bf(0x1b3))/0x8)+parseInt(_0x2359bf(0x1bf))/0x9;if(_0x2f8a61===_0x3fc270)break;else _0x210e23['push'](_0x210e23['shift']());}catch(_0x457827){_0x210e23['push'](_0x210e23['shift']());}}}(_0x3bd0,0x8ec3d));import{ListView as _0x237158}from'ckeditor5/src/ui.js';function _0x4f5e(_0x1a3688,_0x101716){const _0x3bd055=_0x3bd0();return _0x4f5e=function(_0x4f5ef0,_0x370bf4){_0x4f5ef0=_0x4f5ef0-0x1a0;let _0x56d877=_0x3bd055[_0x4f5ef0];return _0x56d877;},_0x4f5e(_0x1a3688,_0x101716);}import{AIChatResourceListItemView as _0x58390e}from'./aichatresourcelistitemview.js';const hc=_0x201448(0x1af);export class AIChatContextResourcesListView extends _0x237158{[_0x201448(0x1a8)];constructor(_0x96f326,_0x567374){const _0xc6ec4b=_0x201448;super(_0x96f326),this[_0xc6ec4b(0x1a8)]=_0x567374,this[_0xc6ec4b(0x1bd)]({'attributes':{'class':[hc]}});}[_0x201448(0x1b6)](_0x2159a2,_0x311d3d){const _0x25750e=_0x201448;this[_0x25750e(0x1b7)][_0x25750e(0x1bc)]();let _0x12091f=_0x2159a2;if(this[_0x25750e(0x1a8)][_0x25750e(0x1ad)]&&_0x311d3d&&''!==_0x311d3d[_0x25750e(0x1a5)]()){const _0x3e7bb0=new RegExp(_0x311d3d[_0x25750e(0x1ae)](/[.*+?^${}()|[\]\\]/g,_0x25750e(0x1be)),'gi');_0x12091f=_0x2159a2[_0x25750e(0x1a2)](_0x58ec8b=>_0x3e7bb0[_0x25750e(0x1ab)](_0x58ec8b[_0x25750e(0x1a1)]));}for(const _0x390ae0 of _0x12091f){const _0x388be2=new _0x58390e(this[_0x25750e(0x1a9)],_0x390ae0);_0x388be2['on'](_0x25750e(0x1b0),()=>{const _0x56f0e2=_0x25750e;this[_0x56f0e2(0x1b1)](this[_0x56f0e2(0x1a8)],_0x390ae0);}),this[_0x25750e(0x1b7)][_0x25750e(0x1ac)](_0x388be2);}this[_0x25750e(0x1a8)][_0x25750e(0x1ad)]&&this[_0x25750e(0x1b2)](_0x311d3d);}[_0x201448(0x1b2)](_0x328b59){const _0x5e6783=_0x201448;this[_0x5e6783(0x1a8)][_0x5e6783(0x1ad)]&&this[_0x5e6783(0x1b7)][_0x5e6783(0x1a0)](_0x13987f=>{const _0x32b3ee=_0x5e6783;_0x13987f[_0x32b3ee(0x1b2)](_0x328b59);});}[_0x201448(0x1b9)](_0x5b149d,_0x47eb1e){const _0x2fc792=_0x201448;for(const _0x191c51 of this[_0x2fc792(0x1b7)]){const _0x49553c=_0x191c51;_0x49553c[_0x2fc792(0x1aa)]['id']===_0x5b149d&&_0x49553c[_0x2fc792(0x1b9)](_0x47eb1e);}}[_0x201448(0x1b1)](_0x2bd009,_0x51b9c1){const _0x79eb68=_0x201448;this[_0x79eb68(0x1ba)](_0x79eb68(0x1bb),{'source':_0x2bd009,'resource':_0x51b9c1});}}