@ckeditor/ckeditor5-ai 47.2.0 → 47.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (472) hide show
  1. package/LICENSE.md +16 -20
  2. package/build/ai.js +2 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/ast.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/be.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/eo.js +1 -1
  20. package/build/translations/es-co.js +1 -1
  21. package/build/translations/es.js +1 -1
  22. package/build/translations/et.js +1 -1
  23. package/build/translations/eu.js +1 -1
  24. package/build/translations/fa.js +1 -1
  25. package/build/translations/fi.js +1 -1
  26. package/build/translations/fr.js +1 -1
  27. package/build/translations/gl.js +1 -1
  28. package/build/translations/gu.js +1 -1
  29. package/build/translations/he.js +1 -1
  30. package/build/translations/hi.js +1 -1
  31. package/build/translations/hr.js +1 -1
  32. package/build/translations/hu.js +1 -1
  33. package/build/translations/hy.js +1 -1
  34. package/build/translations/id.js +1 -1
  35. package/build/translations/it.js +1 -1
  36. package/build/translations/ja.js +1 -1
  37. package/build/translations/jv.js +1 -1
  38. package/build/translations/kk.js +1 -1
  39. package/build/translations/km.js +1 -1
  40. package/build/translations/kn.js +1 -1
  41. package/build/translations/ko.js +1 -1
  42. package/build/translations/ku.js +1 -1
  43. package/build/translations/lt.js +1 -1
  44. package/build/translations/lv.js +1 -1
  45. package/build/translations/ms.js +1 -1
  46. package/build/translations/nb.js +1 -1
  47. package/build/translations/ne.js +1 -1
  48. package/build/translations/nl.js +1 -1
  49. package/build/translations/no.js +1 -1
  50. package/build/translations/oc.js +1 -1
  51. package/build/translations/pl.js +1 -1
  52. package/build/translations/pt-br.js +1 -1
  53. package/build/translations/pt.js +1 -1
  54. package/build/translations/ro.js +1 -1
  55. package/build/translations/ru.js +1 -1
  56. package/build/translations/si.js +1 -1
  57. package/build/translations/sk.js +1 -1
  58. package/build/translations/sl.js +1 -1
  59. package/build/translations/sq.js +1 -1
  60. package/build/translations/sr-latn.js +1 -1
  61. package/build/translations/sr.js +1 -1
  62. package/build/translations/sv.js +1 -1
  63. package/build/translations/th.js +1 -1
  64. package/build/translations/ti.js +1 -1
  65. package/build/translations/tk.js +1 -1
  66. package/build/translations/tr.js +1 -1
  67. package/build/translations/tt.js +1 -1
  68. package/build/translations/ug.js +1 -1
  69. package/build/translations/uk.js +1 -1
  70. package/build/translations/ur.js +1 -1
  71. package/build/translations/uz.js +1 -1
  72. package/build/translations/vi.js +1 -1
  73. package/build/translations/zh-cn.js +1 -1
  74. package/build/translations/zh.js +1 -1
  75. package/dist/index-editor.css +285 -65
  76. package/dist/index.css +286 -68
  77. package/dist/index.js +5 -5
  78. package/dist/translations/af.js +1 -1
  79. package/dist/translations/af.umd.js +1 -1
  80. package/dist/translations/ar.js +1 -1
  81. package/dist/translations/ar.umd.js +1 -1
  82. package/dist/translations/ast.js +1 -1
  83. package/dist/translations/ast.umd.js +1 -1
  84. package/dist/translations/az.js +1 -1
  85. package/dist/translations/az.umd.js +1 -1
  86. package/dist/translations/be.js +1 -1
  87. package/dist/translations/be.umd.js +1 -1
  88. package/dist/translations/bg.js +1 -1
  89. package/dist/translations/bg.umd.js +1 -1
  90. package/dist/translations/bn.js +1 -1
  91. package/dist/translations/bn.umd.js +1 -1
  92. package/dist/translations/bs.js +1 -1
  93. package/dist/translations/bs.umd.js +1 -1
  94. package/dist/translations/ca.js +1 -1
  95. package/dist/translations/ca.umd.js +1 -1
  96. package/dist/translations/cs.js +1 -1
  97. package/dist/translations/cs.umd.js +1 -1
  98. package/dist/translations/da.js +1 -1
  99. package/dist/translations/da.umd.js +1 -1
  100. package/dist/translations/de-ch.js +1 -1
  101. package/dist/translations/de-ch.umd.js +1 -1
  102. package/dist/translations/de.js +1 -1
  103. package/dist/translations/de.umd.js +1 -1
  104. package/dist/translations/el.js +1 -1
  105. package/dist/translations/el.umd.js +1 -1
  106. package/dist/translations/en-au.js +1 -1
  107. package/dist/translations/en-au.umd.js +1 -1
  108. package/dist/translations/en-gb.js +1 -1
  109. package/dist/translations/en-gb.umd.js +1 -1
  110. package/dist/translations/en.js +1 -1
  111. package/dist/translations/en.umd.js +1 -1
  112. package/dist/translations/eo.js +1 -1
  113. package/dist/translations/eo.umd.js +1 -1
  114. package/dist/translations/es-co.js +1 -1
  115. package/dist/translations/es-co.umd.js +1 -1
  116. package/dist/translations/es.js +1 -1
  117. package/dist/translations/es.umd.js +1 -1
  118. package/dist/translations/et.js +1 -1
  119. package/dist/translations/et.umd.js +1 -1
  120. package/dist/translations/eu.js +1 -1
  121. package/dist/translations/eu.umd.js +1 -1
  122. package/dist/translations/fa.js +1 -1
  123. package/dist/translations/fa.umd.js +1 -1
  124. package/dist/translations/fi.js +1 -1
  125. package/dist/translations/fi.umd.js +1 -1
  126. package/dist/translations/fr.js +1 -1
  127. package/dist/translations/fr.umd.js +1 -1
  128. package/dist/translations/gl.js +1 -1
  129. package/dist/translations/gl.umd.js +1 -1
  130. package/dist/translations/gu.js +1 -1
  131. package/dist/translations/gu.umd.js +1 -1
  132. package/dist/translations/he.js +1 -1
  133. package/dist/translations/he.umd.js +1 -1
  134. package/dist/translations/hi.js +1 -1
  135. package/dist/translations/hi.umd.js +1 -1
  136. package/dist/translations/hr.js +1 -1
  137. package/dist/translations/hr.umd.js +1 -1
  138. package/dist/translations/hu.js +1 -1
  139. package/dist/translations/hu.umd.js +1 -1
  140. package/dist/translations/hy.js +1 -1
  141. package/dist/translations/hy.umd.js +1 -1
  142. package/dist/translations/id.js +1 -1
  143. package/dist/translations/id.umd.js +1 -1
  144. package/dist/translations/it.js +1 -1
  145. package/dist/translations/it.umd.js +1 -1
  146. package/dist/translations/ja.js +1 -1
  147. package/dist/translations/ja.umd.js +1 -1
  148. package/dist/translations/jv.js +1 -1
  149. package/dist/translations/jv.umd.js +1 -1
  150. package/dist/translations/kk.js +1 -1
  151. package/dist/translations/kk.umd.js +1 -1
  152. package/dist/translations/km.js +1 -1
  153. package/dist/translations/km.umd.js +1 -1
  154. package/dist/translations/kn.js +1 -1
  155. package/dist/translations/kn.umd.js +1 -1
  156. package/dist/translations/ko.js +1 -1
  157. package/dist/translations/ko.umd.js +1 -1
  158. package/dist/translations/ku.js +1 -1
  159. package/dist/translations/ku.umd.js +1 -1
  160. package/dist/translations/lt.js +1 -1
  161. package/dist/translations/lt.umd.js +1 -1
  162. package/dist/translations/lv.js +1 -1
  163. package/dist/translations/lv.umd.js +1 -1
  164. package/dist/translations/ms.js +1 -1
  165. package/dist/translations/ms.umd.js +1 -1
  166. package/dist/translations/nb.js +1 -1
  167. package/dist/translations/nb.umd.js +1 -1
  168. package/dist/translations/ne.js +1 -1
  169. package/dist/translations/ne.umd.js +1 -1
  170. package/dist/translations/nl.js +1 -1
  171. package/dist/translations/nl.umd.js +1 -1
  172. package/dist/translations/no.js +1 -1
  173. package/dist/translations/no.umd.js +1 -1
  174. package/dist/translations/oc.js +1 -1
  175. package/dist/translations/oc.umd.js +1 -1
  176. package/dist/translations/pl.js +1 -1
  177. package/dist/translations/pl.umd.js +1 -1
  178. package/dist/translations/pt-br.js +1 -1
  179. package/dist/translations/pt-br.umd.js +1 -1
  180. package/dist/translations/pt.js +1 -1
  181. package/dist/translations/pt.umd.js +1 -1
  182. package/dist/translations/ro.js +1 -1
  183. package/dist/translations/ro.umd.js +1 -1
  184. package/dist/translations/ru.js +1 -1
  185. package/dist/translations/ru.umd.js +1 -1
  186. package/dist/translations/si.js +1 -1
  187. package/dist/translations/si.umd.js +1 -1
  188. package/dist/translations/sk.js +1 -1
  189. package/dist/translations/sk.umd.js +1 -1
  190. package/dist/translations/sl.js +1 -1
  191. package/dist/translations/sl.umd.js +1 -1
  192. package/dist/translations/sq.js +1 -1
  193. package/dist/translations/sq.umd.js +1 -1
  194. package/dist/translations/sr-latn.js +1 -1
  195. package/dist/translations/sr-latn.umd.js +1 -1
  196. package/dist/translations/sr.js +1 -1
  197. package/dist/translations/sr.umd.js +1 -1
  198. package/dist/translations/sv.js +1 -1
  199. package/dist/translations/sv.umd.js +1 -1
  200. package/dist/translations/th.js +1 -1
  201. package/dist/translations/th.umd.js +1 -1
  202. package/dist/translations/ti.js +1 -1
  203. package/dist/translations/ti.umd.js +1 -1
  204. package/dist/translations/tk.js +1 -1
  205. package/dist/translations/tk.umd.js +1 -1
  206. package/dist/translations/tr.js +1 -1
  207. package/dist/translations/tr.umd.js +1 -1
  208. package/dist/translations/tt.js +1 -1
  209. package/dist/translations/tt.umd.js +1 -1
  210. package/dist/translations/ug.js +1 -1
  211. package/dist/translations/ug.umd.js +1 -1
  212. package/dist/translations/uk.js +1 -1
  213. package/dist/translations/uk.umd.js +1 -1
  214. package/dist/translations/ur.js +1 -1
  215. package/dist/translations/ur.umd.js +1 -1
  216. package/dist/translations/uz.js +1 -1
  217. package/dist/translations/uz.umd.js +1 -1
  218. package/dist/translations/vi.js +1 -1
  219. package/dist/translations/vi.umd.js +1 -1
  220. package/dist/translations/zh-cn.js +1 -1
  221. package/dist/translations/zh-cn.umd.js +1 -1
  222. package/dist/translations/zh.js +1 -1
  223. package/dist/translations/zh.umd.js +1 -1
  224. package/lang/contexts.json +10 -1
  225. package/lang/translations/af.po +36 -0
  226. package/lang/translations/ar.po +36 -0
  227. package/lang/translations/ast.po +36 -0
  228. package/lang/translations/az.po +36 -0
  229. package/lang/translations/be.po +36 -0
  230. package/lang/translations/bg.po +36 -0
  231. package/lang/translations/bn.po +36 -0
  232. package/lang/translations/bs.po +36 -0
  233. package/lang/translations/ca.po +36 -0
  234. package/lang/translations/cs.po +36 -0
  235. package/lang/translations/da.po +36 -0
  236. package/lang/translations/de-ch.po +36 -0
  237. package/lang/translations/de.po +36 -0
  238. package/lang/translations/el.po +36 -0
  239. package/lang/translations/en-au.po +36 -0
  240. package/lang/translations/en-gb.po +36 -0
  241. package/lang/translations/en.po +36 -0
  242. package/lang/translations/eo.po +36 -0
  243. package/lang/translations/es-co.po +36 -0
  244. package/lang/translations/es.po +36 -0
  245. package/lang/translations/et.po +36 -0
  246. package/lang/translations/eu.po +36 -0
  247. package/lang/translations/fa.po +36 -0
  248. package/lang/translations/fi.po +36 -0
  249. package/lang/translations/fr.po +36 -0
  250. package/lang/translations/gl.po +36 -0
  251. package/lang/translations/gu.po +36 -0
  252. package/lang/translations/he.po +36 -0
  253. package/lang/translations/hi.po +36 -0
  254. package/lang/translations/hr.po +36 -0
  255. package/lang/translations/hu.po +36 -0
  256. package/lang/translations/hy.po +36 -0
  257. package/lang/translations/id.po +36 -0
  258. package/lang/translations/it.po +36 -0
  259. package/lang/translations/ja.po +36 -0
  260. package/lang/translations/jv.po +36 -0
  261. package/lang/translations/kk.po +36 -0
  262. package/lang/translations/km.po +36 -0
  263. package/lang/translations/kn.po +36 -0
  264. package/lang/translations/ko.po +36 -0
  265. package/lang/translations/ku.po +36 -0
  266. package/lang/translations/lt.po +36 -0
  267. package/lang/translations/lv.po +36 -0
  268. package/lang/translations/ms.po +36 -0
  269. package/lang/translations/nb.po +36 -0
  270. package/lang/translations/ne.po +36 -0
  271. package/lang/translations/nl.po +36 -0
  272. package/lang/translations/no.po +36 -0
  273. package/lang/translations/oc.po +36 -0
  274. package/lang/translations/pl.po +36 -0
  275. package/lang/translations/pt-br.po +36 -0
  276. package/lang/translations/pt.po +36 -0
  277. package/lang/translations/ro.po +36 -0
  278. package/lang/translations/ru.po +36 -0
  279. package/lang/translations/si.po +36 -0
  280. package/lang/translations/sk.po +36 -0
  281. package/lang/translations/sl.po +36 -0
  282. package/lang/translations/sq.po +36 -0
  283. package/lang/translations/sr-latn.po +36 -0
  284. package/lang/translations/sr.po +36 -0
  285. package/lang/translations/sv.po +36 -0
  286. package/lang/translations/th.po +36 -0
  287. package/lang/translations/ti.po +36 -0
  288. package/lang/translations/tk.po +36 -0
  289. package/lang/translations/tr.po +36 -0
  290. package/lang/translations/tt.po +36 -0
  291. package/lang/translations/ug.po +36 -0
  292. package/lang/translations/uk.po +36 -0
  293. package/lang/translations/ur.po +36 -0
  294. package/lang/translations/uz.po +36 -0
  295. package/lang/translations/vi.po +36 -0
  296. package/lang/translations/zh-cn.po +36 -0
  297. package/lang/translations/zh.po +36 -0
  298. package/package.json +15 -15
  299. package/src/aiactions/aiactions.js +1 -1
  300. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  301. package/src/aiactions/model/aiactionsreply.js +1 -1
  302. package/src/aiassistant/adapters/aiadapter.js +1 -1
  303. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  304. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  305. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  306. package/src/aiassistant/aiassistant.js +1 -1
  307. package/src/aiassistant/aiassistantediting.js +1 -1
  308. package/src/aiassistant/aiassistantui.js +1 -1
  309. package/src/aiassistant/legacyerrors.js +1 -1
  310. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  311. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  312. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformview.js +1 -1
  316. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  318. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  319. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  320. package/src/aiassistant/utils/common-translations.js +1 -1
  321. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  322. package/src/aiballoon/aiballoon.d.ts +8 -0
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  325. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  326. package/src/aiballoon/ui/aiballoonview.d.ts +12 -0
  327. package/src/aiballoon/ui/aiballoonview.js +1 -1
  328. package/src/aichat/aichat.js +1 -1
  329. package/src/aichat/aichatcontroller.js +1 -1
  330. package/src/aichat/aichatui.js +1 -1
  331. package/src/aichat/model/aichatcontext.d.ts +1 -1
  332. package/src/aichat/model/aichatcontext.js +1 -1
  333. package/src/aichat/model/aichatconversation.js +1 -1
  334. package/src/aichat/model/aichatinteraction.js +1 -1
  335. package/src/aichat/model/aichatmodels.js +1 -1
  336. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  337. package/src/aichat/ui/aichatfeedview.js +1 -1
  338. package/src/aichat/ui/aichatheaderview.js +1 -1
  339. package/src/aichat/ui/aichatview.js +1 -1
  340. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  341. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  342. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  343. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  345. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  346. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  347. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  348. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  349. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  350. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  351. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  353. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  354. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  355. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  356. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  361. package/src/aichat/utils/eventnames.js +1 -1
  362. package/src/aichat/utils/promisequeue.js +1 -1
  363. package/src/aichathistory/aichathistory.js +1 -1
  364. package/src/aichathistory/aichathistorycontroller.js +1 -1
  365. package/src/aichathistory/aichathistoryui.js +1 -1
  366. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  367. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  368. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  369. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  370. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  371. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  372. package/src/aicore/aiconnector.js +1 -1
  373. package/src/aicore/aiediting.js +1 -1
  374. package/src/aicore/model/aicapabilities.js +1 -1
  375. package/src/aicore/model/aicontext.js +1 -1
  376. package/src/aicore/model/aiinteraction.js +1 -1
  377. package/src/aicore/model/aimodels.js +1 -1
  378. package/src/aicore/model/aireply.js +1 -1
  379. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  380. package/src/aicore/pipeline/airesponseparser.js +2 -2
  381. package/src/aicore/ui/aidisclaimerview.js +1 -1
  382. package/src/aicore/ui/aiskeleton.js +1 -1
  383. package/src/aicore/ui/aispinner.js +1 -1
  384. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  385. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  386. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  387. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  388. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  389. package/src/aicore/utils/common-translations.js +1 -1
  390. package/src/aicore/utils/createresizebutton.js +1 -1
  391. package/src/aicore/utils/documentposition.js +1 -1
  392. package/src/aicore/utils/documentrange.js +1 -1
  393. package/src/aicore/utils/eventnames.js +1 -1
  394. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  395. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  396. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  397. package/src/aicore/utils/htmlparser.js +1 -1
  398. package/src/aicore/utils/htmlstreamer.js +1 -1
  399. package/src/aicore/utils/scrollmanager.js +23 -0
  400. package/src/aieditorintegration/aieditorintegration.js +1 -1
  401. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  402. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  403. package/src/aiquickactions/aiquickactions.d.ts +24 -1
  404. package/src/aiquickactions/aiquickactions.js +1 -1
  405. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  406. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  407. package/src/aiquickactions/aiquickactionsui.d.ts +5 -1
  408. package/src/aiquickactions/aiquickactionsui.js +1 -1
  409. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +39 -6
  410. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  411. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +6 -1
  412. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  413. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +30 -5
  414. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  415. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +5 -0
  416. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +23 -0
  417. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +29 -0
  418. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +23 -0
  419. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  420. package/src/aireviewmode/aireviewmode.js +1 -1
  421. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  422. package/src/aireviewmode/aireviewmodeediting.d.ts +16 -0
  423. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  424. package/src/aireviewmode/aireviewmodeui.d.ts +8 -2
  425. package/src/aireviewmode/aireviewmodeui.js +1 -1
  426. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  427. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  428. package/src/aireviewmode/model/aireviewchecklist.d.ts +4 -0
  429. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  430. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  431. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  432. package/src/aireviewmode/model/aireviewcheckrun.d.ts +6 -0
  433. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  434. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  435. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  436. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  437. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +11 -2
  438. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  439. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  440. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  441. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  442. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +24 -0
  443. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +23 -0
  444. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  445. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  446. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  447. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  448. package/src/aireviewmode/ui/aireviewmodeview.d.ts +7 -1
  449. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  450. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  451. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  452. package/src/aitabs/aitabs.js +1 -1
  453. package/src/aitabs/aitabsmainview.js +1 -1
  454. package/src/aitabs/tabs/aitabsview.js +1 -1
  455. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  456. package/src/aitabs/tabs/tabpanelview.js +1 -1
  457. package/src/errors.js +1 -1
  458. package/src/errorsmap.d.ts +8 -0
  459. package/src/errorsmap.js +23 -0
  460. package/src/index.js +1 -1
  461. package/theme/aiballoon/aiballoon.css +26 -0
  462. package/theme/aichat/aichat.css +1 -3
  463. package/theme/aichat/aichathistory.css +1 -1
  464. package/theme/aichat/aisuggestioncontainer.css +1 -1
  465. package/theme/aiquickactions/aiquickactions.css +139 -25
  466. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +24 -0
  467. package/theme/aireviewmode/aireviewmode-check-run.css +13 -0
  468. package/theme/aireviewmode/aireviewmode.css +33 -10
  469. package/theme/common/{aichaterror.css → ainotification.css} +17 -14
  470. package/theme/common/aitrackchanges.css +9 -0
  471. package/src/aichat/utils/scrollmanager.js +0 -23
  472. /package/src/{aichat → aicore}/utils/scrollmanager.d.ts +0 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x692fce=_0x44cd;(function(_0x3841c2,_0x8dbab3){const _0x272aeb=_0x44cd,_0x318110=_0x3841c2();while(!![]){try{const _0x42fac2=parseInt(_0x272aeb(0x1d4))/0x1+parseInt(_0x272aeb(0x1cb))/0x2*(parseInt(_0x272aeb(0x1dd))/0x3)+-parseInt(_0x272aeb(0x1fd))/0x4+parseInt(_0x272aeb(0x1f6))/0x5*(-parseInt(_0x272aeb(0x1d2))/0x6)+-parseInt(_0x272aeb(0x1da))/0x7*(-parseInt(_0x272aeb(0x1db))/0x8)+parseInt(_0x272aeb(0x1ea))/0x9+-parseInt(_0x272aeb(0x1fe))/0xa*(parseInt(_0x272aeb(0x1d3))/0xb);if(_0x42fac2===_0x8dbab3)break;else _0x318110['push'](_0x318110['shift']());}catch(_0x526b55){_0x318110['push'](_0x318110['shift']());}}}(_0x2627,0x3890c));import{Command as _0x3c91d3}from'ckeditor5/src/core.js';import{CKEditorError as _0x5aea4b,first as _0xedab31}from'ckeditor5/src/utils.js';function _0x44cd(_0x19a866,_0x1ddb67){const _0x262757=_0x2627();return _0x44cd=function(_0x44cd93,_0x5a4724){_0x44cd93=_0x44cd93-0x1c2;let _0x39ea88=_0x262757[_0x44cd93];return _0x39ea88;},_0x44cd(_0x19a866,_0x1ddb67);}import{AIQuickActionType as _0x435dd4}from'./aiquickactionsui.js';import{getTranslation as _0x176089}from'../aicore/utils/common-translations.js';function _0x2627(){const _0x39df76=['other','selection','AIChat','startConversation','log','AIReviewMode','_handleAIReviewAction','locale','244106lUakPK','addSelectionToChatContext','AIActions','handleAIReviewAction','prompt','setSelection','sendMessage','1109994WcMHhC','70972qyGGAk','1496rxHHHs','ai-quick-actions-plugin-not-found','parent','_expandSelectionIfCollapsed','editor','isCollapsed','7UexgkV','1729456ItgWUg','removeSelectionFromChatContext','3CuawnP','plugins','label','document','displayedPrompt','view','ACTION','REVIEW','CHAT','AIChatController','ask-ai','actionName','_handleAIActionsActionLabel','3193767eFGXMk','has','icon','getSelectedBlocks','get','args','type','_handleAIChatAction','activateTab','model','AITabs','_handleAIActionsAction','5LkkozS','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','chat','getLimitElement','execute','change','schema','827724GZcXOC','110qJGeqV','focusPromptInput','executeAction'];_0x2627=function(){return _0x39df76;};return _0x2627();}export class AIQuickActionsCommand extends _0x3c91d3{[_0x692fce(0x1fa)](_0x58b41f){const _0x22ba3c=_0x692fce;switch(this[_0x22ba3c(0x1d7)](),_0x58b41f[_0x22ba3c(0x1f0)]){case _0x435dd4[_0x22ba3c(0x1e5)]:if(!this[_0x22ba3c(0x1d8)][_0x22ba3c(0x1de)][_0x22ba3c(0x1eb)](_0x22ba3c(0x1c5))){const _0x2efaa8=_0x176089(this[_0x22ba3c(0x1d8)][_0x22ba3c(0x1ca)],_0x22ba3c(0x1f7),_0x22ba3c(0x1c5));throw new _0x5aea4b(_0x22ba3c(0x1d5),this[_0x22ba3c(0x1d8)],{'errorMessage':_0x2efaa8});}this[_0x22ba3c(0x1f1)](_0x58b41f);break;case _0x435dd4[_0x22ba3c(0x1e3)]:if(!this[_0x22ba3c(0x1d8)][_0x22ba3c(0x1de)][_0x22ba3c(0x1eb)](_0x22ba3c(0x1cd))){const _0xbdf2a5=_0x176089(this[_0x22ba3c(0x1d8)][_0x22ba3c(0x1ca)],_0x22ba3c(0x1f7),_0x22ba3c(0x1cd));throw new _0x5aea4b(_0x22ba3c(0x1d5),this[_0x22ba3c(0x1d8)],{'errorMessage':_0xbdf2a5});}this[_0x22ba3c(0x1f5)](_0x58b41f);break;case _0x435dd4[_0x22ba3c(0x1e4)]:if(!this[_0x22ba3c(0x1d8)][_0x22ba3c(0x1de)][_0x22ba3c(0x1eb)](_0x22ba3c(0x1c8))){const _0x4031cd=_0x176089(this[_0x22ba3c(0x1d8)][_0x22ba3c(0x1ca)],_0x22ba3c(0x1f7),_0x22ba3c(0x1c8));throw new _0x5aea4b(_0x22ba3c(0x1d5),this[_0x22ba3c(0x1d8)],{'errorMessage':_0x4031cd});}this[_0x22ba3c(0x1c9)](_0x58b41f);}}async[_0x692fce(0x1f1)](_0x10470a){const _0x42910a=_0x692fce,_0x38c0f8=this[_0x42910a(0x1d8)][_0x42910a(0x1de)][_0x42910a(0x1ee)](_0x42910a(0x1c5)),_0x5b6009=this[_0x42910a(0x1d8)][_0x42910a(0x1de)][_0x42910a(0x1ee)](_0x42910a(0x1e6));if(this[_0x42910a(0x1d8)][_0x42910a(0x1de)][_0x42910a(0x1ee)](_0x42910a(0x1f4))[_0x42910a(0x1e2)][_0x42910a(0x1f2)](_0x42910a(0x1f8)),_0x42910a(0x1e7)===_0x10470a['id'])_0x5b6009[_0x42910a(0x1dc)](),await _0x38c0f8[_0x42910a(0x1cc)](),_0x38c0f8[_0x42910a(0x1ff)]();else await _0x38c0f8[_0x42910a(0x1c6)](),_0x5b6009[_0x42910a(0x1dc)](),await _0x38c0f8[_0x42910a(0x1cc)](),_0x38c0f8[_0x42910a(0x1ff)](),await _0x38c0f8[_0x42910a(0x1d1)]({'message':_0x10470a[_0x42910a(0x1cf)]||_0x10470a[_0x42910a(0x1e1)],'quickActionData':{'id':_0x10470a['id'],'displayedPrompt':_0x10470a[_0x42910a(0x1e1)]}});}[_0x692fce(0x1d7)](){const _0x2fa62b=_0x692fce,_0x518d81=this[_0x2fa62b(0x1d8)],_0x32cdb6=_0x518d81[_0x2fa62b(0x1f3)][_0x2fa62b(0x1e0)][_0x2fa62b(0x1c4)];if(!_0x32cdb6[_0x2fa62b(0x1d9)])return;const _0x4c4bab=_0xedab31(_0x32cdb6[_0x2fa62b(0x1ed)]())||_0x518d81[_0x2fa62b(0x1f3)][_0x2fa62b(0x1fc)][_0x2fa62b(0x1f9)](_0x32cdb6);_0x518d81[_0x2fa62b(0x1f3)][_0x2fa62b(0x1fb)](_0x2aaf6f=>{const _0x22441d=_0x2fa62b;_0x2aaf6f[_0x22441d(0x1d0)](_0x4c4bab,'in');});}[_0x692fce(0x1e9)](_0x54910e){const _0xe662ca=_0x692fce;return _0x54910e[_0xe662ca(0x1d6)]?.[_0xe662ca(0x1df)]&&_0xe662ca(0x1c3)!==_0x54910e[_0xe662ca(0x1d6)]?.['id']?_0x54910e[_0xe662ca(0x1d6)][_0xe662ca(0x1df)]+':\x20'+_0x54910e[_0xe662ca(0x1e1)]:_0x54910e[_0xe662ca(0x1e1)];}async[_0x692fce(0x1f5)](_0x1e42dd){const _0x11fd1e=_0x692fce,_0x35914b=this[_0x11fd1e(0x1d8)][_0x11fd1e(0x1de)][_0x11fd1e(0x1ee)](_0x11fd1e(0x1cd)),_0x415d1d=_0x1e42dd[_0x11fd1e(0x1cf)]?{'userMessage':_0x1e42dd[_0x11fd1e(0x1cf)],'model':_0x1e42dd[_0x11fd1e(0x1f3)]}:{'actionName':_0x1e42dd[_0x11fd1e(0x1e8)]||_0x1e42dd['id'],'args':_0x1e42dd[_0x11fd1e(0x1ef)]},_0x23dbef=this[_0x11fd1e(0x1e9)](_0x1e42dd);await _0x35914b[_0x11fd1e(0x1c2)](_0x415d1d,_0x23dbef,_0x1e42dd[_0x11fd1e(0x1ec)]);}async[_0x692fce(0x1c9)](_0x1523f9){const _0x35b3c4=_0x692fce;console[_0x35b3c4(0x1c7)](_0x35b3c4(0x1ce),_0x1523f9);}}
