@ckeditor/ckeditor5-ai 47.5.0 → 47.6.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 (515) hide show
  1. package/build/966.ai.js +5 -0
  2. package/build/ai.js +1 -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/en.js +1 -0
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/dist/index-editor.css +387 -403
  77. package/dist/index.css +441 -413
  78. package/dist/index.js +5 -5
  79. package/dist/translations/af.js +1 -1
  80. package/dist/translations/af.umd.js +1 -1
  81. package/dist/translations/ar.js +1 -1
  82. package/dist/translations/ar.umd.js +1 -1
  83. package/dist/translations/ast.js +1 -1
  84. package/dist/translations/ast.umd.js +1 -1
  85. package/dist/translations/az.js +1 -1
  86. package/dist/translations/az.umd.js +1 -1
  87. package/dist/translations/be.js +1 -1
  88. package/dist/translations/be.umd.js +1 -1
  89. package/dist/translations/bg.js +1 -1
  90. package/dist/translations/bg.umd.js +1 -1
  91. package/dist/translations/bn.js +1 -1
  92. package/dist/translations/bn.umd.js +1 -1
  93. package/dist/translations/bs.js +1 -1
  94. package/dist/translations/bs.umd.js +1 -1
  95. package/dist/translations/ca.js +1 -1
  96. package/dist/translations/ca.umd.js +1 -1
  97. package/dist/translations/cs.js +1 -1
  98. package/dist/translations/cs.umd.js +1 -1
  99. package/dist/translations/da.js +1 -1
  100. package/dist/translations/da.umd.js +1 -1
  101. package/dist/translations/de-ch.js +1 -1
  102. package/dist/translations/de-ch.umd.js +1 -1
  103. package/dist/translations/de.js +1 -1
  104. package/dist/translations/de.umd.js +1 -1
  105. package/dist/translations/el.js +1 -1
  106. package/dist/translations/el.umd.js +1 -1
  107. package/dist/translations/en-au.js +1 -1
  108. package/dist/translations/en-au.umd.js +1 -1
  109. package/dist/translations/en-gb.js +1 -1
  110. package/dist/translations/en-gb.umd.js +1 -1
  111. package/dist/translations/en.js +1 -1
  112. package/dist/translations/en.umd.js +1 -1
  113. package/dist/translations/eo.js +1 -1
  114. package/dist/translations/eo.umd.js +1 -1
  115. package/dist/translations/es-co.js +1 -1
  116. package/dist/translations/es-co.umd.js +1 -1
  117. package/dist/translations/es.js +1 -1
  118. package/dist/translations/es.umd.js +1 -1
  119. package/dist/translations/et.js +1 -1
  120. package/dist/translations/et.umd.js +1 -1
  121. package/dist/translations/eu.js +1 -1
  122. package/dist/translations/eu.umd.js +1 -1
  123. package/dist/translations/fa.js +1 -1
  124. package/dist/translations/fa.umd.js +1 -1
  125. package/dist/translations/fi.js +1 -1
  126. package/dist/translations/fi.umd.js +1 -1
  127. package/dist/translations/fr.js +1 -1
  128. package/dist/translations/fr.umd.js +1 -1
  129. package/dist/translations/gl.js +1 -1
  130. package/dist/translations/gl.umd.js +1 -1
  131. package/dist/translations/gu.js +1 -1
  132. package/dist/translations/gu.umd.js +1 -1
  133. package/dist/translations/he.js +1 -1
  134. package/dist/translations/he.umd.js +1 -1
  135. package/dist/translations/hi.js +1 -1
  136. package/dist/translations/hi.umd.js +1 -1
  137. package/dist/translations/hr.js +1 -1
  138. package/dist/translations/hr.umd.js +1 -1
  139. package/dist/translations/hu.js +1 -1
  140. package/dist/translations/hu.umd.js +1 -1
  141. package/dist/translations/hy.js +1 -1
  142. package/dist/translations/hy.umd.js +1 -1
  143. package/dist/translations/id.js +1 -1
  144. package/dist/translations/id.umd.js +1 -1
  145. package/dist/translations/it.js +1 -1
  146. package/dist/translations/it.umd.js +1 -1
  147. package/dist/translations/ja.js +1 -1
  148. package/dist/translations/ja.umd.js +1 -1
  149. package/dist/translations/jv.js +1 -1
  150. package/dist/translations/jv.umd.js +1 -1
  151. package/dist/translations/kk.js +1 -1
  152. package/dist/translations/kk.umd.js +1 -1
  153. package/dist/translations/km.js +1 -1
  154. package/dist/translations/km.umd.js +1 -1
  155. package/dist/translations/kn.js +1 -1
  156. package/dist/translations/kn.umd.js +1 -1
  157. package/dist/translations/ko.js +1 -1
  158. package/dist/translations/ko.umd.js +1 -1
  159. package/dist/translations/ku.js +1 -1
  160. package/dist/translations/ku.umd.js +1 -1
  161. package/dist/translations/lt.js +1 -1
  162. package/dist/translations/lt.umd.js +1 -1
  163. package/dist/translations/lv.js +1 -1
  164. package/dist/translations/lv.umd.js +1 -1
  165. package/dist/translations/ms.js +1 -1
  166. package/dist/translations/ms.umd.js +1 -1
  167. package/dist/translations/nb.js +1 -1
  168. package/dist/translations/nb.umd.js +1 -1
  169. package/dist/translations/ne.js +1 -1
  170. package/dist/translations/ne.umd.js +1 -1
  171. package/dist/translations/nl.js +1 -1
  172. package/dist/translations/nl.umd.js +1 -1
  173. package/dist/translations/no.js +1 -1
  174. package/dist/translations/no.umd.js +1 -1
  175. package/dist/translations/oc.js +1 -1
  176. package/dist/translations/oc.umd.js +1 -1
  177. package/dist/translations/pl.js +1 -1
  178. package/dist/translations/pl.umd.js +1 -1
  179. package/dist/translations/pt-br.js +1 -1
  180. package/dist/translations/pt-br.umd.js +1 -1
  181. package/dist/translations/pt.js +1 -1
  182. package/dist/translations/pt.umd.js +1 -1
  183. package/dist/translations/ro.js +1 -1
  184. package/dist/translations/ro.umd.js +1 -1
  185. package/dist/translations/ru.js +1 -1
  186. package/dist/translations/ru.umd.js +1 -1
  187. package/dist/translations/si.js +1 -1
  188. package/dist/translations/si.umd.js +1 -1
  189. package/dist/translations/sk.js +1 -1
  190. package/dist/translations/sk.umd.js +1 -1
  191. package/dist/translations/sl.js +1 -1
  192. package/dist/translations/sl.umd.js +1 -1
  193. package/dist/translations/sq.js +1 -1
  194. package/dist/translations/sq.umd.js +1 -1
  195. package/dist/translations/sr-latn.js +1 -1
  196. package/dist/translations/sr-latn.umd.js +1 -1
  197. package/dist/translations/sr.js +1 -1
  198. package/dist/translations/sr.umd.js +1 -1
  199. package/dist/translations/sv.js +1 -1
  200. package/dist/translations/sv.umd.js +1 -1
  201. package/dist/translations/th.js +1 -1
  202. package/dist/translations/th.umd.js +1 -1
  203. package/dist/translations/ti.js +1 -1
  204. package/dist/translations/ti.umd.js +1 -1
  205. package/dist/translations/tk.js +1 -1
  206. package/dist/translations/tk.umd.js +1 -1
  207. package/dist/translations/tr.js +1 -1
  208. package/dist/translations/tr.umd.js +1 -1
  209. package/dist/translations/tt.js +1 -1
  210. package/dist/translations/tt.umd.js +1 -1
  211. package/dist/translations/ug.js +1 -1
  212. package/dist/translations/ug.umd.js +1 -1
  213. package/dist/translations/uk.js +1 -1
  214. package/dist/translations/uk.umd.js +1 -1
  215. package/dist/translations/ur.js +1 -1
  216. package/dist/translations/ur.umd.js +1 -1
  217. package/dist/translations/uz.js +1 -1
  218. package/dist/translations/uz.umd.js +1 -1
  219. package/dist/translations/vi.js +1 -1
  220. package/dist/translations/vi.umd.js +1 -1
  221. package/dist/translations/zh-cn.js +1 -1
  222. package/dist/translations/zh-cn.umd.js +1 -1
  223. package/dist/translations/zh.js +1 -1
  224. package/dist/translations/zh.umd.js +1 -1
  225. package/lang/contexts.json +1 -0
  226. package/lang/translations/af.po +8 -4
  227. package/lang/translations/ar.po +8 -4
  228. package/lang/translations/ast.po +8 -4
  229. package/lang/translations/az.po +8 -4
  230. package/lang/translations/be.po +8 -4
  231. package/lang/translations/bg.po +8 -4
  232. package/lang/translations/bn.po +8 -4
  233. package/lang/translations/bs.po +8 -4
  234. package/lang/translations/ca.po +8 -4
  235. package/lang/translations/cs.po +8 -4
  236. package/lang/translations/da.po +8 -4
  237. package/lang/translations/de-ch.po +8 -4
  238. package/lang/translations/de.po +8 -4
  239. package/lang/translations/el.po +8 -4
  240. package/lang/translations/en-au.po +8 -4
  241. package/lang/translations/en-gb.po +8 -4
  242. package/lang/translations/en.po +8 -4
  243. package/lang/translations/eo.po +8 -4
  244. package/lang/translations/es-co.po +8 -4
  245. package/lang/translations/es.po +8 -4
  246. package/lang/translations/et.po +8 -4
  247. package/lang/translations/eu.po +8 -4
  248. package/lang/translations/fa.po +8 -4
  249. package/lang/translations/fi.po +8 -4
  250. package/lang/translations/fr.po +8 -4
  251. package/lang/translations/gl.po +8 -4
  252. package/lang/translations/gu.po +8 -4
  253. package/lang/translations/he.po +8 -4
  254. package/lang/translations/hi.po +8 -4
  255. package/lang/translations/hr.po +8 -4
  256. package/lang/translations/hu.po +8 -4
  257. package/lang/translations/hy.po +8 -4
  258. package/lang/translations/id.po +8 -4
  259. package/lang/translations/it.po +8 -4
  260. package/lang/translations/ja.po +8 -4
  261. package/lang/translations/jv.po +8 -4
  262. package/lang/translations/kk.po +8 -4
  263. package/lang/translations/km.po +8 -4
  264. package/lang/translations/kn.po +8 -4
  265. package/lang/translations/ko.po +8 -4
  266. package/lang/translations/ku.po +8 -4
  267. package/lang/translations/lt.po +8 -4
  268. package/lang/translations/lv.po +8 -4
  269. package/lang/translations/ms.po +8 -4
  270. package/lang/translations/nb.po +8 -4
  271. package/lang/translations/ne.po +8 -4
  272. package/lang/translations/nl.po +8 -4
  273. package/lang/translations/no.po +8 -4
  274. package/lang/translations/oc.po +8 -4
  275. package/lang/translations/pl.po +8 -4
  276. package/lang/translations/pt-br.po +8 -4
  277. package/lang/translations/pt.po +8 -4
  278. package/lang/translations/ro.po +8 -4
  279. package/lang/translations/ru.po +8 -4
  280. package/lang/translations/si.po +8 -4
  281. package/lang/translations/sk.po +8 -4
  282. package/lang/translations/sl.po +8 -4
  283. package/lang/translations/sq.po +8 -4
  284. package/lang/translations/sr-latn.po +8 -4
  285. package/lang/translations/sr.po +8 -4
  286. package/lang/translations/sv.po +8 -4
  287. package/lang/translations/th.po +8 -4
  288. package/lang/translations/ti.po +8 -4
  289. package/lang/translations/tk.po +8 -4
  290. package/lang/translations/tr.po +8 -4
  291. package/lang/translations/tt.po +8 -4
  292. package/lang/translations/ug.po +8 -4
  293. package/lang/translations/uk.po +8 -4
  294. package/lang/translations/ur.po +8 -4
  295. package/lang/translations/uz.po +8 -4
  296. package/lang/translations/vi.po +8 -4
  297. package/lang/translations/zh-cn.po +8 -4
  298. package/lang/translations/zh.po +8 -4
  299. package/package.json +21 -21
  300. package/src/aiactions/aiactions.js +1 -1
  301. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  302. package/src/aiactions/model/aiactionsreply.js +1 -1
  303. package/src/aiassistant/adapters/aiadapter.js +1 -1
  304. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  305. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  306. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  307. package/src/aiassistant/aiassistant.js +1 -1
  308. package/src/aiassistant/aiassistantediting.js +1 -1
  309. package/src/aiassistant/aiassistantui.js +1 -1
  310. package/src/aiassistant/legacyerrors.js +1 -1
  311. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  312. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  313. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  316. package/src/aiassistant/ui/form/aiformview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  318. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  319. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  320. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  321. package/src/aiassistant/utils/common-translations.js +1 -1
  322. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoonview.js +1 -1
  325. package/src/aichat/aichat.d.ts +12 -8
  326. package/src/aichat/aichat.js +1 -1
  327. package/src/aichat/aichatballoon.js +1 -1
  328. package/src/aichat/aichatcontroller.d.ts +4 -0
  329. package/src/aichat/aichatcontroller.js +1 -1
  330. package/src/aichat/aichatui.d.ts +24 -1
  331. package/src/aichat/aichatui.js +1 -1
  332. package/src/aichat/model/aichatcontext.js +1 -1
  333. package/src/aichat/model/aichatconversation.d.ts +13 -0
  334. package/src/aichat/model/aichatconversation.js +1 -1
  335. package/src/aichat/model/aichatinteraction.js +1 -1
  336. package/src/aichat/ui/aichatballoonview.js +1 -1
  337. package/src/aichat/ui/aichatcontrolsview.d.ts +5 -1
  338. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  339. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  340. package/src/aichat/ui/aichatfeedview.js +1 -1
  341. package/src/aichat/ui/aichatheaderview.js +1 -1
  342. package/src/aichat/ui/aichatview.js +1 -1
  343. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  345. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  346. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  348. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  349. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +5 -0
  350. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  351. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  353. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  354. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  355. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  356. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  361. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  362. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  366. package/src/aichat/utils/eventnames.js +1 -1
  367. package/src/aichat/utils/promisequeue.js +1 -1
  368. package/src/aichathistory/aichathistory.js +1 -1
  369. package/src/aichathistory/aichathistorycontroller.js +1 -1
  370. package/src/aichathistory/aichathistoryui.js +1 -1
  371. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  372. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  373. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  374. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  375. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  376. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  377. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  378. package/src/aichatshortcuts/aichatshortcuts.d.ts +324 -0
  379. package/src/aichatshortcuts/aichatshortcuts.js +23 -0
  380. package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
  381. package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
  382. package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
  383. package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
  384. package/src/aiconfig.d.ts +7 -0
  385. package/src/aicore/aiconnector.js +1 -1
  386. package/src/aicore/aiediting.js +1 -1
  387. package/src/aicore/model/aicapabilities.d.ts +8 -0
  388. package/src/aicore/model/aicapabilities.js +1 -1
  389. package/src/aicore/model/aicontext.d.ts +7 -1
  390. package/src/aicore/model/aicontext.js +1 -1
  391. package/src/aicore/model/aiinteraction.js +1 -1
  392. package/src/aicore/model/aimodels.js +1 -1
  393. package/src/aicore/model/aireply.js +1 -1
  394. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  395. package/src/aicore/pipeline/airesponseparser.js +2 -2
  396. package/src/aicore/ui/aidisclaimerview.js +1 -1
  397. package/src/aicore/ui/aiskeleton.js +1 -1
  398. package/src/aicore/ui/aispinner.js +1 -1
  399. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  400. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  401. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  404. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  408. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.d.ts +1 -0
  412. package/src/aicore/utils/createresizebutton.js +1 -1
  413. package/src/aicore/utils/documentposition.js +1 -1
  414. package/src/aicore/utils/documentrange.js +1 -1
  415. package/src/aicore/utils/eventnames.js +1 -1
  416. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aicore/utils/scrollmanager.js +1 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  433. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  434. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  435. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  436. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  437. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  438. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  439. package/src/aireviewcore/aireviewcoreui.js +1 -1
  440. package/src/aireviewcore/model/aireviewcheck.d.ts +4 -0
  441. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  442. package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
  443. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  444. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  445. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  447. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  448. package/src/aireviewcore/types.d.ts +11 -2
  449. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  450. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  451. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  452. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  453. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  454. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  455. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  456. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  457. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  458. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  459. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  460. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  461. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  462. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +4 -0
  463. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  464. package/src/aireviewmode/aireviewmode.d.ts +95 -0
  465. package/src/aireviewmode/aireviewmode.js +1 -1
  466. package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
  467. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  468. package/src/aireviewmode/aireviewmodeui.js +1 -1
  469. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
  470. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  471. package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
  472. package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
  473. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
  474. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  475. package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
  476. package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
  477. package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
  478. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  479. package/src/aitabs/aitabs.js +1 -1
  480. package/src/aitabs/aitabsmainview.js +1 -1
  481. package/src/aitabs/tabs/aitabsview.js +1 -1
  482. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  483. package/src/aitabs/tabs/tabpanelview.js +1 -1
  484. package/src/aitranslate/aitranslate.js +1 -1
  485. package/src/aitranslate/aitranslatecontroller.js +1 -1
  486. package/src/aitranslate/aitranslateui.js +1 -1
  487. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  488. package/src/aitranslate/model/aitranslatechecklist.d.ts +5 -0
  489. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  490. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  491. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  492. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  493. package/src/augmentation.d.ts +2 -0
  494. package/src/errors.js +1 -1
  495. package/src/errorsmap.js +1 -1
  496. package/src/index.d.ts +2 -1
  497. package/src/index.js +1 -1
  498. package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
  499. package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
  500. package/theme/aichat/aichat-controls/prompt-input.css +23 -0
  501. package/theme/aichat/aichat-controls.css +0 -19
  502. package/theme/aichat/aichathistory.css +1 -1
  503. package/theme/aichat/aiminitoolbar.css +0 -16
  504. package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
  505. package/theme/aieditorintegration/aitogglebutton.css +5 -11
  506. package/theme/aiquickactions/aiquickactions.css +6 -11
  507. package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
  508. package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
  509. package/theme/aireviewcore/aireviewcore.css +4 -4
  510. package/theme/aitabs/aitabsresizebutton.css +14 -0
  511. package/theme/aitranslate/aitranslate.css +4 -0
  512. package/theme/common/aibutton.css +56 -67
  513. package/theme/common/aiheader.css +1 -1
  514. package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
  515. package/theme/common/aisuggestionstreamablecontent.css +4 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1d027b=_0x45f8;function _0x51cb(){var _0x162eef=['element','value','isEmpty','1800778LaBUDy','ck-review__prompt-input','minRows','render','536pTtaiC','update','MIN_ROWS','451956tyoTwy','3058VLILes','extendTemplate','65628kaGbbP','trim','1883436lJgOEr','1429653mrqmtk','keystrokes','MAX_ROWS','ai-review-prompt-input','16GBKnyA','set','2304018yxKbvA','maxRows','63110DHGgmr','listenTo','15EZNgFk'];_0x51cb=function(){return _0x162eef;};return _0x51cb();}(function(_0x4dcd2d,_0x4a1d23){var _0x55827e=_0x45f8,_0x283ec4=_0x4dcd2d();while(!![]){try{var _0x254880=parseInt(_0x55827e(0x1ca))/0x1+-parseInt(_0x55827e(0x1c9))/0x2+parseInt(_0x55827e(0x1df))/0x3*(parseInt(_0x55827e(0x1ce))/0x4)+parseInt(_0x55827e(0x1d4))/0x5*(parseInt(_0x55827e(0x1d0))/0x6)+-parseInt(_0x55827e(0x1d8))/0x7+parseInt(_0x55827e(0x1dc))/0x8*(parseInt(_0x55827e(0x1e2))/0x9)+parseInt(_0x55827e(0x1d2))/0xa*(-parseInt(_0x55827e(0x1e0))/0xb);if(_0x254880===_0x4a1d23)break;else _0x283ec4['push'](_0x283ec4['shift']());}catch(_0x23ca11){_0x283ec4['push'](_0x283ec4['shift']());}}}(_0x51cb,0xafa2c));function _0x45f8(_0x5e7101,_0x1294af){var _0x51cb5a=_0x51cb();return _0x45f8=function(_0x45f8fb,_0x17a833){_0x45f8fb=_0x45f8fb-0x1c8;var _0x44a424=_0x51cb5a[_0x45f8fb];return _0x44a424;},_0x45f8(_0x5e7101,_0x1294af);}import{TextareaView as _0x18c0fe}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x505a64}from'ckeditor5/src/utils.js';export class AIReviewCorePromptInputView extends _0x18c0fe{[_0x1d027b(0x1cb)];static [_0x1d027b(0x1de)]=0x1;static [_0x1d027b(0x1cc)]=0xc;constructor(_0x37ef06){var _0x3861c3=_0x1d027b;super(_0x37ef06),this[_0x3861c3(0x1cf)](_0x3861c3(0x1d7),!0x0),this[_0x3861c3(0x1cb)]=new _0x505a64(),this[_0x3861c3(0x1da)]=AIReviewCorePromptInputView[_0x3861c3(0x1de)],this[_0x3861c3(0x1d1)]=AIReviewCorePromptInputView[_0x3861c3(0x1cc)],this[_0x3861c3(0x1e1)]({'attributes':{'id':_0x3861c3(0x1cd),'class':['ck',_0x3861c3(0x1d9)]}});}[_0x1d027b(0x1db)](){var _0x3b802f=_0x1d027b;super[_0x3b802f(0x1db)](),this['on'](_0x3b802f(0x1dd),()=>{var _0x19401b=_0x3b802f;this[_0x19401b(0x1d7)]=''===this[_0x19401b(0x1d5)][_0x19401b(0x1d6)]?.[_0x19401b(0x1c8)]();}),this[_0x3b802f(0x1cb)][_0x3b802f(0x1d3)](this[_0x3b802f(0x1d5)]);}}