23
+ const _0x5c9e5a=_0x2db2;(function(_0x313ef7,_0x2f06db){const _0x108dbc=_0x2db2,_0x57229a=_0x313ef7();while(!![]){try{const _0x3a5ede=parseInt(_0x108dbc(0x8c))/0x1*(parseInt(_0x108dbc(0xab))/0x2)+-parseInt(_0x108dbc(0xb1))/0x3*(-parseInt(_0x108dbc(0x99))/0x4)+parseInt(_0x108dbc(0x81))/0x5*(-parseInt(_0x108dbc(0x92))/0x6)+parseInt(_0x108dbc(0xa9))/0x7+-parseInt(_0x108dbc(0x94))/0x8*(parseInt(_0x108dbc(0x79))/0x9)+-parseInt(_0x108dbc(0x83))/0xa*(-parseInt(_0x108dbc(0x9b))/0xb)+-parseInt(_0x108dbc(0x90))/0xc*(parseInt(_0x108dbc(0x7c))/0xd);if(_0x3a5ede===_0x2f06db)break;else _0x57229a['push'](_0x57229a['shift']());}catch(_0x576b63){_0x57229a['push'](_0x57229a['shift']());}}}(_0x1985,0x1d76c));function _0x2db2(_0x17607e,_0x1cb096){const _0x19854b=_0x1985();return _0x2db2=function(_0x2db2f6,_0x3ba2c1){_0x2db2f6=_0x2db2f6-0x79;let _0x20713d=_0x19854b[_0x2db2f6];return _0x20713d;},_0x2db2(_0x17607e,_0x1cb096);}import{Command as _0x3d61d8}from'ckeditor5/src/core.js';import{CKEditorError as _0x2f8e70,first as _0x2e28a1}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0x312bbf}from'./aiquickactionsui.js';import{getTranslation as _0x48d119}from'../aicore/utils/common-translations.js';function _0x1985(){const _0x51433f=['type','executeAction','has','log','execute','_expandSelectionIfCollapsed','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','1041117yzbVvA','ai-quick-actions-plugin-not-found','2lqTuZj','AIChatController','displayedPrompt','startConversation','editor','schema','6069lyMhaQ','activateTab','document','other','addSelectionToChatContext','AIReviewMode','prompt','sendMessage','254673ykNSpf','ACTION','get','507689ggumJH','focusPromptInput','model','REVIEW','selection','5jsjJvV','parent','835910PYIuzH','plugins','locale','handleAIReviewAction','getSelectedBlocks','_handleAIReviewAction','_handleAIActionsAction','isCollapsed','icon','184447KXvhIR','chat','ask-ai','setSelection','48nxdwNJ','label','14604zoJcQd','view','40IvZVjb','AITabs','AIActions','CHAT','_handleAIChatAction','8qmGFAz','removeSelectionFromChatContext','11bqVzGe','actionName','args','AIChat','_handleAIActionsActionLabel','getLimitElement','change'];_0x1985=function(){return _0x51433f;};return _0x1985();}export class AIQuickActionsCommand extends _0x3d61d8{[_0x5c9e5a(0xa6)](_0x2a646d){const _0xf823a5=_0x5c9e5a;switch(this[_0xf823a5(0xa7)](),_0x2a646d[_0xf823a5(0xa2)]){case _0x312bbf[_0xf823a5(0x97)]:if(!this[_0xf823a5(0xaf)][_0xf823a5(0x84)][_0xf823a5(0xa4)](_0xf823a5(0x9e))){const _0x4ea34f=_0x48d119(this[_0xf823a5(0xaf)][_0xf823a5(0x85)],_0xf823a5(0xa8),_0xf823a5(0x9e));throw new _0x2f8e70(_0xf823a5(0xaa),this[_0xf823a5(0xaf)],{'errorMessage':_0x4ea34f});}this[_0xf823a5(0x98)](_0x2a646d);break;case _0x312bbf[_0xf823a5(0x7a)]:if(!this[_0xf823a5(0xaf)][_0xf823a5(0x84)][_0xf823a5(0xa4)](_0xf823a5(0x96))){const _0x337de9=_0x48d119(this[_0xf823a5(0xaf)][_0xf823a5(0x85)],_0xf823a5(0xa8),_0xf823a5(0x96));throw new _0x2f8e70(_0xf823a5(0xaa),this[_0xf823a5(0xaf)],{'errorMessage':_0x337de9});}this[_0xf823a5(0x89)](_0x2a646d);break;case _0x312bbf[_0xf823a5(0x7f)]:if(!this[_0xf823a5(0xaf)][_0xf823a5(0x84)][_0xf823a5(0xa4)](_0xf823a5(0xb6))){const _0x526f84=_0x48d119(this[_0xf823a5(0xaf)][_0xf823a5(0x85)],_0xf823a5(0xa8),_0xf823a5(0xb6));throw new _0x2f8e70(_0xf823a5(0xaa),this[_0xf823a5(0xaf)],{'errorMessage':_0x526f84});}this[_0xf823a5(0x88)](_0x2a646d);}}async[_0x5c9e5a(0x98)](_0x254ccf){const _0x284371=_0x5c9e5a,_0x1ceba3=this[_0x284371(0xaf)][_0x284371(0x84)][_0x284371(0x7b)](_0x284371(0x9e)),_0x24db92=this[_0x284371(0xaf)][_0x284371(0x84)][_0x284371(0x7b)](_0x284371(0xac));if(this[_0x284371(0xaf)][_0x284371(0x84)][_0x284371(0x7b)](_0x284371(0x95))[_0x284371(0x93)][_0x284371(0xb2)](_0x284371(0x8d)),_0x284371(0x8e)===_0x254ccf['id'])_0x24db92[_0x284371(0x9a)](),await _0x1ceba3[_0x284371(0xb5)](),_0x1ceba3[_0x284371(0x7d)]();else await _0x1ceba3[_0x284371(0xae)](),_0x24db92[_0x284371(0x9a)](),await _0x1ceba3[_0x284371(0xb5)](),_0x1ceba3[_0x284371(0x7d)](),await _0x1ceba3[_0x284371(0xb8)]({'message':_0x254ccf[_0x284371(0xb7)]||_0x254ccf[_0x284371(0xad)],'quickActionData':{'id':_0x254ccf['id'],'displayedPrompt':_0x254ccf[_0x284371(0xad)]}});}[_0x5c9e5a(0xa7)](){const _0x1e455f=_0x5c9e5a,_0xc2757c=this[_0x1e455f(0xaf)],_0x24c323=_0xc2757c[_0x1e455f(0x7e)][_0x1e455f(0xb3)][_0x1e455f(0x80)];if(!_0x24c323[_0x1e455f(0x8a)])return;const _0x567529=_0x2e28a1(_0x24c323[_0x1e455f(0x87)]())||_0xc2757c[_0x1e455f(0x7e)][_0x1e455f(0xb0)][_0x1e455f(0xa0)](_0x24c323);_0xc2757c[_0x1e455f(0x7e)][_0x1e455f(0xa1)](_0x3c2461=>{const _0x4924bc=_0x1e455f;_0x3c2461[_0x4924bc(0x8f)](_0x567529,'in');});}[_0x5c9e5a(0x9f)](_0x40384e){const _0x1074ae=_0x5c9e5a;return _0x40384e[_0x1074ae(0x82)]?.[_0x1074ae(0x91)]&&_0x1074ae(0xb4)!==_0x40384e[_0x1074ae(0x82)]?.['id']?_0x40384e[_0x1074ae(0x82)][_0x1074ae(0x91)]+':\x20'+_0x40384e[_0x1074ae(0xad)]:_0x40384e[_0x1074ae(0xad)];}async[_0x5c9e5a(0x89)](_0x3b93f8){const _0x3df8d9=_0x5c9e5a,_0x29508c=this[_0x3df8d9(0xaf)][_0x3df8d9(0x84)][_0x3df8d9(0x7b)](_0x3df8d9(0x96)),_0x4ff3bf=_0x3b93f8[_0x3df8d9(0xb7)]?{'userMessage':_0x3b93f8[_0x3df8d9(0xb7)],'model':_0x3b93f8[_0x3df8d9(0x7e)]}:{'actionName':_0x3b93f8[_0x3df8d9(0x9c)]||_0x3b93f8['id'],'args':_0x3b93f8[_0x3df8d9(0x9d)]},_0x30ad69=this[_0x3df8d9(0x9f)](_0x3b93f8);await _0x29508c[_0x3df8d9(0xa3)](_0x4ff3bf,_0x30ad69,_0x3b93f8[_0x3df8d9(0x8b)]);}async[_0x5c9e5a(0x88)](_0x3bccb0){const _0x173191=_0x5c9e5a;console[_0x173191(0xa5)](_0x173191(0x86),_0x3bccb0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x534f31=_0x2ab5;(function(_0x54392,_0x537c15){const _0x173327=_0x2ab5,_0x28bca2=_0x54392();while(!![]){try{const _0x125561=-parseInt(_0x173327(0x1cb))/0x1+parseInt(_0x173327(0x1b9))/0x2+-parseInt(_0x173327(0x1ce))/0x3*(parseInt(_0x173327(0x1b5))/0x4)+-parseInt(_0x173327(0x1b8))/0x5*(parseInt(_0x173327(0x1c1))/0x6)+parseInt(_0x173327(0x1d0))/0x7*(parseInt(_0x173327(0x1b4))/0x8)+parseInt(_0x173327(0x1bb))/0x9*(-parseInt(_0x173327(0x1c6))/0xa)+-parseInt(_0x173327(0x1be))/0xb*(-parseInt(_0x173327(0x1c9))/0xc);if(_0x125561===_0x537c15)break;else _0x28bca2['push'](_0x28bca2['shift']());}catch(_0x19bdb0){_0x28bca2['push'](_0x28bca2['shift']());}}}(_0x3b96,0xb2128));import{Plugin as _0x8e0dea}from'ckeditor5/src/core.js';function _0x3b96(){const _0x58a7f7=['init','152166qINTEr','add','has','152AOplvA','468mzAQkP','plugins','document','3067895fDjdsd','827596cIubXQ','selection','459NopRWv','AIChat','change:range','2959LqcXeh','get','editor','6XwuBlQ','aiQuickAction','AIQuickActionsEditing','isOfficialPlugin','pluginName','22890WBcgsi','isPremiumPlugin','model','109212mqUVHv','commands','497516QeGOXb','removeSelectionFromChatContext','directChange','33789IowTVN'];_0x3b96=function(){return _0x58a7f7;};return _0x3b96();}import{AIQuickActionsCommand as _0x184ec8}from'./aiquickactionscommand.js';function _0x2ab5(_0x86704c,_0x547fc2){const _0x3b96f2=_0x3b96();return _0x2ab5=function(_0x2ab55c,_0x488a27){_0x2ab55c=_0x2ab55c-0x1b4;let _0xc7ce84=_0x3b96f2[_0x2ab55c];return _0xc7ce84;},_0x2ab5(_0x86704c,_0x547fc2);}export class AIQuickActionsEditing extends _0x8e0dea{static get[_0x534f31(0x1c5)](){const _0x359f3c=_0x534f31;return _0x359f3c(0x1c3);}static get[_0x534f31(0x1c4)](){return!0x0;}static get[_0x534f31(0x1c7)](){return!0x0;}[_0x534f31(0x1cf)](){const _0x4d9dca=_0x534f31,_0x2cb2c6=this[_0x4d9dca(0x1c0)],_0x71de3e=new _0x184ec8(this[_0x4d9dca(0x1c0)]);if(_0x2cb2c6[_0x4d9dca(0x1ca)][_0x4d9dca(0x1d1)](_0x4d9dca(0x1c2),_0x71de3e),_0x2cb2c6[_0x4d9dca(0x1b6)][_0x4d9dca(0x1d2)](_0x4d9dca(0x1bc))){const _0x1e04d6=this[_0x4d9dca(0x1c0)][_0x4d9dca(0x1b6)][_0x4d9dca(0x1bf)](_0x4d9dca(0x1bc));_0x2cb2c6[_0x4d9dca(0x1c8)][_0x4d9dca(0x1b7)][_0x4d9dca(0x1ba)]['on'](_0x4d9dca(0x1bd),(_0x19b8d2,_0x3b4c04)=>{const _0x4807c8=_0x4d9dca;_0x3b4c04[_0x4807c8(0x1cd)]&&_0x1e04d6[_0x4807c8(0x1cc)]();});}}}
23
+ function _0x1f7e(){const _0x9cad97=['AIChat','30491FbIwJM','630553wOazGL','pluginName','removeSelectionFromChatContext','add','editor','document','commands','8UKuDEu','aiQuickAction','2160710ayKrtV','model','isPremiumPlugin','directChange','AIQuickActionsEditing','selection','change:range','3038574OSbjJP','1585191KEtPxs','plugins','388452EKBhtq','has','init','6809864ssrTQs','get','isOfficialPlugin'];_0x1f7e=function(){return _0x9cad97;};return _0x1f7e();}const _0x158b7b=_0x4f69;(function(_0x5df58b,_0x564581){const _0x3ac689=_0x4f69,_0x440495=_0x5df58b();while(!![]){try{const _0x35db02=parseInt(_0x3ac689(0x12d))/0x1*(-parseInt(_0x3ac689(0x135))/0x2)+parseInt(_0x3ac689(0x124))/0x3+-parseInt(_0x3ac689(0x126))/0x4+parseInt(_0x3ac689(0x11c))/0x5+parseInt(_0x3ac689(0x123))/0x6+-parseInt(_0x3ac689(0x12e))/0x7+-parseInt(_0x3ac689(0x129))/0x8;if(_0x35db02===_0x564581)break;else _0x440495['push'](_0x440495['shift']());}catch(_0x2be18c){_0x440495['push'](_0x440495['shift']());}}}(_0x1f7e,0x4ad93));function _0x4f69(_0x5e70fe,_0x2a80e7){const _0x1f7eab=_0x1f7e();return _0x4f69=function(_0x4f694e,_0x14775c){_0x4f694e=_0x4f694e-0x11b;let _0x2766aa=_0x1f7eab[_0x4f694e];return _0x2766aa;},_0x4f69(_0x5e70fe,_0x2a80e7);}import{Plugin as _0x444aaf}from'ckeditor5/src/core.js';import{AIQuickActionsCommand as _0x453ea7}from'./aiquickactionscommand.js';export class AIQuickActionsEditing extends _0x444aaf{static get[_0x158b7b(0x12f)](){const _0x52e206=_0x158b7b;return _0x52e206(0x120);}static get[_0x158b7b(0x12b)](){return!0x0;}static get[_0x158b7b(0x11e)](){return!0x0;}[_0x158b7b(0x128)](){const _0x56d1ab=_0x158b7b,_0x713ddb=this[_0x56d1ab(0x132)],_0x12af62=new _0x453ea7(this[_0x56d1ab(0x132)]);if(_0x713ddb[_0x56d1ab(0x134)][_0x56d1ab(0x131)](_0x56d1ab(0x11b),_0x12af62),_0x713ddb[_0x56d1ab(0x125)][_0x56d1ab(0x127)](_0x56d1ab(0x12c))){const _0x25996c=this[_0x56d1ab(0x132)][_0x56d1ab(0x125)][_0x56d1ab(0x12a)](_0x56d1ab(0x12c));_0x713ddb[_0x56d1ab(0x11d)][_0x56d1ab(0x133)][_0x56d1ab(0x121)]['on'](_0x56d1ab(0x122),(_0x2be154,_0x3ecfe6)=>{const _0x4b3305=_0x56d1ab;_0x3ecfe6[_0x4b3305(0x11f)]&&_0x25996c[_0x4b3305(0x130)]();});}}}
@@ -70,7 +70,7 @@ export declare class AIQuickActionsUI extends Plugin {
70
70
  *
71
71
  * @inheritDoc
72
72
  */
73
- init(): void;
73
+ init(): Promise<void>;
74
74
  /**
75
75
  * Returns the default quick actions configuration.
76
76
  *
@@ -110,6 +110,10 @@ export type AIQuickActionsGroupDefinition = {
110
110
  * its type to determine the execution interface (chat, balloon, or review).
111
111
  */
112
112
  export type AIQuickActionDefinition = {
113
+ /**
114
+ * Whether the action is enabled.
115
+ */
116
+ isEnabled?: boolean;
113
117
  /**
114
118
  * Unique identifier for the action.
115
119
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a55d2=_0x15b7;(function(_0x1b2b4e,_0x7be002){const _0x454b6c=_0x15b7,_0x5579c7=_0x1b2b4e();while(!![]){try{const _0x2f8793=parseInt(_0x454b6c(0x162))/0x1*(-parseInt(_0x454b6c(0x196))/0x2)+-parseInt(_0x454b6c(0x1d1))/0x3*(-parseInt(_0x454b6c(0x1ad))/0x4)+parseInt(_0x454b6c(0x1c0))/0x5*(parseInt(_0x454b6c(0x1c8))/0x6)+parseInt(_0x454b6c(0x1a4))/0x7+-parseInt(_0x454b6c(0x1ec))/0x8+-parseInt(_0x454b6c(0x15c))/0x9*(-parseInt(_0x454b6c(0x1f3))/0xa)+-parseInt(_0x454b6c(0x1ef))/0xb*(parseInt(_0x454b6c(0x174))/0xc);if(_0x2f8793===_0x7be002)break;else _0x5579c7['push'](_0x5579c7['shift']());}catch(_0x1943ca){_0x5579c7['push'](_0x5579c7['shift']());}}}(_0x1756,0x9ad5b));import{IconAIAdjustLength as _0x539680,IconAIChangeTone as _0x45ffef,IconAIChatCommands as _0x2fa8ea,IconAIContinueWriting as _0x48c0ca,IconAIGrammarCheck as _0x374ef9,IconAIImproveWriting as _0x20a670,IconAIOther as _0x131f00,IconAIQuickActions as _0x26c7e6,IconAITranslate as _0x4724ea}from'@ckeditor/ckeditor5-icons';import{Plugin as _0xf7ba5b}from'ckeditor5/src/core.js';import{getTranslation as _0x272eba}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x21388e}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x5aae0a}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x36d1fe,BalloonToolbar as _0x32c798,MenuBarMenuView as _0x389b2b,MenuBarMenuListView as _0x5a2706,MenuBarMenuListItemView as _0x1b6c5e,MenuBarMenuListItemButtonView as _0x49ae8d}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';function _0x1756(){const _0x1e35e5=['AIChat','7144511zctiio','delegate','children','config','30mzkHma','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','make-tone-direct','1825713IdkKHf','translate-to-french','AI_QUICK_ACTIONS_MORE_CASUAL','AI_QUICK_ACTIONS_MAKE_LONGER','find','translate-to-korean','59449HyFLVb','ACTION','_quickActionsDefinition','ai.quickActions.removeCommands','fix-grammar','add','editor','English','spanish','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','panelView','AI_QUICK_ACTIONS_IMPROVE_WRITING','translate-to-portuguese','_getDefaultAndCustomActions','locale','actions','other','AI_QUICK_ACTIONS_ASK_AI','12vXTWwv','execute','filter','AI_QUICK_ACTIONS_ADJUST_LENGTH','chinese','requires','ask-ai','translate-to-german','AIActions','displayedPrompt','AI_QUICK_ACTIONS_TRANSLATE','map','_initializeQuickActionsComponentsAndCommands','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','translate-to-russian','REVIEW','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','values','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','type','has','AI_QUICK_ACTIONS_HEADING','label','plugins','AI_QUICK_ACTIONS_OTHER','translate','AI_QUICK_ACTIONS_CHAT_COMMANDS','japanese','_initializeQuickActionsComponents','replace','make-tone-casual','_prepareQuickActionsDefinition','korean','26zvEZRI','chat-commands','AI_QUICK_ACTIONS_CONTINUE_WRITING','push','summarize','language','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','translate-to-chinese','AIReviewMode','improve-writing','menuBar:aiQuickActions','make-tone-confident','includes','pluginName','5095972AGFPQo','CHAT','make-tone-professional','english','AI_QUICK_ACTIONS_MORE_CONFIDENT','translate-to-japanese','change-tone','icon','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','20652NuCXVp','explain','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','init','DisplayNames','translate-to-spanish','AI_QUICK_ACTIONS_MORE_DIRECT','some','adjust-length','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','uiLanguage','commands','AI_QUICK_ACTIONS_CHANGE_TONE','componentFactory','_initializeQuickActionsDropdown','continue','french','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','385435pXxvcW','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','menu','getDefaultQuickActions','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','view','AIQuickActionsUI','forEach','78afzmBV','AI_QUICK_ACTIONS_MAKE_SHORTER','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','isPremiumPlugin','editing','attachToDom','_shouldIncludeAction','menuitem','456kzzzTA','AI_QUICK_ACTIONS_SUMMARIZE','make-shorter','ai.quickActions.extraCommands','german','AI_QUICK_ACTIONS_EXPLAIN','russian','buttonView','items','get','translate-to-italian','translate-to-english','menuBarView','portuguese','italian','highlight-key-points','_initializeQuickActionsMenuBar','focus','_executeQuickAction','isOfficialPlugin','close','make-tone-friendly','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','make-longer','length','aiQuickAction','aiQuickActions','8535464IPZoGn','set'];_0x1756=function(){return _0x1e35e5;};return _0x1756();}const oe=_0x3a55d2(0x1af),ae=_0x3a55d2(0x1c4),se=_0x3a55d2(0x187);export var AIQuickActionType;!function(_0x43a4ed){const _0x2b4316=_0x3a55d2;_0x43a4ed[_0x2b4316(0x1a5)]=_0x2b4316(0x1a5),_0x43a4ed[_0x2b4316(0x163)]=_0x2b4316(0x163),_0x43a4ed[_0x2b4316(0x184)]=_0x2b4316(0x184);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x53b533){const _0x4e8aea=_0x3a55d2;_0x53b533[_0x4e8aea(0x1a5)]=_0x4e8aea(0x1ee),_0x53b533[_0x4e8aea(0x163)]=_0x4e8aea(0x17c),_0x53b533[_0x4e8aea(0x184)]=_0x4e8aea(0x19e);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));function _0x15b7(_0x41af12,_0x2ed94c){const _0x175666=_0x1756();return _0x15b7=function(_0x15b715,_0x528017){_0x15b715=_0x15b715-0x15a;let _0x20e8ee=_0x175666[_0x15b715];return _0x20e8ee;},_0x15b7(_0x41af12,_0x2ed94c);}export class AIQuickActionsUI extends _0xf7ba5b{static get[_0x3a55d2(0x179)](){return[_0x32c798];}static get[_0x3a55d2(0x1a3)](){const _0x40749b=_0x3a55d2;return _0x40749b(0x1c6);}static get[_0x3a55d2(0x1e4)](){return!0x0;}static get[_0x3a55d2(0x1cc)](){return!0x0;}[_0x3a55d2(0x1b1)](){const _0x9e490d=_0x3a55d2;this[_0x9e490d(0x194)](this[_0x9e490d(0x16f)]()),this[_0x9e490d(0x180)]();}static[_0x3a55d2(0x1c3)](_0x5e6124){return function(_0xd0ddcd){const _0x40a787=_0x15b7,_0x425219=new Intl[(_0x40a787(0x1b2))](['en'],{'type':_0x40a787(0x19b)})['of'](_0xd0ddcd[_0x40a787(0x1b8)]),_0x24016a=_0x425219||_0x40a787(0x169),_0x410cc8=[{'id':_0x40a787(0x17a),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x173)),'type':AIQuickActionType[_0x40a787(0x1a5)],'icon':_0x2fa8ea},{'id':_0x40a787(0x197),'label':_0x272eba(_0xd0ddcd,_0x40a787(0x18f)),'icon':_0x2fa8ea,'actions':[{'id':_0x40a787(0x1ae),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1d6)),'prompt':oe[_0x40a787(0x192)]('%0',_0x24016a),'type':AIQuickActionType[_0x40a787(0x1a5)]},{'id':_0x40a787(0x19a),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1d2)),'prompt':ae[_0x40a787(0x192)]('%0',_0x24016a),'type':AIQuickActionType[_0x40a787(0x1a5)]},{'id':_0x40a787(0x1e0),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x16b)),'prompt':se[_0x40a787(0x192)]('%0',_0x24016a),'type':AIQuickActionType[_0x40a787(0x1a5)]}]},{'id':_0x40a787(0x19f),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x16d)),'type':AIQuickActionType[_0x40a787(0x163)],'icon':_0x20a670},{'id':_0x40a787(0x1bd),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x198)),'type':AIQuickActionType[_0x40a787(0x163)],'icon':_0x48c0ca},{'id':_0x40a787(0x166),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1c1)),'type':AIQuickActionType[_0x40a787(0x163)],'icon':_0x374ef9},{'id':_0x40a787(0x1b6),'label':_0x272eba(_0xd0ddcd,_0x40a787(0x177)),'icon':_0x539680,'actions':[{'id':_0x40a787(0x1d3),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1c9)),'type':AIQuickActionType[_0x40a787(0x163)]},{'id':_0x40a787(0x1e8),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x15f)),'type':AIQuickActionType[_0x40a787(0x163)]}]},{'id':_0x40a787(0x1aa),'label':_0x272eba(_0xd0ddcd,_0x40a787(0x1ba)),'icon':_0x45ffef,'actions':[{'id':_0x40a787(0x193),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x15e)),'type':AIQuickActionType[_0x40a787(0x163)]},{'id':_0x40a787(0x15b),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1b4)),'type':AIQuickActionType[_0x40a787(0x163)]},{'id':_0x40a787(0x1e6),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x181)),'type':AIQuickActionType[_0x40a787(0x163)]},{'id':_0x40a787(0x1a1),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1a8)),'type':AIQuickActionType[_0x40a787(0x163)]},{'id':_0x40a787(0x1a6),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x182)),'type':AIQuickActionType[_0x40a787(0x163)]}]},{'id':_0x40a787(0x18e),'label':_0x272eba(_0xd0ddcd,_0x40a787(0x17e)),'icon':_0x4724ea,'actions':[{'id':_0x40a787(0x1dc),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1e7)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1a7)}},{'id':_0x40a787(0x19d),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1ca)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x178)}},{'id':_0x40a787(0x1b3),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1ac)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x16a)}},{'id':_0x40a787(0x17b),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x15a)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1d5)}},{'id':_0x40a787(0x15d),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1b0)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1be)}},{'id':_0x40a787(0x1a9),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1cb)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x190)}},{'id':_0x40a787(0x16e),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x185)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1de)}},{'id':_0x40a787(0x161),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1b7)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x195)}},{'id':_0x40a787(0x1db),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1bf)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1df)}},{'id':_0x40a787(0x183),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x19c)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1d7)}}]},{'id':_0x40a787(0x172),'label':_0x272eba(_0xd0ddcd,_0x40a787(0x18d)),'icon':_0x131f00,'actions':[]}];return _0x410cc8;}(_0x5e6124);}[_0x3a55d2(0x16f)](){const _0x568e10=_0x3a55d2,_0x5233af=AIQuickActionsUI[_0x568e10(0x1c3)](this[_0x568e10(0x168)][_0x568e10(0x170)]),_0x34c636=(this[_0x568e10(0x168)][_0x568e10(0x1f2)][_0x568e10(0x1da)](_0x568e10(0x1d4))||[])[_0x568e10(0x17f)](_0x55e04d=>({..._0x55e04d,'icon':void 0x0}));return _0x5233af[_0x568e10(0x160)](_0x4f1043=>_0x568e10(0x172)===_0x4f1043['id'])[_0x568e10(0x171)][_0x568e10(0x199)](..._0x34c636),_0x5233af;}[_0x3a55d2(0x180)](){const _0x388573=_0x3a55d2,_0x2130c1=new _0x36d1fe(this[_0x388573(0x168)][_0x388573(0x170)]);_0x2130c1[_0x388573(0x1ce)](),this[_0x388573(0x1bc)](_0x2130c1),this[_0x388573(0x1e1)](),this[_0x388573(0x191)](_0x2130c1);}[_0x3a55d2(0x1bc)](_0x1729d2){const _0x922c53=_0x3a55d2;this[_0x922c53(0x168)]['ui'][_0x922c53(0x1bb)][_0x922c53(0x167)](_0x922c53(0x1eb),_0x21388e(this[_0x922c53(0x168)],this[_0x922c53(0x164)],{'icon':_0x26c7e6,'label':_0x272eba(this[_0x922c53(0x168)][_0x922c53(0x170)],_0x922c53(0x18a))},_0x1729d2));}[_0x3a55d2(0x194)](_0xfa7f23){const _0x455547=_0x3a55d2;this[_0x455547(0x164)]=_0xfa7f23[_0x455547(0x17f)](_0x52def8=>{const _0x3c5fb6=_0x455547;if(_0x3c5fb6(0x171)in _0x52def8){const _0x4c39e7=_0x52def8;return{..._0x4c39e7,'actions':_0x4c39e7[_0x3c5fb6(0x171)][_0x3c5fb6(0x17f)](_0x28e53a=>{const {actions:_0x96de30,..._0x436ad0}=_0x4c39e7;return{..._0x28e53a,'parent':_0x436ad0};})[_0x3c5fb6(0x176)](_0x29b470=>this[_0x3c5fb6(0x1cf)](_0x29b470))};}return _0x52def8;})[_0x455547(0x176)](_0x2248c1=>_0x455547(0x171)in _0x2248c1?_0x2248c1[_0x455547(0x171)][_0x455547(0x1e9)]>0x0:this[_0x455547(0x1cf)](_0x2248c1));}[_0x3a55d2(0x1cf)](_0x31335a){const _0x4cca4f=_0x3a55d2,_0xec7333=this[_0x4cca4f(0x168)][_0x4cca4f(0x1f2)][_0x4cca4f(0x1da)](_0x4cca4f(0x165))||[];return this[_0x4cca4f(0x168)][_0x4cca4f(0x18c)][_0x4cca4f(0x189)](AIQuickActionTypeToPluginName[_0x31335a[_0x4cca4f(0x188)]])&&!_0xec7333[_0x4cca4f(0x1a2)](_0x31335a['id']);}[_0x3a55d2(0x191)](_0x1db020){const _0x2d8c80=_0x3a55d2;this[_0x2d8c80(0x164)][_0x2d8c80(0x1c7)](_0x49c44f=>{const _0x30ed34=_0x2d8c80;if(_0x30ed34(0x171)in _0x49c44f){const _0x16cd97=_0x21388e(this[_0x30ed34(0x168)],_0x49c44f[_0x30ed34(0x171)],_0x49c44f,_0x1db020);this[_0x30ed34(0x168)]['ui'][_0x30ed34(0x1bb)][_0x30ed34(0x167)](_0x49c44f['id'],_0x16cd97),_0x49c44f[_0x30ed34(0x171)][_0x30ed34(0x1c7)](_0x5b76a8=>{const _0x512fef=_0x30ed34,_0x40daaf=_0x5aae0a(this[_0x512fef(0x168)],_0x5b76a8);this[_0x512fef(0x168)]['ui'][_0x512fef(0x1bb)][_0x512fef(0x167)](_0x5b76a8['id'],_0x40daaf);});}else{const _0x25e1bd=_0x5aae0a(this[_0x30ed34(0x168)],_0x49c44f,!0x1,!0x0,!0x1);this[_0x30ed34(0x168)]['ui'][_0x30ed34(0x1bb)][_0x30ed34(0x167)](_0x49c44f['id'],_0x25e1bd);}});}[_0x3a55d2(0x1e1)](){const _0x4474da=_0x3a55d2;this[_0x4474da(0x168)]['ui'][_0x4474da(0x1bb)][_0x4474da(0x167)](_0x4474da(0x1a0),_0x170bb5=>{const _0x5e8ffa=_0x4474da,_0x53ee67=new _0x389b2b(_0x170bb5),_0xc3e92a=_0x272eba(_0x170bb5,_0x5e8ffa(0x18a));_0x53ee67[_0x5e8ffa(0x1d8)][_0x5e8ffa(0x1ed)]({'label':_0xc3e92a,'icon':_0x26c7e6});const _0x5cd4f1=new _0x5a2706(_0x170bb5);_0x5cd4f1[_0x5e8ffa(0x1ed)]({'ariaLabel':_0xc3e92a,'role':_0x5e8ffa(0x1c2)}),this[_0x5e8ffa(0x164)][_0x5e8ffa(0x1c7)](_0xaa6ba1=>{const _0x298323=_0x5e8ffa;if(_0x298323(0x171)in _0xaa6ba1){const _0x2ef90c=_0xaa6ba1,_0x67e6d0=new _0x1b6c5e(_0x170bb5,_0x53ee67),_0x2ba99f=new _0x389b2b(_0x170bb5),_0x14e5d1=new _0x5a2706(_0x170bb5);_0x2ba99f[_0x298323(0x1d8)][_0x298323(0x1ed)]({'label':_0x2ef90c[_0x298323(0x18b)],'icon':_0x2ef90c[_0x298323(0x1ab)]}),_0x2ef90c[_0x298323(0x171)][_0x298323(0x1c7)](_0x611985=>{const _0x57ec3a=_0x298323,_0x25cb1c=new _0x1b6c5e(_0x170bb5,_0x2ba99f),_0x550c0c=new _0x49ae8d(_0x170bb5);_0x550c0c[_0x57ec3a(0x1ed)]({'label':_0x611985[_0x57ec3a(0x17d)],'icon':_0x611985[_0x57ec3a(0x1ab)],'role':_0x57ec3a(0x1d0)}),_0x550c0c['on'](_0x57ec3a(0x175),()=>{const _0x1e3b4f=_0x57ec3a;this[_0x1e3b4f(0x1e3)](_0x611985);}),_0x550c0c[_0x57ec3a(0x1f0)](_0x57ec3a(0x175))['to'](_0x2ba99f),_0x25cb1c[_0x57ec3a(0x1f1)][_0x57ec3a(0x167)](_0x550c0c),_0x14e5d1[_0x57ec3a(0x1d9)][_0x57ec3a(0x167)](_0x25cb1c);}),_0x2ba99f[_0x298323(0x16c)][_0x298323(0x1f1)][_0x298323(0x167)](_0x14e5d1),_0x67e6d0[_0x298323(0x1f1)][_0x298323(0x167)](_0x2ba99f),_0x5cd4f1[_0x298323(0x1d9)][_0x298323(0x167)](_0x67e6d0);}else{const _0xe46c35=_0xaa6ba1,_0x45b536=new _0x1b6c5e(_0x170bb5,_0x53ee67),_0x5ec101=new _0x49ae8d(_0x170bb5);_0x5ec101[_0x298323(0x1ed)]({'label':_0xe46c35[_0x298323(0x17d)],'icon':_0xe46c35[_0x298323(0x1ab)],'role':_0x298323(0x1d0)}),_0x5ec101['on'](_0x298323(0x175),()=>{const _0x12e971=_0x298323;this[_0x12e971(0x1e3)](_0xe46c35);}),_0x5ec101[_0x298323(0x1f0)](_0x298323(0x175))['to'](_0x53ee67),_0x45b536[_0x298323(0x1f1)][_0x298323(0x167)](_0x5ec101),_0x5cd4f1[_0x298323(0x1d9)][_0x298323(0x167)](_0x45b536);}});const _0xe22a68=Object[_0x5e8ffa(0x186)](AIQuickActionTypeToPluginName)[_0x5e8ffa(0x1b5)](_0x5c203d=>this[_0x5e8ffa(0x168)][_0x5e8ffa(0x18c)][_0x5e8ffa(0x189)](_0x5c203d));return _0x53ee67[_0x5e8ffa(0x1ed)]({'isEnabled':_0xe22a68}),_0x53ee67[_0x5e8ffa(0x16c)][_0x5e8ffa(0x1f1)][_0x5e8ffa(0x167)](_0x5cd4f1),_0x53ee67;});}[_0x3a55d2(0x1e3)](_0x167d64){const _0x5c21f2=_0x3a55d2,_0x1741b2=this[_0x5c21f2(0x168)];_0x1741b2[_0x5c21f2(0x1cd)][_0x5c21f2(0x1c5)][_0x5c21f2(0x1e2)](),_0x1741b2[_0x5c21f2(0x1b9)][_0x5c21f2(0x175)](_0x5c21f2(0x1ea),_0x167d64);const _0x3a28bb=_0x1741b2['ui'][_0x5c21f2(0x1c5)][_0x5c21f2(0x1dd)];_0x3a28bb&&_0x3a28bb[_0x5c21f2(0x1e5)]&&_0x3a28bb[_0x5c21f2(0x1e5)]();}}
23
+ const _0x20b93b=_0xb883;function _0xb883(_0x52d07e,_0x1ff1e7){const _0x360400=_0x3604();return _0xb883=function(_0xb883d4,_0x28960c){_0xb883d4=_0xb883d4-0x9d;let _0x4fa129=_0x360400[_0xb883d4];return _0x4fa129;},_0xb883(_0x52d07e,_0x1ff1e7);}(function(_0x4573b3,_0x1eb250){const _0x18cb75=_0xb883,_0x33d19b=_0x4573b3();while(!![]){try{const _0x4a352b=parseInt(_0x18cb75(0xea))/0x1*(-parseInt(_0x18cb75(0x9e))/0x2)+parseInt(_0x18cb75(0x13a))/0x3*(parseInt(_0x18cb75(0xb2))/0x4)+parseInt(_0x18cb75(0x110))/0x5+-parseInt(_0x18cb75(0xc1))/0x6*(parseInt(_0x18cb75(0xc8))/0x7)+parseInt(_0x18cb75(0xfe))/0x8+parseInt(_0x18cb75(0xbb))/0x9*(-parseInt(_0x18cb75(0xd6))/0xa)+parseInt(_0x18cb75(0x134))/0xb;if(_0x4a352b===_0x1eb250)break;else _0x33d19b['push'](_0x33d19b['shift']());}catch(_0x5b0810){_0x33d19b['push'](_0x33d19b['shift']());}}}(_0x3604,0x7cbe7));import{IconAIAdjustLength as _0x43fcbf,IconAIChangeTone as _0x3b58cc,IconAIChatCommands as _0x45a643,IconAIContinueWriting as _0x468ba8,IconAIGrammarCheck as _0x27d8b5,IconAIImproveWriting as _0x39af0c,IconAIOther as _0x5be418,IconAIQuickActions as _0x31678c,IconAITranslate as _0x40c8f7}from'@ckeditor/ckeditor5-icons';function _0x3604(){const _0x4bced4=['menuBarView','DisplayNames','ACTION','uiLanguage','editor','AIConnector','french','explain','children','delegate','_initializeQuickActionsMenuBar','AI_QUICK_ACTIONS_ASK_AI','config','English','make-tone-friendly','translate-to-russian','CHAT','init','chat-commands','ask-ai','AI_QUICK_ACTIONS_MORE_FRIENDLY','19367282MSRjRw','map','AI_QUICK_ACTIONS_CHANGE_TONE','ai-quick-actions-models-unable-to-retrieve','ai.chat.models.displayedModels','korean','437895lnvkKJ','make-tone-confident','forEach','AIReviewMode','getDefaultQuickActions','label','54330BCklQe','russian','AI_QUICK_ACTIONS_OTHER','close','includes','filter','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','translate-to-french','values','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','view','aiQuickAction','translate-to-spanish','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','model','_getDefaultAndCustomActions','actions','make-tone-direct','ai-quick-actions-unavailable-model','buttonView','4bAvzfq','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','translate-to-korean','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','language','improve-writing','_executeQuickAction','attachToDom','82278mSmBKg','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','pluginName','_initializeQuickActionsDropdown','AI_QUICK_ACTIONS_MORE_DIRECT','summarize','3054354DIGAKt','japanese','other','isEnabled','continue','requires','make-shorter','14bdKZGn','AI_QUICK_ACTIONS_TRANSLATE','aiQuickActions','adjust-length','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','make-tone-casual','ai.quickActions.isSearchEnabled','REVIEW','translate-to-italian','translate-to-german','fix-grammar','AI_QUICK_ACTIONS_CONTINUE_WRITING','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','translate-to-portuguese','740rsjHPr','set','translate-to-chinese','plugins','menuitem','translate','AIChat','push','commands','german','menu','editing','italian','displayedPrompt','spanish','AI_QUICK_ACTIONS_MORE_CASUAL','_prepareQuickActionsDefinition','AI_QUICK_ACTIONS_HEADING','AI_QUICK_ACTIONS_MAKE_SHORTER','add','4YVPcIq','getAvailableModels','make-tone-professional','AI_QUICK_ACTIONS_IMPROVE_WRITING','AI_QUICK_ACTIONS_MORE_CONFIDENT','AI_QUICK_ACTIONS_MAKE_LONGER','items','AI_QUICK_ACTIONS_EXPLAIN','replace','ai.quickActions.extraCommands','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','find','translate-to-english','AIActions','componentFactory','AI_QUICK_ACTIONS_CHAT_COMMANDS','_shouldIncludeAction','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','english','462064bSwKWN','menuBar:aiQuickActions','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','make-longer','locale','AI_QUICK_ACTIONS_ADJUST_LENGTH','execute','_quickActionsDefinition','panelView','portuguese','AI_QUICK_ACTIONS_SUMMARIZE','length','icon','AIQuickActionsUI','highlight-key-points','some','type','translate-to-japanese','1749260uYpOgK','isPremiumPlugin','isOfficialPlugin','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','get','_initializeQuickActionsComponentsAndCommands','change-tone','chinese','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','message','focus','ai.quickActions.removeCommands','has','_initializeQuickActionsComponents'];_0x3604=function(){return _0x4bced4;};return _0x3604();}import{Plugin as _0x232ab4}from'ckeditor5/src/core.js';import{CKEditorError as _0x45cb85,logError as _0x4ae99c}from'ckeditor5/src/utils.js';import{getTranslation as _0x503b87}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x30e3bc}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x2fd7b8}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x7ec26,BalloonToolbar as _0x300bfa,MenuBarMenuView as _0x36daa0,MenuBarMenuListView as _0x372bf9,MenuBarMenuListItemView as _0x2d48bb,MenuBarMenuListItemButtonView as _0x331272}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';import{AIModels as _0xa64237}from'../aicore/model/aimodels.js';const Lt=_0x20b93b(0xcc),Dt=_0x20b93b(0xd4),Ht=_0x20b93b(0xf4);export var AIQuickActionType;!function(_0x3a77dc){const _0x15511f=_0x20b93b;_0x3a77dc[_0x15511f(0x12f)]=_0x15511f(0x12f),_0x3a77dc[_0x15511f(0x121)]=_0x15511f(0x121),_0x3a77dc[_0x15511f(0xcf)]=_0x15511f(0xcf);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x497514){const _0x1c8790=_0x20b93b;_0x497514[_0x1c8790(0x12f)]=_0x1c8790(0xdc),_0x497514[_0x1c8790(0x121)]=_0x1c8790(0xf8),_0x497514[_0x1c8790(0xcf)]=_0x1c8790(0x13d);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x232ab4{static get[_0x20b93b(0xc6)](){return[_0x300bfa];}static get[_0x20b93b(0xbd)](){const _0x38dc2f=_0x20b93b;return _0x38dc2f(0x10b);}static get[_0x20b93b(0x112)](){return!0x0;}static get[_0x20b93b(0x111)](){return!0x0;}async[_0x20b93b(0x130)](){const _0x306538=_0x20b93b,_0x174925=await this[_0x306538(0xad)]();this[_0x306538(0xe6)](_0x174925),this[_0x306538(0x115)]();}static[_0x20b93b(0x13e)](_0x295eb4){return function(_0x5815a3){const _0x2a475e=_0xb883,_0x39ca64=new Intl[(_0x2a475e(0x120))](['en'],{'type':_0x2a475e(0xb7)})['of'](_0x5815a3[_0x2a475e(0x122)]),_0x15ba9c=_0x39ca64||_0x2a475e(0x12c),_0x12230a=[{'id':_0x2a475e(0x132),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x12a)),'type':AIQuickActionType[_0x2a475e(0x12f)],'icon':_0x45a643},{'id':_0x2a475e(0x131),'label':_0x503b87(_0x5815a3,_0x2a475e(0xfa)),'icon':_0x45a643,'actions':[{'id':_0x2a475e(0x126),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xf1)),'prompt':Lt[_0x2a475e(0xf2)]('%0',_0x15ba9c),'type':AIQuickActionType[_0x2a475e(0x12f)]},{'id':_0x2a475e(0xc0),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x108)),'prompt':Dt[_0x2a475e(0xf2)]('%0',_0x15ba9c),'type':AIQuickActionType[_0x2a475e(0x12f)]},{'id':_0x2a475e(0x10c),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xfc)),'prompt':Ht[_0x2a475e(0xf2)]('%0',_0x15ba9c),'type':AIQuickActionType[_0x2a475e(0x12f)]}]},{'id':_0x2a475e(0xb8),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xed)),'type':AIQuickActionType[_0x2a475e(0x121)],'icon':_0x39af0c},{'id':_0x2a475e(0xc5),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xd3)),'type':AIQuickActionType[_0x2a475e(0x121)],'icon':_0x468ba8},{'id':_0x2a475e(0xd2),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xab)),'type':AIQuickActionType[_0x2a475e(0x121)],'icon':_0x27d8b5},{'id':_0x2a475e(0xcb),'label':_0x503b87(_0x5815a3,_0x2a475e(0x103)),'icon':_0x43fcbf,'actions':[{'id':_0x2a475e(0xc7),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xe8)),'type':AIQuickActionType[_0x2a475e(0x121)]},{'id':_0x2a475e(0x101),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xef)),'type':AIQuickActionType[_0x2a475e(0x121)]}]},{'id':_0x2a475e(0x116),'label':_0x503b87(_0x5815a3,_0x2a475e(0x136)),'icon':_0x3b58cc,'actions':[{'id':_0x2a475e(0xcd),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xe5)),'type':AIQuickActionType[_0x2a475e(0x121)]},{'id':_0x2a475e(0xaf),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xbf)),'type':AIQuickActionType[_0x2a475e(0x121)]},{'id':_0x2a475e(0x12d),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x133)),'type':AIQuickActionType[_0x2a475e(0x121)]},{'id':_0x2a475e(0x13b),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xee)),'type':AIQuickActionType[_0x2a475e(0x121)]},{'id':_0x2a475e(0xec),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x118)),'type':AIQuickActionType[_0x2a475e(0x121)]}]},{'id':_0x2a475e(0xdb),'label':_0x503b87(_0x5815a3,_0x2a475e(0xc9)),'icon':_0x40c8f7,'actions':[{'id':_0x2a475e(0xf7),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xf5)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0xfd)}},{'id':_0x2a475e(0xd8),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xb6)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0x117)}},{'id':_0x2a475e(0xaa),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x100)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0xe4)}},{'id':_0x2a475e(0xd1),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xb3)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0xdf)}},{'id':_0x2a475e(0xa5),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xb4)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0x125)}},{'id':_0x2a475e(0x10f),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x113)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0xc2)}},{'id':_0x2a475e(0xd5),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x119)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0x107)}},{'id':_0x2a475e(0xb5),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xbc)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0x139)}},{'id':_0x2a475e(0xd0),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xa7)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0xe2)}},{'id':_0x2a475e(0x12e),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xa4)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0x9f)}}]},{'id':_0x2a475e(0xc3),'label':_0x503b87(_0x5815a3,_0x2a475e(0xa0)),'icon':_0x5be418,'actions':[]}];return _0x12230a;}(_0x295eb4);}async[_0x20b93b(0xad)](){const _0x21e90b=_0x20b93b,_0x49f7a9=AIQuickActionsUI[_0x21e90b(0x13e)](this[_0x21e90b(0x123)][_0x21e90b(0x102)]),_0xe40394=this[_0x21e90b(0x123)][_0x21e90b(0x12b)][_0x21e90b(0x114)](_0x21e90b(0xf3))||[];let _0x535171=[];try{_0x535171=await new _0xa64237({'connector':this[_0x21e90b(0x123)][_0x21e90b(0xd9)][_0x21e90b(0x114)](_0x21e90b(0x124)),'availableModels':this[_0x21e90b(0x123)][_0x21e90b(0x12b)][_0x21e90b(0x114)](_0x21e90b(0x138))})[_0x21e90b(0xeb)]();}catch(_0xaf1dd9){const _0x1f5e1e=new _0x45cb85(_0x21e90b(0x137),this,{'error':_0xaf1dd9});_0x4ae99c(_0x1f5e1e[_0x21e90b(0x11a)]);}finally{const _0x42c966=_0xe40394[_0x21e90b(0x135)](_0x4cf33c=>({..._0x4cf33c,'icon':void 0x0}));_0x49f7a9[_0x21e90b(0xf6)](_0x560a18=>_0x21e90b(0xc3)===_0x560a18['id'])[_0x21e90b(0xae)][_0x21e90b(0xdd)](..._0x42c966),_0x49f7a9[_0x21e90b(0x13c)](_0x56e5d2=>{const _0x4a4136=_0x21e90b;if(_0x4a4136(0xae)in _0x56e5d2)_0x56e5d2[_0x4a4136(0xae)][_0x4a4136(0x13c)](_0x46777e=>{const _0x2382b0=_0x4a4136;if(_0x46777e[_0x2382b0(0xc4)]=!!_0x535171[_0x2382b0(0xf6)](_0x31ec73=>_0x31ec73['id']===_0x46777e[_0x2382b0(0xac)])||void 0x0===_0x46777e[_0x2382b0(0xac)],!_0x46777e[_0x2382b0(0xc4)]){const _0x36a1e4=new _0x45cb85(_0x2382b0(0xb0),this,{'actionId':_0x46777e['id'],'modelId':_0x46777e[_0x2382b0(0xac)]});_0x4ae99c(_0x36a1e4[_0x2382b0(0x11a)]);}});else{if(_0x56e5d2[_0x4a4136(0xc4)]=!!_0x535171[_0x4a4136(0xf6)](_0xdca018=>_0xdca018['id']===_0x56e5d2[_0x4a4136(0xac)])||void 0x0===_0x56e5d2[_0x4a4136(0xac)],!_0x56e5d2[_0x4a4136(0xc4)]){const _0x29ef7f=new _0x45cb85(_0x4a4136(0xb0),this,{'actionId':_0x56e5d2['id'],'modelId':_0x56e5d2[_0x4a4136(0xac)]});_0x4ae99c(_0x29ef7f[_0x4a4136(0x11a)]);}}});}return _0x49f7a9;}[_0x20b93b(0x115)](){const _0x12c3b5=_0x20b93b,_0x2c2978=new _0x7ec26(this[_0x12c3b5(0x123)][_0x12c3b5(0x102)]);_0x2c2978[_0x12c3b5(0xba)](),this[_0x12c3b5(0xbe)](_0x2c2978),this[_0x12c3b5(0x129)](),this[_0x12c3b5(0x11e)](_0x2c2978);}[_0x20b93b(0xbe)](_0x372285){const _0x385031=_0x20b93b,_0x43bdd2=this[_0x385031(0x123)][_0x385031(0x12b)][_0x385031(0x114)](_0x385031(0xce))??!0x0;this[_0x385031(0x123)]['ui'][_0x385031(0xf9)][_0x385031(0xe9)](_0x385031(0xca),_0x30e3bc({'editor':this[_0x385031(0x123)],'content':this[_0x385031(0x105)],'buttonDefinition':{'icon':_0x31678c,'label':_0x503b87(this[_0x385031(0x123)][_0x385031(0x102)],_0x385031(0xe7))},'bodyCollection':_0x372285,'hasSearch':_0x43bdd2}));}[_0x20b93b(0xe6)](_0x14bf79){const _0x482fe1=_0x20b93b;this[_0x482fe1(0x105)]=_0x14bf79[_0x482fe1(0x135)](_0x49dd03=>{const _0x1476ea=_0x482fe1;if(_0x1476ea(0xae)in _0x49dd03){const _0xc31ed8=_0x49dd03;return{..._0xc31ed8,'actions':_0xc31ed8[_0x1476ea(0xae)][_0x1476ea(0x135)](_0x331d06=>{const {actions:_0x274ac9,..._0x5a8904}=_0xc31ed8;return{..._0x331d06,'parent':_0x5a8904};})[_0x1476ea(0xa3)](_0x9e731e=>this[_0x1476ea(0xfb)](_0x9e731e))};}return _0x49dd03;})[_0x482fe1(0xa3)](_0x574c61=>_0x482fe1(0xae)in _0x574c61?_0x574c61[_0x482fe1(0xae)][_0x482fe1(0x109)]>0x0:this[_0x482fe1(0xfb)](_0x574c61));}[_0x20b93b(0xfb)](_0x437c92){const _0x54b645=_0x20b93b,_0x34cbcf=this[_0x54b645(0x123)][_0x54b645(0x12b)][_0x54b645(0x114)](_0x54b645(0x11c))||[];return this[_0x54b645(0x123)][_0x54b645(0xd9)][_0x54b645(0x11d)](AIQuickActionTypeToPluginName[_0x437c92[_0x54b645(0x10e)]])&&!_0x34cbcf[_0x54b645(0xa2)](_0x437c92['id']);}[_0x20b93b(0x11e)](_0x2b045f){const _0x22d73e=_0x20b93b;this[_0x22d73e(0x105)][_0x22d73e(0x13c)](_0x1a051b=>{const _0x4896a8=_0x22d73e;if(_0x4896a8(0xae)in _0x1a051b){const _0x2d470e=_0x30e3bc({'editor':this[_0x4896a8(0x123)],'content':_0x1a051b[_0x4896a8(0xae)],'buttonDefinition':_0x1a051b,'bodyCollection':_0x2b045f});this[_0x4896a8(0x123)]['ui'][_0x4896a8(0xf9)][_0x4896a8(0xe9)](_0x1a051b['id'],_0x2d470e),_0x1a051b[_0x4896a8(0xae)][_0x4896a8(0x13c)](_0x5d7d57=>{const _0xe273cc=_0x4896a8,_0x2223fc=_0x2fd7b8({'editor':this[_0xe273cc(0x123)],'action':_0x5d7d57});this[_0xe273cc(0x123)]['ui'][_0xe273cc(0xf9)][_0xe273cc(0xe9)](_0x5d7d57['id'],_0x2223fc);});}else{const _0x63bc75=_0x2fd7b8({'editor':this[_0x4896a8(0x123)],'action':_0x1a051b,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x4896a8(0x123)]['ui'][_0x4896a8(0xf9)][_0x4896a8(0xe9)](_0x1a051b['id'],_0x63bc75);}});}[_0x20b93b(0x129)](){const _0x579913=_0x20b93b;this[_0x579913(0x123)]['ui'][_0x579913(0xf9)][_0x579913(0xe9)](_0x579913(0xff),_0x4bd1a3=>{const _0x168677=_0x579913,_0x21da06=new _0x36daa0(_0x4bd1a3),_0x499ae8=_0x503b87(_0x4bd1a3,_0x168677(0xe7));_0x21da06[_0x168677(0xb1)][_0x168677(0xd7)]({'label':_0x499ae8,'icon':_0x31678c});const _0x5ef619=new _0x372bf9(_0x4bd1a3);_0x5ef619[_0x168677(0xd7)]({'ariaLabel':_0x499ae8,'role':_0x168677(0xe0)}),this[_0x168677(0x105)][_0x168677(0x13c)](_0x5760f2=>{const _0x42250b=_0x168677;if(_0x42250b(0xae)in _0x5760f2){const _0xdecf96=_0x5760f2,_0x255245=new _0x2d48bb(_0x4bd1a3,_0x21da06),_0x724c89=new _0x36daa0(_0x4bd1a3),_0x3a3c7a=new _0x372bf9(_0x4bd1a3);_0x724c89[_0x42250b(0xb1)][_0x42250b(0xd7)]({'label':_0xdecf96[_0x42250b(0x9d)],'icon':_0xdecf96[_0x42250b(0x10a)]}),_0xdecf96[_0x42250b(0xae)][_0x42250b(0x13c)](_0x4124ef=>{const _0x277184=_0x42250b,_0x4135cb=new _0x2d48bb(_0x4bd1a3,_0x724c89),_0x3ddd21=new _0x331272(_0x4bd1a3);_0x3ddd21[_0x277184(0xd7)]({'label':_0x4124ef[_0x277184(0xe3)],'icon':_0x4124ef[_0x277184(0x10a)],'role':_0x277184(0xda),'isEnabled':_0x4124ef[_0x277184(0xc4)]}),_0x3ddd21['on'](_0x277184(0x104),()=>{const _0x18251a=_0x277184;this[_0x18251a(0xb9)](_0x4124ef);}),_0x3ddd21[_0x277184(0x128)](_0x277184(0x104))['to'](_0x724c89),_0x4135cb[_0x277184(0x127)][_0x277184(0xe9)](_0x3ddd21),_0x3a3c7a[_0x277184(0xf0)][_0x277184(0xe9)](_0x4135cb);}),_0x724c89[_0x42250b(0x106)][_0x42250b(0x127)][_0x42250b(0xe9)](_0x3a3c7a),_0x255245[_0x42250b(0x127)][_0x42250b(0xe9)](_0x724c89),_0x5ef619[_0x42250b(0xf0)][_0x42250b(0xe9)](_0x255245);}else{const _0x1246f4=_0x5760f2,_0x89bfba=new _0x2d48bb(_0x4bd1a3,_0x21da06),_0x46a5d2=new _0x331272(_0x4bd1a3);_0x46a5d2[_0x42250b(0xd7)]({'label':_0x1246f4[_0x42250b(0xe3)],'icon':_0x1246f4[_0x42250b(0x10a)],'role':_0x42250b(0xda),'isEnabled':_0x1246f4[_0x42250b(0xc4)]}),_0x46a5d2['on'](_0x42250b(0x104),()=>{const _0x467f5a=_0x42250b;this[_0x467f5a(0xb9)](_0x1246f4);}),_0x46a5d2[_0x42250b(0x128)](_0x42250b(0x104))['to'](_0x21da06),_0x89bfba[_0x42250b(0x127)][_0x42250b(0xe9)](_0x46a5d2),_0x5ef619[_0x42250b(0xf0)][_0x42250b(0xe9)](_0x89bfba);}});const _0x13efa8=Object[_0x168677(0xa6)](AIQuickActionTypeToPluginName)[_0x168677(0x10d)](_0x35e422=>this[_0x168677(0x123)][_0x168677(0xd9)][_0x168677(0x11d)](_0x35e422));return _0x21da06[_0x168677(0xd7)]({'isEnabled':_0x13efa8}),_0x21da06[_0x168677(0x106)][_0x168677(0x127)][_0x168677(0xe9)](_0x5ef619),_0x21da06;});}[_0x20b93b(0xb9)](_0x231f8a){const _0x1647fa=_0x20b93b,_0x5bd3a9=this[_0x1647fa(0x123)];_0x5bd3a9[_0x1647fa(0xe1)][_0x1647fa(0xa8)][_0x1647fa(0x11b)](),_0x5bd3a9[_0x1647fa(0xde)][_0x1647fa(0x104)](_0x1647fa(0xa9),_0x231f8a);const _0x475944=_0x5bd3a9['ui'][_0x1647fa(0xa8)][_0x1647fa(0x11f)];_0x475944&&_0x475944[_0x1647fa(0xa1)]&&_0x475944[_0x1647fa(0xa1)]();}}
@@ -8,6 +8,43 @@
8
8
  import { type Editor } from 'ckeditor5/src/core.js';
9
9
  import { ButtonView } from 'ckeditor5/src/ui.js';
10
10
  import { type AIQuickActionDefinition } from '../aiquickactionsui.js';
11
+ /**
12
+ * Configuration options for aiQuickActionsButtonCreator.
13
+ */
14
+ export interface AIQuickActionsButtonCreatorOptions {
15
+ /**
16
+ * The CKEditor instance that will contain the button.
17
+ */
18
+ editor: Editor;
19
+ /**
20
+ * The AI quick action definition containing configuration.
21
+ */
22
+ action: AIQuickActionDefinition;
23
+ /**
24
+ * Whether to show the text label on the button.
25
+ *
26
+ * @default false
27
+ */
28
+ withText?: boolean;
29
+ /**
30
+ * Whether to show the icon on the button.
31
+ *
32
+ * @default true
33
+ */
34
+ withIcon?: boolean;
35
+ /**
36
+ * Whether the button is in a dropdown.
37
+ *
38
+ * @default true
39
+ */
40
+ isInDropdown?: boolean;
41
+ /**
42
+ * Optional callback to check if focus should be prevented.
43
+ *
44
+ * @default false
45
+ */
46
+ shouldPreventFocus?: () => boolean;
47
+ }
11
48
  /**
12
49
  * Creates a button factory function for AI Quick Actions.
13
50
  *
@@ -21,11 +58,7 @@ import { type AIQuickActionDefinition } from '../aiquickactionsui.js';
21
58
  * - Hides any open balloon toolbar
22
59
  * - Executes the aiQuickActions command with the action details
23
60
  *
24
- * @param editor The CKEditor instance that will contain the button
25
- * @param action The AI quick action definition containing configuration
26
- * @param withText Whether to show the text label on the button
27
- * @param withIcon Whether to show the icon on the button
28
- * @param isInDropdown Whether the button is in a dropdown
61
+ * @param options Configuration options for the button creator
29
62
  * @returns Factory function that creates a ButtonView instance
30
63
  */
31
- export declare function aiQuickActionsButtonCreator(editor: Editor, action: AIQuickActionDefinition, withText?: boolean, withIcon?: boolean, isInDropdown?: boolean): () => ButtonView;
64
+ export declare function aiQuickActionsButtonCreator(options: AIQuickActionsButtonCreatorOptions): () => ButtonView;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3e6a(_0x456fe8,_0x19e5c4){const _0x15637d=_0x1563();return _0x3e6a=function(_0x3e6a07,_0x33424b){_0x3e6a07=_0x3e6a07-0x133;let _0x4741d6=_0x15637d[_0x3e6a07];return _0x4741d6;},_0x3e6a(_0x456fe8,_0x19e5c4);}(function(_0xf7e79c,_0x1ba950){const _0x3d5db8=_0x3e6a,_0x554816=_0xf7e79c();while(!![]){try{const _0x3fe76a=-parseInt(_0x3d5db8(0x138))/0x1+-parseInt(_0x3d5db8(0x148))/0x2+parseInt(_0x3d5db8(0x143))/0x3*(parseInt(_0x3d5db8(0x13a))/0x4)+-parseInt(_0x3d5db8(0x135))/0x5*(-parseInt(_0x3d5db8(0x142))/0x6)+-parseInt(_0x3d5db8(0x144))/0x7+-parseInt(_0x3d5db8(0x141))/0x8+parseInt(_0x3d5db8(0x13c))/0x9;if(_0x3fe76a===_0x1ba950)break;else _0x554816['push'](_0x554816['shift']());}catch(_0x15ff76){_0x554816['push'](_0x554816['shift']());}}}(_0x1563,0x73779));import{ButtonView as _0x1e8345}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x728f6a}from'@ckeditor/ckeditor5-icons';export function aiQuickActionsButtonCreator(_0x3b0dd0,_0x3d342e,_0x175d10=!0x1,_0x5542b4=!0x0,_0x17ff65=!0x0){return()=>{const _0x30ab3b=_0x3e6a,_0x690ee3=_0x3b0dd0[_0x30ab3b(0x139)],_0x12e716=new _0x1e8345(_0x690ee3),_0x54e98a=_0x12e716[_0x30ab3b(0x134)];_0x17ff65&&_0x12e716[_0x30ab3b(0x13d)]({'on':{'mouseenter':_0x54e98a['to'](()=>{const _0x8d85c1=_0x30ab3b;_0x12e716[_0x8d85c1(0x14a)]();})}});const _0x44607b=_0x3d342e[_0x30ab3b(0x146)]??_0x3d342e[_0x30ab3b(0x149)]?.[_0x30ab3b(0x146)];return _0x12e716[_0x30ab3b(0x13b)]({'label':_0x3d342e[_0x30ab3b(0x133)],'withText':_0x175d10,'role':_0x30ab3b(0x145),'icon':_0x5542b4?_0x44607b??_0x728f6a:void 0x0,'tooltip':!_0x175d10,'class':_0x30ab3b(0x147)}),_0x12e716['on'](_0x30ab3b(0x13f),()=>{const _0x5b1618=_0x30ab3b;_0x3b0dd0[_0x5b1618(0x13e)][_0x5b1618(0x136)][_0x5b1618(0x14a)](),_0x3b0dd0[_0x5b1618(0x137)][_0x5b1618(0x13f)](_0x5b1618(0x140),_0x3d342e);}),_0x12e716;};}function _0x1563(){const _0x4b8ccb=['set','21099438HZsFTN','extendTemplate','editing','execute','aiQuickAction','4140096twpvEg','6KuRSKb','1884BvuASt','3181934UNwSNr','menuitem','icon','ck-ai-quick-actions-button','922952uhoBKY','parent','focus','displayedPrompt','bindTemplate','1354270YnYWgv','view','commands','884573CtdXrh','locale','1120ShOEAj'];_0x1563=function(){return _0x4b8ccb;};return _0x1563();}
23
+ (function(_0x505f36,_0x7bff8d){const _0x35346c=_0x3c1b,_0x441339=_0x505f36();while(!![]){try{const _0x292b0e=-parseInt(_0x35346c(0xa4))/0x1+-parseInt(_0x35346c(0xac))/0x2*(-parseInt(_0x35346c(0xaf))/0x3)+parseInt(_0x35346c(0x9c))/0x4+-parseInt(_0x35346c(0xab))/0x5*(-parseInt(_0x35346c(0xb3))/0x6)+parseInt(_0x35346c(0x9e))/0x7+parseInt(_0x35346c(0xb2))/0x8+parseInt(_0x35346c(0xa0))/0x9*(-parseInt(_0x35346c(0xa9))/0xa);if(_0x292b0e===_0x7bff8d)break;else _0x441339['push'](_0x441339['shift']());}catch(_0x376a4a){_0x441339['push'](_0x441339['shift']());}}}(_0x4fd2,0xb28d4));function _0x3c1b(_0x3d2c84,_0x1bf6c6){const _0x4fd23c=_0x4fd2();return _0x3c1b=function(_0x3c1b32,_0x1d2c56){_0x3c1b32=_0x3c1b32-0x9b;let _0x4e2696=_0x4fd23c[_0x3c1b32];return _0x4e2696;},_0x3c1b(_0x3d2c84,_0x1bf6c6);}import{ButtonView as _0x16c171}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x38aa52}from'@ckeditor/ckeditor5-icons';function _0x4fd2(){const _0x1d01e1=['2108512FEgHEA','isEnabled','1760717XsEHKX','bindTemplate','9UMDZZd','locale','execute','menuitem','542578yRaozm','editing','focus','set','icon','23027910olLdeN','view','420ABdDEe','16IPuqUO','aiQuickAction','commands','319242PIUTWS','displayedPrompt','parent','5630384dKHhpR','88782SxTbIC','extendTemplate','ck-ai-quick-actions-button'];_0x4fd2=function(){return _0x1d01e1;};return _0x4fd2();}export function aiQuickActionsButtonCreator(_0x195b47){const {editor:_0x328d48,action:_0x4972f3,withText:_0x1bc26b=!0x1,withIcon:_0x4d73ba=!0x0,isInDropdown:_0x4c6327=!0x0,shouldPreventFocus:_0x5d8772=!0x1}=_0x195b47;return()=>{const _0x1faebc=_0x3c1b,_0x386c3e=_0x328d48[_0x1faebc(0xa1)],_0x2e0075=new _0x16c171(_0x386c3e),_0x2ec12d=_0x2e0075[_0x1faebc(0x9f)];_0x4c6327&&_0x2e0075[_0x1faebc(0xb4)]({'on':{'mouseenter':_0x2ec12d['to'](()=>{const _0x30d2e4=_0x1faebc;_0x5d8772&&_0x5d8772()||_0x2e0075[_0x30d2e4(0xa6)]();})}});const _0x26d402=_0x4972f3[_0x1faebc(0xa8)]??_0x4972f3[_0x1faebc(0xb1)]?.[_0x1faebc(0xa8)];return _0x2e0075[_0x1faebc(0xa7)]({'label':_0x4972f3[_0x1faebc(0xb0)],'withText':_0x1bc26b,'role':_0x1faebc(0xa3),'icon':_0x4d73ba?_0x26d402??_0x38aa52:void 0x0,'tooltip':!_0x1bc26b,'class':_0x1faebc(0x9b),'isEnabled':_0x4972f3[_0x1faebc(0x9d)]}),_0x2e0075['on'](_0x1faebc(0xa2),()=>{const _0x3c4abe=_0x1faebc;_0x328d48[_0x3c4abe(0xa5)][_0x3c4abe(0xaa)][_0x3c4abe(0xa6)](),_0x328d48[_0x3c4abe(0xae)][_0x3c4abe(0xa2)](_0x3c4abe(0xad),_0x4972f3);}),_0x2e0075;};}
@@ -36,7 +36,12 @@ export declare class AIQuickActionsDropdownContentView extends View implements V
36
36
  * Helps cycling over {@link #_focusables} in the form.
37
37
  */
38
38
  readonly focusCycler: FocusCycler;
39
- constructor(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, dropdownView: DropdownView, bodyCollection: BodyCollection);
39
+ constructor(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, dropdownView: DropdownView, bodyCollection: BodyCollection, hasSearch?: boolean);
40
+ /**
41
+ * Resets the search input and restores all list items.
42
+ * Called when the dropdown is closed to ensure clean state on next open.
43
+ */
44
+ resetSearch(): void;
40
45
  /**
41
46
  * @inheritDoc
42
47
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24de43=_0x588e;function _0x1188(){const _0x290f85=['159668YebYbA','actions','eastSouth','optionsListView','div','focusTracker','relatedTarget','forEach','clear','.ck-ai-quick-actions-group-list','_hideNestedPanel','render','ck-ai-quick-actions-group-panel','_createActionGroupButton','add','_createGroupActionsList','element','rtl','locale','extendTemplate','_bodyCollection','694944LAjiqv','mouseleave','addMany','items','.ck-ai-quick-actions-group-panel','ArrowLeft','_setupGroupMenuBehavior','bind','72QMsFsq','7540bBOmTU','56254qzlsTe','_createActionButton','children','4067259nanbBk','set','focus','888DPuQnf','_hideAllNestedPanels','isOn','pin','destroy','uiLanguageDirection','ck-reset_all','role','_openNestedPanels','.ck-ai-quick-actions-group-button','keystrokes','contains','detachFromDom','ck-rounded-corners','focusCycler','key','21jzcyCe','_createListItems','addEventListener','get','icon','_focusables','22otjbgR','menu','content','_isMovingToNestedMenu','ck-dropdown-menu__nested-menu__panel','closest','hide','131445fVBFxz','show','setTemplate','ck-dropdown-menu-list','_showNestedPanel','label','delete','isVisible','6842360imRPFZ','ck-ai-quick-actions','ArrowRight','menuitem','ck-ai-quick-actions-group-button','bindTemplate','ck-ai-quick-actions-group-list'];_0x1188=function(){return _0x290f85;};return _0x1188();}(function(_0x5f33a1,_0x475153){const _0x3e99c2=_0x588e,_0x422bcc=_0x5f33a1();while(!![]){try{const _0x5c6cfc=parseInt(_0x3e99c2(0x15f))/0x1+-parseInt(_0x3e99c2(0x169))/0x2+-parseInt(_0x3e99c2(0x12e))/0x3*(-parseInt(_0x3e99c2(0x14a))/0x4)+-parseInt(_0x3e99c2(0x168))/0x5*(-parseInt(_0x3e99c2(0x16f))/0x6)+parseInt(_0x3e99c2(0x16c))/0x7+parseInt(_0x3e99c2(0x167))/0x8*(parseInt(_0x3e99c2(0x13b))/0x9)+-parseInt(_0x3e99c2(0x143))/0xa*(parseInt(_0x3e99c2(0x134))/0xb);if(_0x5c6cfc===_0x475153)break;else _0x422bcc['push'](_0x422bcc['shift']());}catch(_0x3cd1df){_0x422bcc['push'](_0x422bcc['shift']());}}}(_0x1188,0x7d596));import{View as _0x44b46b,ListItemView as _0x2a3e73,ListView as _0x47cc55,BalloonPanelView as _0x25c601,DropdownMenuPanelPositioningFunctions as _0x5cf0c5,DropdownMenuButtonView as _0x27f57d,ViewCollection as _0x426159,FocusCycler as _0x5caf06}from'ckeditor5/src/ui.js';function _0x588e(_0x11962a,_0x1a1126){const _0x1188bf=_0x1188();return _0x588e=function(_0x588e32,_0x4f15bf){_0x588e32=_0x588e32-0x12d;let _0xddbf21=_0x1188bf[_0x588e32];return _0xddbf21;},_0x588e(_0x11962a,_0x1a1126);}import{IconAIQuickActions as _0x4764de}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0x58ad05,KeystrokeHandler as _0x40b34d}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0x16ea81}from'./aiquickactionsbuttoncreator.js';const Ls=_0x24de43(0x135),Ns=_0x24de43(0x146);export class AIQuickActionsDropdownContentView extends _0x44b46b{[_0x24de43(0x15e)];[_0x24de43(0x14d)];[_0x24de43(0x14f)];[_0x24de43(0x179)];[_0x24de43(0x133)];[_0x24de43(0x17d)];[_0x24de43(0x177)]=new Set();constructor(_0x142cbb,_0x5ea2a9,_0x29e194,_0x12d052){const _0x229dd1=_0x24de43,_0x54e82d=_0x142cbb[_0x229dd1(0x15c)];super(_0x54e82d),this[_0x229dd1(0x15e)]=_0x12d052;const _0x196508=this[_0x229dd1(0x12f)](_0x142cbb,_0x5ea2a9,_0x29e194);this[_0x229dd1(0x14d)]=new _0x47cc55(_0x54e82d),this[_0x229dd1(0x14d)][_0x229dd1(0x176)]=Ls,this[_0x229dd1(0x14d)][_0x229dd1(0x162)][_0x229dd1(0x161)](_0x196508),this[_0x229dd1(0x14f)]=new _0x58ad05(),this[_0x229dd1(0x179)]=new _0x40b34d(),this[_0x229dd1(0x133)]=_0x196508,this[_0x229dd1(0x17d)]=new _0x5caf06({'focusables':this[_0x229dd1(0x133)],'focusTracker':this[_0x229dd1(0x14f)],'keystrokeHandler':this[_0x229dd1(0x179)]}),this[_0x229dd1(0x13d)]({'tag':_0x229dd1(0x14e),'attributes':{'class':['ck',_0x229dd1(0x175),_0x229dd1(0x144),_0x229dd1(0x17c)],'dir':_0x54e82d[_0x229dd1(0x174)]},'children':[this[_0x229dd1(0x14d)]]});}[_0x24de43(0x12f)](_0xae1776,_0x3964b2,_0x4f215a){const _0x2c149e=_0x24de43,_0x16bc2e=new _0x426159();return _0x3964b2[_0x2c149e(0x151)](_0x4bce00=>{const _0x45e0b0=_0x2c149e;_0x45e0b0(0x14b)in _0x4bce00?_0x16bc2e[_0x45e0b0(0x158)](this[_0x45e0b0(0x157)](_0xae1776,_0x4bce00,_0x4f215a)):_0x16bc2e[_0x45e0b0(0x158)](this[_0x45e0b0(0x16a)](_0xae1776,_0x4bce00));}),_0x16bc2e;}[_0x24de43(0x16a)](_0x53c011,_0x6be530){const _0x4f4773=_0x24de43,_0x2c8596=new _0x2a3e73(this[_0x4f4773(0x15c)]),_0x4c6c1c=_0x16ea81(_0x53c011,_0x6be530,!0x0,void 0x0!==_0x6be530[_0x4f4773(0x132)])();return _0x2c8596[_0x4f4773(0x16b)][_0x4f4773(0x158)](_0x4c6c1c),_0x2c8596;}[_0x24de43(0x157)](_0x2b24d7,_0x369f08,_0x18724c){const _0x306cfc=_0x24de43,_0x139635=new _0x2a3e73(this[_0x306cfc(0x15c)]),_0x5f0e33=new _0x27f57d(this[_0x306cfc(0x15c)]),_0x4dd231=_0x5f0e33[_0x306cfc(0x148)],_0x3ab1b0=_0x306cfc(0x15b)===_0x18724c[_0x306cfc(0x15c)][_0x306cfc(0x174)]?_0x306cfc(0x145):_0x306cfc(0x164),_0x302d8e=this[_0x306cfc(0x159)](_0x2b24d7,_0x369f08[_0x306cfc(0x14b)],_0x18724c);_0x5f0e33[_0x306cfc(0x16d)]({'label':_0x369f08[_0x306cfc(0x140)],'withText':!0x0,'role':Ns,'icon':_0x369f08[_0x306cfc(0x132)]??_0x4764de}),_0x5f0e33[_0x306cfc(0x15d)]({'on':{'mouseenter':_0x4dd231['to'](()=>{const _0xd32b54=_0x306cfc;_0x5f0e33[_0xd32b54(0x16e)]();})}});const _0x251040=new _0x25c601(this[_0x306cfc(0x15c)]);return _0x251040[_0x306cfc(0x15d)]({'attributes':{'class':['ck',_0x306cfc(0x175),_0x306cfc(0x156),_0x306cfc(0x138)]},'on':{'keydown':_0x4dd231['to'](_0x100e72=>{const _0x15d1b4=_0x306cfc;_0x100e72[_0x15d1b4(0x12d)]==_0x3ab1b0&&(_0x5f0e33[_0x15d1b4(0x16e)](),this[_0x15d1b4(0x154)](_0x251040));})}}),_0x5f0e33[_0x306cfc(0x166)](_0x306cfc(0x171))['to'](_0x251040,_0x306cfc(0x142)),this[_0x306cfc(0x15e)][_0x306cfc(0x158)](_0x251040),_0x251040[_0x306cfc(0x136)][_0x306cfc(0x158)](_0x302d8e),this[_0x306cfc(0x165)](_0x5f0e33,_0x251040),_0x139635[_0x306cfc(0x16b)][_0x306cfc(0x158)](_0x5f0e33),_0x139635;}[_0x24de43(0x159)](_0x3859ad,_0x2996f4,_0x3b0a45){const _0xfb2451=_0x24de43,_0x14be41=new _0x47cc55(this[_0xfb2451(0x15c)]);return _0x14be41[_0xfb2451(0x15d)]({'attributes':{'class':['ck',_0xfb2451(0x175),_0xfb2451(0x149),_0xfb2451(0x13e)]}}),_0x2996f4[_0xfb2451(0x151)](_0x29273f=>{const _0x1cd94a=_0xfb2451,_0x57f3d8=new _0x2a3e73(this[_0x1cd94a(0x15c)]),_0x42342a=_0x16ea81(_0x3859ad,_0x29273f,!0x0,!0x1)();_0x57f3d8[_0x1cd94a(0x16b)][_0x1cd94a(0x158)](_0x42342a),_0x3b0a45[_0x1cd94a(0x14f)][_0x1cd94a(0x158)](_0x42342a),_0x14be41[_0x1cd94a(0x162)][_0x1cd94a(0x158)](_0x57f3d8);}),_0x14be41;}[_0x24de43(0x165)](_0x33df70,_0x1b0346){const _0x18738e=_0x24de43,_0x4fa6ec=_0x33df70[_0x18738e(0x148)],_0x1ff24d=_0x18738e(0x15b)===_0x33df70[_0x18738e(0x15c)][_0x18738e(0x174)]?_0x18738e(0x164):_0x18738e(0x145);_0x33df70[_0x18738e(0x15d)]({'attributes':{'class':[_0x18738e(0x147)]},'on':{'mouseenter':_0x4fa6ec['to'](()=>{const _0x7de9af=_0x18738e;this[_0x7de9af(0x13f)](_0x1b0346,_0x33df70);}),'mouseleave':_0x4fa6ec['to'](_0x231d5b=>{const _0x1848ab=_0x18738e,_0x3309ee=_0x231d5b[_0x1848ab(0x150)];this[_0x1848ab(0x137)](_0x3309ee,_0x1b0346)||this[_0x1848ab(0x154)](_0x1b0346);}),'keydown':_0x4fa6ec['to'](_0x39631=>{const _0x4f6dfc=_0x18738e;_0x39631[_0x4f6dfc(0x12d)]==_0x1ff24d&&(this[_0x4f6dfc(0x13f)](_0x1b0346,_0x33df70),_0x1b0346[_0x4f6dfc(0x136)][_0x4f6dfc(0x131)](0x0)[_0x4f6dfc(0x16e)]());})}}),_0x1b0346['on'](_0x18738e(0x155),()=>{const _0xec2b32=_0x18738e;_0x1b0346[_0xec2b32(0x15a)]?.[_0xec2b32(0x130)](_0xec2b32(0x160),_0x40ba48=>{const _0x198d25=_0xec2b32,_0x22cea5=_0x40ba48[_0x198d25(0x150)];_0x33df70[_0x198d25(0x15a)]?.[_0x198d25(0x17a)](_0x22cea5)||this[_0x198d25(0x137)](_0x22cea5,_0x1b0346)||this[_0x198d25(0x154)](_0x1b0346);});});}[_0x24de43(0x13f)](_0x5a1052,_0x41767f){const _0x41e7fb=_0x24de43;this[_0x41e7fb(0x177)][_0x41e7fb(0x151)](_0x1ceed6=>{const _0xa8310=_0x41e7fb;_0x1ceed6!==_0x5a1052&&_0x1ceed6[_0xa8310(0x142)]&&_0x1ceed6[_0xa8310(0x13a)]();}),_0x5a1052[_0x41e7fb(0x13c)](),_0x5a1052[_0x41e7fb(0x172)]({'positions':[_0x5cf0c5[_0x41e7fb(0x14c)]],'target':_0x41767f[_0x41e7fb(0x15a)],'fitInViewport':!0x0}),this[_0x41e7fb(0x177)][_0x41e7fb(0x158)](_0x5a1052);}[_0x24de43(0x154)](_0x4b1893){const _0x43a066=_0x24de43;_0x4b1893[_0x43a066(0x13a)](),this[_0x43a066(0x177)][_0x43a066(0x141)](_0x4b1893);}[_0x24de43(0x170)](){const _0x2e8ee7=_0x24de43;this[_0x2e8ee7(0x177)][_0x2e8ee7(0x151)](_0x10e1b9=>_0x10e1b9[_0x2e8ee7(0x13a)]()),this[_0x2e8ee7(0x177)][_0x2e8ee7(0x152)]();}[_0x24de43(0x137)](_0x99fdb8,_0x4e52f1){const _0xdbf01c=_0x24de43;if(!_0x99fdb8)return!0x1;if(_0x4e52f1[_0xdbf01c(0x15a)]?.[_0xdbf01c(0x17a)](_0x99fdb8))return!0x0;const _0x1d671e=_0x99fdb8;return _0x1d671e[_0xdbf01c(0x139)]&&(null!==_0x1d671e[_0xdbf01c(0x139)](_0xdbf01c(0x163))||null!==_0x1d671e[_0xdbf01c(0x139)](_0xdbf01c(0x153))||null!==_0x1d671e[_0xdbf01c(0x139)](_0xdbf01c(0x178)));}[_0x24de43(0x173)](){const _0x53401f=_0x24de43;this[_0x53401f(0x170)](),this[_0x53401f(0x15e)][_0x53401f(0x17b)](),super[_0x53401f(0x173)]();}[_0x24de43(0x16e)](){const _0x16e566=_0x24de43;this[_0x16e566(0x14d)][_0x16e566(0x16e)]();}}
23
+ function _0x5c08(){const _0x25cc53=['AI_QUICK_ACTIONS_SEARCH','reset','render','parent','text','element','destroy','_createSearchResultActionButton','ck-ai-quick-actions-group-list','ck-dropdown-menu__nested-menu__panel','set','ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button','ck-ai-quick-actions-button_with-group__close-paren','closest','focus','ck-ai-quick-actions-button__group-icon','ck-dropdown-menu-list','some','relatedTarget','ck-ai-quick-actions-search-result-button_with-group','_hideAllNestedPanels','.ck-ai-quick-actions-group-button','div','ck-ai-quick-actions-search-result__group-row','fire','_hideNestedPanel','children','279579IrbPsf','ck-reset_all','_createListItems','ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button\x20ck-ai-quick-actions-search-result-button_with-group','pin','_createGroupActionsList','_getPanelKeystroke','ck-rounded-corners','_focusables','clear','optionsListView','_createSearchResultGroupRow','add','5627709ZTLIDD','_hasSearch','AI_QUICK_ACTIONS_SEARCH_NOT_FOUND','_setupActionButtonExecution','ck-button','addEventListener','actions','label','key','346DumRQg','contains','ck-ai-quick-actions-button_with-group__open-paren','_searchTextView','content','ck-ai-quick-actions-search-result__content','displayedPrompt','ck-ai-quick-actions-search-result-button','keystrokes','hide','first','_openNestedPanels','ck-ai-quick-actions-button_with-group','195LYivKB','_getButtonKeystroke','_createSearchResultIndividualActionButton','ck-ai-quick-actions-search','_createSearchTextView','queryView','resetSearch','show','activeElement','forEach','.ck-ai-quick-actions-group-panel','commands','chain','extendTemplate','fieldView','_isMovingToNestedMenu','ck-ai-quick-actions-group-button','_isSearchFocused','icon','addMany','span','eastSouth','get','_allSearchableItems','2676wroafe','ck-ai-quick-actions-search-result__action-row','233646WQMkXK','_showNestedPanel','972377bCxzmy','.ck-ai-quick-actions-group-list','_createSearchResultContentView','setTemplate','ck-ai-quick-actions-group-panel','push','detachFromDom','bindTemplate','_createActionButton','ck-button_with-text','items','isEnabled','_setupGroupMenuBehavior','menu','isOn','role','ck-ai-quick-actions','_handlePanelKeydown','uiLanguageDirection','menuitem','_createActionGroupButton','ck-ai-quick-actions-button','ArrowLeft','7800gjwVQU','rtl','editing','_handleSearchResultButtonClick','_createSearchResultActionRow','ArrowRight','view','focusTracker','execute','aiQuickAction','bind','delete','_createSearchResultGroupedActionButton','button','ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','mouseleave','ownerDocument','isVisible','_bodyCollection','2797560Avdlmu','focusCycler','locale'];_0x5c08=function(){return _0x25cc53;};return _0x5c08();}const _0x308f34=_0x14e7;(function(_0x58a33c,_0x231a9e){const _0x37069b=_0x14e7,_0x55f467=_0x58a33c();while(!![]){try{const _0x484901=parseInt(_0x37069b(0x11b))/0x1+-parseInt(_0x37069b(0x131))/0x2+-parseInt(_0x37069b(0x171))/0x3*(parseInt(_0x37069b(0x156))/0x4)+parseInt(_0x37069b(0x13e))/0x5*(parseInt(_0x37069b(0x158))/0x6)+-parseInt(_0x37069b(0x15a))/0x7+parseInt(_0x37069b(0xfd))/0x8+parseInt(_0x37069b(0x128))/0x9;if(_0x484901===_0x231a9e)break;else _0x55f467['push'](_0x55f467['shift']());}catch(_0x5d1b2d){_0x55f467['push'](_0x55f467['shift']());}}}(_0x5c08,0xda746));import{View as _0x5c0cae,ListItemView as _0x30f8ea,ListView as _0x3a042c,BalloonPanelView as _0x19b586,DropdownMenuPanelPositioningFunctions as _0x2172c6,ViewCollection as _0x542a1d,FocusCycler as _0x41bc2f,ButtonView as _0x22e564,IconView as _0x38ae29,HighlightedTextView as _0x55a949,ButtonLabelWithHighlightView as _0x14b754,SearchTextView as _0x224b77}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x27517f}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0x1108e4,KeystrokeHandler as _0x442154}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0x152ba8}from'./aiquickactionsbuttoncreator.js';import{DropdownMenuButtonWithHighlightView as _0x2b2a62}from'./dropdownmenubuttonwithhighlightview.js';import{getTranslation as _0x46138f}from'../../aicore/utils/common-translations.js';import{AIQuickActionsFilteredListView as _0x3f4ef1}from'./aiquickactionsfilteredlistview.js';const Ts=_0x308f34(0x167),Rs=_0x308f34(0x16d);function _0x14e7(_0xcc94b2,_0x5993c1){const _0x5c08ac=_0x5c08();return _0x14e7=function(_0x14e706,_0x42fdba){_0x14e706=_0x14e706-0xf4;let _0x3dca74=_0x5c08ac[_0x14e706];return _0x3dca74;},_0x14e7(_0xcc94b2,_0x5993c1);}export class AIQuickActionsDropdownContentView extends _0x5c0cae{[_0x308f34(0xfc)];[_0x308f34(0x125)];[_0x308f34(0x134)]=null;[_0x308f34(0x155)]=[];[_0x308f34(0x11a)];[_0x308f34(0x178)];[_0x308f34(0x139)];[_0x308f34(0x123)];[_0x308f34(0xfe)];[_0x308f34(0x13c)]=new Set();[_0x308f34(0x129)];constructor(_0x197e5d,_0x36c127,_0x13d0c2,_0x58c7b5,_0x49c02a=!0x1){const _0x54689f=_0x308f34,_0x1d88d9=_0x197e5d[_0x54689f(0xff)];super(_0x1d88d9),this[_0x54689f(0xfc)]=_0x58c7b5,this[_0x54689f(0x129)]=_0x49c02a;const _0x8234e3=this[_0x54689f(0x11d)](_0x197e5d,_0x36c127,_0x13d0c2);this[_0x54689f(0x125)]=new _0x3f4ef1(_0x1d88d9,_0x8234e3,this[_0x54689f(0x155)]),this[_0x54689f(0x125)][_0x54689f(0x169)]=Ts,this[_0x54689f(0x125)][_0x54689f(0x164)][_0x54689f(0x151)](_0x8234e3),this[_0x54689f(0x178)]=new _0x1108e4(),this[_0x54689f(0x139)]=new _0x442154(),_0x49c02a&&(this[_0x54689f(0x134)]=this[_0x54689f(0x142)]()),this[_0x54689f(0x123)]=_0x8234e3,this[_0x54689f(0xfe)]=new _0x41bc2f({'focusables':this[_0x54689f(0x123)],'focusTracker':this[_0x54689f(0x178)],'keystrokeHandler':this[_0x54689f(0x139)]}),_0x49c02a&&this[_0x54689f(0x134)]&&this[_0x54689f(0xfe)][_0x54689f(0x14a)](this[_0x54689f(0x134)][_0x54689f(0xfe)]);const _0x47c772=_0x49c02a&&this[_0x54689f(0x134)]?[this[_0x54689f(0x134)]]:[this[_0x54689f(0x125)]];this[_0x54689f(0x11a)]=new _0x542a1d(_0x47c772),this[_0x54689f(0x15d)]({'tag':_0x54689f(0x116),'attributes':{'class':['ck',_0x54689f(0x11c),_0x54689f(0x16a),_0x54689f(0x122)],'dir':_0x1d88d9[_0x54689f(0x16c)]},'children':this[_0x54689f(0x11a)]});}[_0x308f34(0x142)](){const _0x362b81=_0x308f34;return new _0x224b77(this[_0x362b81(0xff)],{'filteredView':this[_0x362b81(0x125)],'queryView':{'label':_0x46138f(this[_0x362b81(0xff)],_0x362b81(0x100))},'class':_0x362b81(0x141),'infoView':{'text':{'notFound':{'primary':_0x46138f(this[_0x362b81(0xff)],_0x362b81(0x12a))}}}});}[_0x308f34(0x14f)](){const _0x51768d=_0x308f34;if(!this[_0x51768d(0x129)]||!this[_0x51768d(0x134)]||!this[_0x51768d(0x134)][_0x51768d(0x143)][_0x51768d(0x14c)][_0x51768d(0x105)])return!0x1;const _0x2dcbef=this[_0x51768d(0x134)][_0x51768d(0x143)][_0x51768d(0x14c)][_0x51768d(0x105)][_0x51768d(0xfa)]?.[_0x51768d(0x146)];return this[_0x51768d(0x134)][_0x51768d(0x143)][_0x51768d(0x14c)][_0x51768d(0x105)][_0x51768d(0x132)](_0x2dcbef);}[_0x308f34(0x11d)](_0x1fd172,_0x439bb8,_0x4ce728){const _0x405f29=_0x308f34,_0x37363c=new _0x542a1d();return _0x439bb8[_0x405f29(0x147)](_0x3c3e27=>{const _0xad84d0=_0x405f29;if(_0xad84d0(0x12e)in _0x3c3e27){const {listItem:_0x3268ce}=this[_0xad84d0(0x16e)](_0x1fd172,_0x3c3e27,_0x4ce728);_0x37363c[_0xad84d0(0x127)](_0x3268ce),_0x3c3e27[_0xad84d0(0x12e)][_0xad84d0(0x147)](_0x4c31d6=>{const _0x13a31f=_0xad84d0;this[_0x13a31f(0x162)](_0x1fd172,_0x4c31d6,_0x3c3e27[_0x13a31f(0x12f)],_0x3c3e27[_0x13a31f(0x150)]);const {listItem:_0x38a474,highlightViews:_0x38c9c2}=this[_0x13a31f(0x107)](_0x1fd172,_0x4c31d6,_0x3c3e27[_0x13a31f(0x12f)],_0x3c3e27[_0x13a31f(0x150)]);this[_0x13a31f(0x155)][_0x13a31f(0x15f)]({'item':_0x38a474,'label':_0x4c31d6[_0x13a31f(0x137)],'groupLabel':_0x3c3e27[_0x13a31f(0x12f)],'highlightViews':_0x38c9c2});});}else{const {listItem:_0x3264d4}=this[_0xad84d0(0x162)](_0x1fd172,_0x3c3e27);_0x37363c[_0xad84d0(0x127)](_0x3264d4);const _0x59c86f=_0x3264d4[_0xad84d0(0x11a)][_0xad84d0(0x13b)];if(_0x59c86f){const {listItem:_0x898cda,highlightViews:_0x1888fe}=this[_0xad84d0(0x107)](_0x1fd172,_0x3c3e27);this[_0xad84d0(0x155)][_0xad84d0(0x15f)]({'item':_0x898cda,'label':_0x59c86f[_0xad84d0(0x12f)]||'','highlightViews':_0x1888fe});}}}),_0x37363c;}[_0x308f34(0x162)](_0x56e8c8,_0x4de3b0,_0x3bc00c,_0x5c89ce){const _0x311990=_0x308f34,_0x2e1c55=new _0x30f8ea(this[_0x311990(0xff)]);if(_0x3bc00c&&_0x5c89ce){const _0x335c62=new _0x22e564(this[_0x311990(0xff)]),_0x484423=_0x335c62[_0x311990(0x161)],_0x185832=new _0x55a949();_0x185832[_0x311990(0x104)]=_0x4de3b0[_0x311990(0x137)];const _0x2afd4d=new _0x55a949();_0x2afd4d[_0x311990(0x104)]=_0x3bc00c;const _0x3bc492=new _0x38ae29();_0x3bc492[_0x311990(0x135)]=_0x5c89ce,_0x3bc492[_0x311990(0x14b)]({'attributes':{'class':_0x311990(0x10f)}});const _0x2eb059=new _0x5c0cae(this[_0x311990(0xff)]);_0x2eb059[_0x311990(0x15d)]({'tag':_0x311990(0x152),'attributes':{'class':_0x311990(0x133)},'children':[{'text':'\x20('}]});const _0x71d17=new _0x5c0cae(this[_0x311990(0xff)]);return _0x71d17[_0x311990(0x15d)]({'tag':_0x311990(0x152),'attributes':{'class':_0x311990(0x10c)},'children':[{'text':')'}]}),_0x335c62[_0x311990(0x10a)]({'label':_0x4de3b0[_0x311990(0x137)]+'\x20('+_0x3bc00c+')','withText':!0x0,'role':_0x311990(0x16d),'class':_0x311990(0xf8),'tooltip':!0x1}),_0x335c62[_0x311990(0x15d)]({'tag':_0x311990(0xf7),'attributes':{'class':['ck',_0x311990(0x12c),_0x311990(0x163),_0x311990(0x16f),_0x311990(0x13d)],'type':_0x311990(0xf7),'role':_0x311990(0x16d),'tabindex':'-1'},'children':[_0x185832,_0x2eb059,_0x3bc492,_0x2afd4d,_0x71d17],'on':{'mouseenter':_0x484423['to'](()=>{const _0x1fd4ba=_0x311990;this[_0x1fd4ba(0x14f)]()||_0x335c62[_0x1fd4ba(0x10e)]();}),'click':_0x484423['to'](()=>{const _0x4651c9=_0x311990;_0x335c62[_0x4651c9(0x118)](_0x4651c9(0x179));})}}),_0x335c62['on'](_0x311990(0x179),()=>{const _0x15e4a0=_0x311990;_0x56e8c8[_0x15e4a0(0x173)][_0x15e4a0(0x177)][_0x15e4a0(0x10e)](),_0x56e8c8[_0x15e4a0(0x149)][_0x15e4a0(0x179)](_0x15e4a0(0x17a),_0x4de3b0);}),_0x2e1c55[_0x311990(0x11a)][_0x311990(0x127)](_0x335c62),{'listItem':_0x2e1c55,'highlightViews':[_0x185832,_0x2afd4d]};}{const _0x38528e=new _0x14b754(),_0x109df2=new _0x22e564(this[_0x311990(0xff)],_0x38528e),_0x31c852=_0x109df2[_0x311990(0x161)],_0x1cc768=_0x4de3b0[_0x311990(0x150)]??_0x4de3b0[_0x311990(0x103)]?.[_0x311990(0x150)],_0x871963=void 0x0!==_0x4de3b0[_0x311990(0x150)];return _0x109df2[_0x311990(0x10a)]({'label':_0x4de3b0[_0x311990(0x137)],'withText':!0x0,'role':_0x311990(0x16d),'icon':_0x871963?_0x1cc768??_0x27517f:void 0x0,'tooltip':!0x1,'class':_0x311990(0x16f)}),_0x109df2[_0x311990(0x14b)]({'on':{'mouseenter':_0x31c852['to'](()=>{const _0x40fee1=_0x311990;this[_0x40fee1(0x14f)]()||_0x109df2[_0x40fee1(0x10e)]();})}}),_0x109df2['on'](_0x311990(0x179),()=>{const _0x222525=_0x311990;_0x56e8c8[_0x222525(0x173)][_0x222525(0x177)][_0x222525(0x10e)](),_0x56e8c8[_0x222525(0x149)][_0x222525(0x179)](_0x222525(0x17a),_0x4de3b0);}),_0x2e1c55[_0x311990(0x11a)][_0x311990(0x127)](_0x109df2),{'listItem':_0x2e1c55,'highlightViews':[_0x38528e]};}}[_0x308f34(0x107)](_0x3b2227,_0x12dfa6,_0x3a7327,_0x596b42){const _0x116aad=_0x308f34;return _0x3a7327&&_0x596b42?this[_0x116aad(0xf6)](_0x3b2227,_0x12dfa6,_0x3a7327,_0x596b42):this[_0x116aad(0x140)](_0x3b2227,_0x12dfa6);}[_0x308f34(0xf6)](_0x3964a9,_0x3580a8,_0x29222e,_0x5e53d4){const _0x496740=_0x308f34,_0x1b00ed=new _0x30f8ea(this[_0x496740(0xff)]),_0x5a91c7=new _0x22e564(this[_0x496740(0xff)]),_0x3fc66a=_0x5a91c7[_0x496740(0x161)],{view:_0x41e3be,highlightView:_0x4d78d1}=this[_0x496740(0x126)](_0x29222e,_0x5e53d4),{view:_0x15fddc,highlightView:_0x2a2ddf}=this[_0x496740(0x175)](_0x3580a8[_0x496740(0x137)]),_0x54c5cc=this[_0x496740(0x15c)](_0x41e3be,_0x15fddc);return _0x5a91c7[_0x496740(0x10a)]({'label':_0x3580a8[_0x496740(0x137)],'withText':!0x0,'role':_0x496740(0x16d),'class':_0x496740(0x11e),'tooltip':!0x1}),_0x5a91c7[_0x496740(0x15d)]({'tag':_0x496740(0xf7),'attributes':{'class':['ck',_0x496740(0x12c),_0x496740(0x163),_0x496740(0x16f),_0x496740(0x138),_0x496740(0x113)],'type':_0x496740(0xf7),'role':_0x496740(0x16d),'tabindex':'-1'},'children':[_0x54c5cc],'on':{'mouseenter':_0x3fc66a['to'](()=>{const _0x15f6e1=_0x496740;this[_0x15f6e1(0x14f)]()||_0x5a91c7[_0x15f6e1(0x10e)]();}),'click':_0x3fc66a['to'](()=>{const _0x17224c=_0x496740;this[_0x17224c(0x174)](_0x5a91c7);})}}),this[_0x496740(0x12b)](_0x5a91c7,_0x3964a9,_0x3580a8),_0x1b00ed[_0x496740(0x11a)][_0x496740(0x127)](_0x5a91c7),{'listItem':_0x1b00ed,'highlightViews':[_0x4d78d1,_0x2a2ddf]};}[_0x308f34(0x140)](_0x57b070,_0x584547){const _0xa7e9f4=_0x308f34,_0x7c62e=new _0x30f8ea(this[_0xa7e9f4(0xff)]),_0x555d2f=new _0x14b754(),_0x4fedc2=new _0x22e564(this[_0xa7e9f4(0xff)],_0x555d2f),_0x29cf8b=_0x4fedc2[_0xa7e9f4(0x161)];return _0x4fedc2[_0xa7e9f4(0x10a)]({'label':_0x584547[_0xa7e9f4(0x137)],'withText':!0x0,'role':_0xa7e9f4(0x16d),'icon':void 0x0,'tooltip':!0x1,'class':_0xa7e9f4(0x10b)}),_0x4fedc2[_0xa7e9f4(0x14b)]({'on':{'mouseenter':_0x29cf8b['to'](()=>{const _0x2cdf5e=_0xa7e9f4;this[_0x2cdf5e(0x14f)]()||_0x4fedc2[_0x2cdf5e(0x10e)]();})}}),this[_0xa7e9f4(0x12b)](_0x4fedc2,_0x57b070,_0x584547),_0x7c62e[_0xa7e9f4(0x11a)][_0xa7e9f4(0x127)](_0x4fedc2),{'listItem':_0x7c62e,'highlightViews':[_0x555d2f]};}[_0x308f34(0x126)](_0x55f913,_0x4e3ebb){const _0x2ade1d=_0x308f34,_0x5de549=new _0x5c0cae(this[_0x2ade1d(0xff)]),_0x4c226a=new _0x38ae29();_0x4c226a[_0x2ade1d(0x135)]=_0x4e3ebb,_0x4c226a[_0x2ade1d(0x14b)]({'attributes':{'class':_0x2ade1d(0x10f)}});const _0xf945ca=new _0x55a949();return _0xf945ca[_0x2ade1d(0x104)]=_0x55f913,_0x5de549[_0x2ade1d(0x15d)]({'tag':_0x2ade1d(0x116),'attributes':{'class':_0x2ade1d(0x117)},'children':[_0x4c226a,_0xf945ca]}),{'view':_0x5de549,'highlightView':_0xf945ca};}[_0x308f34(0x175)](_0x4d7414){const _0x166594=_0x308f34,_0x28ac6b=new _0x5c0cae(this[_0x166594(0xff)]),_0xc711c6=new _0x55a949();return _0xc711c6[_0x166594(0x104)]=_0x4d7414,_0x28ac6b[_0x166594(0x15d)]({'tag':_0x166594(0x116),'attributes':{'class':_0x166594(0x157)},'children':[_0xc711c6]}),{'view':_0x28ac6b,'highlightView':_0xc711c6};}[_0x308f34(0x15c)](_0x91a4da,_0x3b1755){const _0x43bc60=_0x308f34,_0x304df6=new _0x5c0cae(this[_0x43bc60(0xff)]);return _0x304df6[_0x43bc60(0x15d)]({'tag':_0x43bc60(0x116),'attributes':{'class':_0x43bc60(0x136)},'children':[_0x91a4da,_0x3b1755]}),_0x304df6;}[_0x308f34(0x12b)](_0x13a1a0,_0x8f11c9,_0x41d531){const _0x2b42a0=_0x308f34;_0x13a1a0['on'](_0x2b42a0(0x179),()=>{const _0xac5fa0=_0x2b42a0;_0x8f11c9[_0xac5fa0(0x173)][_0xac5fa0(0x177)][_0xac5fa0(0x10e)](),_0x8f11c9[_0xac5fa0(0x149)][_0xac5fa0(0x179)](_0xac5fa0(0x17a),_0x41d531);});}[_0x308f34(0x16e)](_0x2198bd,_0x5453ee,_0x17260b){const _0x45159d=_0x308f34,_0x3bcc34=new _0x30f8ea(this[_0x45159d(0xff)]),_0x54b6cc=new _0x14b754(),_0x394921=new _0x2b2a62(this[_0x45159d(0xff)],_0x54b6cc),_0x3f62a0=_0x394921[_0x45159d(0x161)],_0x1f285a=this[_0x45159d(0x121)](_0x17260b),_0x26a153=this[_0x45159d(0x120)](_0x2198bd,_0x5453ee[_0x45159d(0x12e)],_0x17260b);_0x394921[_0x45159d(0x10a)]({'label':_0x5453ee[_0x45159d(0x12f)],'withText':!0x0,'role':Rs,'icon':_0x5453ee[_0x45159d(0x150)]??_0x27517f,'isEnabled':_0x5453ee[_0x45159d(0x12e)][_0x45159d(0x111)](_0x461481=>_0x461481[_0x45159d(0x165)])}),_0x394921[_0x45159d(0x14b)]({'on':{'mouseenter':_0x3f62a0['to'](()=>{const _0x3e125d=_0x45159d;this[_0x3e125d(0x14f)]()||_0x394921[_0x3e125d(0x10e)]();})}});const _0x4b4ed2=new _0x19b586(this[_0x45159d(0xff)]);return _0x4b4ed2[_0x45159d(0x14b)]({'attributes':{'class':['ck',_0x45159d(0x11c),_0x45159d(0x15e),_0x45159d(0x109)]},'on':{'keydown':_0x3f62a0['to'](_0x5d0346=>{const _0x48dc64=_0x45159d;this[_0x48dc64(0x16b)](_0x5d0346,_0x1f285a,_0x394921,_0x4b4ed2);})}}),_0x394921[_0x45159d(0xf4)](_0x45159d(0x168))['to'](_0x4b4ed2,_0x45159d(0xfb)),this[_0x45159d(0xfc)][_0x45159d(0x127)](_0x4b4ed2),_0x4b4ed2[_0x45159d(0x135)][_0x45159d(0x127)](_0x26a153),this[_0x45159d(0x166)](_0x394921,_0x4b4ed2),_0x3bcc34[_0x45159d(0x11a)][_0x45159d(0x127)](_0x394921),{'listItem':_0x3bcc34,'highlightView':_0x54b6cc};}[_0x308f34(0x120)](_0x516c7d,_0x41c808,_0x38a370){const _0x4a56a9=_0x308f34,_0x42af0a=new _0x3a042c(this[_0x4a56a9(0xff)]);return _0x42af0a[_0x4a56a9(0x14b)]({'attributes':{'class':['ck',_0x4a56a9(0x11c),_0x4a56a9(0x108),_0x4a56a9(0x110)]}}),_0x41c808[_0x4a56a9(0x147)](_0x545251=>{const _0x589a1e=_0x4a56a9,_0x552996=new _0x30f8ea(this[_0x589a1e(0xff)]),_0x2ba27b=_0x152ba8({'editor':_0x516c7d,'action':_0x545251,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this[_0x589a1e(0x14f)]()})();_0x552996[_0x589a1e(0x11a)][_0x589a1e(0x127)](_0x2ba27b),_0x38a370[_0x589a1e(0x178)][_0x589a1e(0x127)](_0x2ba27b),_0x42af0a[_0x589a1e(0x164)][_0x589a1e(0x127)](_0x552996);}),_0x42af0a;}[_0x308f34(0x166)](_0x5ad71f,_0x43615b){const _0x31a8df=_0x308f34,_0x16c60f=_0x5ad71f[_0x31a8df(0x161)],_0x364ebc=this[_0x31a8df(0x13f)](_0x5ad71f);_0x5ad71f[_0x31a8df(0x14b)]({'attributes':{'class':[_0x31a8df(0x14e)]},'on':{'mouseenter':_0x16c60f['to'](()=>{const _0x2df4f7=_0x31a8df;this[_0x2df4f7(0x159)](_0x43615b,_0x5ad71f);}),'mouseleave':_0x16c60f['to'](_0x29ebf2=>{const _0x31e52d=_0x31a8df,_0x5680a4=_0x29ebf2[_0x31e52d(0x112)];this[_0x31e52d(0x14d)](_0x5680a4,_0x43615b)||this[_0x31e52d(0x119)](_0x43615b);}),'keydown':_0x16c60f['to'](_0xf1bd0=>{const _0x1f3fd0=_0x31a8df;_0xf1bd0[_0x1f3fd0(0x130)]==_0x364ebc&&(this[_0x1f3fd0(0x159)](_0x43615b,_0x5ad71f),_0x43615b[_0x1f3fd0(0x135)][_0x1f3fd0(0x154)](0x0)[_0x1f3fd0(0x10e)]());})}}),_0x43615b['on'](_0x31a8df(0x102),()=>{const _0x3cb918=_0x31a8df;_0x43615b[_0x3cb918(0x105)]?.[_0x3cb918(0x12d)](_0x3cb918(0xf9),_0x564060=>{const _0x537b47=_0x3cb918,_0x58704d=_0x564060[_0x537b47(0x112)];_0x5ad71f[_0x537b47(0x105)]?.[_0x537b47(0x132)](_0x58704d)||this[_0x537b47(0x14d)](_0x58704d,_0x43615b)||this[_0x537b47(0x119)](_0x43615b);});});}[_0x308f34(0x159)](_0x54e7b5,_0x5235f7){const _0x2d480e=_0x308f34;this[_0x2d480e(0x13c)][_0x2d480e(0x147)](_0x33a63a=>{const _0x563f98=_0x2d480e;_0x33a63a!==_0x54e7b5&&_0x33a63a[_0x563f98(0xfb)]&&_0x33a63a[_0x563f98(0x13a)]();}),_0x54e7b5[_0x2d480e(0x145)](),_0x54e7b5[_0x2d480e(0x11f)]({'positions':[_0x2172c6[_0x2d480e(0x153)]],'target':_0x5235f7[_0x2d480e(0x105)],'fitInViewport':!0x0}),this[_0x2d480e(0x13c)][_0x2d480e(0x127)](_0x54e7b5);}[_0x308f34(0x119)](_0x1fec32){const _0x4e8e57=_0x308f34;_0x1fec32[_0x4e8e57(0x13a)](),this[_0x4e8e57(0x13c)][_0x4e8e57(0xf5)](_0x1fec32);}[_0x308f34(0x114)](){const _0x3beb0e=_0x308f34;this[_0x3beb0e(0x13c)][_0x3beb0e(0x147)](_0x252ad7=>_0x252ad7[_0x3beb0e(0x13a)]()),this[_0x3beb0e(0x13c)][_0x3beb0e(0x124)]();}[_0x308f34(0x14d)](_0x4b6d9e,_0x52efd0){const _0x4e07f9=_0x308f34;if(!_0x4b6d9e)return!0x1;if(_0x52efd0[_0x4e07f9(0x105)]?.[_0x4e07f9(0x132)](_0x4b6d9e))return!0x0;const _0x2b2704=_0x4b6d9e;return _0x2b2704[_0x4e07f9(0x10d)]&&(null!==_0x2b2704[_0x4e07f9(0x10d)](_0x4e07f9(0x148))||null!==_0x2b2704[_0x4e07f9(0x10d)](_0x4e07f9(0x15b))||null!==_0x2b2704[_0x4e07f9(0x10d)](_0x4e07f9(0x115)));}[_0x308f34(0x144)](){const _0x513615=_0x308f34;this[_0x513615(0x134)]&&this[_0x513615(0x134)][_0x513615(0x101)]();}[_0x308f34(0x106)](){const _0x35e161=_0x308f34;this[_0x35e161(0x114)](),this[_0x35e161(0xfc)][_0x35e161(0x160)](),super[_0x35e161(0x106)]();}[_0x308f34(0x10e)](){const _0x3f49e8=_0x308f34;this[_0x3f49e8(0x134)]?this[_0x3f49e8(0x134)][_0x3f49e8(0x10e)]():this[_0x3f49e8(0x125)][_0x3f49e8(0x10e)]();}[_0x308f34(0x121)](_0x378ecb){const _0x286762=_0x308f34;return _0x286762(0x172)===_0x378ecb[_0x286762(0xff)][_0x286762(0x16c)]?_0x286762(0x176):_0x286762(0x170);}[_0x308f34(0x13f)](_0x229043){const _0x207674=_0x308f34;return _0x207674(0x172)===_0x229043[_0x207674(0xff)][_0x207674(0x16c)]?_0x207674(0x170):_0x207674(0x176);}[_0x308f34(0x16b)](_0x329295,_0x53430c,_0x5f1bf9,_0x40a5bf){const _0x3b5a54=_0x308f34;_0x329295[_0x3b5a54(0x130)]==_0x53430c&&(_0x5f1bf9[_0x3b5a54(0x10e)](),this[_0x3b5a54(0x119)](_0x40a5bf));}[_0x308f34(0x174)](_0x5718f8){const _0x4dbe3f=_0x308f34;_0x5718f8[_0x4dbe3f(0x118)](_0x4dbe3f(0x179));}}
@@ -21,6 +21,33 @@ type DropdownButtonDefinition = {
21
21
  */
22
22
  label: string;
23
23
  };
24
+ /**
25
+ * Configuration options for aiQuickActionsDropdownCreator.
26
+ */
27
+ export interface AIQuickActionsDropdownCreatorOptions {
28
+ /**
29
+ * The CKEditor instance that will contain the dropdown.
30
+ */
31
+ editor: Editor;
32
+ /**
33
+ * Array of AI action definitions or groups to display in the dropdown.
34
+ */
35
+ content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>;
36
+ /**
37
+ * Configuration for the dropdown button (icon, label).
38
+ */
39
+ buttonDefinition: AIQuickActionsGroupDefinition | DropdownButtonDefinition;
40
+ /**
41
+ * Body collection for managing UI elements.
42
+ */
43
+ bodyCollection: BodyCollection;
44
+ /**
45
+ * Whether to show the search input.
46
+ *
47
+ * @default false
48
+ */
49
+ hasSearch?: boolean;
50
+ }
24
51
  /**
25
52
  * Creates a dropdown factory function for AI Quick Actions.
26
53
  *
@@ -34,12 +61,10 @@ type DropdownButtonDefinition = {
34
61
  * - Read-only state binding to editor
35
62
  * - Automatic closing and focus management
36
63
  * - Balloon toolbar hiding on action selection
64
+ * - Optional search functionality
37
65
  *
38
- * @param editor The CKEditor instance that will contain the dropdown
39
- * @param content Array of AI action definitions or groups to display in the dropdown
40
- * @param buttonDefinition Configuration for the dropdown button (icon, label)
41
- * @param bodyCollection Body collection for managing UI elements
66
+ * @param options Configuration options for the dropdown creator
42
67
  * @returns Factory function that creates a DropdownView instance
43
68
  */
44
- export declare function aiQuickActionsDropdownCreator(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, buttonDefinition: AIQuickActionsGroupDefinition | DropdownButtonDefinition, bodyCollection: BodyCollection): () => DropdownView;
69
+ export declare function aiQuickActionsDropdownCreator(options: AIQuickActionsDropdownCreatorOptions): () => DropdownView;
45
70
  export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x55e7(){const _0x481c28=['add','set','buttonView','173315aKLFfJ','156udrfmf','7rLdJAI','169346mAGvRb','1573QVATXb','panelView','55900cFQNhF','label','3090354vwzQHY','icon','children','3165288VkfxEW','locale','3562212OtGvZS','ck-ai-quick-actions-dropdown','11121696nQAfZd','21ukDBYX'];_0x55e7=function(){return _0x481c28;};return _0x55e7();}(function(_0x117568,_0x19beb4){const _0x2dad36=_0x29ee,_0x2bd990=_0x117568();while(!![]){try{const _0x104543=-parseInt(_0x2dad36(0x1e8))/0x1*(parseInt(_0x2dad36(0x1e9))/0x2)+-parseInt(_0x2dad36(0x1df))/0x3+-parseInt(_0x2dad36(0x1e7))/0x4*(-parseInt(_0x2dad36(0x1e6))/0x5)+parseInt(_0x2dad36(0x1da))/0x6+parseInt(_0x2dad36(0x1e2))/0x7*(-parseInt(_0x2dad36(0x1dd))/0x8)+parseInt(_0x2dad36(0x1e1))/0x9+-parseInt(_0x2dad36(0x1d8))/0xa*(-parseInt(_0x2dad36(0x1ea))/0xb);if(_0x104543===_0x19beb4)break;else _0x2bd990['push'](_0x2bd990['shift']());}catch(_0xb7c299){_0x2bd990['push'](_0x2bd990['shift']());}}}(_0x55e7,0xe4414));import{createDropdown as _0x4cdf1e}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x500128}from'@ckeditor/ckeditor5-icons';function _0x29ee(_0x2c81b7,_0x409974){const _0x55e79e=_0x55e7();return _0x29ee=function(_0x29ee10,_0x17efe9){_0x29ee10=_0x29ee10-0x1d7;let _0xa2b380=_0x55e79e[_0x29ee10];return _0xa2b380;},_0x29ee(_0x2c81b7,_0x409974);}import{AIQuickActionsDropdownContentView as _0x4b8109}from'./aiquickactionsdropdowncontentview.js';export function aiQuickActionsDropdownCreator(_0x26f293,_0x362d82,_0x56c336,_0x65caf1){return()=>{const _0x4a28a2=_0x29ee,_0x57b172=_0x26f293[_0x4a28a2(0x1de)],_0x5c3a9a=_0x4cdf1e(_0x57b172);_0x5c3a9a[_0x4a28a2(0x1e5)][_0x4a28a2(0x1e4)]({'icon':_0x56c336[_0x4a28a2(0x1db)]??_0x500128,'label':_0x56c336[_0x4a28a2(0x1d9)],'tooltip':!0x0}),_0x5c3a9a[_0x4a28a2(0x1e4)]({'class':_0x4a28a2(0x1e0)});const _0x28d66a=new _0x4b8109(_0x26f293,_0x362d82,_0x5c3a9a,_0x65caf1);return _0x5c3a9a[_0x4a28a2(0x1d7)][_0x4a28a2(0x1dc)][_0x4a28a2(0x1e3)](_0x28d66a),_0x5c3a9a;};}
23
+ (function(_0x21a6f3,_0x84edbf){const _0x25193a=_0x5d90,_0x16baf9=_0x21a6f3();while(!![]){try{const _0x55d7e1=-parseInt(_0x25193a(0x175))/0x1+parseInt(_0x25193a(0x17d))/0x2+-parseInt(_0x25193a(0x181))/0x3*(-parseInt(_0x25193a(0x16c))/0x4)+parseInt(_0x25193a(0x16b))/0x5*(-parseInt(_0x25193a(0x182))/0x6)+parseInt(_0x25193a(0x180))/0x7*(-parseInt(_0x25193a(0x173))/0x8)+-parseInt(_0x25193a(0x183))/0x9*(-parseInt(_0x25193a(0x172))/0xa)+-parseInt(_0x25193a(0x186))/0xb;if(_0x55d7e1===_0x84edbf)break;else _0x16baf9['push'](_0x16baf9['shift']());}catch(_0x45853d){_0x16baf9['push'](_0x16baf9['shift']());}}}(_0x3e51,0x49ec9));import{createDropdown as _0x40ea53}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x452eab}from'@ckeditor/ckeditor5-icons';function _0x5d90(_0x3a6987,_0x257bdc){const _0x3e51b2=_0x3e51();return _0x5d90=function(_0x5d9012,_0x28b482){_0x5d9012=_0x5d9012-0x169;let _0x416f7b=_0x3e51b2[_0x5d9012];return _0x416f7b;},_0x5d90(_0x3a6987,_0x257bdc);}import{AIQuickActionsDropdownContentView as _0x1f7d76}from'./aiquickactionsdropdowncontentview.js';import{AIEditing as _0x5e1c5b}from'../../aicore/aiediting.js';function _0x3e51(){const _0x4fb98c=['length','children','AIEditing','has','change:isOpen','selection','showFakeVisualSelection','967410tWHimX','ck-ai-quick-actions-dropdown','hideFakeVisualSelection','91EKptnr','47172SDGmQp','5010ogOApD','1779957mJOmdt','set','icon','769274nUuzqf','locale','resetSearch','model','label','getRanges','ai-quick-actions-dropdown-selection','plugins','3185EaAmGC','96KExPpe','get','buttonView','panelView','document','from','10EZDMAq','79448WTYeof','add','25129OzFNHq'];_0x3e51=function(){return _0x4fb98c;};return _0x3e51();}export function aiQuickActionsDropdownCreator(_0xbaeeb8){const {editor:_0x1b59f7,content:_0x1d75a1,buttonDefinition:_0x76bf82,bodyCollection:_0x212c41,hasSearch:_0x10aea8=!0x1}=_0xbaeeb8;return()=>{const _0x2871bc=_0x5d90,_0x3ee8eb=_0x1b59f7[_0x2871bc(0x187)],_0x4704a4=_0x40ea53(_0x3ee8eb);_0x4704a4[_0x2871bc(0x16e)][_0x2871bc(0x184)]({'icon':_0x76bf82[_0x2871bc(0x185)]??_0x452eab,'label':_0x76bf82[_0x2871bc(0x18a)],'tooltip':!0x0}),_0x4704a4[_0x2871bc(0x184)]({'class':_0x2871bc(0x17e)});const _0x475cb1=new _0x1f7d76(_0x1b59f7,_0x1d75a1,_0x4704a4,_0x212c41,_0x10aea8);if(_0x4704a4[_0x2871bc(0x16f)][_0x2871bc(0x177)][_0x2871bc(0x174)](_0x475cb1),_0x10aea8){const _0x49094e=_0x2871bc(0x169);_0x4704a4['on'](_0x2871bc(0x17a),(_0x4d70a5,_0x2f2adc,_0x3f4bf8)=>{const _0x21ae79=_0x2871bc;if(_0x3f4bf8){if(_0x1b59f7[_0x21ae79(0x16a)][_0x21ae79(0x179)](_0x21ae79(0x178))){const _0x3f5eee=_0x1b59f7[_0x21ae79(0x16a)][_0x21ae79(0x16d)](_0x5e1c5b),_0x1404ed=_0x1b59f7[_0x21ae79(0x189)][_0x21ae79(0x170)][_0x21ae79(0x17b)],_0x52b585=Array[_0x21ae79(0x171)](_0x1404ed[_0x21ae79(0x18b)]());_0x52b585[_0x21ae79(0x176)]>0x0&&_0x3f5eee[_0x21ae79(0x17c)](_0x52b585,_0x49094e,!0x1,!0x0);}}else _0x1b59f7[_0x21ae79(0x16a)][_0x21ae79(0x179)](_0x21ae79(0x178))&&_0x1b59f7[_0x21ae79(0x16a)][_0x21ae79(0x16d)](_0x5e1c5b)[_0x21ae79(0x17f)](_0x49094e),_0x475cb1[_0x21ae79(0x188)]();});}return _0x4704a4;};}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ export {};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x4c54(_0x3ef9b4,_0x1fad1){const _0x511751=_0x5117();return _0x4c54=function(_0x4c54a0,_0xf9f0bc){_0x4c54a0=_0x4c54a0-0x146;let _0x576ade=_0x511751[_0x4c54a0];return _0x576ade;},_0x4c54(_0x3ef9b4,_0x1fad1);}const _0x2565be=_0x4c54;(function(_0xebaf,_0x5f2747){const _0x2502ae=_0x4c54,_0x4f9dbe=_0xebaf();while(!![]){try{const _0x1c65c2=parseInt(_0x2502ae(0x161))/0x1+parseInt(_0x2502ae(0x15b))/0x2+-parseInt(_0x2502ae(0x14a))/0x3*(-parseInt(_0x2502ae(0x14f))/0x4)+-parseInt(_0x2502ae(0x147))/0x5+-parseInt(_0x2502ae(0x160))/0x6+-parseInt(_0x2502ae(0x15e))/0x7*(-parseInt(_0x2502ae(0x156))/0x8)+-parseInt(_0x2502ae(0x153))/0x9*(parseInt(_0x2502ae(0x149))/0xa);if(_0x1c65c2===_0x5f2747)break;else _0x4f9dbe['push'](_0x4f9dbe['shift']());}catch(_0x1a15fd){_0x4f9dbe['push'](_0x4f9dbe['shift']());}}}(_0x5117,0xbe0c3));import{ListView as _0x100573}from'ckeditor5/src/ui.js';function _0x5117(){const _0x25b33a=['_allListItems','1184202TixYfC','forEach','highlightText','4682824DVPFgh','groupLabel','label','trim','toLowerCase','1358470soXaeQ','_clearHighlight','highlightViews','14nUFTWP','addMany','7158750zuaveP','171228TzdASv','function','item','map','items','23305prtYZh','_highlightQuery','70XonBnm','2628294FvuTbz','length','clear','source','filter','4acZdTZ','_allSearchableItems','includes'];_0x5117=function(){return _0x25b33a;};return _0x5117();}import{escapeRegExp as _0x2d0a85}from'es-toolkit/compat';export class AIQuickActionsFilteredListView extends _0x100573{[_0x2565be(0x152)];[_0x2565be(0x150)];constructor(_0x479d50,_0x5ca37e,_0x5b77e9){const _0xeefbbd=_0x2565be;super(_0x479d50),this[_0xeefbbd(0x152)]=_0x5ca37e,this[_0xeefbbd(0x150)]=_0x5b77e9;}[_0x2565be(0x14e)](_0x5843d8){const _0x52def4=_0x2565be;if(!_0x5843d8)return this[_0x52def4(0x146)][_0x52def4(0x14c)](),this[_0x52def4(0x146)][_0x52def4(0x15f)](this[_0x52def4(0x152)]),this[_0x52def4(0x15c)](),{'resultsCount':this[_0x52def4(0x152)][_0x52def4(0x14b)],'totalItemsCount':this[_0x52def4(0x152)][_0x52def4(0x14b)]};const _0x1437ca=_0x5843d8[_0x52def4(0x14d)][_0x52def4(0x15a)]()[_0x52def4(0x159)](),_0x8f5265=this[_0x52def4(0x150)][_0x52def4(0x14e)](_0x5b50e2=>(_0x5b50e2[_0x52def4(0x157)]?_0x5b50e2[_0x52def4(0x158)]+'\x20('+_0x5b50e2[_0x52def4(0x157)]+')':_0x5b50e2[_0x52def4(0x158)])[_0x52def4(0x15a)]()[_0x52def4(0x151)](_0x1437ca));return this[_0x52def4(0x146)][_0x52def4(0x14c)](),this[_0x52def4(0x146)][_0x52def4(0x15f)](_0x8f5265[_0x52def4(0x164)](_0x424a8e=>_0x424a8e[_0x52def4(0x163)])),this[_0x52def4(0x148)](_0x1437ca,_0x8f5265),{'resultsCount':_0x8f5265[_0x52def4(0x14b)],'totalItemsCount':this[_0x52def4(0x150)][_0x52def4(0x14b)]};}[_0x2565be(0x148)](_0x2d4cc7,_0xf3b22){const _0x4b52fc=_0x2565be;if(!_0x2d4cc7)return;const _0x4b499d=new RegExp(_0x2d0a85(_0x2d4cc7),'gi');_0xf3b22[_0x4b52fc(0x154)](_0x3c4608=>{const _0x25fb6f=_0x4b52fc;_0x3c4608[_0x25fb6f(0x15d)]&&_0x3c4608[_0x25fb6f(0x15d)][_0x25fb6f(0x154)](_0x161f69=>{const _0x1c2dc9=_0x25fb6f;_0x1c2dc9(0x162)==typeof _0x161f69[_0x1c2dc9(0x155)]&&_0x161f69[_0x1c2dc9(0x155)](_0x4b499d);});});}[_0x2565be(0x15c)](){const _0x4fdd5a=_0x2565be;this[_0x4fdd5a(0x150)][_0x4fdd5a(0x154)](_0x1d9a52=>{const _0x11164e=_0x4fdd5a;_0x1d9a52[_0x11164e(0x15d)]&&_0x1d9a52[_0x11164e(0x15d)][_0x11164e(0x154)](_0x7afefa=>{const _0x199516=_0x11164e;_0x199516(0x162)==typeof _0x7afefa[_0x199516(0x155)]&&_0x7afefa[_0x199516(0x155)](null);});});}}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aiquickactions/ui/dropdownmenubuttonwithhighlightview
7
+ */
8
+ import { IconView, type ButtonLabelWithHighlightView, ListItemButtonView } from 'ckeditor5/src/ui.js';
9
+ /**
10
+ * A custom dropdown menu button view that supports text highlighting.
11
+ * We need to bypass DropdownMenuButtonView's constructor and manually set up the button.
12
+ */
13
+ export declare class DropdownMenuButtonWithHighlightView extends ListItemButtonView {
14
+ /**
15
+ * An icon that displays an arrow to indicate a direction of the menu.
16
+ */
17
+ readonly arrowView: IconView;
18
+ /**
19
+ * Creates an instance with highlighting support.
20
+ *
21
+ * @param locale The localization services instance.
22
+ * @param labelView The label view with highlighting support.
23
+ */
24
+ constructor(locale: any, labelView: ButtonLabelWithHighlightView);
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ render(): void;
29
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x5e6823=_0x237a;(function(_0x3eed13,_0xea6b9d){const _0x13e896=_0x237a,_0x5889fc=_0x3eed13();while(!![]){try{const _0x4090ca=parseInt(_0x13e896(0x127))/0x1*(parseInt(_0x13e896(0x12f))/0x2)+parseInt(_0x13e896(0x121))/0x3*(-parseInt(_0x13e896(0x11e))/0x4)+-parseInt(_0x13e896(0x125))/0x5*(parseInt(_0x13e896(0x128))/0x6)+parseInt(_0x13e896(0x12c))/0x7+-parseInt(_0x13e896(0x11c))/0x8+parseInt(_0x13e896(0x12a))/0x9*(-parseInt(_0x13e896(0x11a))/0xa)+-parseInt(_0x13e896(0x130))/0xb*(-parseInt(_0x13e896(0x122))/0xc);if(_0x4090ca===_0xea6b9d)break;else _0x5889fc['push'](_0x5889fc['shift']());}catch(_0x3c8bb4){_0x5889fc['push'](_0x5889fc['shift']());}}}(_0x62ed,0x9484d));import{IconView as _0x3ce647,ListItemButtonView as _0x42a4e5}from'ckeditor5/src/ui.js';import{IconDropdownArrow as _0x3ad21b}from'@ckeditor/ckeditor5-icons';function _0x237a(_0x5f078f,_0x30a94d){const _0x62ed32=_0x62ed();return _0x237a=function(_0x237a89,_0x2d85ae){_0x237a89=_0x237a89-0x118;let _0x1e386c=_0x62ed32[_0x237a89];return _0x1e386c;},_0x237a(_0x5f078f,_0x30a94d);}function _0x62ed(){const _0x2d8f44=['6161904fSAjhl','render','796jVfXfd','ck-dropdown-menu-list__nested-menu__button','bindTemplate','3591BtmKPw','12LyTRwB','arrowView','ck-dropdown-menu-list__nested-menu__button__arrow','15VMGWVY','add','509pSjHnZ','1930788pTNWsr','menuitem','54YcCbTv','mouseenter','6061398wVKuWc','content','set','2066NhykqE','16535739DhTnzo','isOn','extendTemplate','children','521320uPIgpB','_createArrowView'];_0x62ed=function(){return _0x2d8f44;};return _0x62ed();}export class DropdownMenuButtonWithHighlightView extends _0x42a4e5{[_0x5e6823(0x123)];constructor(_0x48bffd,_0x1d1307){const _0x144409=_0x5e6823;super(_0x48bffd,_0x1d1307);const _0x4a95f1=this[_0x144409(0x120)];this[_0x144409(0x12e)]({'withText':!0x0,'role':_0x144409(0x129)}),this[_0x144409(0x123)]=this[_0x144409(0x11b)](),this[_0x144409(0x118)]({'attributes':{'class':[_0x144409(0x11f)],'aria-haspopup':!0x0,'aria-expanded':this[_0x144409(0x120)]['to'](_0x144409(0x131),_0x166890=>String(_0x166890)),'data-cke-tooltip-disabled':_0x4a95f1['to'](_0x144409(0x131))},'on':{'mouseenter':_0x4a95f1['to'](_0x144409(0x12b))}});}[_0x5e6823(0x11d)](){const _0x10840f=_0x5e6823;super[_0x10840f(0x11d)](),this[_0x10840f(0x119)][_0x10840f(0x126)](this[_0x10840f(0x123)]);}[_0x5e6823(0x11b)](){const _0x440e3e=_0x5e6823,_0x3289a8=new _0x3ce647();return _0x3289a8[_0x440e3e(0x12d)]=_0x3ad21b,_0x3289a8[_0x440e3e(0x118)]({'attributes':{'class':_0x440e3e(0x124)}}),_0x3289a8;}}