23
+ function _0x2c62(_0x38234d,_0x4db499){var _0x2cae49=_0x2cae();return _0x2c62=function(_0x2c623d,_0x2eb3e7){_0x2c623d=_0x2c623d-0x78;var _0x34c839=_0x2cae49[_0x2c623d];return _0x34c839;},_0x2c62(_0x38234d,_0x4db499);}var _0x4eac07=_0x2c62;function _0x2cae(){var _0x481efa=['listenTo','set','maxRows','30946949wNZtkH','MAX_ROWS','ai-review-prompt-input','update','2220vmslGx','extendTemplate','12330rVmovJ','8214668cGpeRX','element','isEmpty','value','154330Djjtiw','301144jdyEQP','trim','minRows','MIN_ROWS','ck-review__prompt-input','render','12QDaQLd','3vJQAEr','keystrokes','5928264lVyPoV','5jZEaYg','4494484cUmtRE'];_0x2cae=function(){return _0x481efa;};return _0x2cae();}(function(_0x5646c8,_0xd9396d){var _0x58fe90=_0x2c62,_0x1a6778=_0x5646c8();while(!![]){try{var _0x1bbd9b=-parseInt(_0x58fe90(0x8d))/0x1*(-parseInt(_0x58fe90(0x83))/0x2)+-parseInt(_0x58fe90(0x8a))/0x3*(-parseInt(_0x58fe90(0x8e))/0x4)+-parseInt(_0x58fe90(0x82))/0x5*(parseInt(_0x58fe90(0x89))/0x6)+parseInt(_0x58fe90(0x7e))/0x7+parseInt(_0x58fe90(0x8c))/0x8+parseInt(_0x58fe90(0x7d))/0x9*(-parseInt(_0x58fe90(0x7b))/0xa)+-parseInt(_0x58fe90(0x92))/0xb;if(_0x1bbd9b===_0xd9396d)break;else _0x1a6778['push'](_0x1a6778['shift']());}catch(_0x1fc572){_0x1a6778['push'](_0x1a6778['shift']());}}}(_0x2cae,0x955df));import{TextareaView as _0x2715f2}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x1a2733}from'ckeditor5/src/utils.js';export class AIReviewCorePromptInputView extends _0x2715f2{[_0x4eac07(0x8b)];static [_0x4eac07(0x86)]=0x1;static [_0x4eac07(0x78)]=0xc;constructor(_0x46fe68){var _0x4a36ef=_0x4eac07;super(_0x46fe68),this[_0x4a36ef(0x90)](_0x4a36ef(0x80),!0x0),this[_0x4a36ef(0x8b)]=new _0x1a2733(),this[_0x4a36ef(0x85)]=AIReviewCorePromptInputView[_0x4a36ef(0x86)],this[_0x4a36ef(0x91)]=AIReviewCorePromptInputView[_0x4a36ef(0x78)],this[_0x4a36ef(0x7c)]({'attributes':{'id':_0x4a36ef(0x79),'class':['ck',_0x4a36ef(0x87)]}});}[_0x4eac07(0x88)](){var _0x14c6ec=_0x4eac07;super[_0x14c6ec(0x88)](),this['on'](_0x14c6ec(0x7a),()=>{var _0x4accdf=_0x14c6ec;this[_0x4accdf(0x80)]=''===this[_0x4accdf(0x7f)][_0x4accdf(0x81)]?.[_0x4accdf(0x84)]();}),this[_0x14c6ec(0x8b)][_0x14c6ec(0x8f)](this[_0x14c6ec(0x7f)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xde9756=_0x4414;function _0x4414(_0x356321,_0x12884b){const _0x3e3c1c=_0x3e3c();return _0x4414=function(_0x4414dc,_0x58816d){_0x4414dc=_0x4414dc-0x174;let _0x259a1f=_0x3e3c1c[_0x4414dc];return _0x259a1f;},_0x4414(_0x356321,_0x12884b);}(function(_0x1079aa,_0x3c62d4){const _0x4b76a1=_0x4414,_0x49dfd9=_0x1079aa();while(!![]){try{const _0x415371=parseInt(_0x4b76a1(0x17f))/0x1+parseInt(_0x4b76a1(0x185))/0x2+parseInt(_0x4b76a1(0x181))/0x3+parseInt(_0x4b76a1(0x176))/0x4*(parseInt(_0x4b76a1(0x17e))/0x5)+parseInt(_0x4b76a1(0x17a))/0x6*(-parseInt(_0x4b76a1(0x175))/0x7)+parseInt(_0x4b76a1(0x184))/0x8+-parseInt(_0x4b76a1(0x182))/0x9*(parseInt(_0x4b76a1(0x186))/0xa);if(_0x415371===_0x3c62d4)break;else _0x49dfd9['push'](_0x49dfd9['shift']());}catch(_0xe10b3b){_0x49dfd9['push'](_0x49dfd9['shift']());}}}(_0x3e3c,0x38040));import{ListItemView as _0x3b483f,ViewCollection as _0x2b1fe2}from'ckeditor5/src/ui.js';import{AIReviewCoreReviewCommandListItemView as _0xa219a3}from'./aireviewcorereviewcommandlistitemview.js';import'../../../theme/aireviewcore/aireviewcore-check-list.css';export class AIReviewCoreReviewCheckListView extends _0x3b483f{[_0xde9756(0x178)];constructor(_0x236475){const _0xc732de=_0xde9756;super(_0x236475),this[_0xc732de(0x178)]=new _0x2b1fe2(),this[_0xc732de(0x190)]();}[_0xde9756(0x17b)](_0x585af7,_0x4146dd=!0x1){const _0x599fb2=_0xde9756;this[_0x599fb2(0x178)][_0x599fb2(0x179)]();for(const [_0x105357,_0x1c9e27]of _0x585af7[_0x599fb2(0x18f)]()){const _0x12da64=new _0xa219a3(this[_0x599fb2(0x187)],_0x1c9e27,_0x105357,_0x4146dd);_0x12da64[_0x599fb2(0x18a)](_0x599fb2(0x17c))['to'](this),this[_0x599fb2(0x178)][_0x599fb2(0x17d)](_0x12da64);}}[_0xde9756(0x18b)](){const _0x5e262d=_0xde9756;return this[_0x5e262d(0x178)][_0x5e262d(0x189)]>0x0;}[_0xde9756(0x177)](){const _0x434cef=_0xde9756;for(const _0x34a4ac of this[_0x434cef(0x178)])_0x34a4ac instanceof _0xa219a3&&_0x34a4ac[_0x434cef(0x183)]();}[_0xde9756(0x190)](){const _0x24cd5d=_0xde9756,_0x4f7de6=this[_0x24cd5d(0x18d)];this[_0x24cd5d(0x180)]({'tag':_0x24cd5d(0x188),'attributes':{'class':[_0x24cd5d(0x18c),_0x4f7de6['if'](_0x24cd5d(0x18e),_0x24cd5d(0x174),_0x337561=>!_0x337561)]},'children':this[_0x24cd5d(0x178)]});}}function _0x3e3c(){const _0x35bb39=['28kshhZM','129568hWTMlW','resetAllParameterizedChecks','_checkViews','clear','684wFgLdS','setChecks','runReviewCheck','add','10GCzEZD','141169OkbcWl','setTemplate','52434SKamOq','18pUuuNF','resetToDefault','1152968sRHJbl','2580vOuEwf','694730IFfvkU','locale','div','length','delegate','hasChecks','ck-ai_review__check-list','bindTemplate','isVisible','entries','_setupTemplate','ck-hidden'];_0x3e3c=function(){return _0x35bb39;};return _0x3e3c();}
23
+ const _0x1cdd9e=_0x1a7b;(function(_0x5e129b,_0x329e62){const _0x5951fe=_0x1a7b,_0x2027e0=_0x5e129b();while(!![]){try{const _0x5b487e=-parseInt(_0x5951fe(0xc6))/0x1+parseInt(_0x5951fe(0xcf))/0x2+-parseInt(_0x5951fe(0xc1))/0x3*(-parseInt(_0x5951fe(0xbe))/0x4)+parseInt(_0x5951fe(0xcd))/0x5+parseInt(_0x5951fe(0xc4))/0x6+parseInt(_0x5951fe(0xc8))/0x7+-parseInt(_0x5951fe(0xcb))/0x8;if(_0x5b487e===_0x329e62)break;else _0x2027e0['push'](_0x2027e0['shift']());}catch(_0x2f1eed){_0x2027e0['push'](_0x2027e0['shift']());}}}(_0x118d,0xe191a));import{ListItemView as _0x56aabf,ViewCollection as _0x6dcce8}from'ckeditor5/src/ui.js';function _0x118d(){const _0x5d9e8c=['623124cNJGCY','resetToDefault','bindTemplate','delegate','setChecks','_checkViews','div','ck-ai_review__check-list','setTemplate','clear','415060SNKHHa','ck-hidden','isVisible','51cYRTvj','add','hasChecks','2371206JtqMqO','_setupTemplate','698644krQatg','locale','12225206NHKqAZ','resetAllParameterizedChecks','entries','27133160gMEPqn','runReviewCheck','3984965vKKVom','length'];_0x118d=function(){return _0x5d9e8c;};return _0x118d();}function _0x1a7b(_0x5c01fe,_0x4ef95d){const _0x118dd6=_0x118d();return _0x1a7b=function(_0x1a7b7e,_0x2d3a5b){_0x1a7b7e=_0x1a7b7e-0xbc;let _0x20bf8f=_0x118dd6[_0x1a7b7e];return _0x20bf8f;},_0x1a7b(_0x5c01fe,_0x4ef95d);}import{AIReviewCoreReviewCommandListItemView as _0x3cd859}from'./aireviewcorereviewcommandlistitemview.js';import'../../../theme/aireviewcore/aireviewcore-check-list.css';export class AIReviewCoreReviewCheckListView extends _0x56aabf{[_0x1cdd9e(0xd4)];constructor(_0x5d28c2){const _0x1bdb93=_0x1cdd9e;super(_0x5d28c2),this[_0x1bdb93(0xd4)]=new _0x6dcce8(),this[_0x1bdb93(0xc5)]();}[_0x1cdd9e(0xd3)](_0x39c8ec,_0x3f0cb5=!0x1){const _0x5bdd37=_0x1cdd9e;this[_0x5bdd37(0xd4)][_0x5bdd37(0xbd)]();for(const [_0x1d23d2,_0x1b40cf]of _0x39c8ec[_0x5bdd37(0xca)]()){const _0x5bf0f6=new _0x3cd859(this[_0x5bdd37(0xc7)],_0x1b40cf,_0x1d23d2,_0x3f0cb5);_0x5bf0f6[_0x5bdd37(0xd2)](_0x5bdd37(0xcc))['to'](this),this[_0x5bdd37(0xd4)][_0x5bdd37(0xc2)](_0x5bf0f6);}}[_0x1cdd9e(0xc3)](){const _0x44fe4b=_0x1cdd9e;return this[_0x44fe4b(0xd4)][_0x44fe4b(0xce)]>0x0;}[_0x1cdd9e(0xc9)](){const _0x4ef578=_0x1cdd9e;for(const _0x2b1dcc of this[_0x4ef578(0xd4)])_0x2b1dcc instanceof _0x3cd859&&_0x2b1dcc[_0x4ef578(0xd0)]();}[_0x1cdd9e(0xc5)](){const _0xcaf9ec=_0x1cdd9e,_0xd4d641=this[_0xcaf9ec(0xd1)];this[_0xcaf9ec(0xbc)]({'tag':_0xcaf9ec(0xd5),'attributes':{'class':[_0xcaf9ec(0xd6),_0xd4d641['if'](_0xcaf9ec(0xc0),_0xcaf9ec(0xbf),_0x33be7e=>!_0x33be7e)]},'children':this[_0xcaf9ec(0xd4)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ListItemView as _0x577ba1,IconView as _0x12fca0,View as _0x534b86,ViewCollection as _0x11af67,ButtonView as _0x3e6a0c,clickOutsideHandler as _0x44ec9e}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x5cf092}from'ckeditor5/src/icons.js';import{AIReviewCoreFormManagerView as tc}from'./form/aireviewcoreformmanager.js';import{AIReviewCoreCustomCheckView as _0x485f83}from'./aireviewcorecustomcheckview.js';export class AIReviewCoreReviewCommandListItemView extends _0x577ba1{['_formItemsCollection']=new _0x11af67();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x10e69e,_0x4850c2,_0x11c4cc,_0x18580f=!0x1){super(_0x10e69e),this['_hideModels']=_0x18580f,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x4850c2['isParameterized']);const _0x33edf3=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai_review__check-list-item_selected',_0x3d178b=>_0x3d178b),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x4b2079=>_0x4b2079)],'style':{'--ck-ai-review-check-list-item-index':_0x11c4cc}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-list-item-title-text']},'children':[{'text':_0x4850c2['title']}]},_0x33edf3]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x4850c2['description']?[{'text':_0x4850c2['description']}]:[]}]}]},..._0x4850c2['isParameterized']?[this['_createParameterizedView'](_0x4850c2)]:[],...'custom'===_0x4850c2['id']?[this['_createCustomView'](_0x4850c2,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x4850c2['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x4850c2['id'],'args':_0x4850c2['useArgs']?_0x4850c2['args']:void 0x0});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x44ec9e({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x5242e0=>{_0x5242e0['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x30953a=new _0x12fca0();return _0x30953a['content']=_0x5cf092,_0x30953a['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0x30953a;}['_createParameterizedView'](_0x212b16){const _0x50d75c=new _0x534b86(),_0x28248d=this['_createFormView'](_0x212b16);return _0x50d75c['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x2a526f=>!_0x2a526f)]},'children':[_0x28248d]}),_0x50d75c;}['_createFormView'](_0x9b0b94){const _0x33d3d8=new _0x534b86(),_0x4eaaf6=Array['isArray'](_0x9b0b94['options'])?_0x9b0b94['options']:[],_0x945f29=new _0x3e6a0c(this['locale']),t=this['locale']['t'];_0x945f29['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x945f29['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x1b2a26=>{_0x1b2a26['stopPropagation']();})}}),_0x945f29['on']('execute',()=>{const _0x1affdc=[],_0x2d78ea={};this['_formItemsCollection']['forEach'](_0x11d19d=>{_0x1affdc['push'](_0x11d19d['value']),_0x9b0b94['useArgs']&&_0x9b0b94['options']&&(_0x2d78ea[_0x11d19d['argsKey']]=_0x11d19d['value']);}),this['fire']('runReviewCheck',{'id':_0x9b0b94['id'],'params':_0x1affdc['length']?_0x1affdc:void 0x0,'args':Object['keys'](_0x2d78ea)['length']?_0x2d78ea:void 0x0});});const _0x301646=_0x4eaaf6['length'];return _0x4eaaf6['forEach']((_0x1f9caa,_0x3ce5c8)=>{const _0x1f6260=_0x3ce5c8===_0x301646-0x1;this['_formItemsCollection']['add'](new tc(this['locale'],_0x1f9caa,_0x1f6260?_0x945f29:null));}),_0x33d3d8['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x33d3d8;}['_createCustomView'](_0x445278,_0x2b9ab7=!0x1){return this['_customCheckView']=new _0x485f83(this['locale'],_0x445278,_0x2b9ab7),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-parameterized','ck-ai_review__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0xd3b83e=>!_0xd3b83e)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x2c76b7,_0x28ca6a,_0x5302b5)=>{_0x5302b5||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
23
+ import{ListItemView as _0xfa5fcb,IconView as _0x5ddf28,View as _0x55ef2d,ViewCollection as _0x283c9c,ButtonView as _0x74387e,clickOutsideHandler as _0x4b30ce}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x280623}from'ckeditor5/src/icons.js';import{AIReviewCoreFormManagerView as _0x48cdfa}from'./form/aireviewcoreformmanager.js';import{AIReviewCoreCustomCheckView as _0x4c0d4f}from'./aireviewcorecustomcheckview.js';export class AIReviewCoreReviewCommandListItemView extends _0xfa5fcb{['_formItemsCollection']=new _0x283c9c();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x809ec4,_0x582524,_0x4f0c15,_0x1090d8=!0x1){super(_0x809ec4),this['_hideModels']=_0x1090d8,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x582524['isParameterized']);const _0xafc8b7=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai_review__check-list-item_selected',_0x4c2750=>_0x4c2750),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x413c45=>_0x413c45)],'style':{'--ck-ai-review-check-list-item-index':_0x4f0c15}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-list-item-title-text']},'children':[{'text':_0x582524['title']}]},_0xafc8b7]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x582524['description']?[{'text':_0x582524['description']}]:[]}]}]},..._0x582524['isParameterized']?[this['_createParameterizedView'](_0x582524)]:[],...'custom'===_0x582524['id']?[this['_createCustomView'](_0x582524,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x582524['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x582524['id'],'args':_0x582524['useArgs']?_0x582524['args']:void 0x0});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x4b30ce({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x192360=>{_0x192360['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x30423b=new _0x5ddf28();return _0x30423b['content']=_0x280623,_0x30423b['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0x30423b;}['_createParameterizedView'](_0x287374){const _0xcfdbe7=new _0x55ef2d(),_0x53fdf5=this['_createFormView'](_0x287374);return _0xcfdbe7['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x13e792=>!_0x13e792)]},'children':[_0x53fdf5]}),_0xcfdbe7;}['_createFormView'](_0x504b06){const _0x14682f=new _0x55ef2d(),_0x6e8e4c=Array['isArray'](_0x504b06['options'])?_0x504b06['options']:[],_0x5dcd01=new _0x74387e(this['locale']),t=this['locale']['t'];_0x5dcd01['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x5dcd01['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x54aee7=>{_0x54aee7['stopPropagation']();})}}),_0x5dcd01['on']('execute',()=>{const _0x270f6d=[],_0x661d89={};this['_formItemsCollection']['forEach'](_0xae4c58=>{_0x270f6d['push'](_0xae4c58['value']),_0x504b06['useArgs']&&_0x504b06['options']&&(_0x661d89[_0xae4c58['argsKey']]=_0xae4c58['value']);}),this['fire']('runReviewCheck',{'id':_0x504b06['id'],'params':_0x270f6d['length']?_0x270f6d:void 0x0,'args':Object['keys'](_0x661d89)['length']?_0x661d89:void 0x0});});const _0x2fcf1a=_0x6e8e4c['length'];return _0x6e8e4c['forEach']((_0x11bcd0,_0x4315a0)=>{const _0x5a92f5=_0x4315a0===_0x2fcf1a-0x1;this['_formItemsCollection']['add'](new _0x48cdfa(this['locale'],_0x11bcd0,_0x5a92f5?_0x5dcd01:null));}),_0x14682f['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x14682f;}['_createCustomView'](_0x3ab5ab,_0x32a33f=!0x1){return this['_customCheckView']=new _0x4c0d4f(this['locale'],_0x3ab5ab,_0x32a33f),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-parameterized','ck-ai_review__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x37c2a6=>!_0x37c2a6)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x145aa6,_0x11f980,_0x57494a)=>{_0x57494a||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b1696=_0x1ea2;(function(_0x483219,_0x4bbdc6){const _0x2f5420=_0x1ea2,_0x173645=_0x483219();while(!![]){try{const _0x1551ee=-parseInt(_0x2f5420(0x71))/0x1+-parseInt(_0x2f5420(0x73))/0x2+-parseInt(_0x2f5420(0x76))/0x3+parseInt(_0x2f5420(0x88))/0x4+parseInt(_0x2f5420(0x7c))/0x5*(-parseInt(_0x2f5420(0x86))/0x6)+parseInt(_0x2f5420(0x85))/0x7+-parseInt(_0x2f5420(0x7f))/0x8*(-parseInt(_0x2f5420(0x70))/0x9);if(_0x1551ee===_0x4bbdc6)break;else _0x173645['push'](_0x173645['shift']());}catch(_0x1ac8f9){_0x173645['push'](_0x173645['shift']());}}}(_0x432f,0x71a35));function _0x1ea2(_0x567196,_0x41132e){const _0x432f44=_0x432f();return _0x1ea2=function(_0x1ea207,_0x53540d){_0x1ea207=_0x1ea207-0x69;let _0x2321dc=_0x432f44[_0x1ea207];return _0x2321dc;},_0x1ea2(_0x567196,_0x41132e);}function _0x432f(){const _0x266155=['ck-ai_review__review-completed-header','setTemplate','buttonText','6936993BnZxhZ','580114POWvXp','ck-ai_review__review-completed-content','519526NiaTuM','emptyResultsText','ck-ai_review__review-completed-content-text','2319822SMEyzj','_resultsHeader','locale','isVisible','_finishReviewButtonView','delegate','11215aIdmXZ','ck-hidden','_createFinishReviewButtonView','16UImisQ','div','bindTemplate','ck-ai_review__review-completed-header-buttons','_createResultHeaderView','span','3324370FcvBSt','876YbJsIp','ck-ai_review__review-completed','1558504szHleY','ck-ai_review__review-completed-header-title','ck-ai_review__review-completed-content-icon','headerText','finishReview'];_0x432f=function(){return _0x266155;};return _0x432f();}import{ListItemView as _0x48e467,View as _0x480986}from'ckeditor5/src/ui.js';import{AIReviewCoreFinishReviewButtonView as _0x4769ed}from'./aireviewcorefinishreviewbuttonview.js';import'../../../theme/aireviewcore/aireviewcore-review-completed.css';export class AIReviewCoreReviewCompletedView extends _0x48e467{[_0x2b1696(0x77)];[_0x2b1696(0x7a)];constructor(_0x3a6f37,_0x19cdb4){const _0x1c49fc=_0x2b1696;super(_0x3a6f37),this[_0x1c49fc(0x7a)]=this[_0x1c49fc(0x7e)](_0x19cdb4[_0x1c49fc(0x6f)]),this[_0x1c49fc(0x77)]=this[_0x1c49fc(0x83)](_0x19cdb4[_0x1c49fc(0x6b)]);const _0x577a9b=this[_0x1c49fc(0x81)];this[_0x1c49fc(0x6e)]({'tag':_0x1c49fc(0x80),'attributes':{'class':[_0x1c49fc(0x87),_0x577a9b['if'](_0x1c49fc(0x79),_0x1c49fc(0x7d),_0x59a084=>!_0x59a084)]},'children':[this[_0x1c49fc(0x77)],{'tag':_0x1c49fc(0x80),'attributes':{'class':[_0x1c49fc(0x72)]},'children':[{'tag':_0x1c49fc(0x84),'attributes':{'class':[_0x1c49fc(0x6a)]},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':[_0x1c49fc(0x75)]},'children':[{'text':_0x19cdb4[_0x1c49fc(0x74)]}]}]}]});}[_0x2b1696(0x7e)](_0x550992){const _0x2c1419=_0x2b1696,_0x2e163c=new _0x4769ed(_0x550992,this[_0x2c1419(0x78)]);return _0x2e163c[_0x2c1419(0x7b)](_0x2c1419(0x6c))['to'](this),_0x2e163c;}[_0x2b1696(0x83)](_0x5900c2){const _0xb82a13=_0x2b1696,_0x26ffa9=new _0x480986(this[_0xb82a13(0x78)]);return _0x26ffa9[_0xb82a13(0x6e)]({'tag':_0xb82a13(0x80),'attributes':{'class':[_0xb82a13(0x6d)]},'children':[{'tag':_0xb82a13(0x84),'attributes':{'class':[_0xb82a13(0x69)]},'children':[{'text':_0x5900c2}]},{'tag':_0xb82a13(0x80),'attributes':{'class':[_0xb82a13(0x82)]},'children':[this[_0xb82a13(0x7a)]]}]}),_0x26ffa9;}}
23
+ const _0xbae655=_0x2186;(function(_0x5caea0,_0xf86f7d){const _0x2cc00f=_0x2186,_0x38f021=_0x5caea0();while(!![]){try{const _0x3ab332=-parseInt(_0x2cc00f(0x87))/0x1*(-parseInt(_0x2cc00f(0x8e))/0x2)+-parseInt(_0x2cc00f(0x8c))/0x3*(parseInt(_0x2cc00f(0x88))/0x4)+-parseInt(_0x2cc00f(0x82))/0x5+parseInt(_0x2cc00f(0x98))/0x6*(-parseInt(_0x2cc00f(0x86))/0x7)+parseInt(_0x2cc00f(0x91))/0x8+-parseInt(_0x2cc00f(0x93))/0x9+parseInt(_0x2cc00f(0x92))/0xa*(parseInt(_0x2cc00f(0x96))/0xb);if(_0x3ab332===_0xf86f7d)break;else _0x38f021['push'](_0x38f021['shift']());}catch(_0x1fc30b){_0x38f021['push'](_0x38f021['shift']());}}}(_0x2c74,0xaba91));function _0x2c74(){const _0x59c34d=['292035xTDFKj','locale','ck-ai_review__review-completed-content-text','ck-ai_review__review-completed-content-icon','203fcTJts','277094hOvpKn','766372wdOarU','_createFinishReviewButtonView','headerText','ck-ai_review__review-completed-header-title','6sdiJUh','span','4sUzSyF','ck-ai_review__review-completed','ck-ai_review__review-completed-header-buttons','1041352YziTbu','248470zxDDAv','3131298hlMMGq','_createResultHeaderView','buttonText','814OsMnCI','emptyResultsText','213186cScWJf','_resultsHeader','bindTemplate','_finishReviewButtonView','setTemplate','ck-ai_review__review-completed-content','ck-hidden','isVisible','delegate','div','ck-ai_review__review-completed-header','finishReview'];_0x2c74=function(){return _0x59c34d;};return _0x2c74();}import{ListItemView as _0x5e7a74,View as _0x5239a7}from'ckeditor5/src/ui.js';import{AIReviewCoreFinishReviewButtonView as _0x10e93c}from'./aireviewcorefinishreviewbuttonview.js';function _0x2186(_0xdb2b83,_0x35a3d5){const _0x2c7482=_0x2c74();return _0x2186=function(_0x2186c9,_0x1298e9){_0x2186c9=_0x2186c9-0x7f;let _0x11282d=_0x2c7482[_0x2186c9];return _0x11282d;},_0x2186(_0xdb2b83,_0x35a3d5);}import'../../../theme/aireviewcore/aireviewcore-review-completed.css';export class AIReviewCoreReviewCompletedView extends _0x5e7a74{[_0xbae655(0x99)];[_0xbae655(0x9b)];constructor(_0x192763,_0x429254){const _0x3389fd=_0xbae655;super(_0x192763),this[_0x3389fd(0x9b)]=this[_0x3389fd(0x89)](_0x429254[_0x3389fd(0x95)]),this[_0x3389fd(0x99)]=this[_0x3389fd(0x94)](_0x429254[_0x3389fd(0x8a)]);const _0x2dd415=this[_0x3389fd(0x9a)];this[_0x3389fd(0x9c)]({'tag':_0x3389fd(0x7f),'attributes':{'class':[_0x3389fd(0x8f),_0x2dd415['if'](_0x3389fd(0x9f),_0x3389fd(0x9e),_0x1898e3=>!_0x1898e3)]},'children':[this[_0x3389fd(0x99)],{'tag':_0x3389fd(0x7f),'attributes':{'class':[_0x3389fd(0x9d)]},'children':[{'tag':_0x3389fd(0x8d),'attributes':{'class':[_0x3389fd(0x85)]},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':[_0x3389fd(0x84)]},'children':[{'text':_0x429254[_0x3389fd(0x97)]}]}]}]});}[_0xbae655(0x89)](_0x316e10){const _0x35d2c7=_0xbae655,_0x407482=new _0x10e93c(_0x316e10,this[_0x35d2c7(0x83)]);return _0x407482[_0x35d2c7(0xa0)](_0x35d2c7(0x81))['to'](this),_0x407482;}[_0xbae655(0x94)](_0x1929dd){const _0x579b6e=_0xbae655,_0x1dcc50=new _0x5239a7(this[_0x579b6e(0x83)]);return _0x1dcc50[_0x579b6e(0x9c)]({'tag':_0x579b6e(0x7f),'attributes':{'class':[_0x579b6e(0x80)]},'children':[{'tag':_0x579b6e(0x8d),'attributes':{'class':[_0x579b6e(0x8b)]},'children':[{'text':_0x1929dd}]},{'tag':_0x579b6e(0x7f),'attributes':{'class':[_0x579b6e(0x90)]},'children':[this[_0x579b6e(0x9b)]]}]}),_0x1dcc50;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ListItemView as _0x11a24f,View as _0x258e6c,ViewCollection as _0x2ba660,ButtonView as _0x542232}from'ckeditor5/src/ui.js';import{IconStop as _0x5cb599,IconEye as _0x4bcc2e,IconEyeCrossedOut as _0x1f302e}from'ckeditor5/src/icons.js';import{AISkeletonView as _0x45c2ca,SKELETON_DEFINITIONS as _0x590dcd}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x285096}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x3696b8}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x4ffa3e}from'../../aicore/ui/aispinner.js';import{AIReviewCoreReviewCheckListItemResultsView as _0x310bc2}from'./aireviewcorechecklistitemresultview.js';import{AIReviewCoreFinishReviewButtonView as _0x1952ad}from'./aireviewcorefinishreviewbuttonview.js';import'../../../theme/aireviewcore/aireviewcore-check-run.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreUICheckResultsView extends _0x11a24f{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x43742a,_0x4c35d4){super(_0x43742a),this['_contents']=_0x4c35d4,this['_resultViews']=new _0x2ba660(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['_resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x285096(_0x43742a),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1);const _0x88b7a6=this['_createCombinedSkeletonLoader'](),_0x25b7f9=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x25b7f9['if']('isLoading','ck-ai_review__check-run_loading',_0x5200be=>_0x5200be),_0x25b7f9['if']('isResultReady','ck-ai_review__check-run_ready',_0x4764f8=>_0x4764f8),_0x25b7f9['if']('isVisible','ck-hidden',_0x1dea7e=>!_0x1dea7e)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0x40ca66=>_0x40ca66)]},'children':this['_resultViews']},_0x88b7a6]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x7ef9ea){const _0x5bf1a5=new _0x310bc2(this['locale'],_0x7ef9ea['id']);_0x5bf1a5['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x5bf1a5),_0x5bf1a5['resultResponseView']['element']['innerHTML']=_0x7ef9ea['contentDiffed'];}['hideResult'](_0x2a4bf0,_0x55c7cd){if('pending'===_0x55c7cd)return;const _0xf2708d=this['_resultViews']['find'](_0xeca4ed=>_0xeca4ed['id']===_0x2a4bf0);_0xf2708d&&(_0xf2708d['status']=_0x55c7cd,_0xf2708d['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x249574,_0x254c53){if('pending'!==_0x254c53)return;const _0x3a406b=this['_resultViews']['find'](_0x326b68=>_0x326b68['id']===_0x249574);_0x3a406b&&(_0x3a406b['status']=_0x254c53,_0x3a406b['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x498969,_0x54b96c){this['headerTitle']=_0x498969,this['headerSubtitle']=_0x54b96c||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x45c2ca(this['locale'],_0x590dcd['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0xe07e28=new _0x258e6c(this['locale']),_0x4ce9e7=[];for(let _0x1991e2=0x0;_0x1991e2<0x10;_0x1991e2++){const _0x410750=this['_createSkeletonLoader']();_0x410750['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x4ce9e7['push'](_0x410750);}return _0xe07e28['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x31fb37=>!_0x31fb37)]},'children':_0x4ce9e7}),_0xe07e28;}['_createErrorView'](){const _0x29e41a=new _0x258e6c(this['locale']),_0x3e51d8=new _0x542232(this['locale']),t=this['locale']['t'];return _0x29e41a['delegate']('retryReview')['to'](this),_0x3e51d8['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x3e51d8['on']('execute',()=>{this['fire']('retryReview');}),_0x29e41a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x422aa5=>!_0x422aa5),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x2516f1=>'chunk'===_0x2516f1)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai_review__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x37d000=>'chunk'===_0x37d000)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x2335f9=>'general'!==_0x2335f9)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x4b3564=>'chunk'!==_0x4b3564)]},'children':[{'text':_0x3696b8(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x3e51d8]}),_0x29e41a;}['_createCancelButtonView'](){const _0xdfac88=new _0x542232(this['locale']);return _0xdfac88['set']({'label':_0x3696b8(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x5cb599}),_0xdfac88['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x486c12=>_0x486c12),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5744a7=>_0x5744a7)]}}),_0xdfac88['on']('execute',()=>{this['fire']('abortReviewStream');}),_0xdfac88;}['_createToggleDiffButtonView'](){const _0x852168=new _0x542232(this['locale']);_0x852168['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x852168['bind']('isEnabled')['to'](this,'isError',_0x230f97=>!_0x230f97),_0x852168['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x339215=>!_0x339215),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x136fbf=>_0x136fbf)]}});const _0x2b91ba=_0x3696b8(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x8567a9=_0x3696b8(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x852168['bind']('isOn')['to'](this,'isToggleDiffOn',_0x58bae7=>_0x58bae7),_0x852168['bind']('icon')['to'](this,'isToggleDiffOn',_0x4e4ace=>_0x4e4ace?_0x4bcc2e:_0x1f302e),_0x852168['bind']('label')['to'](this,'isToggleDiffOn',_0x3aec2a=>_0x3aec2a?_0x2b91ba:_0x8567a9),_0x852168['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x852168;}['_createAcceptAllButtonView'](){const _0x2481e=new _0x542232(this['locale']);return _0x2481e['set']({'label':_0x3696b8(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x2481e['bind']('isEnabled')['to'](this,'isError',_0x500825=>!_0x500825),_0x2481e['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x182463=>!_0x182463),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4f3b1f=>_0x4f3b1f)]}}),_0x2481e['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x2481e;}['_createExitReviewButtonView'](){const _0x30cd9e=new _0x542232(this['locale']);return _0x30cd9e['set']({'label':_0x3696b8(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x30cd9e['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x354eee=>!_0x354eee),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1ede5b=>_0x1ede5b)]}}),_0x30cd9e['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x30cd9e;}['_createResultHeaderView'](){const _0x46b029=new _0x258e6c(this['locale']),_0x52d2d8=this['_createTitleView']();return _0x46b029['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x3e7f5a=>_0x3e7f5a)]},'children':[_0x52d2d8,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x46b029;}['_createTitleView'](){const _0x7cdea2=new _0x258e6c(this['locale']),_0xbb197b=new _0x4ffa3e();return _0xbb197b['bind']('isVisible')['to'](this,'isResultReady',_0xe91948=>!_0xe91948),_0x7cdea2['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0xbb197b,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4fe493=>_0x4fe493)]},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2b65b5=>!_0x2b65b5)]},'children':[{'text':_0x3696b8(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x7cdea2;}['_createFinishReviewButtonView'](){const _0xa2e67c=new _0x1952ad(_0x3696b8(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0xa2e67c['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x26e42a=>!_0x26e42a)]}}),_0xa2e67c['delegate']('finishReview')['to'](this),_0xa2e67c;}}
23
+ import{ListItemView as _0x472119,View as _0x35ea0f,ViewCollection as _0x30fa77,ButtonView as _0x46a266}from'ckeditor5/src/ui.js';import{IconStop as _0x2cbedf,IconEye as _0x10228,IconEyeCrossedOut as _0x3c71f1}from'ckeditor5/src/icons.js';import{AISkeletonView as _0x452228,SKELETON_DEFINITIONS as _0x30ab21}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x5180e9}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x8db986}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x43931c}from'../../aicore/ui/aispinner.js';import{AIReviewCoreReviewCheckListItemResultsView as _0x460986}from'./aireviewcorechecklistitemresultview.js';import{AIReviewCoreFinishReviewButtonView as _0x5abf39}from'./aireviewcorefinishreviewbuttonview.js';import'../../../theme/aireviewcore/aireviewcore-check-run.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreUICheckResultsView extends _0x472119{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x20a1eb,_0x59e165){super(_0x20a1eb),this['_contents']=_0x59e165,this['_resultViews']=new _0x30fa77(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['_resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x5180e9(_0x20a1eb),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1);const _0x70a5f2=this['_createCombinedSkeletonLoader'](),_0x524fa5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x524fa5['if']('isLoading','ck-ai_review__check-run_loading',_0x2de9ba=>_0x2de9ba),_0x524fa5['if']('isResultReady','ck-ai_review__check-run_ready',_0x4a6f56=>_0x4a6f56),_0x524fa5['if']('isVisible','ck-hidden',_0x57a255=>!_0x57a255)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0x41bb68=>_0x41bb68)]},'children':this['_resultViews']},_0x70a5f2]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x4dbf0e){const _0x234c63=new _0x460986(this['locale'],_0x4dbf0e['id']);_0x234c63['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x234c63),_0x234c63['resultResponseView']['element']['innerHTML']=_0x4dbf0e['contentDiffed'];}['hideResult'](_0x564367,_0x46830e){if('pending'===_0x46830e)return;const _0x28d18c=this['_resultViews']['find'](_0x1f95e5=>_0x1f95e5['id']===_0x564367);_0x28d18c&&(_0x28d18c['status']=_0x46830e,_0x28d18c['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x1fd0e8,_0x2fce37){if('pending'!==_0x2fce37)return;const _0x59e3ca=this['_resultViews']['find'](_0x50087e=>_0x50087e['id']===_0x1fd0e8);_0x59e3ca&&(_0x59e3ca['status']=_0x2fce37,_0x59e3ca['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x425368,_0x2e5e61){this['headerTitle']=_0x425368,this['headerSubtitle']=_0x2e5e61||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x452228(this['locale'],_0x30ab21['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x5caf0c=new _0x35ea0f(this['locale']),_0x478774=[];for(let _0xa0f86c=0x0;_0xa0f86c<0x10;_0xa0f86c++){const _0x461ae1=this['_createSkeletonLoader']();_0x461ae1['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x478774['push'](_0x461ae1);}return _0x5caf0c['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x2af046=>!_0x2af046)]},'children':_0x478774}),_0x5caf0c;}['_createErrorView'](){const _0x38b85c=new _0x35ea0f(this['locale']),_0x534b37=new _0x46a266(this['locale']),t=this['locale']['t'];return _0x38b85c['delegate']('retryReview')['to'](this),_0x534b37['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x534b37['on']('execute',()=>{this['fire']('retryReview');}),_0x38b85c['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x105f23=>!_0x105f23),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x4cdee8=>'chunk'===_0x4cdee8)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai_review__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x5d72df=>'chunk'===_0x5d72df)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x2d20c3=>'general'!==_0x2d20c3)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x3d67e4=>'chunk'!==_0x3d67e4)]},'children':[{'text':_0x8db986(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x534b37]}),_0x38b85c;}['_createCancelButtonView'](){const _0x1d2c1c=new _0x46a266(this['locale']);return _0x1d2c1c['set']({'label':_0x8db986(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x2cbedf}),_0x1d2c1c['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x19d16e=>_0x19d16e),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x9f65bf=>_0x9f65bf)]}}),_0x1d2c1c['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x1d2c1c;}['_createToggleDiffButtonView'](){const _0x495af1=new _0x46a266(this['locale']);_0x495af1['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x495af1['bind']('isEnabled')['to'](this,'isError',_0x4ee177=>!_0x4ee177),_0x495af1['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x59f17f=>!_0x59f17f),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x45ce76=>_0x45ce76)]}});const _0x5ee5a6=_0x8db986(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x3c0d7a=_0x8db986(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x495af1['bind']('isOn')['to'](this,'isToggleDiffOn',_0x2a016e=>_0x2a016e),_0x495af1['bind']('icon')['to'](this,'isToggleDiffOn',_0x37f7bb=>_0x37f7bb?_0x10228:_0x3c71f1),_0x495af1['bind']('label')['to'](this,'isToggleDiffOn',_0x239d96=>_0x239d96?_0x5ee5a6:_0x3c0d7a),_0x495af1['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x495af1;}['_createAcceptAllButtonView'](){const _0x543456=new _0x46a266(this['locale']);return _0x543456['set']({'label':_0x8db986(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x543456['bind']('isEnabled')['to'](this,'isError',_0x4692af=>!_0x4692af),_0x543456['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x2c50b8=>!_0x2c50b8),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x6658db=>_0x6658db)]}}),_0x543456['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x543456;}['_createExitReviewButtonView'](){const _0x149211=new _0x46a266(this['locale']);return _0x149211['set']({'label':_0x8db986(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x149211['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x17c6ef=>!_0x17c6ef),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5cb7c6=>_0x5cb7c6)]}}),_0x149211['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x149211;}['_createResultHeaderView'](){const _0x2be64a=new _0x35ea0f(this['locale']),_0x1caea4=this['_createTitleView']();return _0x2be64a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x3e5ce7=>_0x3e5ce7)]},'children':[_0x1caea4,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x2be64a;}['_createTitleView'](){const _0x1d38b7=new _0x35ea0f(this['locale']),_0xc75ef0=new _0x43931c();return _0xc75ef0['bind']('isVisible')['to'](this,'isResultReady',_0x47c2fd=>!_0x47c2fd),_0x1d38b7['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0xc75ef0,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1c504a=>_0x1c504a)]},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1f8e3d=>!_0x1f8e3d)]},'children':[{'text':_0x8db986(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x1d38b7;}['_createFinishReviewButtonView'](){const _0x3f30cd=new _0x5abf39(_0x8db986(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x3f30cd['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5a9024=>!_0x5a9024)]}}),_0x3f30cd['delegate']('finishReview')['to'](this),_0x3f30cd;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x350426=_0x3c8d;(function(_0xc96618,_0x2fb035){var _0x2c1ba2=_0x3c8d,_0x23e07d=_0xc96618();while(!![]){try{var _0x37556b=parseInt(_0x2c1ba2(0x14e))/0x1+parseInt(_0x2c1ba2(0x147))/0x2+-parseInt(_0x2c1ba2(0x155))/0x3+parseInt(_0x2c1ba2(0x138))/0x4*(-parseInt(_0x2c1ba2(0x164))/0x5)+parseInt(_0x2c1ba2(0x152))/0x6*(parseInt(_0x2c1ba2(0x149))/0x7)+parseInt(_0x2c1ba2(0x15a))/0x8*(-parseInt(_0x2c1ba2(0x156))/0x9)+parseInt(_0x2c1ba2(0x15e))/0xa;if(_0x37556b===_0x2fb035)break;else _0x23e07d['push'](_0x23e07d['shift']());}catch(_0x596f53){_0x23e07d['push'](_0x23e07d['shift']());}}}(_0xc71b,0x662a3));function _0x3c8d(_0x44d6b5,_0x5d65b9){var _0xc71bf5=_0xc71b();return _0x3c8d=function(_0x3c8d00,_0x2d7b76){_0x3c8d00=_0x3c8d00-0x137;var _0x1d1b34=_0xc71bf5[_0x3c8d00];return _0x1d1b34;},_0x3c8d(_0x44d6b5,_0x5d65b9);}import{View as _0x2dd7b9}from'ckeditor5/src/ui.js';function _0xc71b(){var _0x484f0d=['clearResults','24688Iseidn','reviewCheckListView','showNoChangesView','delegate','429690TKwMHp','isLoading','ck-rounded-corners','769941ZzoQYU','306vAfLbl','generalErrorView','ck-reset_all','hideActionsWhenResultIsReady','167208eoswQt','resetAllParameterizedChecks','ck-ai-review','showChunkErrorMessage','3225940dpsSvp','showActionsWhenResultIsReady','completed','setTemplate','reviewCheckResultsView','showReviewCompletedView','105ovAFAk','showGeneralErrorMessage','header','set','ltr','74644uXvTAK','showGeneralResultsErrorView','list','reviewCompletedView','finishReview','showReviewCheckResultsView','isCompleted','isResultReady','div','results','reviewCoreHeader','showGeneralReviewCoreErrorView','resetErrorState','addResult','errorMessage','1571624BSAMMU','showChunkErrorView','63KWHsOY','showReviewCheckListView','addCheckRunResult','isVisible'];_0xc71b=function(){return _0x484f0d;};return _0xc71b();}import{AI_REVIEW_MODE_UI_EVENT_NAMES as _0x550a1e}from'../aireviewcoreui.js';import{AIReviewCoreGeneralErrorView as _0x261afa}from'./aireviewcoregeneralerrorview.js';export class AIReviewCoreView extends _0x2dd7b9{[_0x350426(0x142)];[_0x350426(0x157)];[_0x350426(0x14f)];[_0x350426(0x162)];[_0x350426(0x13b)];constructor(_0xe01793,_0x394461){var _0x487ed4=_0x350426;super(_0xe01793),this[_0x487ed4(0x142)]=_0x394461[_0x487ed4(0x166)],this[_0x487ed4(0x157)]=new _0x261afa(_0xe01793),this[_0x487ed4(0x14f)]=_0x394461[_0x487ed4(0x13a)],this[_0x487ed4(0x14f)][_0x487ed4(0x151)](..._0x550a1e)['to'](this),this[_0x487ed4(0x162)]=_0x394461[_0x487ed4(0x141)],this[_0x487ed4(0x162)][_0x487ed4(0x151)](..._0x550a1e)['to'](this),this[_0x487ed4(0x13b)]=_0x394461[_0x487ed4(0x160)],this[_0x487ed4(0x13b)][_0x487ed4(0x151)](_0x487ed4(0x13c))['to'](this),this[_0x487ed4(0x14f)][_0x487ed4(0x167)](_0x487ed4(0x14c),!0x1),this[_0x487ed4(0x162)][_0x487ed4(0x167)](_0x487ed4(0x14c),!0x1),this[_0x487ed4(0x162)][_0x487ed4(0x167)](_0x487ed4(0x153),!0x1),this[_0x487ed4(0x162)][_0x487ed4(0x167)](_0x487ed4(0x13f),!0x1),this[_0x487ed4(0x13b)][_0x487ed4(0x167)](_0x487ed4(0x14c),!0x1),this[_0x487ed4(0x161)]({'tag':_0x487ed4(0x140),'attributes':{'class':['ck',_0x487ed4(0x158),_0x487ed4(0x15c),_0x487ed4(0x154)],'dir':_0x487ed4(0x137)},'children':[this[_0x487ed4(0x142)],this[_0x487ed4(0x157)],this[_0x487ed4(0x14f)],this[_0x487ed4(0x162)],this[_0x487ed4(0x13b)]]});}[_0x350426(0x14a)](){var _0x33c094=_0x350426;this[_0x33c094(0x14f)][_0x33c094(0x15b)](),this[_0x33c094(0x14f)][_0x33c094(0x167)](_0x33c094(0x14c),!0x0),this[_0x33c094(0x162)][_0x33c094(0x167)](_0x33c094(0x14c),!0x1),this[_0x33c094(0x13b)][_0x33c094(0x167)](_0x33c094(0x14c),!0x1);}[_0x350426(0x13d)](){var _0x34856f=_0x350426;this[_0x34856f(0x159)](),this[_0x34856f(0x162)][_0x34856f(0x144)](),this[_0x34856f(0x14f)][_0x34856f(0x167)](_0x34856f(0x14c),!0x1),this[_0x34856f(0x162)][_0x34856f(0x167)](_0x34856f(0x14c),!0x0),this[_0x34856f(0x162)][_0x34856f(0x14d)](),this[_0x34856f(0x162)][_0x34856f(0x167)](_0x34856f(0x153),!0x0),this[_0x34856f(0x162)][_0x34856f(0x167)](_0x34856f(0x13e),!0x1);}[_0x350426(0x14b)](_0x8d25d5){var _0xa714c2=_0x350426;this[_0xa714c2(0x162)][_0xa714c2(0x145)](_0x8d25d5),this[_0xa714c2(0x162)][_0xa714c2(0x167)](_0xa714c2(0x153),!0x1);}[_0x350426(0x163)](){var _0x13f78d=_0x350426;this[_0x13f78d(0x162)][_0x13f78d(0x167)](_0x13f78d(0x14c),!0x0),this[_0x13f78d(0x13b)][_0x13f78d(0x167)](_0x13f78d(0x14c),!0x1),this[_0x13f78d(0x162)][_0x13f78d(0x167)](_0x13f78d(0x13e),!0x0),this[_0x13f78d(0x14f)][_0x13f78d(0x167)](_0x13f78d(0x14c),!0x1);}[_0x350426(0x15f)](){var _0xc971ae=_0x350426;this[_0xc971ae(0x162)][_0xc971ae(0x13f)]?(this[_0xc971ae(0x14f)][_0xc971ae(0x167)](_0xc971ae(0x14c),!0x1),this[_0xc971ae(0x162)][_0xc971ae(0x167)](_0xc971ae(0x14c),!0x0),this[_0xc971ae(0x13b)][_0xc971ae(0x167)](_0xc971ae(0x14c),!0x1)):this[_0xc971ae(0x162)][_0xc971ae(0x13f)]=!0x0;}[_0x350426(0x150)](){var _0xeb279c=_0x350426;this[_0xeb279c(0x14f)][_0xeb279c(0x167)](_0xeb279c(0x14c),!0x1),this[_0xeb279c(0x162)][_0xeb279c(0x167)](_0xeb279c(0x14c),!0x1),this[_0xeb279c(0x13b)][_0xeb279c(0x167)](_0xeb279c(0x14c),!0x0);}[_0x350426(0x159)](){var _0x2a65aa=_0x350426;this[_0x2a65aa(0x162)][_0x2a65aa(0x13f)]=!0x1;}[_0x350426(0x143)](_0x5b79fa){var _0x3ba6bd=_0x350426;this[_0x3ba6bd(0x157)][_0x3ba6bd(0x167)](_0x3ba6bd(0x14c),!0x0),this[_0x3ba6bd(0x157)][_0x3ba6bd(0x146)]=_0x5b79fa;}[_0x350426(0x139)](){var _0x27f51d=_0x350426;this[_0x27f51d(0x162)][_0x27f51d(0x167)](_0x27f51d(0x153),!0x1),this[_0x27f51d(0x15f)](),this[_0x27f51d(0x162)][_0x27f51d(0x165)]();}[_0x350426(0x148)](){var _0xccc908=_0x350426;this[_0xccc908(0x162)][_0xccc908(0x167)](_0xccc908(0x153),!0x1),this[_0xccc908(0x15f)](),this[_0xccc908(0x162)][_0xccc908(0x15d)]();}}
23
+ function _0x16b1(){var _0x576775=['set','showGeneralResultsErrorView','ck-ai-review','setTemplate','reviewCheckListView','reviewCheckResultsView','header','list','showChunkErrorView','showNoChangesView','2259000DWktty','110rkGtXB','div','1304844WiwOeB','clearResults','errorMessage','addCheckRunResult','hideActionsWhenResultIsReady','showActionsWhenResultIsReady','isVisible','results','5565iyzPzG','showReviewCheckResultsView','showReviewCheckListView','finishReview','isResultReady','ck-reset_all','19866xBQGEe','resetErrorState','completed','ck-rounded-corners','showChunkErrorMessage','isLoading','1968BKPcKY','806184cCiVxF','generalErrorView','delegate','797815UQbJoV','showGeneralReviewCoreErrorView','showReviewCompletedView','ltr','addResult','526258aNTdBe','reviewCoreHeader','showGeneralErrorMessage','reviewCompletedView','resetAllParameterizedChecks','isCompleted'];_0x16b1=function(){return _0x576775;};return _0x16b1();}var _0xfc2cb8=_0x287d;(function(_0x2f3892,_0x529756){var _0x20ed50=_0x287d,_0x5c9d79=_0x2f3892();while(!![]){try{var _0x2d30b9=-parseInt(_0x20ed50(0x121))/0x1+parseInt(_0x20ed50(0x132))/0x2*(parseInt(_0x20ed50(0x142))/0x3)+parseInt(_0x20ed50(0x134))/0x4+-parseInt(_0x20ed50(0x14c))/0x5+-parseInt(_0x20ed50(0x149))/0x6+-parseInt(_0x20ed50(0x13c))/0x7*(-parseInt(_0x20ed50(0x148))/0x8)+parseInt(_0x20ed50(0x131))/0x9;if(_0x2d30b9===_0x529756)break;else _0x5c9d79['push'](_0x5c9d79['shift']());}catch(_0x182f0b){_0x5c9d79['push'](_0x5c9d79['shift']());}}}(_0x16b1,0x4d586));function _0x287d(_0x1de077,_0x4218d8){var _0x16b12d=_0x16b1();return _0x287d=function(_0x287d67,_0x26b700){_0x287d67=_0x287d67-0x11e;var _0x6480c8=_0x16b12d[_0x287d67];return _0x6480c8;},_0x287d(_0x1de077,_0x4218d8);}import{View as _0x4b715e}from'ckeditor5/src/ui.js';import{AI_REVIEW_MODE_UI_EVENT_NAMES as _0x30db76}from'../aireviewcoreui.js';import{AIReviewCoreGeneralErrorView as _0x1c6f90}from'./aireviewcoregeneralerrorview.js';export class AIReviewCoreView extends _0x4b715e{[_0xfc2cb8(0x122)];[_0xfc2cb8(0x14a)];[_0xfc2cb8(0x12b)];[_0xfc2cb8(0x12c)];[_0xfc2cb8(0x124)];constructor(_0x4d94e9,_0x13d8a0){var _0x11e7ef=_0xfc2cb8;super(_0x4d94e9),this[_0x11e7ef(0x122)]=_0x13d8a0[_0x11e7ef(0x12d)],this[_0x11e7ef(0x14a)]=new _0x1c6f90(_0x4d94e9),this[_0x11e7ef(0x12b)]=_0x13d8a0[_0x11e7ef(0x12e)],this[_0x11e7ef(0x12b)][_0x11e7ef(0x14b)](..._0x30db76)['to'](this),this[_0x11e7ef(0x12c)]=_0x13d8a0[_0x11e7ef(0x13b)],this[_0x11e7ef(0x12c)][_0x11e7ef(0x14b)](..._0x30db76)['to'](this),this[_0x11e7ef(0x124)]=_0x13d8a0[_0x11e7ef(0x144)],this[_0x11e7ef(0x124)][_0x11e7ef(0x14b)](_0x11e7ef(0x13f))['to'](this),this[_0x11e7ef(0x12b)][_0x11e7ef(0x127)](_0x11e7ef(0x13a),!0x1),this[_0x11e7ef(0x12c)][_0x11e7ef(0x127)](_0x11e7ef(0x13a),!0x1),this[_0x11e7ef(0x12c)][_0x11e7ef(0x127)](_0x11e7ef(0x147),!0x1),this[_0x11e7ef(0x12c)][_0x11e7ef(0x127)](_0x11e7ef(0x140),!0x1),this[_0x11e7ef(0x124)][_0x11e7ef(0x127)](_0x11e7ef(0x13a),!0x1),this[_0x11e7ef(0x12a)]({'tag':_0x11e7ef(0x133),'attributes':{'class':['ck',_0x11e7ef(0x141),_0x11e7ef(0x129),_0x11e7ef(0x145)],'dir':_0x11e7ef(0x11f)},'children':[this[_0x11e7ef(0x122)],this[_0x11e7ef(0x14a)],this[_0x11e7ef(0x12b)],this[_0x11e7ef(0x12c)],this[_0x11e7ef(0x124)]]});}[_0xfc2cb8(0x13e)](){var _0x46fcb9=_0xfc2cb8;this[_0x46fcb9(0x12b)][_0x46fcb9(0x125)](),this[_0x46fcb9(0x12b)][_0x46fcb9(0x127)](_0x46fcb9(0x13a),!0x0),this[_0x46fcb9(0x12c)][_0x46fcb9(0x127)](_0x46fcb9(0x13a),!0x1),this[_0x46fcb9(0x124)][_0x46fcb9(0x127)](_0x46fcb9(0x13a),!0x1);}[_0xfc2cb8(0x13d)](){var _0x1ebbf4=_0xfc2cb8;this[_0x1ebbf4(0x138)](),this[_0x1ebbf4(0x12c)][_0x1ebbf4(0x143)](),this[_0x1ebbf4(0x12b)][_0x1ebbf4(0x127)](_0x1ebbf4(0x13a),!0x1),this[_0x1ebbf4(0x12c)][_0x1ebbf4(0x127)](_0x1ebbf4(0x13a),!0x0),this[_0x1ebbf4(0x12c)][_0x1ebbf4(0x135)](),this[_0x1ebbf4(0x12c)][_0x1ebbf4(0x127)](_0x1ebbf4(0x147),!0x0),this[_0x1ebbf4(0x12c)][_0x1ebbf4(0x127)](_0x1ebbf4(0x126),!0x1);}[_0xfc2cb8(0x137)](_0x193b00){var _0x2bf72d=_0xfc2cb8;this[_0x2bf72d(0x12c)][_0x2bf72d(0x120)](_0x193b00),this[_0x2bf72d(0x12c)][_0x2bf72d(0x127)](_0x2bf72d(0x147),!0x1);}[_0xfc2cb8(0x11e)](){var _0x241889=_0xfc2cb8;this[_0x241889(0x12c)][_0x241889(0x127)](_0x241889(0x13a),!0x0),this[_0x241889(0x124)][_0x241889(0x127)](_0x241889(0x13a),!0x1),this[_0x241889(0x12c)][_0x241889(0x127)](_0x241889(0x126),!0x0),this[_0x241889(0x12b)][_0x241889(0x127)](_0x241889(0x13a),!0x1);}[_0xfc2cb8(0x139)](){var _0x30972c=_0xfc2cb8;this[_0x30972c(0x12c)][_0x30972c(0x140)]?(this[_0x30972c(0x12b)][_0x30972c(0x127)](_0x30972c(0x13a),!0x1),this[_0x30972c(0x12c)][_0x30972c(0x127)](_0x30972c(0x13a),!0x0),this[_0x30972c(0x124)][_0x30972c(0x127)](_0x30972c(0x13a),!0x1)):this[_0x30972c(0x12c)][_0x30972c(0x140)]=!0x0;}[_0xfc2cb8(0x130)](){var _0x48f91b=_0xfc2cb8;this[_0x48f91b(0x12b)][_0x48f91b(0x127)](_0x48f91b(0x13a),!0x1),this[_0x48f91b(0x12c)][_0x48f91b(0x127)](_0x48f91b(0x13a),!0x1),this[_0x48f91b(0x124)][_0x48f91b(0x127)](_0x48f91b(0x13a),!0x0);}[_0xfc2cb8(0x138)](){var _0x3a93a6=_0xfc2cb8;this[_0x3a93a6(0x12c)][_0x3a93a6(0x140)]=!0x1;}[_0xfc2cb8(0x14d)](_0x1e669d){var _0x29189b=_0xfc2cb8;this[_0x29189b(0x14a)][_0x29189b(0x127)](_0x29189b(0x13a),!0x0),this[_0x29189b(0x14a)][_0x29189b(0x136)]=_0x1e669d;}[_0xfc2cb8(0x128)](){var _0x190e25=_0xfc2cb8;this[_0x190e25(0x12c)][_0x190e25(0x127)](_0x190e25(0x147),!0x1),this[_0x190e25(0x139)](),this[_0x190e25(0x12c)][_0x190e25(0x123)]();}[_0xfc2cb8(0x12f)](){var _0x1e5131=_0xfc2cb8;this[_0x1e5131(0x12c)][_0x1e5131(0x127)](_0x1e5131(0x147),!0x1),this[_0x1e5131(0x139)](),this[_0x1e5131(0x12c)][_0x1e5131(0x146)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1cf3(){const _0x5f4bb3=['485500IrHQvW','1038ayBqPW','data','389630EdMdJl','div','_dropdownView','_defaultLabel','16VMjSpu','ck-ai_review__check-list-item-parameterized-form-element','setTemplate','locale','bindTemplate','extendTemplate','buttonView','resetToDefault','button','add','formValue','198FJvGeU','bind','3196983ZSEtpM','set','listenTo','_prepareListOptions','length','stopPropagation','ck-ai_review__check-list-item-parameterized-form-element_dropdown','model','source','menuitemradio','label','execute','ck-reset_all','1170744koQBmk','isOn','3056202EgpEgH','1534228wLWTcb','_defaultValue','30NFjQHK','menu','default','45269LSXLmG','find'];_0x1cf3=function(){return _0x5f4bb3;};return _0x1cf3();}function _0x42e0(_0x14ac27,_0x2ae6f1){const _0x1cf317=_0x1cf3();return _0x42e0=function(_0x42e073,_0x22d60b){_0x42e073=_0x42e073-0x8d;let _0x4bfbb0=_0x1cf317[_0x42e073];return _0x4bfbb0;},_0x42e0(_0x14ac27,_0x2ae6f1);}const _0x2dbef7=_0x42e0;(function(_0xf31160,_0x3d19cb){const _0x2a12e9=_0x42e0,_0x3337fe=_0xf31160();while(!![]){try{const _0x1ca467=-parseInt(_0x2a12e9(0x93))/0x1+-parseInt(_0x2a12e9(0x96))/0x2+parseInt(_0x2a12e9(0xb1))/0x3+parseInt(_0x2a12e9(0x9d))/0x4*(-parseInt(_0x2a12e9(0x98))/0x5)+-parseInt(_0x2a12e9(0x9e))/0x6*(-parseInt(_0x2a12e9(0x9b))/0x7)+-parseInt(_0x2a12e9(0xa4))/0x8*(-parseInt(_0x2a12e9(0x95))/0x9)+parseInt(_0x2a12e9(0xa0))/0xa*(parseInt(_0x2a12e9(0xaf))/0xb);if(_0x1ca467===_0x3d19cb)break;else _0x3337fe['push'](_0x3337fe['shift']());}catch(_0x25c7d0){_0x3337fe['push'](_0x3337fe['shift']());}}}(_0x1cf3,0xdb712));import{Collection as _0x2614d3}from'ckeditor5/src/utils.js';import{View as _0x2d40ac,createDropdown as _0x2eded8,addListToDropdown as _0x467861,UIModel as _0x3636f3}from'ckeditor5/src/ui.js';export class AIReviewCoreFormDropdownView extends _0x2d40ac{[_0x2dbef7(0xa2)];[_0x2dbef7(0x97)];[_0x2dbef7(0xa3)];constructor(_0x9aefab,_0x293129){const _0x40f06a=_0x2dbef7;super(_0x9aefab),this[_0x40f06a(0x97)]=_0x293129[_0x40f06a(0x9a)]||(_0x293129[_0x40f06a(0x9f)][_0x40f06a(0xb5)]>0x0?_0x293129[_0x40f06a(0x9f)][0x0]['id']:''),this[_0x40f06a(0xa3)]=_0x293129[_0x40f06a(0x9f)][_0x40f06a(0x9c)](_0x4fdd25=>_0x4fdd25['id']===this[_0x40f06a(0x97)])?.[_0x40f06a(0x90)]||'',this[_0x40f06a(0xb2)](_0x40f06a(0xae),''),this[_0x40f06a(0xa2)]=_0x2eded8(this[_0x40f06a(0xa7)]);const _0x22cb03=this[_0x40f06a(0xb4)](_0x293129[_0x40f06a(0x9f)]);_0x467861(this[_0x40f06a(0xa2)],_0x22cb03,{'role':_0x40f06a(0x99),'ariaLabel':_0x293129[_0x40f06a(0x90)]}),this[_0x40f06a(0xa2)][_0x40f06a(0xaa)][_0x40f06a(0xb2)]({'label':this[_0x40f06a(0xa3)],'withText':!0x0}),this[_0x40f06a(0xa2)][_0x40f06a(0xa9)]({'on':{'click':this[_0x40f06a(0xa8)]['to'](_0x174be4=>{const _0x450453=_0x40f06a;_0x174be4[_0x450453(0xb6)]();})}}),this[_0x40f06a(0xb3)](this[_0x40f06a(0xa2)],_0x40f06a(0x91),_0x201897=>{const _0x407f4e=_0x40f06a;this[_0x407f4e(0xae)]=_0x201897[_0x407f4e(0x8e)][_0x407f4e(0x8d)]['id'],this[_0x407f4e(0xa2)][_0x407f4e(0xaa)][_0x407f4e(0x90)]=_0x201897[_0x407f4e(0x8e)][_0x407f4e(0x8d)][_0x407f4e(0x90)];}),this[_0x40f06a(0xa6)]({'tag':_0x40f06a(0xa1),'attributes':{'class':['ck',_0x40f06a(0x92),_0x40f06a(0xa5),_0x40f06a(0xb7)]},'children':[this[_0x40f06a(0xa2)]]});}[_0x2dbef7(0xab)](){const _0x42d4da=_0x2dbef7;this[_0x42d4da(0xae)]=this[_0x42d4da(0x97)],this[_0x42d4da(0xa2)][_0x42d4da(0xaa)][_0x42d4da(0x90)]=this[_0x42d4da(0xa3)];}[_0x2dbef7(0xb4)](_0x1cdeb1=[]){const _0x2da901=_0x2dbef7,_0x290945=new _0x2614d3();this[_0x2da901(0xab)]();for(const _0x3ca6d5 of _0x1cdeb1){const _0x3f92c4=new _0x3636f3({'label':_0x3ca6d5[_0x2da901(0x90)],'withText':!0x0,'role':_0x2da901(0x8f),'id':_0x3ca6d5['id'],'model':_0x3ca6d5});_0x3f92c4[_0x2da901(0xb0)](_0x2da901(0x94))['to'](this,_0x2da901(0xae),_0x26c751=>_0x26c751===_0x3f92c4['id']);const _0x138395={'type':_0x2da901(0xac),'model':_0x3f92c4};_0x290945[_0x2da901(0xad)](_0x138395);}return _0x290945;}}
23
+ const _0x19af4d=_0x291d;function _0x291d(_0xf489ed,_0x264733){const _0x559b0f=_0x559b();return _0x291d=function(_0x291d82,_0x3479bc){_0x291d82=_0x291d82-0xbf;let _0x33f0f2=_0x559b0f[_0x291d82];return _0x33f0f2;},_0x291d(_0xf489ed,_0x264733);}(function(_0xf9673c,_0x34f6a5){const _0x3e89e2=_0x291d,_0x5ccf0d=_0xf9673c();while(!![]){try{const _0x1fa55c=parseInt(_0x3e89e2(0xe6))/0x1+parseInt(_0x3e89e2(0xe1))/0x2*(parseInt(_0x3e89e2(0xdf))/0x3)+-parseInt(_0x3e89e2(0xcf))/0x4+-parseInt(_0x3e89e2(0xda))/0x5+parseInt(_0x3e89e2(0xc8))/0x6+parseInt(_0x3e89e2(0xe3))/0x7*(-parseInt(_0x3e89e2(0xe2))/0x8)+parseInt(_0x3e89e2(0xc9))/0x9;if(_0x1fa55c===_0x34f6a5)break;else _0x5ccf0d['push'](_0x5ccf0d['shift']());}catch(_0x550516){_0x5ccf0d['push'](_0x5ccf0d['shift']());}}}(_0x559b,0x261ee));import{Collection as _0x6007ca}from'ckeditor5/src/utils.js';import{View as _0x4f3692,createDropdown as _0x447648,addListToDropdown as _0x3acf8c,UIModel as _0x273811}from'ckeditor5/src/ui.js';export class AIReviewCoreFormDropdownView extends _0x4f3692{[_0x19af4d(0xde)];[_0x19af4d(0xc7)];[_0x19af4d(0xe7)];constructor(_0x29bfe6,_0x23990a){const _0x38b28b=_0x19af4d;super(_0x29bfe6),this[_0x38b28b(0xc7)]=_0x23990a[_0x38b28b(0xc1)]||(_0x23990a[_0x38b28b(0xdb)][_0x38b28b(0xc6)]>0x0?_0x23990a[_0x38b28b(0xdb)][0x0]['id']:''),this[_0x38b28b(0xe7)]=_0x23990a[_0x38b28b(0xdb)][_0x38b28b(0xc2)](_0x1bd570=>_0x1bd570['id']===this[_0x38b28b(0xc7)])?.[_0x38b28b(0xc5)]||'',this[_0x38b28b(0xcd)](_0x38b28b(0xce),''),this[_0x38b28b(0xde)]=_0x447648(this[_0x38b28b(0xe5)]);const _0xe82eb4=this[_0x38b28b(0xd0)](_0x23990a[_0x38b28b(0xdb)]);_0x3acf8c(this[_0x38b28b(0xde)],_0xe82eb4,{'role':_0x38b28b(0xd8),'ariaLabel':_0x23990a[_0x38b28b(0xc5)]}),this[_0x38b28b(0xde)][_0x38b28b(0xd5)][_0x38b28b(0xcd)]({'label':this[_0x38b28b(0xe7)],'withText':!0x0}),this[_0x38b28b(0xde)][_0x38b28b(0xc4)]({'on':{'click':this[_0x38b28b(0xdc)]['to'](_0x298652=>{const _0x8b0d97=_0x38b28b;_0x298652[_0x8b0d97(0xd3)]();})}}),this[_0x38b28b(0xd2)](this[_0x38b28b(0xde)],_0x38b28b(0xd7),_0x7103f3=>{const _0x2a5a55=_0x38b28b;this[_0x2a5a55(0xce)]=_0x7103f3[_0x2a5a55(0xe4)][_0x2a5a55(0xd1)]['id'],this[_0x2a5a55(0xde)][_0x2a5a55(0xd5)][_0x2a5a55(0xc5)]=_0x7103f3[_0x2a5a55(0xe4)][_0x2a5a55(0xd1)][_0x2a5a55(0xc5)];}),this[_0x38b28b(0xd9)]({'tag':_0x38b28b(0xd4),'attributes':{'class':['ck',_0x38b28b(0xcc),_0x38b28b(0xca),_0x38b28b(0xd6)]},'children':[this[_0x38b28b(0xde)]]});}[_0x19af4d(0xc3)](){const _0xc96cc2=_0x19af4d;this[_0xc96cc2(0xce)]=this[_0xc96cc2(0xc7)],this[_0xc96cc2(0xde)][_0xc96cc2(0xd5)][_0xc96cc2(0xc5)]=this[_0xc96cc2(0xe7)];}[_0x19af4d(0xd0)](_0x4d2203=[]){const _0x211b18=_0x19af4d,_0x53bb54=new _0x6007ca();this[_0x211b18(0xc3)]();for(const _0x49b772 of _0x4d2203){const _0xcd6c44=new _0x273811({'label':_0x49b772[_0x211b18(0xc5)],'withText':!0x0,'role':_0x211b18(0xc0),'id':_0x49b772['id'],'model':_0x49b772});_0xcd6c44[_0x211b18(0xe0)](_0x211b18(0xdd))['to'](this,_0x211b18(0xce),_0x43c747=>_0x43c747===_0xcd6c44['id']);const _0x9f6278={'type':_0x211b18(0xbf),'model':_0xcd6c44};_0x53bb54[_0x211b18(0xcb)](_0x9f6278);}return _0x53bb54;}}function _0x559b(){const _0x1c1257=['set','formValue','1045440VEjDyb','_prepareListOptions','model','listenTo','stopPropagation','div','buttonView','ck-ai_review__check-list-item-parameterized-form-element_dropdown','execute','menu','setTemplate','1000455XLdWXt','data','bindTemplate','isOn','_dropdownView','72PhLaJL','bind','25462phWaIK','2544lyPuZg','2387GqgMal','source','locale','81768Wygqlk','_defaultLabel','button','menuitemradio','default','find','resetToDefault','extendTemplate','label','length','_defaultValue','397572cxoIJR','2452113wmlwxq','ck-ai_review__check-list-item-parameterized-form-element','add','ck-reset_all'];_0x559b=function(){return _0x1c1257;};return _0x559b();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b4529=_0x3c68;(function(_0x2ad48a,_0x372142){const _0x31b22f=_0x3c68,_0x17c8a6=_0x2ad48a();while(!![]){try{const _0x44fa2e=parseInt(_0x31b22f(0x1ac))/0x1*(-parseInt(_0x31b22f(0x1ad))/0x2)+-parseInt(_0x31b22f(0x19f))/0x3+parseInt(_0x31b22f(0x195))/0x4+parseInt(_0x31b22f(0x1a1))/0x5*(parseInt(_0x31b22f(0x19c))/0x6)+parseInt(_0x31b22f(0x199))/0x7+-parseInt(_0x31b22f(0x19e))/0x8+parseInt(_0x31b22f(0x1a3))/0x9*(-parseInt(_0x31b22f(0x196))/0xa);if(_0x44fa2e===_0x372142)break;else _0x17c8a6['push'](_0x17c8a6['shift']());}catch(_0x55a720){_0x17c8a6['push'](_0x17c8a6['shift']());}}}(_0x1c5a,0xa7a48));function _0x3c68(_0x1a29b4,_0x288096){const _0x1c5aab=_0x1c5a();return _0x3c68=function(_0x3c6849,_0x270af0){_0x3c6849=_0x3c6849-0x195;let _0x20bcff=_0x1c5aab[_0x3c6849];return _0x20bcff;},_0x3c68(_0x1a29b4,_0x288096);}import{FormRowView as _0x9e810,ListItemView as _0x38d46b}from'ckeditor5/src/ui.js';import{AIReviewCoreFormDropdownView as _0x4a09bf}from'./aireviewcoreformdropdown.js';export class AIReviewCoreFormManagerView extends _0x38d46b{[_0x5b4529(0x1a7)]=null;constructor(_0x296ec0,_0x219283,_0x56327b){const _0x23d0d1=_0x5b4529;super(_0x296ec0),this[_0x23d0d1(0x197)]=_0x219283?.[_0x23d0d1(0x197)];if(_0x23d0d1(0x1ab)===_0x219283[_0x23d0d1(0x1aa)])this[_0x23d0d1(0x1a7)]=new _0x4a09bf(this[_0x23d0d1(0x1a8)],_0x219283);this[_0x23d0d1(0x198)](_0x23d0d1(0x1a6),''),this[_0x23d0d1(0x1a4)](_0x23d0d1(0x1a6))['to'](this[_0x23d0d1(0x1a7)],_0x23d0d1(0x19a));const _0x424537=new _0x9e810(this[_0x23d0d1(0x1a8)],{'children':[this[_0x23d0d1(0x1a7)]],'class':[_0x56327b?_0x23d0d1(0x1a2):'']});_0x56327b&&_0x424537[_0x23d0d1(0x1a5)][_0x23d0d1(0x1a9)](_0x56327b),this[_0x23d0d1(0x19b)]({'tag':_0x23d0d1(0x1ae),'attributes':{'class':['ck',_0x23d0d1(0x1af),_0x23d0d1(0x1a0)]},'children':[_0x424537]});}[_0x5b4529(0x19d)](){const _0x26c1b9=_0x5b4529;this[_0x26c1b9(0x1a7)][_0x26c1b9(0x19d)]();}}function _0x1c5a(){const _0xedd7de=['formValue','setTemplate','12AMESsd','resetToDefault','3114264LpqRJh','830349EZCfsm','ck-reset_all','2830865yaCbOP','ck-form__row_with-submit','9BDwZYy','bind','children','value','_formItem','locale','add','formType','dropdown','22745lLqTbt','26oWcLap','div','ck-ai_review__form-item','2094764yYtbsh','5877100vtbzRf','argsKey','set','4060616GlQLJo'];_0x1c5a=function(){return _0xedd7de;};return _0x1c5a();}
23
+ const _0x5e296a=_0x896c;function _0x896c(_0x198b42,_0x2cd21f){const _0x32a41d=_0x32a4();return _0x896c=function(_0x896c5b,_0x811a7c){_0x896c5b=_0x896c5b-0x1b2;let _0x358f66=_0x32a41d[_0x896c5b];return _0x358f66;},_0x896c(_0x198b42,_0x2cd21f);}(function(_0x29e2c2,_0x873625){const _0x3c9c01=_0x896c,_0xc6154d=_0x29e2c2();while(!![]){try{const _0x44f383=-parseInt(_0x3c9c01(0x1b3))/0x1+-parseInt(_0x3c9c01(0x1bb))/0x2+parseInt(_0x3c9c01(0x1ca))/0x3*(-parseInt(_0x3c9c01(0x1b9))/0x4)+parseInt(_0x3c9c01(0x1c9))/0x5+parseInt(_0x3c9c01(0x1b7))/0x6*(-parseInt(_0x3c9c01(0x1c3))/0x7)+parseInt(_0x3c9c01(0x1c6))/0x8+parseInt(_0x3c9c01(0x1c0))/0x9;if(_0x44f383===_0x873625)break;else _0xc6154d['push'](_0xc6154d['shift']());}catch(_0x36c307){_0xc6154d['push'](_0xc6154d['shift']());}}}(_0x32a4,0x44635));import{FormRowView as _0x4d9565,ListItemView as _0x1bbc85}from'ckeditor5/src/ui.js';import{AIReviewCoreFormDropdownView as _0x346b19}from'./aireviewcoreformdropdown.js';export class AIReviewCoreFormManagerView extends _0x1bbc85{[_0x5e296a(0x1c8)]=null;constructor(_0x53ea62,_0x4be0fc,_0x13b319){const _0x27c9a6=_0x5e296a;super(_0x53ea62),this[_0x27c9a6(0x1cb)]=_0x4be0fc?.[_0x27c9a6(0x1cb)];if(_0x27c9a6(0x1ba)===_0x4be0fc[_0x27c9a6(0x1c5)])this[_0x27c9a6(0x1c8)]=new _0x346b19(this[_0x27c9a6(0x1c1)],_0x4be0fc);this[_0x27c9a6(0x1b5)](_0x27c9a6(0x1c2),''),this[_0x27c9a6(0x1b8)](_0x27c9a6(0x1c2))['to'](this[_0x27c9a6(0x1c8)],_0x27c9a6(0x1be));const _0x2267ad=new _0x4d9565(this[_0x27c9a6(0x1c1)],{'children':[this[_0x27c9a6(0x1c8)]],'class':[_0x13b319?_0x27c9a6(0x1bc):'']});_0x13b319&&_0x2267ad[_0x27c9a6(0x1b6)][_0x27c9a6(0x1bd)](_0x13b319),this[_0x27c9a6(0x1c7)]({'tag':_0x27c9a6(0x1c4),'attributes':{'class':['ck',_0x27c9a6(0x1bf),_0x27c9a6(0x1b2)]},'children':[_0x2267ad]});}[_0x5e296a(0x1b4)](){const _0x4d174=_0x5e296a;this[_0x4d174(0x1c8)][_0x4d174(0x1b4)]();}}function _0x32a4(){const _0x27a64f=['formType','437352xbKeKs','setTemplate','_formItem','1158180UmDouy','33WYIntA','argsKey','ck-reset_all','324701lWyJWi','resetToDefault','set','children','516hpVOuz','bind','54176jmnvCT','dropdown','398204kqirOh','ck-form__row_with-submit','add','formValue','ck-ai_review__form-item','7038099qwCsDE','locale','value','9394qjZSGI','div'];_0x32a4=function(){return _0x27a64f;};return _0x32a4();}
@@ -8,5 +8,9 @@
8
8
  import { type AIReviewCheckDefinition } from '../aireviewcore/types.js';
9
9
  /**
10
10
  * List of definitions of available review checks that can be performed in the AI Review Mode.
11
+ *
12
+ * IMPORTANT: Every time this list changes, the `availableCommands` property
13
+ * in {@link module:ai/aireviewmode/aireviewmode~AIReviewModeConfig} and Review feature guide
14
+ * should be updated accordingly.
11
15
  */
12
16
  export declare const AI_REVIEW_CHECKS: Array<AIReviewCheckDefinition>;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1bc1(_0x1d7504,_0x15e74b){const _0x26e8b5=_0x26e8();return _0x1bc1=function(_0x1bc1c9,_0x13efa4){_0x1bc1c9=_0x1bc1c9-0xa4;let _0x55c07f=_0x26e8b5[_0x1bc1c9];return _0x55c07f;},_0x1bc1(_0x1d7504,_0x15e74b);}const _0x5aa7e8=_0x1bc1;(function(_0x28f1e2,_0x1fb6e2){const _0x3630d9=_0x1bc1,_0x22df87=_0x28f1e2();while(!![]){try{const _0xd1be6b=-parseInt(_0x3630d9(0xb0))/0x1+parseInt(_0x3630d9(0xcf))/0x2*(-parseInt(_0x3630d9(0xc0))/0x3)+parseInt(_0x3630d9(0xc6))/0x4*(-parseInt(_0x3630d9(0xba))/0x5)+-parseInt(_0x3630d9(0xd0))/0x6*(-parseInt(_0x3630d9(0xcd))/0x7)+parseInt(_0x3630d9(0xb7))/0x8*(parseInt(_0x3630d9(0xc2))/0x9)+parseInt(_0x3630d9(0xa8))/0xa*(-parseInt(_0x3630d9(0xb4))/0xb)+-parseInt(_0x3630d9(0xbb))/0xc*(-parseInt(_0x3630d9(0xa6))/0xd);if(_0xd1be6b===_0x1fb6e2)break;else _0x22df87['push'](_0x22df87['shift']());}catch(_0x1518f0){_0x22df87['push'](_0x22df87['shift']());}}}(_0x26e8,0x19403));export const AI_REVIEW_CHECKS=[{'id':_0x5aa7e8(0xa9),'title':_0x5aa7e8(0xc9),'description':_0x5aa7e8(0xd1),'isParameterized':!0x0},{'id':_0x5aa7e8(0xb2),'title':_0x5aa7e8(0xbd),'description':_0x5aa7e8(0xa5),'isParameterized':!0x1},{'id':_0x5aa7e8(0xac),'title':_0x5aa7e8(0xaf),'description':_0x5aa7e8(0xab),'isParameterized':!0x1},{'id':_0x5aa7e8(0xa7),'title':_0x5aa7e8(0xc8),'description':_0x5aa7e8(0xcb),'isParameterized':!0x1},{'id':_0x5aa7e8(0xb3),'title':_0x5aa7e8(0xaa),'description':_0x5aa7e8(0xc1),'isParameterized':!0x0,'options':[{'formType':_0x5aa7e8(0xb9),'label':_0x5aa7e8(0xaa),'default':_0x5aa7e8(0xce),'data':[{'label':_0x5aa7e8(0xbc),'id':_0x5aa7e8(0xce)},{'label':_0x5aa7e8(0xc7),'id':_0x5aa7e8(0xcc)}]}]},{'id':_0x5aa7e8(0xb6),'title':_0x5aa7e8(0xbe),'description':_0x5aa7e8(0xca),'isParameterized':!0x0,'options':[{'formType':_0x5aa7e8(0xb9),'label':_0x5aa7e8(0xbe),'default':_0x5aa7e8(0xa4),'data':[{'label':_0x5aa7e8(0xb5),'id':_0x5aa7e8(0xa4)},{'label':_0x5aa7e8(0xb1),'id':_0x5aa7e8(0xad)},{'label':_0x5aa7e8(0xc5),'id':_0x5aa7e8(0xc4)},{'label':_0x5aa7e8(0xc3),'id':_0x5aa7e8(0xae)},{'label':_0x5aa7e8(0xb8),'id':_0x5aa7e8(0xbf)}]}]}];function _0x26e8(){const _0x5effe2=['16sALaPw','Shorter','Readability','Custom\x20command','Choose\x20tone\x20and\x20style\x20to\x20change\x20content\x20as\x20you\x20need.','Enhance\x20the\x20overall\x20readability\x20of\x20the\x20text.','shorter','7jTbfDn','longer','46EFNurX','38142mXiwbn','Type\x20a\x20custom\x20command\x20to\x20review\x20the\x20content\x20exactly\x20as\x20you\x20need.','casual','Ensure\x20the\x20text\x20is\x20factually\x20accurate\x20and\x20free\x20of\x20errors.','163319EEopye','readability','1858840dzPYTQ','custom','Adjust\x20length','Improve\x20the\x20clarity\x20and\x20readability\x20of\x20the\x20text.','clarity','direct','confident','Clarity','96535xxoRlG','Direct','correctness','make','11IGyfSz','Casual','make-tone','351512tByaUY','Professional','dropdown','158720XagorH','444ToWjBT','Longer','Correctness','Adjust\x20tone\x20and\x20style','professional','11763MxwOyd','Refine\x20text\x20length\x20to\x20match\x20your\x20needs.','27SDbdLL','Confident','friendly','Friendly'];_0x26e8=function(){return _0x5effe2;};return _0x26e8();}
23
+ function _0x17a9(){const _0x5506d4=['28JpUtSO','Shorter','34739235wbiQIp','Professional','Ensure\x20the\x20text\x20is\x20factually\x20accurate\x20and\x20free\x20of\x20errors.','longer','Casual','professional','Custom\x20command','8ivyZlH','correctness','Readability','custom','make','tone','Confident','make-tone','Enhance\x20the\x20overall\x20readability\x20of\x20the\x20text.','clarity','shorter','Improve\x20the\x20clarity\x20and\x20readability\x20of\x20the\x20text.','Adjust\x20tone\x20and\x20style','Correctness','Longer','casual','Type\x20a\x20custom\x20command\x20to\x20review\x20the\x20content\x20exactly\x20as\x20you\x20need.','confident','readability','direct','3578968IzspLt','dropdown','Friendly','length','friendly','Refine\x20text\x20length\x20to\x20match\x20your\x20needs.','2252679bCZeNc','763665VDjOZn','6899900YQsxaL','4366710PgRwld','228301vrhjWm','Direct','Choose\x20tone\x20and\x20style\x20to\x20change\x20content\x20as\x20you\x20need.','Clarity','Adjust\x20length'];_0x17a9=function(){return _0x5506d4;};return _0x17a9();}const _0x5a8df3=_0x4232;(function(_0x270442,_0x253829){const _0x47bae2=_0x4232,_0x48d368=_0x270442();while(!![]){try{const _0xcff17c=parseInt(_0x47bae2(0x7e))/0x1+-parseInt(_0x47bae2(0x74))/0x2+-parseInt(_0x47bae2(0x7a))/0x3+-parseInt(_0x47bae2(0x83))/0x4*(-parseInt(_0x47bae2(0x7b))/0x5)+-parseInt(_0x47bae2(0x7d))/0x6+parseInt(_0x47bae2(0x7c))/0x7*(-parseInt(_0x47bae2(0x8c))/0x8)+parseInt(_0x47bae2(0x85))/0x9;if(_0xcff17c===_0x253829)break;else _0x48d368['push'](_0x48d368['shift']());}catch(_0xaf3268){_0x48d368['push'](_0x48d368['shift']());}}}(_0x17a9,0xdc93d));function _0x4232(_0x11822b,_0x1b1fa0){const _0x17a9a0=_0x17a9();return _0x4232=function(_0x42327c,_0x2803b4){_0x42327c=_0x42327c-0x68;let _0x3e2cb8=_0x17a9a0[_0x42327c];return _0x3e2cb8;},_0x4232(_0x11822b,_0x1b1fa0);}export const AI_REVIEW_CHECKS=[{'id':_0x5a8df3(0x8f),'commandId':_0x5a8df3(0x8f),'title':_0x5a8df3(0x8b),'description':_0x5a8df3(0x70),'isParameterized':!0x0},{'id':_0x5a8df3(0x8d),'commandId':_0x5a8df3(0x8d),'title':_0x5a8df3(0x6d),'description':_0x5a8df3(0x87),'isParameterized':!0x1},{'id':_0x5a8df3(0x69),'commandId':_0x5a8df3(0x69),'title':_0x5a8df3(0x81),'description':_0x5a8df3(0x6b),'isParameterized':!0x1},{'id':_0x5a8df3(0x72),'commandId':_0x5a8df3(0x72),'title':_0x5a8df3(0x8e),'description':_0x5a8df3(0x68),'isParameterized':!0x1},{'id':_0x5a8df3(0x77),'commandId':_0x5a8df3(0x90),'title':_0x5a8df3(0x82),'description':_0x5a8df3(0x79),'isParameterized':!0x0,'options':[{'formType':_0x5a8df3(0x75),'label':_0x5a8df3(0x82),'default':_0x5a8df3(0x88),'data':[{'label':_0x5a8df3(0x6e),'id':_0x5a8df3(0x88)},{'label':_0x5a8df3(0x84),'id':_0x5a8df3(0x6a)}]}]},{'id':_0x5a8df3(0x91),'commandId':_0x5a8df3(0x93),'title':_0x5a8df3(0x6c),'description':_0x5a8df3(0x80),'isParameterized':!0x0,'options':[{'formType':_0x5a8df3(0x75),'label':_0x5a8df3(0x6c),'default':_0x5a8df3(0x6f),'data':[{'label':_0x5a8df3(0x89),'id':_0x5a8df3(0x6f)},{'label':_0x5a8df3(0x7f),'id':_0x5a8df3(0x73)},{'label':_0x5a8df3(0x76),'id':_0x5a8df3(0x78)},{'label':_0x5a8df3(0x92),'id':_0x5a8df3(0x71)},{'label':_0x5a8df3(0x86),'id':_0x5a8df3(0x8a)}]}]}];
@@ -36,3 +36,98 @@ export declare class AIReviewMode extends ContextPlugin {
36
36
  */
37
37
  static get isPremiumPlugin(): true;
38
38
  }
39
+ export interface AIReviewModeConfig {
40
+ /**
41
+ * List of IDs of review commands that will be available in the AI Review feature UI. If not set, all available
42
+ * predefined commands will be used. The order of IDs defines the order of commands in the UI.
43
+ *
44
+ * The list of all predefined commands, used by default:
45
+ * - `custom`
46
+ * - `correctness`
47
+ * - `clarity`
48
+ * - `readability`
49
+ * - `length`
50
+ * - `tone`
51
+ *
52
+ * The commands can be used selectively and rearranged with this configuration option. For example:
53
+ *
54
+ * ```ts
55
+ * ClassicEditor
56
+ * .create( editorElement, {
57
+ * ai: {
58
+ * review: {
59
+ * availableCommands: [
60
+ * 'length', 'tone', 'clarity', 'readability'
61
+ * ]
62
+ * }
63
+ * }
64
+ * } )
65
+ * .then( ... )
66
+ * .catch( ... );
67
+ * ```
68
+ */
69
+ availableCommands?: Array<string>;
70
+ /**
71
+ * List of extra review commands that can be added to the AI Review feature.
72
+ *
73
+ * Keep in mind that each command should have a unique ID that does not collide with predefined commands.
74
+ * The `custom` command ID is reserved and cannot be used as an ID for extra command.
75
+ *
76
+ * To add a command and expose it in the UI, first a command definition needs to be provided:
77
+ *
78
+ * ```ts
79
+ * ClassicEditor
80
+ * .create( editorElement, {
81
+ * ai: {
82
+ * review: {
83
+ * extraCommands: [
84
+ * {
85
+ * id: 'improve-captions',
86
+ * label: 'Improve Captions',
87
+ * description: 'Improve image captions in the document.',
88
+ * prompt: 'Suggest improvements for the image captions in the document.',
89
+ * },
90
+ * {
91
+ * id: 'expand-abbreviations',
92
+ * label: 'Expand Abbreviations',
93
+ * description: 'Expand abbreviations in the document.',
94
+ * prompt: 'Suggest expansions for abbreviations in the document.',
95
+ * model: 'gpt-5-2' // Optional, if not set, default model will be used.
96
+ * }
97
+ * ]
98
+ * }
99
+ * }
100
+ * } )
101
+ * .then( ... )
102
+ * .catch( ... );
103
+ * ```
104
+ *
105
+ * Then if {@link #availableCommands} is not set, the extra commands will be added to the end of the list of available
106
+ * commands and visible in the UI by default. Otherwise, the extra commands need to be explicitly added to the list
107
+ * of available commands to be exposed in the UI:
108
+ *
109
+ * ```ts
110
+ * ClassicEditor
111
+ * .create( editorElement, {
112
+ * ai: {
113
+ * review: {
114
+ * extraCommands: [ ... ],
115
+ * availableCommands: [
116
+ * 'custom', 'correctness', 'clarity', 'readability', 'length', 'tone', 'improve-captions', 'expand-abbreviations'
117
+ * ]
118
+ * }
119
+ * }
120
+ * } )
121
+ * .then( ... )
122
+ * .catch( ... );
123
+ * ```
124
+ */
125
+ extraCommands?: Array<AIReviewCustomCommand>;
126
+ }
127
+ export type AIReviewCustomCommand = {
128
+ id: string;
129
+ label: string;
130
+ description: string;
131
+ prompt: string;
132
+ model?: string;
133
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c3f37=_0x57e5;function _0x4835(){var _0x368e3e=['AIReviewMode','2233721lRlhOT','isPremiumPlugin','45984boGIKN','205200InLjUF','1545730pdEiyA','565371wChFhS','68pLMVrC','899304zuWaIM','6TOWHSp','isOfficialPlugin','requires','pluginName','150385OgLboq'];_0x4835=function(){return _0x368e3e;};return _0x4835();}function _0x57e5(_0x30d041,_0x1bcc26){var _0x48350d=_0x4835();return _0x57e5=function(_0x57e582,_0x2bdfe7){_0x57e582=_0x57e582-0xa9;var _0x19aa3d=_0x48350d[_0x57e582];return _0x19aa3d;},_0x57e5(_0x30d041,_0x1bcc26);}(function(_0x145152,_0x4dfa0b){var _0x4e616e=_0x57e5,_0x4104e7=_0x145152();while(!![]){try{var _0x1c5f0e=parseInt(_0x4e616e(0xb2))/0x1+parseInt(_0x4e616e(0xa9))/0x2+parseInt(_0x4e616e(0xb6))/0x3*(-parseInt(_0x4e616e(0xac))/0x4)+-parseInt(_0x4e616e(0xaa))/0x5+-parseInt(_0x4e616e(0xae))/0x6*(-parseInt(_0x4e616e(0xb4))/0x7)+parseInt(_0x4e616e(0xad))/0x8+parseInt(_0x4e616e(0xab))/0x9;if(_0x1c5f0e===_0x4dfa0b)break;else _0x4104e7['push'](_0x4104e7['shift']());}catch(_0x3aaab3){_0x4104e7['push'](_0x4104e7['shift']());}}}(_0x4835,0x2b5be));import{ContextPlugin as _0x40ebce}from'ckeditor5/src/core.js';import{AIReviewModeUI as _0x3d61c1}from'./aireviewmodeui.js';import{AIReviewCoreEditing as _0x5db848}from'../aireviewcore/aireviewcoreediting.js';import{AIReviewModeController as _0x2cdafc}from'./aireviewmodecontroller.js';export class AIReviewMode extends _0x40ebce{static get[_0x2c3f37(0xb0)](){return[_0x2cdafc,_0x3d61c1,_0x5db848];}static get[_0x2c3f37(0xb1)](){var _0x7f3250=_0x2c3f37;return _0x7f3250(0xb3);}static get[_0x2c3f37(0xaf)](){return!0x0;}static get[_0x2c3f37(0xb5)](){return!0x0;}}
23
+ var _0x2deba4=_0x33d8;(function(_0x404411,_0x12a58b){var _0x1655aa=_0x33d8,_0x1079e6=_0x404411();while(!![]){try{var _0x50a686=-parseInt(_0x1655aa(0x104))/0x1*(-parseInt(_0x1655aa(0xfb))/0x2)+parseInt(_0x1655aa(0x10b))/0x3+parseInt(_0x1655aa(0x101))/0x4+parseInt(_0x1655aa(0xfd))/0x5*(parseInt(_0x1655aa(0x102))/0x6)+parseInt(_0x1655aa(0x103))/0x7*(-parseInt(_0x1655aa(0xff))/0x8)+-parseInt(_0x1655aa(0xfe))/0x9*(-parseInt(_0x1655aa(0x105))/0xa)+parseInt(_0x1655aa(0x107))/0xb*(-parseInt(_0x1655aa(0x109))/0xc);if(_0x50a686===_0x12a58b)break;else _0x1079e6['push'](_0x1079e6['shift']());}catch(_0x4e8c33){_0x1079e6['push'](_0x1079e6['shift']());}}}(_0x27df,0xe00d6));import{ContextPlugin as _0x2dd487}from'ckeditor5/src/core.js';import{AIReviewModeUI as _0x1d9256}from'./aireviewmodeui.js';import{AIReviewCoreEditing as _0x357f63}from'../aireviewcore/aireviewcoreediting.js';function _0x27df(){var _0x4abc69=['2884356FHfOuF','2621512LpgAuV','requires','25RthdmT','9PHbnjs','40816MWejKF','AIReviewMode','7113668KpmVZI','1819758yyiqXG','287oatFPh','1SiVieZ','2970250NzZHvp','isPremiumPlugin','7444195AIygRd','isOfficialPlugin','84pmabMu','pluginName'];_0x27df=function(){return _0x4abc69;};return _0x27df();}import{AIReviewModeController as _0x4009c8}from'./aireviewmodecontroller.js';function _0x33d8(_0x295c03,_0x55951f){var _0x27df04=_0x27df();return _0x33d8=function(_0x33d8e2,_0x32e368){_0x33d8e2=_0x33d8e2-0xfb;var _0x1dc272=_0x27df04[_0x33d8e2];return _0x1dc272;},_0x33d8(_0x295c03,_0x55951f);}export class AIReviewMode extends _0x2dd487{static get[_0x2deba4(0xfc)](){return[_0x4009c8,_0x1d9256,_0x357f63];}static get[_0x2deba4(0x10a)](){var _0x276fd3=_0x2deba4;return _0x276fd3(0x100);}static get[_0x2deba4(0x108)](){return!0x0;}static get[_0x2deba4(0x106)](){return!0x0;}}
@@ -3,11 +3,16 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { AIReviewCoreController } from '../aireviewcore/aireviewcorecontroller.js';
6
+ import { type Context, type Editor } from 'ckeditor5/src/core.js';
6
7
  export declare class AIReviewModeController extends AIReviewCoreController {
7
8
  /**
8
9
  * @inheritDoc
9
10
  */
10
11
  static get pluginName(): "AIReviewModeController";
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ constructor(context: Context | Editor);
11
16
  /**
12
17
  * @inheritDoc
13
18
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x219996=_0x507e;(function(_0x90e02e,_0x3a9286){const _0x10c8f1=_0x507e,_0x719590=_0x90e02e();while(!![]){try{const _0xcf106c=parseInt(_0x10c8f1(0x83))/0x1*(-parseInt(_0x10c8f1(0xbe))/0x2)+parseInt(_0x10c8f1(0xc6))/0x3*(-parseInt(_0x10c8f1(0xad))/0x4)+parseInt(_0x10c8f1(0x93))/0x5+-parseInt(_0x10c8f1(0xcb))/0x6*(parseInt(_0x10c8f1(0xb9))/0x7)+parseInt(_0x10c8f1(0x84))/0x8+-parseInt(_0x10c8f1(0x95))/0x9+parseInt(_0x10c8f1(0xb5))/0xa;if(_0xcf106c===_0x3a9286)break;else _0x719590['push'](_0x719590['shift']());}catch(_0x348449){_0x719590['push'](_0x719590['shift']());}}}(_0x36df,0x8a807));import{CKEditorError as _0x5dbfe6}from'ckeditor5/src/utils.js';function _0x507e(_0x281058,_0xdb939f){const _0x36df89=_0x36df();return _0x507e=function(_0x507e5c,_0x33410b){_0x507e5c=_0x507e5c-0x80;let _0x57fb6a=_0x36df89[_0x507e5c];return _0x57fb6a;},_0x507e(_0x281058,_0xdb939f);}import{AIReviewCoreController as _0x141308}from'../aireviewcore/aireviewcorecontroller.js';import{AI_REVIEW_CHECKS as _0x1f3392}from'./aireviewcheckdefinitions.js';import{AIReviewModeCheckList as _0xdbd38e}from'./model/aireviewmodechecklist.js';import{AIReviewCustomCheckRun as _0x21bc32}from'./model/aireviewcustomcheckrun.js';import{AIReviewSystemCheckRun as _0x2db797}from'../aireviewcore/model/aireviewsystemcheckrun.js';import{AIModels as _0xfce6a7}from'../aicore/model/aimodels.js';export class AIReviewModeController extends _0x141308{static get[_0x219996(0xb6)](){const _0x349055=_0x219996;return _0x349055(0xe8);}[_0x219996(0x9f)]=!0x1;async[_0x219996(0xd1)](){const _0x44ae4d=_0x219996;await super[_0x44ae4d(0xd1)](),this[_0x44ae4d(0xb7)](this[_0x44ae4d(0xb0)],_0x44ae4d(0xa2),(_0x1bb27c,_0x329d36)=>{const _0x19bec5=_0x44ae4d;this[_0x19bec5(0x9f)]=_0x329d36['on'],this[_0x19bec5(0xc8)](this[_0x19bec5(0x9f)]);});}[_0x219996(0xd7)](){const _0x55eec=_0x219996;super[_0x55eec(0xd7)](),this[_0x55eec(0xb0)]=this[_0x55eec(0xe7)][_0x55eec(0xde)][_0x55eec(0xe5)](_0x55eec(0xe3)),this[_0x55eec(0x90)]=this[_0x55eec(0xe7)][_0x55eec(0xde)][_0x55eec(0xe5)](_0x55eec(0xac));}[_0x219996(0xea)](_0x4e64b6,_0x3cedce){const _0x3e5f37=_0x219996;return _0x4e64b6[_0x3e5f37(0xa1)]?new _0x21bc32(_0x4e64b6[_0x3e5f37(0xc2)][_0x3e5f37(0xd4)],_0x4e64b6[_0x3e5f37(0xc2)][_0x3e5f37(0xdc)],this[_0x3e5f37(0x90)][_0x3e5f37(0xb4)](),_0x3cedce,this[_0x3e5f37(0x9e)]):new _0x2db797(this[_0x3e5f37(0x90)][_0x3e5f37(0xb4)](),_0x3cedce,this[_0x3e5f37(0x9e)],_0x4e64b6[_0x3e5f37(0xbb)],_0x4e64b6[_0x3e5f37(0xc2)]);}[_0x219996(0xf2)](_0x291204){const _0x4116bd=_0x219996;this[_0x4116bd(0xb0)][_0x4116bd(0xa9)](_0x291204[_0x4116bd(0xa0)]['id']),this[_0x4116bd(0xe0)](_0x291204[_0x4116bd(0xa0)]['id']);const _0x419c68=this[_0x4116bd(0x90)][_0x4116bd(0xf3)](_0x291204[_0x4116bd(0xa0)]['id']);if(!_0x419c68)return;const _0xa4b324=this[_0x4116bd(0x90)][_0x4116bd(0xab)]();this[_0x4116bd(0xb0)][_0x4116bd(0xcf)](_0x291204[_0x4116bd(0xa0)],()=>_0x419c68[_0x4116bd(0xf0)](),void 0x0,_0x4116bd(0xb1),_0xa4b324?.[_0x4116bd(0xce)]?.[_0x4116bd(0x82)]?.[_0x4116bd(0xf1)](),_0xa4b324?.['ui']?.[_0x4116bd(0xaa)]),this[_0x4116bd(0x90)][_0x4116bd(0xdf)](_0x291204[_0x4116bd(0xa0)]['id']);}[_0x219996(0xba)](){const _0x28a0c6=_0x219996;this[_0x28a0c6(0xb0)][_0x28a0c6(0x99)](),this[_0x28a0c6(0xb0)][_0x28a0c6(0x87)](),this[_0x28a0c6(0x90)][_0x28a0c6(0x98)]();}[_0x219996(0xd0)](_0x49802d){const _0x6d5ad5=_0x219996;this[_0x6d5ad5(0xc1)]&&_0x6d5ad5(0xb1)===_0x49802d[_0x6d5ad5(0xa8)]&&(this[_0x6d5ad5(0xcd)]=_0x6d5ad5(0x9d),this[_0x6d5ad5(0xc1)][_0x6d5ad5(0xef)](_0x49802d['id']));}[_0x219996(0xd6)](_0x59efef){const _0x160a77=_0x219996;this[_0x160a77(0xc1)]&&_0x160a77(0xa5)===_0x59efef[_0x160a77(0xa4)]&&this[_0x160a77(0xc1)][_0x160a77(0xe2)]();}[_0x219996(0xd5)](_0x15d58b,_0x4a587a){const _0x2b0b33=_0x219996;if(!this[_0x2b0b33(0xc1)])return;this[_0x2b0b33(0xcd)]=_0x2b0b33(0x81),this[_0x2b0b33(0xc1)][_0x2b0b33(0xef)](_0x4a587a[_0x2b0b33(0xcc)]);const _0x2acade=this[_0x2b0b33(0xc1)][_0x2b0b33(0xb2)](_0x4a587a[_0x2b0b33(0xcc)]);if(!_0x2acade)return;const _0x595c3e=this[_0x2b0b33(0x90)][_0x2b0b33(0xab)]();this[_0x2b0b33(0xb0)][_0x2b0b33(0xcf)](_0x2acade,_0x4a587a[_0x2b0b33(0xda)],_0x4a587a[_0x2b0b33(0x92)],_0x2b0b33(0xb1),_0x595c3e?.[_0x2b0b33(0xce)]?.[_0x2b0b33(0x82)]?.[_0x2b0b33(0xf1)](),_0x595c3e?.['ui']?.[_0x2b0b33(0xaa)]);}[_0x219996(0xbd)](_0x5d992d,_0x5338a1){const _0x1b5291=_0x219996;if(!this[_0x1b5291(0xc1)])return;if(this[_0x1b5291(0xc1)][_0x1b5291(0xae)]())return;const _0x24a6aa=this[_0x1b5291(0xc1)][_0x1b5291(0xb2)](_0x5338a1[_0x1b5291(0xcc)]);if(!_0x24a6aa)return;const _0x4baf8a=this[_0x1b5291(0x90)][_0x1b5291(0xab)]();this[_0x1b5291(0xb0)][_0x1b5291(0xcf)](_0x24a6aa,_0x5338a1[_0x1b5291(0xda)],_0x5338a1[_0x1b5291(0x92)],_0x1b5291(0xd2),_0x4baf8a?.[_0x1b5291(0xce)]?.[_0x1b5291(0x82)]?.[_0x1b5291(0xf1)](),_0x4baf8a?.['ui']?.[_0x1b5291(0xaa)]);}[_0x219996(0xc9)](){const _0x31c10e=_0x219996;if(!this[_0x31c10e(0xc1)])return;this[_0x31c10e(0xc1)][_0x31c10e(0xae)]()||this[_0x31c10e(0xb0)][_0x31c10e(0x87)]();}[_0x219996(0xc3)](_0x5600de){const _0x201e0d=_0x219996,_0x2ceb33=this[_0x201e0d(0x90)][_0x201e0d(0xf3)](_0x5600de);return _0x2ceb33?_0x2ceb33[_0x201e0d(0xf0)]():null;}[_0x219996(0xe1)](_0x5de825,_0x45e7a8){const _0x69616d=_0x219996;this[_0x69616d(0x90)][_0x69616d(0xc0)](_0x5de825,_0x45e7a8);}[_0x219996(0xc5)](_0x3ef994,_0xb90385){const _0x5b8427=_0x219996;return this[_0x5b8427(0x90)][_0x5b8427(0xec)](_0x3ef994,_0xb90385);}[_0x219996(0x9c)](){const _0x14798b=_0x219996;this[_0x14798b(0xc8)](this[_0x14798b(0x9f)]);}[_0x219996(0xc8)](_0x269c0c){const _0x22c564=_0x219996,_0x34398f=this[_0x22c564(0x90)][_0x22c564(0xab)]();_0x269c0c?this[_0x22c564(0xb0)][_0x22c564(0xd3)]():this[_0x22c564(0xb0)][_0x22c564(0xbc)](),_0x34398f&&_0x34398f[_0x22c564(0xce)][_0x22c564(0x82)][_0x22c564(0xa0)](_0x57d1dc=>{const _0x461d62=_0x22c564,_0x36bd61=_0x34398f[_0x461d62(0xce)][_0x461d62(0x82)][_0x461d62(0x96)][_0x461d62(0xe4)]();for(const _0x1585a7 of _0x36bd61[_0x461d62(0xbf)]())_0x1585a7[_0x461d62(0x8c)](_0x461d62(0xa3))&&_0x57d1dc[_0x461d62(0x8a)](_0x1585a7,_0x36bd61);_0x57d1dc[_0x461d62(0x86)](_0x269c0c?_0x461d62(0xeb):_0x461d62(0xdb),_0x36bd61);});}async[_0x219996(0xe6)](){const _0x5de7aa=_0x219996;let _0x2bf58c=this[_0x5de7aa(0x8b)](_0x1f3392);const _0x42e952=_0x2bf58c[_0x5de7aa(0x8d)](_0x8911b4=>_0x5de7aa(0xc4)===_0x8911b4['id']);if(_0x42e952)try{const _0x374a6a=new _0xfce6a7({'connector':this[_0x5de7aa(0x9e)],'config':this[_0x5de7aa(0xe7)][_0x5de7aa(0xa6)][_0x5de7aa(0xe5)](_0x5de7aa(0xd9)),'locale':this[_0x5de7aa(0xe7)][_0x5de7aa(0x9a)]});_0x42e952[_0x5de7aa(0x85)]=await _0x374a6a[_0x5de7aa(0xca)](),_0x42e952[_0x5de7aa(0x80)]=await _0x374a6a[_0x5de7aa(0x88)]();}catch(_0xa27634){_0x2bf58c=_0x2bf58c[_0x5de7aa(0xe9)](_0x51e30f=>_0x5de7aa(0xc4)!==_0x51e30f['id']),this[_0x5de7aa(0xee)](new _0x5dbfe6(_0x5de7aa(0x94),this,void 0x0,_0xa27634));}return new _0xdbd38e(_0x2bf58c);}[_0x219996(0x8b)](_0x25c3bd){const _0x502562=_0x219996;return _0x25c3bd[_0x502562(0xb3)](_0x29b827=>{const _0x11f9fa=_0x502562,_0xa296ff=_0x11f9fa(0xd8)+_0x29b827['id'][_0x11f9fa(0x8e)]()[_0x11f9fa(0x9b)]('-','_'),_0x3034a9={..._0x29b827,'title':this[_0x11f9fa(0x89)](_0xa296ff+_0x11f9fa(0xed),_0x29b827[_0x11f9fa(0xc7)]),'description':this[_0x11f9fa(0x89)](_0xa296ff+_0x11f9fa(0x91),_0x29b827[_0x11f9fa(0x8f)])};return _0x29b827[_0x11f9fa(0xa7)]&&(_0x3034a9[_0x11f9fa(0xa7)]=_0x29b827[_0x11f9fa(0xa7)][_0x11f9fa(0xb3)](_0x37f379=>({..._0x37f379,'label':this[_0x11f9fa(0x89)](_0xa296ff+_0x11f9fa(0x97),_0x37f379[_0x11f9fa(0xdd)]||''),'data':_0x37f379[_0x11f9fa(0xaf)]?_0x37f379[_0x11f9fa(0xaf)][_0x11f9fa(0xb3)](_0x499b5b=>({..._0x499b5b,'label':this[_0x11f9fa(0x89)](_0xa296ff+_0x11f9fa(0xb8)+_0x499b5b['id'][_0x11f9fa(0x8e)](),_0x499b5b[_0x11f9fa(0xdd)])})):void 0x0}))),_0x3034a9;});}}function _0x36df(){const _0x4cb299=['ai-review-mode-models-unable-to-retrieve','4393458PBkYJg','document','_OPTIONS_LABEL','setAllMarkersAsInactive','resetActiveStateInResults','locale','replaceAll','_onReviewCheckRun','panel','_aiConnector','_isDiffOn','change','isCustom','toggleDiff','ck-ai_review-','origin','balloon','config','options','uiInteraction','setActiveStateInResults','viewportOffset','getEditor','AIReviewCoreEditing','40ZhuvYY','isAnyChangeActivated','data','_aiReviewCoreUi','click','getChangeById','map','getDocumentData','6444250mJyenA','pluginName','listenTo','_OPTIONS_DATA_','6246709GanoYE','_onReviewCheckResultDeactivated','params','showDiffInBalloon','_onChangeMarkerHovered','44iyeiqq','getClassNames','markChangePositionInEditorContent','_currentReviewCheckRun','args','_getChangeContentElement','custom','_diffContent','120372utpPFW','title','_onDiffChange','_onChangeMarkerBlurred','getAvailableModels','6LVQTBq','changeId','_changeActivationSource','editing','showChangeBalloon','_onActivateChange','init','hover','hideDiffInBalloon','prompt','_onChangeMarkerClicked','_onDeactivateChange','_initRequiredPlugins','AI_REVIEW_CHECK_','ai.models','markerElement','ck-ai_review-highlights','model','label','plugins','setMarkersInElementAsActive','_scrollToChange','_markChangePositionInEditorContent','deactivateChange','AIReviewModeUI','getRoot','get','_getChecksList','context','AIReviewModeController','filter','_createReviewCheckRun','ck-ai_review-diff','diffContent','_TITLE','_logError','activateChange','getElement','getDomRoot','_onReviewCheckResultActivated','getMarkerElementForChange','defaultModel','content','view','8024psygDD','8398680aJzyVx','models','addClass','hideChangeBalloon','getDefault','_getTranslationWithDefault','removeClass','_translateReviewChecks','startsWith','find','toUpperCase','description','_aiReviewCoreEditing','_DESCRIPTION','domEvent','4156800UEGpiU'];_0x36df=function(){return _0x4cb299;};return _0x36df();}
23
+ const _0x528cf9=_0x4842;(function(_0x45e770,_0x224222){const _0x1cc55b=_0x4842,_0x4f0270=_0x45e770();while(!![]){try{const _0x56d62a=parseInt(_0x1cc55b(0x9c))/0x1*(parseInt(_0x1cc55b(0xa4))/0x2)+-parseInt(_0x1cc55b(0x7c))/0x3*(parseInt(_0x1cc55b(0xb9))/0x4)+-parseInt(_0x1cc55b(0x7f))/0x5*(-parseInt(_0x1cc55b(0xe7))/0x6)+parseInt(_0x1cc55b(0x77))/0x7+parseInt(_0x1cc55b(0xb1))/0x8*(parseInt(_0x1cc55b(0x8e))/0x9)+-parseInt(_0x1cc55b(0xb5))/0xa+-parseInt(_0x1cc55b(0xa2))/0xb;if(_0x56d62a===_0x224222)break;else _0x4f0270['push'](_0x4f0270['shift']());}catch(_0x20b6be){_0x4f0270['push'](_0x4f0270['shift']());}}}(_0x39ba,0xbc01b));import{CKEditorError as _0x367afb}from'ckeditor5/src/utils.js';import{AIReviewCoreController as _0x1ed522}from'../aireviewcore/aireviewcorecontroller.js';import{AI_REVIEW_CHECKS as _0x1efd2b}from'./aireviewcheckdefinitions.js';import{AIReviewModeCheckList as _0x3ef320}from'./model/aireviewmodechecklist.js';import{AIReviewCustomCheckRun as _0x4e4353}from'./model/aireviewcustomcheckrun.js';import{AIReviewSystemCheckRun as _0x236007}from'../aireviewcore/model/aireviewsystemcheckrun.js';import{AIModels as _0x460cbd}from'../aicore/model/aimodels.js';import{AIReviewCheckCustom as _0x50d667}from'./model/aireviewcheckcustom.js';import{AIReviewCheckExtra as _0x8bf1b3}from'./model/aireviewcheckextra.js';function _0x4842(_0x16e7f3,_0x4344e4){const _0x39ba00=_0x39ba();return _0x4842=function(_0x48421d,_0x42c452){_0x48421d=_0x48421d-0x73;let _0x2e19b5=_0x39ba00[_0x48421d];return _0x2e19b5;},_0x4842(_0x16e7f3,_0x4344e4);}function _0x39ba(){const _0x272afd=['deactivateChange','_aiReviewCoreUi','init','origin','_logErrorForNonExistentChecks','_logError','_onReviewCheckResultActivated','startsWith','AI_REVIEW_CHECK_','_currentReviewCheckRun','_getChangeContentElement','_onReviewCheckResultDeactivated','removeCheckById','_getModels','recommended','_changeActivationSource','isCustom','_DESCRIPTION','markerElement','ai.models','_onChangeMarkerClicked','getDomRoot','all','_initRequiredPlugins','_aiConnector','_getExtraChecks','find','setActiveStateInResults','click','_createReviewCheckRun','defaultModel','pluginName','default','join','label','isExtra','_hasDefaultAvailableCommands','12876XRuwVx','plugins','title','getChangeById','_markChangePositionInEditorContent','isAnyChangeActivated','args','AIReviewModeUI','get','checks','replaceAll','getMarkerElementForChange','length','_diffContent','filter','_aiReviewCoreEditing','toggleDiff','showDiffInBalloon','_OPTIONS_LABEL','ck-ai_review-diff','changeId','toUpperCase','diffContent','push','hideChangeBalloon','_scrollToChange','addClass','_filterChecksWithMissingModel','1646442YDnXjP','options','some','listenTo','config','14562kZXnmr','AIReviewModeController','setMarkersInElementAsActive','3485LGtIKF','custom','_onChangeMarkerBlurred','params','view','panel','setAllMarkersAsInactive','hover','_getChecksList','_translateReviewCheck','_OPTIONS_DATA_','models','_isDiffOn','locale','getDefault','9uUvfRU','_onChangeMarkerHovered','getRoot','getAll','balloon','data','showChangeBalloon','content','model','_getTranslationWithDefault','AIReviewCoreEditing','ai.review.availableCommands','map','_onDeactivateChange','3sLNrwA','_onDiffChange','change','hideDiffInBalloon','_TITLE','ai-review-mode-non-existent-commands-used','12776841hbaPgu','getElement','864596EsvPFL','setupChecks','activateChange','prompt','_onReviewCheckRun','markChangePositionInEditorContent','_onActivateChange','ck-ai_review-','getClassNames','editing','viewportOffset','description','getEditor','905672qSBYqz','getDocumentData','removeClass','ai.review.extraCommands','105270MTyBns','context','uiInteraction','resetActiveStateInResults','988hjmsnb','ck-ai_review-highlights','ai-review-mode-models-unable-to-retrieve','getAvailableModels','document','ai-review-mode-command-unavailable-due-to-missing-model','define','forEach','domEvent'];_0x39ba=function(){return _0x272afd;};return _0x39ba();}import{AIReviewExtraCheckRun as _0x10049e}from'./model/aireviewextracheckrun.js';export class AIReviewModeController extends _0x1ed522{static get[_0x528cf9(0xe1)](){const _0x32b6dd=_0x528cf9;return _0x32b6dd(0x7d);}[_0x528cf9(0x8b)]=!0x1;[_0x528cf9(0xe6)]=!0x1;constructor(_0x840823){const _0x50b6b3=_0x528cf9;super(_0x840823),this[_0x50b6b3(0xe6)]=!this[_0x50b6b3(0xb6)][_0x50b6b3(0x7b)][_0x50b6b3(0xef)](_0x50b6b3(0x99)),this[_0x50b6b3(0xb6)][_0x50b6b3(0x7b)][_0x50b6b3(0xbf)](_0x50b6b3(0x99),_0x1efd2b[_0x50b6b3(0x9a)](_0x306999=>_0x306999['id'])),this[_0x50b6b3(0xb6)][_0x50b6b3(0x7b)][_0x50b6b3(0xbf)](_0x50b6b3(0xb4),[]);}async[_0x528cf9(0xc4)](){const _0x5c6e79=_0x528cf9;await super[_0x5c6e79(0xc4)](),this[_0x5c6e79(0x7a)](this[_0x5c6e79(0xc3)],_0x5c6e79(0xf7),(_0x11837b,_0x556abf)=>{const _0x2f1a59=_0x5c6e79;this[_0x2f1a59(0x8b)]=_0x556abf['on'],this[_0x2f1a59(0x9d)](this[_0x2f1a59(0x8b)]);});}[_0x528cf9(0xd9)](){const _0x4d5ef3=_0x528cf9;super[_0x4d5ef3(0xd9)](),this[_0x4d5ef3(0xc3)]=this[_0x4d5ef3(0xb6)][_0x4d5ef3(0xe8)][_0x4d5ef3(0xef)](_0x4d5ef3(0xee)),this[_0x4d5ef3(0xf6)]=this[_0x4d5ef3(0xb6)][_0x4d5ef3(0xe8)][_0x4d5ef3(0xef)](_0x4d5ef3(0x98));}[_0x528cf9(0xdf)](_0x58e4d8,_0x1c61ca){const _0x53e90e=_0x528cf9;return _0x58e4d8[_0x53e90e(0xd2)]?new _0x4e4353(_0x58e4d8[_0x53e90e(0xed)][_0x53e90e(0xa7)],_0x58e4d8[_0x53e90e(0xed)][_0x53e90e(0x96)],this[_0x53e90e(0xf6)][_0x53e90e(0xb2)](),_0x1c61ca,this[_0x53e90e(0xda)]):_0x1c61ca[_0x53e90e(0xe5)]?new _0x10049e(_0x1c61ca[_0x53e90e(0xa7)],_0x1c61ca[_0x53e90e(0xe0)]['id'],this[_0x53e90e(0xf6)][_0x53e90e(0xb2)](),_0x1c61ca,this[_0x53e90e(0xda)]):new _0x236007(this[_0x53e90e(0xf6)][_0x53e90e(0xb2)](),_0x1c61ca,this[_0x53e90e(0xda)],_0x58e4d8[_0x53e90e(0x82)],_0x58e4d8[_0x53e90e(0xed)]);}[_0x528cf9(0xc8)](_0x2cef97){const _0x2ae430=_0x528cf9;this[_0x2ae430(0xc3)][_0x2ae430(0xdd)](_0x2cef97[_0x2ae430(0x9e)]['id']),this[_0x2ae430(0x74)](_0x2cef97[_0x2ae430(0x9e)]['id']);const _0x396a85=this[_0x2ae430(0xf6)][_0x2ae430(0xf2)](_0x2cef97[_0x2ae430(0x9e)]['id']);if(!_0x396a85)return;const _0x17eb6b=this[_0x2ae430(0xf6)][_0x2ae430(0xb0)]();this[_0x2ae430(0xc3)][_0x2ae430(0x94)](_0x2cef97[_0x2ae430(0x9e)],()=>_0x396a85[_0x2ae430(0xa3)](),void 0x0,_0x2ae430(0xde),_0x17eb6b?.[_0x2ae430(0xad)]?.[_0x2ae430(0x83)]?.[_0x2ae430(0xd7)](),_0x17eb6b?.['ui']?.[_0x2ae430(0xae)]),this[_0x2ae430(0xf6)][_0x2ae430(0x7e)](_0x2cef97[_0x2ae430(0x9e)]['id']);}[_0x528cf9(0xcd)](){const _0x1abf7f=_0x528cf9;this[_0x1abf7f(0xc3)][_0x1abf7f(0xb8)](),this[_0x1abf7f(0xc3)][_0x1abf7f(0x73)](),this[_0x1abf7f(0xf6)][_0x1abf7f(0x85)]();}[_0x528cf9(0xaa)](_0x98a2ad){const _0x1e2a7f=_0x528cf9;this[_0x1e2a7f(0xcb)]&&_0x1e2a7f(0xde)===_0x98a2ad[_0x1e2a7f(0xb7)]&&(this[_0x1e2a7f(0xd1)]=_0x1e2a7f(0x84),this[_0x1e2a7f(0xcb)][_0x1e2a7f(0xa6)](_0x98a2ad['id']));}[_0x528cf9(0x9b)](_0x105666){const _0x37d9b9=_0x528cf9;this[_0x37d9b9(0xcb)]&&_0x37d9b9(0x92)===_0x105666[_0x37d9b9(0xc5)]&&this[_0x37d9b9(0xcb)][_0x37d9b9(0xc2)]();}[_0x528cf9(0xd6)](_0x1f5c16,_0x92b7be){const _0x4494b0=_0x528cf9;if(!this[_0x4494b0(0xcb)])return;this[_0x4494b0(0xd1)]=_0x4494b0(0x95),this[_0x4494b0(0xcb)][_0x4494b0(0xa6)](_0x92b7be[_0x4494b0(0xfb)]);const _0x23be3b=this[_0x4494b0(0xcb)][_0x4494b0(0xea)](_0x92b7be[_0x4494b0(0xfb)]);if(!_0x23be3b)return;const _0x204285=this[_0x4494b0(0xf6)][_0x4494b0(0xb0)]();this[_0x4494b0(0xc3)][_0x4494b0(0x94)](_0x23be3b,_0x92b7be[_0x4494b0(0xd4)],_0x92b7be[_0x4494b0(0xc1)],_0x4494b0(0xde),_0x204285?.[_0x4494b0(0xad)]?.[_0x4494b0(0x83)]?.[_0x4494b0(0xd7)](),_0x204285?.['ui']?.[_0x4494b0(0xae)]);}[_0x528cf9(0x8f)](_0x5e491c,_0x572350){const _0x5216d3=_0x528cf9;if(!this[_0x5216d3(0xcb)])return;if(this[_0x5216d3(0xcb)][_0x5216d3(0xec)]())return;const _0x5ef2ef=this[_0x5216d3(0xcb)][_0x5216d3(0xea)](_0x572350[_0x5216d3(0xfb)]);if(!_0x5ef2ef)return;const _0x5039f2=this[_0x5216d3(0xf6)][_0x5216d3(0xb0)]();this[_0x5216d3(0xc3)][_0x5216d3(0x94)](_0x5ef2ef,_0x572350[_0x5216d3(0xd4)],_0x572350[_0x5216d3(0xc1)],_0x5216d3(0x86),_0x5039f2?.[_0x5216d3(0xad)]?.[_0x5216d3(0x83)]?.[_0x5216d3(0xd7)](),_0x5039f2?.['ui']?.[_0x5216d3(0xae)]);}[_0x528cf9(0x81)](){const _0x5f1b29=_0x528cf9;if(!this[_0x5f1b29(0xcb)])return;this[_0x5f1b29(0xcb)][_0x5f1b29(0xec)]()||this[_0x5f1b29(0xc3)][_0x5f1b29(0x73)]();}[_0x528cf9(0xcc)](_0x1f4ad1){const _0x39eb73=_0x528cf9,_0x27ea13=this[_0x39eb73(0xf6)][_0x39eb73(0xf2)](_0x1f4ad1);return _0x27ea13?_0x27ea13[_0x39eb73(0xa3)]():null;}[_0x528cf9(0xeb)](_0x2daee2,_0x202630){const _0x357757=_0x528cf9;this[_0x357757(0xf6)][_0x357757(0xa9)](_0x2daee2,_0x202630);}[_0x528cf9(0xf4)](_0x12a1d6,_0x43b023){const _0x1f72d7=_0x528cf9;return this[_0x1f72d7(0xf6)][_0x1f72d7(0xfd)](_0x12a1d6,_0x43b023);}[_0x528cf9(0xa8)](){const _0x3079d7=_0x528cf9;this[_0x3079d7(0x9d)](this[_0x3079d7(0x8b)]);}[_0x528cf9(0x9d)](_0x14381b){const _0x4ba834=_0x528cf9,_0xaffec5=this[_0x4ba834(0xf6)][_0x4ba834(0xb0)]();_0x14381b?this[_0x4ba834(0xc3)][_0x4ba834(0x9f)]():this[_0x4ba834(0xc3)][_0x4ba834(0xf8)](),_0xaffec5&&_0xaffec5[_0x4ba834(0xad)][_0x4ba834(0x83)][_0x4ba834(0x9e)](_0x35971c=>{const _0x4805f3=_0x4ba834,_0x1cc013=_0xaffec5[_0x4805f3(0xad)][_0x4805f3(0x83)][_0x4805f3(0xbd)][_0x4805f3(0x90)]();for(const _0x53d082 of _0x1cc013[_0x4805f3(0xac)]())_0x53d082[_0x4805f3(0xc9)](_0x4805f3(0xab))&&_0x35971c[_0x4805f3(0xb3)](_0x53d082,_0x1cc013);_0x35971c[_0x4805f3(0x75)](_0x14381b?_0x4805f3(0xfa):_0x4805f3(0xba),_0x1cc013);});}async[_0x528cf9(0x87)](){const _0x32c32c=_0x528cf9,_0x15ffb4=[..._0x1efd2b,...this[_0x32c32c(0xdb)]()],_0x8faaf6=this[_0x32c32c(0xb6)][_0x32c32c(0x7b)][_0x32c32c(0xef)](_0x32c32c(0x99))||[];this[_0x32c32c(0xc6)](_0x8faaf6,_0x15ffb4);let _0x4ffcac=_0x15ffb4;this[_0x32c32c(0xe6)]||(_0x4ffcac=_0x8faaf6[_0x32c32c(0x9a)](_0x147a25=>_0x15ffb4[_0x32c32c(0xdc)](_0x24668f=>_0x24668f['id']===_0x147a25))[_0x32c32c(0xf5)](_0x57ddc4=>!!_0x57ddc4)),_0x4ffcac=_0x4ffcac[_0x32c32c(0x9a)](_0x2b0a50=>_0x2b0a50[_0x32c32c(0xe5)]?_0x2b0a50:this[_0x32c32c(0x88)](_0x2b0a50));const _0x5de61d=_0x4ffcac[_0x32c32c(0x79)](_0x278b9c=>_0x278b9c[_0x32c32c(0xe5)]||_0x32c32c(0x80)===_0x278b9c['id']);let _0x3983be=[],_0xc4630=[],_0x3c3155=null;if(_0x5de61d){const _0x64ede1=await this[_0x32c32c(0xcf)]();_0x3983be=_0x64ede1[_0x32c32c(0xd8)],_0xc4630=_0x64ede1[_0x32c32c(0xd0)],_0x3c3155=_0x64ede1[_0x32c32c(0xe2)];}const _0x4f963f=new _0x3ef320(_0x3983be,_0xc4630,_0x3c3155);return _0x4f963f[_0x32c32c(0xa5)](_0x4ffcac),_0x5de61d&&this[_0x32c32c(0x76)](_0x4f963f),_0x4f963f;}[_0x528cf9(0xdb)](){const _0x29f353=_0x528cf9;return(this[_0x29f353(0xb6)][_0x29f353(0x7b)][_0x29f353(0xef)](_0x29f353(0xb4))||[])[_0x29f353(0x9a)](_0x3b3408=>({'id':_0x3b3408['id'],'commandId':_0x3b3408['id'],'title':_0x3b3408[_0x29f353(0xe4)],'description':_0x3b3408[_0x29f353(0xaf)],'isParameterized':!0x1,'isExtra':!0x0,'prompt':_0x3b3408[_0x29f353(0xa7)],'model':_0x3b3408[_0x29f353(0x96)]}));}[_0x528cf9(0xc6)](_0x39ee91,_0x5f3656){const _0x489024=_0x528cf9,_0x520876=_0x39ee91[_0x489024(0xf5)](_0xfe896f=>!_0x5f3656[_0x489024(0x79)](_0x5bb2fb=>_0x5bb2fb['id']===_0xfe896f));_0x520876[_0x489024(0xf3)]&&this[_0x489024(0xc7)](new _0x367afb(_0x489024(0xa1),this,{'commandIds':_0x520876[_0x489024(0xe3)](',\x20')}),!0x0);}async[_0x528cf9(0xcf)](){const _0x1e3071=_0x528cf9;try{const _0x543b28=new _0x460cbd({'connector':this[_0x1e3071(0xda)],'config':this[_0x1e3071(0xb6)][_0x1e3071(0x7b)][_0x1e3071(0xef)](_0x1e3071(0xd5)),'locale':this[_0x1e3071(0xb6)][_0x1e3071(0x8c)]});return{'all':await _0x543b28[_0x1e3071(0x91)](),'recommended':await _0x543b28[_0x1e3071(0xbc)](),'default':await _0x543b28[_0x1e3071(0x8d)]()};}catch(_0x342380){return this[_0x1e3071(0xc7)](new _0x367afb(_0x1e3071(0xbb),this,void 0x0,_0x342380)),{'all':[],'recommended':[],'default':null};}}[_0x528cf9(0x88)](_0x3008b6){const _0x4c95d7=_0x528cf9,_0x5d030a=_0x4c95d7(0xca)+_0x3008b6['id'][_0x4c95d7(0xfc)]()[_0x4c95d7(0xf1)]('-','_'),_0x14a80f={..._0x3008b6,'title':this[_0x4c95d7(0x97)](_0x5d030a+_0x4c95d7(0xa0),_0x3008b6[_0x4c95d7(0xe9)]),'description':this[_0x4c95d7(0x97)](_0x5d030a+_0x4c95d7(0xd3),_0x3008b6[_0x4c95d7(0xaf)])};return _0x3008b6[_0x4c95d7(0x78)]&&(_0x14a80f[_0x4c95d7(0x78)]=_0x3008b6[_0x4c95d7(0x78)][_0x4c95d7(0x9a)](_0x5ae763=>({..._0x5ae763,'label':this[_0x4c95d7(0x97)](_0x5d030a+_0x4c95d7(0xf9),_0x5ae763[_0x4c95d7(0xe4)]||''),'data':_0x5ae763[_0x4c95d7(0x93)]?_0x5ae763[_0x4c95d7(0x93)][_0x4c95d7(0x9a)](_0x183457=>({..._0x183457,'label':this[_0x4c95d7(0x97)](_0x5d030a+_0x4c95d7(0x89)+_0x183457['id'][_0x4c95d7(0xfc)](),_0x183457[_0x4c95d7(0xe4)])})):void 0x0}))),_0x14a80f;}[_0x528cf9(0x76)](_0x1b95f8){const _0x155979=_0x528cf9,_0x5529de=[];_0x1b95f8[_0x155979(0xf0)][_0x155979(0xc0)](_0x41d381=>{const _0x2e8c5f=_0x155979;(_0x41d381 instanceof _0x8bf1b3&&!_0x41d381[_0x2e8c5f(0xe0)]||_0x41d381 instanceof _0x50d667&&!_0x41d381[_0x2e8c5f(0x8a)][_0x2e8c5f(0xf3)])&&_0x5529de[_0x2e8c5f(0xfe)](_0x41d381['id']);}),_0x5529de[_0x155979(0xf3)]&&_0x5529de[_0x155979(0xc0)](_0x49099d=>{const _0x3eea7e=_0x155979;_0x1b95f8[_0x3eea7e(0xce)](_0x49099d),this[_0x3eea7e(0xc7)](new _0x367afb(_0x3eea7e(0xbe),this,{'commandId':_0x49099d}),!0x0);});}}