@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.1

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 (328) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +9 -2
  3. package/dist/index-editor.css +119 -34
  4. package/dist/index.css +144 -35
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +5 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.d.ts +3 -3
  182. package/src/aichat/aichat.js +1 -1
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +6 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.d.ts +2 -4
  188. package/src/aichat/model/aichatconversation.js +1 -1
  189. package/src/aichat/model/aichatinteraction.js +1 -1
  190. package/src/aichat/model/aichatmodels.d.ts +11 -4
  191. package/src/aichat/model/aichatmodels.js +1 -1
  192. package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
  193. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  194. package/src/aichat/ui/aichatfeedview.js +1 -1
  195. package/src/aichat/ui/aichatheaderview.js +1 -1
  196. package/src/aichat/ui/aichatview.js +1 -1
  197. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  200. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  203. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  204. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  216. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  217. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  218. package/src/aichat/utils/eventnames.js +1 -1
  219. package/src/aichat/utils/promisequeue.js +1 -1
  220. package/src/aichat/utils/scrollmanager.js +1 -1
  221. package/src/aichathistory/aichathistory.js +1 -1
  222. package/src/aichathistory/aichathistorycontroller.js +1 -1
  223. package/src/aichathistory/aichathistoryui.js +1 -1
  224. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  225. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  226. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  227. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  228. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  229. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  230. package/src/aiconfig.d.ts +4 -0
  231. package/src/aicore/aiconnector.js +1 -1
  232. package/src/aicore/aiediting.js +1 -1
  233. package/src/aicore/model/aicapabilities.js +1 -1
  234. package/src/aicore/model/aicontext.js +1 -1
  235. package/src/aicore/model/aiinteraction.js +1 -1
  236. package/src/aicore/model/aireply.d.ts +1 -1
  237. package/src/aicore/model/aireply.js +1 -1
  238. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  239. package/src/aicore/pipeline/airesponseparser.js +2 -2
  240. package/src/aicore/ui/aidisclaimerview.js +1 -1
  241. package/src/aicore/ui/aiskeleton.js +1 -1
  242. package/src/aicore/ui/aispinner.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  248. package/src/aicore/utils/common-translations.js +1 -1
  249. package/src/aicore/utils/createresizebutton.js +1 -1
  250. package/src/aicore/utils/documentposition.js +1 -1
  251. package/src/aicore/utils/documentrange.js +1 -1
  252. package/src/aicore/utils/eventnames.js +1 -1
  253. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  254. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  255. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  256. package/src/aicore/utils/htmlparser.js +1 -1
  257. package/src/aicore/utils/htmlstreamer.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.d.ts +2 -1
  262. package/src/aiquickactions/aiquickactions.js +1 -1
  263. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  264. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  265. package/src/aiquickactions/aiquickactionsui.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +2 -1
  267. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  270. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  271. package/src/aireviewmode/aireviewmode.js +1 -1
  272. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  273. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  274. package/src/aireviewmode/aireviewmodeui.d.ts +3 -1
  275. package/src/aireviewmode/aireviewmodeui.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  278. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  279. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  280. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  281. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  282. package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
  283. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  285. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  286. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  287. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
  288. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  289. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
  290. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  291. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
  292. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  293. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
  294. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  295. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
  296. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  298. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
  299. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  300. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  301. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  302. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  303. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  304. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  305. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  306. package/src/aitabs/aitabs.js +1 -1
  307. package/src/aitabs/aitabsmainview.d.ts +4 -0
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/errors.d.ts +5 -0
  313. package/src/errors.js +23 -0
  314. package/src/index.js +1 -1
  315. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
  316. package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
  317. package/theme/aichat/aichat-controls.css +1 -0
  318. package/theme/aichat/aichat.css +0 -1
  319. package/theme/aichat/aichatfeed.css +9 -0
  320. package/theme/aichat/aisuggestioncontainer.css +7 -1
  321. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
  322. package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
  323. package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
  324. package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
  325. package/theme/aitabs/aitabsview.css +2 -2
  326. package/theme/aitabs/tabs/tabsview.css +13 -3
  327. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
  328. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x450933=_0x4384;function _0x59b3(){var _0x16c789=['content','8bJrUaE','_prompt','callCustomReview','48DurHGy','809253gEEPoS','title','11VvYshS','_aiConnector','16700kWGQQS','494966hgtARk','_documentData','_model','329861vLCxbe','1505050oJigME','_createApiRequest','148055FFahQA','3gKKDgd','142527MgdwJB'];_0x59b3=function(){return _0x16c789;};return _0x59b3();}function _0x4384(_0x5b7f32,_0x5f5cbc){var _0x59b36b=_0x59b3();return _0x4384=function(_0x438433,_0x9b3d75){_0x438433=_0x438433-0x134;var _0x2e07ff=_0x59b36b[_0x438433];return _0x2e07ff;},_0x4384(_0x5b7f32,_0x5f5cbc);}(function(_0x4e870c,_0x4f2383){var _0x450157=_0x4384,_0x289d90=_0x4e870c();while(!![]){try{var _0x14cb8b=parseInt(_0x450157(0x13a))/0x1+-parseInt(_0x450157(0x145))/0x2*(-parseInt(_0x450157(0x139))/0x3)+-parseInt(_0x450157(0x144))/0x4+-parseInt(_0x450157(0x138))/0x5*(parseInt(_0x450157(0x13f))/0x6)+parseInt(_0x450157(0x135))/0x7*(-parseInt(_0x450157(0x13c))/0x8)+-parseInt(_0x450157(0x140))/0x9+parseInt(_0x450157(0x136))/0xa*(parseInt(_0x450157(0x142))/0xb);if(_0x14cb8b===_0x4f2383)break;else _0x289d90['push'](_0x289d90['shift']());}catch(_0x3da2b3){_0x289d90['push'](_0x289d90['shift']());}}}(_0x59b3,0x27a6c));import{AIReviewCheckRun as _0x1ffb5d}from'./aireviewcheckrun.js';export class AIReviewCustomCheckRun extends _0x1ffb5d{[_0x450933(0x13d)];[_0x450933(0x134)];constructor(_0x221292,_0x3ffd50,_0x25b329,_0x4335c1,_0x1cc156){var _0x51a375=_0x450933;super(_0x25b329,_0x4335c1,_0x1cc156),this[_0x51a375(0x13d)]=_0x221292,this[_0x51a375(0x134)]=_0x3ffd50;}get[_0x450933(0x141)](){var _0x3d4c1b=_0x450933;return this[_0x3d4c1b(0x13d)];}[_0x450933(0x137)](){var _0x1dea8d=_0x450933;return this[_0x1dea8d(0x143)][_0x1dea8d(0x13e)]({'content':this[_0x1dea8d(0x146)][_0x1dea8d(0x13b)],'prompt':this[_0x1dea8d(0x13d)],'model':this[_0x1dea8d(0x134)]});}}
23
+ function _0x5ab4(){var _0x33f9dc=['115518rhXTGH','7ISjvuC','14541FLQAuj','_sendRatingRequest','1847048oooLNh','35WsMUEJ','_prompt','callCustomReview','_aiConnector','_documentData','3161169pDKmWx','upsertCustomAIReviewRating','574980AgCQMA','_model','164hDWTWt','content','348860GBGRyh','_createApiRequest','subTitle','82251blLiRf'];_0x5ab4=function(){return _0x33f9dc;};return _0x5ab4();}var _0x31e985=_0x42d2;(function(_0x2d5962,_0x292dcb){var _0x4e9840=_0x42d2,_0x2d81d1=_0x2d5962();while(!![]){try{var _0x55eb53=-parseInt(_0x4e9840(0x1f7))/0x1+-parseInt(_0x4e9840(0x1f4))/0x2+-parseInt(_0x4e9840(0x1fa))/0x3*(-parseInt(_0x4e9840(0x1f2))/0x4)+parseInt(_0x4e9840(0x1fd))/0x5*(parseInt(_0x4e9840(0x1f8))/0x6)+-parseInt(_0x4e9840(0x1f9))/0x7*(parseInt(_0x4e9840(0x1fc))/0x8)+parseInt(_0x4e9840(0x1ee))/0x9+parseInt(_0x4e9840(0x1f0))/0xa;if(_0x55eb53===_0x292dcb)break;else _0x2d81d1['push'](_0x2d81d1['shift']());}catch(_0x59877d){_0x2d81d1['push'](_0x2d81d1['shift']());}}}(_0x5ab4,0x3e2d3));function _0x42d2(_0x16a039,_0x25bc4f){var _0x5ab4bf=_0x5ab4();return _0x42d2=function(_0x42d2aa,_0x5245e8){_0x42d2aa=_0x42d2aa-0x1ec;var _0x3460b0=_0x5ab4bf[_0x42d2aa];return _0x3460b0;},_0x42d2(_0x16a039,_0x25bc4f);}import{AIReviewCheckRun as _0x455dfd}from'./aireviewcheckrun.js';export class AIReviewCustomCheckRun extends _0x455dfd{[_0x31e985(0x1fe)];[_0x31e985(0x1f1)];constructor(_0x46bfa2,_0x194ba8,_0x45362d,_0x227903,_0x4b7568){var _0x38055f=_0x31e985;super(_0x45362d,_0x227903,_0x4b7568),this[_0x38055f(0x1fe)]=_0x46bfa2,this[_0x38055f(0x1f1)]=_0x194ba8;}get[_0x31e985(0x1f6)](){var _0x273a0d=_0x31e985;return this[_0x273a0d(0x1fe)];}[_0x31e985(0x1f5)](){var _0x46b845=_0x31e985;return this[_0x46b845(0x1ec)][_0x46b845(0x1ff)]({'content':this[_0x46b845(0x1ed)][_0x46b845(0x1f3)],'prompt':this[_0x46b845(0x1fe)],'model':this[_0x46b845(0x1f1)]});}[_0x31e985(0x1fb)](_0x1b21a7,_0x25a29d,_0x22600b){var _0x3149a2=_0x31e985;return this[_0x3149a2(0x1ec)][_0x3149a2(0x1ef)](_0x25a29d,_0x1b21a7,_0x22600b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x38c6(){const _0x7e4d50=['54PlKViZ','908504ECnZYT','2sYmMWR','_connector','10ATIxNK','getModels','286170jUZDal','getAll','2657112ZWMlUZ','8233146YOzxCc','items','3856622OcmuyN','length','_modelList','4042976fsCJxB','1597780vHYBKJ','list'];_0x38c6=function(){return _0x7e4d50;};return _0x38c6();}const _0x6367ff=_0x197c;function _0x197c(_0x4665e3,_0x332442){const _0x38c683=_0x38c6();return _0x197c=function(_0x197c41,_0x22e39c){_0x197c41=_0x197c41-0x138;let _0x36e614=_0x38c683[_0x197c41];return _0x36e614;},_0x197c(_0x4665e3,_0x332442);}(function(_0x44c10d,_0x22d18e){const _0x1572d=_0x197c,_0x15a877=_0x44c10d();while(!![]){try{const _0x5713ff=-parseInt(_0x1572d(0x142))/0x1+-parseInt(_0x1572d(0x143))/0x2*(-parseInt(_0x1572d(0x138))/0x3)+parseInt(_0x1572d(0x13f))/0x4+-parseInt(_0x1572d(0x147))/0x5*(-parseInt(_0x1572d(0x141))/0x6)+-parseInt(_0x1572d(0x13b))/0x7+-parseInt(_0x1572d(0x13e))/0x8+-parseInt(_0x1572d(0x139))/0x9*(-parseInt(_0x1572d(0x145))/0xa);if(_0x5713ff===_0x22d18e)break;else _0x15a877['push'](_0x15a877['shift']());}catch(_0x59e495){_0x15a877['push'](_0x15a877['shift']());}}}(_0x38c6,0xb7293));import{EmitterMixin as _0x2419b6}from'ckeditor5/src/utils.js';export class AIReviewModels extends _0x2419b6(){[_0x6367ff(0x13d)]=[];[_0x6367ff(0x144)];constructor({connector:_0xac8570}){const _0x329084=_0x6367ff;super(),this[_0x329084(0x144)]=_0xac8570;}async[_0x6367ff(0x148)](){const _0x2106e9=_0x6367ff;if(!this[_0x2106e9(0x13d)][_0x2106e9(0x13c)])try{const _0xa66f54=this[_0x2106e9(0x144)][_0x2106e9(0x146)](),_0x438fbf=await _0xa66f54[_0x2106e9(0x140)]();this[_0x2106e9(0x13d)]=_0x438fbf[_0x2106e9(0x13a)];}catch{}return this[_0x2106e9(0x13d)];}}
23
+ const _0x481182=_0x2d0a;(function(_0x2f9f61,_0x1b6c52){const _0x3ed093=_0x2d0a,_0x1f9f7a=_0x2f9f61();while(!![]){try{const _0x2838d8=parseInt(_0x3ed093(0xaf))/0x1*(parseInt(_0x3ed093(0xaa))/0x2)+-parseInt(_0x3ed093(0xa9))/0x3*(-parseInt(_0x3ed093(0xa7))/0x4)+-parseInt(_0x3ed093(0xa5))/0x5*(-parseInt(_0x3ed093(0xb0))/0x6)+-parseInt(_0x3ed093(0xa4))/0x7*(parseInt(_0x3ed093(0xa1))/0x8)+parseInt(_0x3ed093(0xa2))/0x9*(-parseInt(_0x3ed093(0xb1))/0xa)+parseInt(_0x3ed093(0xb2))/0xb+parseInt(_0x3ed093(0xa6))/0xc*(-parseInt(_0x3ed093(0xae))/0xd);if(_0x2838d8===_0x1b6c52)break;else _0x1f9f7a['push'](_0x1f9f7a['shift']());}catch(_0xdae0af){_0x1f9f7a['push'](_0x1f9f7a['shift']());}}}(_0x10ff,0x97614));function _0x2d0a(_0x2680e7,_0x28ab46){const _0x10ff20=_0x10ff();return _0x2d0a=function(_0x2d0ada,_0x482891){_0x2d0ada=_0x2d0ada-0xa1;let _0x184e3b=_0x10ff20[_0x2d0ada];return _0x184e3b;},_0x2d0a(_0x2680e7,_0x28ab46);}import{EmitterMixin as _0x4cd5ba}from'ckeditor5/src/utils.js';export class AIReviewModels extends _0x4cd5ba(){[_0x481182(0xa3)]=[];[_0x481182(0xab)];constructor({connector:_0x3d1824}){const _0x2a80cf=_0x481182;super(),this[_0x2a80cf(0xab)]=_0x3d1824;}async[_0x481182(0xa8)](){const _0x14d7b4=_0x481182;if(!this[_0x14d7b4(0xa3)][_0x14d7b4(0xb3)])try{const _0x504085=this[_0x14d7b4(0xab)][_0x14d7b4(0xac)](),_0x557dfa=await _0x504085[_0x14d7b4(0xad)]();this[_0x14d7b4(0xa3)]=_0x557dfa[_0x14d7b4(0xb4)];}catch{}return this[_0x14d7b4(0xa3)];}}function _0x10ff(){const _0x153b64=['length','items','37216qIdtMd','90vSRQwm','_modelList','1834cmhpTh','865zOvYEc','516SWhfCv','24kiVAYS','getAll','582279DxXtxP','2NTTphC','_connector','getModels','list','336505FYekuW','135111cYVXAW','21138tUJmiu','79340YGphkC','12343353vIPCoZ'];_0x10ff=function(){return _0x153b64;};return _0x10ff();}
@@ -13,5 +13,9 @@ export declare class AIReviewSystemCheckRun extends AIReviewCheckRun {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
16
- get title(): string;
16
+ get subTitle(): string;
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ get reviewName(): string;
17
21
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x212118=_0x25cf;(function(_0x21cb25,_0x458fb7){const _0xd5b8cb=_0x25cf,_0x589934=_0x21cb25();while(!![]){try{const _0x6da6a2=parseInt(_0xd5b8cb(0x119))/0x1+-parseInt(_0xd5b8cb(0x12c))/0x2*(parseInt(_0xd5b8cb(0x117))/0x3)+-parseInt(_0xd5b8cb(0x113))/0x4*(parseInt(_0xd5b8cb(0x118))/0x5)+-parseInt(_0xd5b8cb(0x11f))/0x6*(-parseInt(_0xd5b8cb(0x126))/0x7)+-parseInt(_0xd5b8cb(0x12d))/0x8*(-parseInt(_0xd5b8cb(0x11b))/0x9)+parseInt(_0xd5b8cb(0x130))/0xa*(parseInt(_0xd5b8cb(0x131))/0xb)+parseInt(_0xd5b8cb(0x123))/0xc*(-parseInt(_0xd5b8cb(0x11d))/0xd);if(_0x6da6a2===_0x458fb7)break;else _0x589934['push'](_0x589934['shift']());}catch(_0x4a77f0){_0x589934['push'](_0x589934['shift']());}}}(_0x1dec,0xae152));function _0x1dec(){const _0x2726e4=['86696KQGvEM','_reviewArgs','title','45230ULWFuF','3443yDWrJu','95416RKdzKJ','label','data','length','30021vdCQkf','15fFRZkn','716728YJyHfE','_aiConnector','477nOspyB','_createApiRequest','15215252vcdWwt','_sourceCheck','7662WVzsQr','_documentData','content','_composeReviewName','24zsafoj','_reviewParams','push','2569KGsHxR','options','join','callSystemReview','find','useArgs','10orrwYp'];_0x1dec=function(){return _0x2726e4;};return _0x1dec();}function _0x25cf(_0x1eca96,_0x473e24){const _0x1decc6=_0x1dec();return _0x25cf=function(_0x25cfb6,_0x3214b5){_0x25cfb6=_0x25cfb6-0x113;let _0xdb8bff=_0x1decc6[_0x25cfb6];return _0xdb8bff;},_0x25cf(_0x1eca96,_0x473e24);}import{AIReviewCheckRun as _0x550404}from'./aireviewcheckrun.js';export class AIReviewSystemCheckRun extends _0x550404{get[_0x212118(0x12f)](){const _0xf18ddf=_0x212118;if(!this[_0xf18ddf(0x124)]||0x0===this[_0xf18ddf(0x124)][_0xf18ddf(0x116)]||this[_0xf18ddf(0x11e)][_0xf18ddf(0x12b)])return this[_0xf18ddf(0x11e)][_0xf18ddf(0x12f)];const _0x5dab84=[];if(this[_0xf18ddf(0x124)][_0xf18ddf(0x116)]>0x0&&this[_0xf18ddf(0x11e)][_0xf18ddf(0x127)])for(let _0x29bd6d=0x0;_0x29bd6d<this[_0xf18ddf(0x124)][_0xf18ddf(0x116)];_0x29bd6d++){if(!this[_0xf18ddf(0x124)][_0x29bd6d]||!this[_0xf18ddf(0x11e)][_0xf18ddf(0x127)][_0x29bd6d])continue;const _0xb3cf77=this[_0xf18ddf(0x11e)][_0xf18ddf(0x127)][_0x29bd6d],_0x4cdf1d=_0xb3cf77[_0xf18ddf(0x115)]?.[_0xf18ddf(0x12a)](_0xc5e787=>_0xc5e787['id']===this[_0xf18ddf(0x124)][_0x29bd6d]);_0x4cdf1d&&_0x5dab84[_0xf18ddf(0x125)](_0x4cdf1d[_0xf18ddf(0x114)]);}return this[_0xf18ddf(0x11e)][_0xf18ddf(0x12f)]+':\x20'+_0x5dab84[_0xf18ddf(0x128)](',\x20');}[_0x212118(0x11c)](){const _0x3e629e=_0x212118;return this[_0x3e629e(0x11a)][_0x3e629e(0x129)]({'reviewName':this[_0x3e629e(0x122)](),'content':this[_0x3e629e(0x120)][_0x3e629e(0x121)],'args':this[_0x3e629e(0x12e)]});}[_0x212118(0x122)](){const _0x4f957b=_0x212118;return!this[_0x4f957b(0x124)]||0x0===this[_0x4f957b(0x124)][_0x4f957b(0x116)]||this[_0x4f957b(0x11e)][_0x4f957b(0x12b)]?this[_0x4f957b(0x11e)]['id']:[this[_0x4f957b(0x11e)]['id'],...this[_0x4f957b(0x124)]][_0x4f957b(0x128)]('-');}}
23
+ function _0x2451(_0x168b70,_0x95478f){const _0x550939=_0x5509();return _0x2451=function(_0x245180,_0x636d02){_0x245180=_0x245180-0x15c;let _0x5a1f9c=_0x550939[_0x245180];return _0x5a1f9c;},_0x2451(_0x168b70,_0x95478f);}function _0x5509(){const _0x46081d=['_reviewParams','content','37894032Tihozi','_documentData','_sourceCheck','length','15482RCQlUx','find','join','data','_reviewArgs','18936YSEnGu','8yKpQAT','6800052YcGGVn','subTitle','20ZDIRKR','3261204uYHzhv','useArgs','744291RchOHx','_createApiRequest','2157105iUjbYr','_sendRatingRequest','_aiConnector','reviewName','110tUVADH','options','callSystemReview','_composeReviewName','2891Trmehl','push','upsertAIReviewRating','label'];_0x5509=function(){return _0x46081d;};return _0x5509();}const _0x4df185=_0x2451;(function(_0x1db40b,_0x5408b8){const _0xe6ab04=_0x2451,_0xd448bc=_0x1db40b();while(!![]){try{const _0x57eccc=parseInt(_0xe6ab04(0x176))/0x1*(parseInt(_0xe6ab04(0x15f))/0x2)+parseInt(_0xe6ab04(0x160))/0x3+parseInt(_0xe6ab04(0x15c))/0x4*(-parseInt(_0xe6ab04(0x164))/0x5)+-parseInt(_0xe6ab04(0x15d))/0x6+parseInt(_0xe6ab04(0x16c))/0x7*(-parseInt(_0xe6ab04(0x17b))/0x8)+-parseInt(_0xe6ab04(0x162))/0x9*(parseInt(_0xe6ab04(0x168))/0xa)+parseInt(_0xe6ab04(0x172))/0xb;if(_0x57eccc===_0x5408b8)break;else _0xd448bc['push'](_0xd448bc['shift']());}catch(_0x73b722){_0xd448bc['push'](_0xd448bc['shift']());}}}(_0x5509,0xc421c));import{AIReviewCheckRun as _0x4e072a}from'./aireviewcheckrun.js';export class AIReviewSystemCheckRun extends _0x4e072a{get[_0x4df185(0x15e)](){const _0x3019df=_0x4df185;if(!this[_0x3019df(0x170)]||0x0===this[_0x3019df(0x170)][_0x3019df(0x175)])return'';const _0x5bdd71=[];if(this[_0x3019df(0x170)][_0x3019df(0x175)]>0x0&&this[_0x3019df(0x174)][_0x3019df(0x169)])for(let _0x4ea905=0x0;_0x4ea905<this[_0x3019df(0x170)][_0x3019df(0x175)];_0x4ea905++){if(!this[_0x3019df(0x170)][_0x4ea905]||!this[_0x3019df(0x174)][_0x3019df(0x169)][_0x4ea905])continue;const _0x5a4e7c=this[_0x3019df(0x174)][_0x3019df(0x169)][_0x4ea905],_0x552ae3=_0x5a4e7c[_0x3019df(0x179)]?.[_0x3019df(0x177)](_0x5dcf3b=>_0x5dcf3b['id']===this[_0x3019df(0x170)][_0x4ea905]);_0x552ae3&&_0x5bdd71[_0x3019df(0x16d)](_0x552ae3[_0x3019df(0x16f)]);}return _0x5bdd71[_0x3019df(0x178)](',\x20');}get[_0x4df185(0x167)](){const _0x515e3b=_0x4df185;return this[_0x515e3b(0x16b)]();}[_0x4df185(0x163)](){const _0x6c5fa6=_0x4df185;return this[_0x6c5fa6(0x166)][_0x6c5fa6(0x16a)]({'reviewName':this[_0x6c5fa6(0x16b)](),'content':this[_0x6c5fa6(0x173)][_0x6c5fa6(0x171)],'args':this[_0x6c5fa6(0x17a)]});}[_0x4df185(0x165)](_0x40b94a,_0x365b4f,_0x29ceb6){const _0x23b3ff=_0x4df185;return this[_0x23b3ff(0x166)][_0x23b3ff(0x16e)](this[_0x23b3ff(0x167)],_0x365b4f,_0x40b94a,_0x29ceb6);}[_0x4df185(0x16b)](){const _0x5cb001=_0x4df185;return!this[_0x5cb001(0x170)]||0x0===this[_0x5cb001(0x170)][_0x5cb001(0x175)]||this[_0x5cb001(0x174)][_0x5cb001(0x161)]?this[_0x5cb001(0x174)]['id']:[this[_0x5cb001(0x174)]['id'],...this[_0x5cb001(0x170)]][_0x5cb001(0x178)]('-');}}
@@ -6,8 +6,14 @@
6
6
  * @module ai/aireviewmode/ui/customcontrols/aireviemodepromptinputview
7
7
  */
8
8
  import { TextareaView } from 'ckeditor5/src/ui.js';
9
- import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
10
10
  export declare class AIReviewModePromptInputView extends TextareaView {
11
+ /**
12
+ * An instance of the keystroke handler managing user interaction and accessibility.
13
+ *
14
+ * @readonly
15
+ */
16
+ keystrokes: KeystrokeHandler;
11
17
  /**
12
18
  * Flag indicating if the input is empty.
13
19
  * @observable
@@ -18,10 +24,6 @@ export declare class AIReviewModePromptInputView extends TextareaView {
18
24
  * @inheritDoc
19
25
  */
20
26
  render(): void;
21
- /**
22
- * Sets the placeholder text for the input.
23
- */
24
- setPlaceholderText(placeholder: string): void;
25
27
  }
26
28
  export type AIChatSendUserMessageEvent = {
27
29
  name: 'sendUserMessage';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3e7c(){var _0x3c857c=['bindTemplate','MAX_ROWS','isEmpty','extendTemplate','render','735777cGJQBr','value','minRows','trim','8auYSYC','set','update','stopPropagation','ck-review-mode__prompt-input','198248HLfSwL','maxRows','placeholder','975282ilduVF','ai-review-mode-prompt-input','MIN_ROWS','1383088aRMWNP','5756035zkIKul','14436023jgcKiI','setPlaceholderText','4924260FzIHJD','element'];_0x3e7c=function(){return _0x3c857c;};return _0x3e7c();}var _0xb8c482=_0x1e68;(function(_0x45ad4b,_0x1bdd9e){var _0x30b8dd=_0x1e68,_0x2ac573=_0x45ad4b();while(!![]){try{var _0x1377d4=parseInt(_0x30b8dd(0x119))/0x1+parseInt(_0x30b8dd(0x105))/0x2+parseInt(_0x30b8dd(0x110))/0x3+-parseInt(_0x30b8dd(0x109))/0x4+-parseInt(_0x30b8dd(0x106))/0x5+-parseInt(_0x30b8dd(0x11c))/0x6+parseInt(_0x30b8dd(0x107))/0x7*(parseInt(_0x30b8dd(0x114))/0x8);if(_0x1377d4===_0x1bdd9e)break;else _0x2ac573['push'](_0x2ac573['shift']());}catch(_0x4bf7f9){_0x2ac573['push'](_0x2ac573['shift']());}}}(_0x3e7c,0x9f4e9));import{TextareaView as _0x60196b}from'ckeditor5/src/ui.js';function _0x1e68(_0x5b7715,_0x502afc){var _0x3e7cad=_0x3e7c();return _0x1e68=function(_0x1e68db,_0x5ab07a){_0x1e68db=_0x1e68db-0x105;var _0x165a82=_0x3e7cad[_0x1e68db];return _0x165a82;},_0x1e68(_0x5b7715,_0x502afc);}export class AIReviewModePromptInputView extends _0x60196b{static [_0xb8c482(0x11e)]=0x1;static [_0xb8c482(0x10c)]=0xc;constructor(_0xb2aa00){var _0x4a8fa3=_0xb8c482;super(_0xb2aa00),this[_0x4a8fa3(0x115)](_0x4a8fa3(0x10d),!0x0),this[_0x4a8fa3(0x112)]=AIReviewModePromptInputView[_0x4a8fa3(0x11e)],this[_0x4a8fa3(0x11a)]=AIReviewModePromptInputView[_0x4a8fa3(0x10c)],this[_0x4a8fa3(0x10e)]({'attributes':{'id':_0x4a8fa3(0x11d),'class':['ck',_0x4a8fa3(0x118)]}}),this[_0x4a8fa3(0x10e)]({'on':{'click':this[_0x4a8fa3(0x10b)]['to'](_0x33ae57=>{var _0x52b4c3=_0x4a8fa3;_0x33ae57[_0x52b4c3(0x117)]();})}});}[_0xb8c482(0x10f)](){var _0x4a0fda=_0xb8c482;super[_0x4a0fda(0x10f)](),this['on'](_0x4a0fda(0x116),()=>{var _0x440b12=_0x4a0fda;this[_0x440b12(0x10d)]=''===this[_0x440b12(0x10a)][_0x440b12(0x111)]?.[_0x440b12(0x113)]();});}[_0xb8c482(0x108)](_0x2f0d37){var _0x5559d7=_0xb8c482;this[_0x5559d7(0x115)](_0x5559d7(0x11b),_0x2f0d37);}}
23
+ var _0xeb0c93=_0x2ad9;(function(_0x4ad8e9,_0xa0be70){var _0x5ce745=_0x2ad9,_0x5198ae=_0x4ad8e9();while(!![]){try{var _0x26aa54=parseInt(_0x5ce745(0x111))/0x1*(parseInt(_0x5ce745(0x122))/0x2)+parseInt(_0x5ce745(0x11b))/0x3*(-parseInt(_0x5ce745(0x11e))/0x4)+-parseInt(_0x5ce745(0x10e))/0x5*(-parseInt(_0x5ce745(0x117))/0x6)+parseInt(_0x5ce745(0x125))/0x7+parseInt(_0x5ce745(0x118))/0x8+-parseInt(_0x5ce745(0x112))/0x9+parseInt(_0x5ce745(0x11c))/0xa*(-parseInt(_0x5ce745(0x124))/0xb);if(_0x26aa54===_0xa0be70)break;else _0x5198ae['push'](_0x5198ae['shift']());}catch(_0x504999){_0x5198ae['push'](_0x5198ae['shift']());}}}(_0x4d32,0x6056d));import{TextareaView as _0x42a547}from'ckeditor5/src/ui.js';function _0x2ad9(_0x38891a,_0x2076c1){var _0x4d3287=_0x4d32();return _0x2ad9=function(_0x2ad927,_0x47986e){_0x2ad927=_0x2ad927-0x10d;var _0x485ef6=_0x4d3287[_0x2ad927];return _0x485ef6;},_0x2ad9(_0x38891a,_0x2076c1);}import{KeystrokeHandler as _0x176981}from'ckeditor5/src/utils.js';export class AIReviewModePromptInputView extends _0x42a547{[_0xeb0c93(0x113)];static [_0xeb0c93(0x114)]=0x1;static [_0xeb0c93(0x11f)]=0xc;constructor(_0x114f92){var _0x406466=_0xeb0c93;super(_0x114f92),this[_0x406466(0x119)](_0x406466(0x121),!0x0),this[_0x406466(0x113)]=new _0x176981(),this[_0x406466(0x11d)]=AIReviewModePromptInputView[_0x406466(0x114)],this[_0x406466(0x11a)]=AIReviewModePromptInputView[_0x406466(0x11f)],this[_0x406466(0x110)]({'attributes':{'id':_0x406466(0x116),'class':['ck',_0x406466(0x120)]}});}[_0xeb0c93(0x10f)](){var _0x27d70f=_0xeb0c93;super[_0x27d70f(0x10f)](),this['on'](_0x27d70f(0x115),()=>{var _0x5d2f09=_0x27d70f;this[_0x5d2f09(0x121)]=''===this[_0x5d2f09(0x126)][_0x5d2f09(0x123)]?.[_0x5d2f09(0x127)]();}),this[_0x27d70f(0x113)][_0x27d70f(0x10d)](this[_0x27d70f(0x126)]);}}function _0x4d32(){var _0x1c7675=['5637200LxXxkN','set','maxRows','321eUmnVQ','177350xLRLkG','minRows','22584EFRovK','MAX_ROWS','ck-review-mode__prompt-input','isEmpty','1185322mIApwu','value','209zlTOGi','1588321IQrlOA','element','trim','listenTo','627145xRnWfi','render','extendTemplate','1HXEvJX','6212142PwlMTJ','keystrokes','MIN_ROWS','update','ai-review-mode-prompt-input','24oQhXFn'];_0x4d32=function(){return _0x1c7675;};return _0x4d32();}
@@ -19,9 +19,12 @@ export declare class AIReviewModeBalloonSuggestionItemView extends BalloonPanelV
19
19
  */
20
20
  resultItemView: AIReviewModeReviewCheckListItemResultsView;
21
21
  constructor(locale: Locale, bodyCollection: BodyCollection);
22
+ render(): void;
22
23
  updateContent(change: AIReviewCheckResultChange): void;
23
24
  showBalloon(change: AIReviewCheckResultChange, target: HTMLElement): void;
24
25
  hideBalloon(): void;
26
+ hideDiffInBalloon(): void;
27
+ showDiffInBalloon(): void;
25
28
  deactivateChange(): void;
26
29
  }
27
30
  export type AIReviewModeUIDeactivateChangeEvent = {
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x459571=_0x32d9;function _0x32d9(_0xc389fa,_0x3475ae){const _0x20374f=_0x2037();return _0x32d9=function(_0x32d93a,_0x2fbb93){_0x32d93a=_0x32d93a-0x17f;let _0x177218=_0x20374f[_0x32d93a];return _0x177218;},_0x32d9(_0xc389fa,_0x3475ae);}(function(_0xbc07c8,_0x3d15fe){const _0x2182d6=_0x32d9,_0x309df9=_0xbc07c8();while(!![]){try{const _0x1831dc=-parseInt(_0x2182d6(0x189))/0x1*(-parseInt(_0x2182d6(0x199))/0x2)+-parseInt(_0x2182d6(0x1a6))/0x3*(-parseInt(_0x2182d6(0x198))/0x4)+parseInt(_0x2182d6(0x194))/0x5*(-parseInt(_0x2182d6(0x186))/0x6)+parseInt(_0x2182d6(0x19b))/0x7*(-parseInt(_0x2182d6(0x197))/0x8)+parseInt(_0x2182d6(0x19c))/0x9+-parseInt(_0x2182d6(0x191))/0xa*(parseInt(_0x2182d6(0x180))/0xb)+parseInt(_0x2182d6(0x181))/0xc;if(_0x1831dc===_0x3d15fe)break;else _0x309df9['push'](_0x309df9['shift']());}catch(_0x52873b){_0x309df9['push'](_0x309df9['shift']());}}}(_0x2037,0xe7d9f));import{BalloonPanelView as _0x51540b,View as _0x172d72,clickOutsideHandler as _0x1066a3}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCheckListItemResultsView as _0x30c1f9}from'./aireviewmodechecklistitemresultview.js';import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';function _0x2037(){const _0x819704=['isVisible','hideBalloon','dismissChange','fire','29630ySizcz','setTemplate','show','5498830SWiLLS','_createContentView','changeId','121184YiDHmh','8bTkBxb','164fAfrMd','showBalloon','91JDPEzh','9375975NtwJqR','locale','updateContent','delegate','unpin','ck-ai-review-mode__suggestion-text','contentDiffed','content','resultResponseView','pin','1994439mMJSxZ','deactivateChange','resultItemView','acceptChange','extendTemplate','3355WIFyJl','308916cLVsDf','ck-content','innerHTML','ck-reset','add','6dMoaCl','set','hide','9182GQLKlm','ck-ai-review-mode-balloon-panel-suggestion','element','div'];_0x2037=function(){return _0x819704;};return _0x2037();}import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeBalloonSuggestionItemView extends _0x51540b{[_0x459571(0x1a8)];constructor(_0x920d79,_0x3f0762){const _0x1faf0e=_0x459571;super(_0x920d79),this[_0x1faf0e(0x187)]({'isVisible':!0x1,'position':'se','class':null,'top':0x0,'left':0x0}),this[_0x1faf0e(0x17f)]({'tag':_0x1faf0e(0x18c),'attributes':{'class':[_0x1faf0e(0x184)],'tabindex':'-1'}}),this[_0x1faf0e(0x1a3)][_0x1faf0e(0x185)](this[_0x1faf0e(0x195)]()),_0x3f0762[_0x1faf0e(0x185)](this),_0x1066a3({'emitter':this,'activator':()=>this[_0x1faf0e(0x18d)],'contextElements':[this[_0x1faf0e(0x18b)]],'callback':()=>{const _0xa534a4=_0x1faf0e;this[_0xa534a4(0x18e)](),this[_0xa534a4(0x1a7)]();}});}[_0x459571(0x19e)](_0x57bafe){const _0x569d34=_0x459571;this[_0x569d34(0x1a8)][_0x569d34(0x196)]=_0x57bafe['id'],this[_0x569d34(0x1a8)][_0x569d34(0x1a4)][_0x569d34(0x18b)][_0x569d34(0x183)]=_0x57bafe[_0x569d34(0x1a2)];}[_0x459571(0x19a)](_0x54d16e,_0x23e012){const _0x3fd9fb=_0x459571;this[_0x3fd9fb(0x19e)](_0x54d16e),this[_0x3fd9fb(0x193)](),this[_0x3fd9fb(0x1a5)]({'target':_0x23e012});}[_0x459571(0x18e)](){const _0x5e6832=_0x459571;this[_0x5e6832(0x188)](),this[_0x5e6832(0x1a0)]();}[_0x459571(0x1a7)](){const _0x59d46e=_0x459571;this[_0x59d46e(0x190)](_0x59d46e(0x1a7));}[_0x459571(0x195)](){const _0x20261f=_0x459571,_0x465473=new _0x172d72();return this[_0x20261f(0x1a8)]=new _0x30c1f9(this[_0x20261f(0x19d)],''),this[_0x20261f(0x1a8)][_0x20261f(0x1a4)][_0x20261f(0x17f)]({'attributes':{'class':[_0x20261f(0x182)]}}),this[_0x20261f(0x1a8)][_0x20261f(0x19f)](_0x20261f(0x1a9),_0x20261f(0x18f))['to'](this),_0x465473[_0x20261f(0x192)]({'tag':_0x20261f(0x18c),'attributes':{'class':[_0x20261f(0x184),_0x20261f(0x18a)]},'children':[{'tag':'p','attributes':{'class':[_0x20261f(0x1a1)]},'children':[this[_0x20261f(0x1a8)]]}]}),_0x465473;}}
23
+ const _0x3c43f5=_0x339e;(function(_0x304cb3,_0x2aed22){const _0xa32a6b=_0x339e,_0x492cfa=_0x304cb3();while(!![]){try{const _0x449213=-parseInt(_0xa32a6b(0x182))/0x1*(-parseInt(_0xa32a6b(0x18d))/0x2)+-parseInt(_0xa32a6b(0x172))/0x3+parseInt(_0xa32a6b(0x185))/0x4+parseInt(_0xa32a6b(0x177))/0x5+-parseInt(_0xa32a6b(0x173))/0x6+-parseInt(_0xa32a6b(0x19e))/0x7+parseInt(_0xa32a6b(0x187))/0x8;if(_0x449213===_0x2aed22)break;else _0x492cfa['push'](_0x492cfa['shift']());}catch(_0x1dc140){_0x492cfa['push'](_0x492cfa['shift']());}}}(_0x3b79,0x25542));function _0x339e(_0x2d6bb4,_0x219efe){const _0x3b7937=_0x3b79();return _0x339e=function(_0x339eb8,_0x38d288){_0x339eb8=_0x339eb8-0x16d;let _0x33c9d3=_0x3b7937[_0x339eb8];return _0x33c9d3;},_0x339e(_0x2d6bb4,_0x219efe);}import{BalloonPanelView as _0xd520b1,View as _0xf8d76b,clickOutsideHandler as _0xf5d6cf}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCheckListItemResultsView as _0x566bb1}from'./aireviewmodechecklistitemresultview.js';import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeBalloonSuggestionItemView extends _0xd520b1{[_0x3c43f5(0x176)];constructor(_0x237385,_0x44fa33){const _0x5669d4=_0x3c43f5;super(_0x237385),this[_0x5669d4(0x180)]({'isVisible':!0x1,'position':_0x5669d4(0x16d),'class':null,'top':0x0,'left':0x0}),this[_0x5669d4(0x17a)]({'tag':_0x5669d4(0x196),'attributes':{'class':[_0x5669d4(0x192)],'tabindex':'-1'}}),this[_0x5669d4(0x184)][_0x5669d4(0x179)](this[_0x5669d4(0x190)]()),_0x44fa33[_0x5669d4(0x179)](this);}[_0x3c43f5(0x183)](){const _0x44729c=_0x3c43f5;super[_0x44729c(0x183)](),this[_0x44729c(0x171)]();}[_0x3c43f5(0x170)](_0x469c21){const _0x18595e=_0x3c43f5;this[_0x18595e(0x176)][_0x18595e(0x194)]=_0x469c21['id'],this[_0x18595e(0x176)][_0x18595e(0x191)][_0x18595e(0x17e)][_0x18595e(0x186)]=_0x469c21[_0x18595e(0x17c)];}[_0x3c43f5(0x17d)](_0x3306b2,_0x112598){const _0x1e42a8=_0x3c43f5;this[_0x1e42a8(0x170)](_0x3306b2),this[_0x1e42a8(0x19d)](),this[_0x1e42a8(0x199)]({'target':()=>this[_0x1e42a8(0x174)](_0x112598)});}[_0x3c43f5(0x17f)](){const _0x1d807c=_0x3c43f5;this[_0x1d807c(0x197)](),this[_0x1d807c(0x189)]();}[_0x3c43f5(0x175)](){const _0x10f552=_0x3c43f5;this[_0x10f552(0x176)][_0x10f552(0x193)]=!0x1;}[_0x3c43f5(0x18e)](){const _0x425f97=_0x3c43f5;this[_0x425f97(0x176)][_0x425f97(0x193)]=!0x0;}[_0x3c43f5(0x178)](){const _0x326d0b=_0x3c43f5;this[_0x326d0b(0x18c)](_0x326d0b(0x178));}[_0x3c43f5(0x171)](){const _0x551dc1=_0x3c43f5;_0xf5d6cf({'emitter':this,'activator':()=>this[_0x551dc1(0x188)],'contextElements':[this[_0x551dc1(0x17e)]],'callback':()=>{const _0x3d59c4=_0x551dc1;this[_0x3d59c4(0x17f)](),this[_0x3d59c4(0x178)]();}});}[_0x3c43f5(0x190)](){const _0x37fabc=_0x3c43f5,_0x44f9e9=new _0xf8d76b();return this[_0x37fabc(0x176)]=new _0x566bb1(this[_0x37fabc(0x16f)],''),this[_0x37fabc(0x176)][_0x37fabc(0x191)][_0x37fabc(0x17a)]({'attributes':{'class':[_0x37fabc(0x195)]}}),this[_0x37fabc(0x176)][_0x37fabc(0x19a)](_0x37fabc(0x198),_0x37fabc(0x16e))['to'](this),_0x44f9e9[_0x37fabc(0x17b)]({'tag':_0x37fabc(0x196),'attributes':{'class':[_0x37fabc(0x192),_0x37fabc(0x19b)]},'children':[{'tag':'p','attributes':{'class':[_0x37fabc(0x18a)]},'children':[this[_0x37fabc(0x176)]]}]}),_0x44f9e9;}[_0x3c43f5(0x174)](_0x45879e){const _0x5b0032=_0x3c43f5,_0x1adcc7=Array[_0x5b0032(0x18f)](_0x45879e[_0x5b0032(0x181)]());return _0x1adcc7[_0x5b0032(0x18b)](_0x38e958=>_0x38e958[_0x5b0032(0x19c)]>0x0)||_0x1adcc7[0x0];}}function _0x3b79(){const _0x3967c9=['render','content','900084TSnfdd','innerHTML','2125272DEHXqI','isVisible','unpin','ck-ai-review-mode__suggestion-text','find','fire','22Gerrfp','showDiffInBalloon','from','_createContentView','resultResponseView','ck-reset','showDiff','changeId','ck-content','div','hide','acceptChange','pin','delegate','ck-ai-review-mode-balloon-panel-suggestion','width','show','2028999WRHfvi','arrow_se','dismissChange','locale','updateContent','_setupClickOutsideHandler','376677ATYcPZ','1599168ooNmOY','_getBestRectPosition','hideDiffInBalloon','resultItemView','829975eJNyko','deactivateChange','add','extendTemplate','setTemplate','contentDiffed','showBalloon','element','hideBalloon','set','getClientRects','16197tZbHHD'];_0x3b79=function(){return _0x3967c9;};return _0x3b79();}
@@ -24,6 +24,10 @@ export declare class AIReviewModeReviewCheckListItemResultsView extends View {
24
24
  * @observable
25
25
  */
26
26
  isActive: boolean;
27
+ /**
28
+ * @observable
29
+ */
30
+ showDiff: boolean;
27
31
  readonly id: string;
28
32
  constructor(locale: Locale, id: string);
29
33
  setItemAsActive(): void;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b8bcd=_0x5064;(function(_0x3ce0c7,_0x497ca9){const _0x2e5d7a=_0x5064,_0x1bdfa0=_0x3ce0c7();while(!![]){try{const _0x4d6419=-parseInt(_0x2e5d7a(0x103))/0x1+parseInt(_0x2e5d7a(0x107))/0x2+parseInt(_0x2e5d7a(0xf6))/0x3*(parseInt(_0x2e5d7a(0x105))/0x4)+-parseInt(_0x2e5d7a(0xfb))/0x5*(parseInt(_0x2e5d7a(0x116))/0x6)+-parseInt(_0x2e5d7a(0x10d))/0x7*(parseInt(_0x2e5d7a(0x101))/0x8)+-parseInt(_0x2e5d7a(0xf0))/0x9*(parseInt(_0x2e5d7a(0x113))/0xa)+parseInt(_0x2e5d7a(0xed))/0xb*(parseInt(_0x2e5d7a(0x114))/0xc);if(_0x4d6419===_0x497ca9)break;else _0x1bdfa0['push'](_0x1bdfa0['shift']());}catch(_0x38281f){_0x1bdfa0['push'](_0x1bdfa0['shift']());}}}(_0x4d33,0xd9de3));import{View as _0x3dfeac,ButtonView as _0x173ada}from'ckeditor5/src/ui.js';import{IconInfo as _0x29c6af}from'ckeditor5/src/icons.js';import{getTranslation as _0x1bd6ab}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x3dfeac{[_0x1b8bcd(0xf8)];[_0x1b8bcd(0x108)];[_0x1b8bcd(0x117)];[_0x1b8bcd(0x110)];constructor(_0x25f0a1,_0x1eda06){const _0xdc7e0c=_0x1b8bcd;super(_0x25f0a1),this['id']=_0x1eda06,this[_0xdc7e0c(0xf1)](_0xdc7e0c(0x11d),_0x1eda06),this[_0xdc7e0c(0xf8)]=this[_0xdc7e0c(0x11c)](),this[_0xdc7e0c(0x108)]=this[_0xdc7e0c(0x10c)](),this[_0xdc7e0c(0x117)]=this[_0xdc7e0c(0xf2)](),this[_0xdc7e0c(0x110)]=this[_0xdc7e0c(0x109)](),this[_0xdc7e0c(0xf1)](_0xdc7e0c(0x10e),!0x1),this[_0xdc7e0c(0xf1)](_0xdc7e0c(0xfc),!0x1),this[_0xdc7e0c(0xef)]({'tag':_0xdc7e0c(0x102),'attributes':{'class':[_0xdc7e0c(0xff),this[_0xdc7e0c(0xec)]['if'](_0xdc7e0c(0xfc),_0xdc7e0c(0x10a))]},'on':{'click':this[_0xdc7e0c(0xec)]['to'](_0xdc7e0c(0xfd))},'children':[this[_0xdc7e0c(0xf8)],{'tag':_0xdc7e0c(0x102),'attributes':{'class':[_0xdc7e0c(0x118)]},'children':[{'tag':_0xdc7e0c(0x102),'attributes':{'class':[_0xdc7e0c(0xfe)]},'children':[this[_0xdc7e0c(0x108)],this[_0xdc7e0c(0x117)]]},this[_0xdc7e0c(0x110)]]}]}),this['on'](_0xdc7e0c(0xfd),()=>{const _0xed0e86=_0xdc7e0c;this[_0xed0e86(0x10f)](_0xed0e86(0x11b),{'id':_0x1eda06,'source':this});});}[_0x1b8bcd(0x123)](){const _0x13ee84=_0x1b8bcd;this[_0x13ee84(0xfc)]=!0x0;}[_0x1b8bcd(0x111)](){const _0x3a3cb5=_0x1b8bcd;this[_0x3a3cb5(0xfc)]=!0x1;}[_0x1b8bcd(0x11c)](){const _0x17ff82=_0x1b8bcd,_0x10bd67=new _0x3dfeac(this[_0x17ff82(0x112)]);return _0x10bd67[_0x17ff82(0xef)]({'tag':_0x17ff82(0x102),'attributes':{'class':['ck',_0x17ff82(0x121),_0x17ff82(0xf3),_0x17ff82(0x11a)]}}),_0x10bd67;}[_0x1b8bcd(0x10c)](){const _0x35bdb6=_0x1b8bcd,_0x36acb2=new _0x173ada(this[_0x35bdb6(0x112)]);return _0x36acb2[_0x35bdb6(0xf1)]({'label':_0x1bd6ab(this[_0x35bdb6(0x112)],_0x35bdb6(0x119)),'withText':!0x0,'class':_0x35bdb6(0xf7)}),_0x36acb2[_0x35bdb6(0x100)]({'on':{'click':this[_0x35bdb6(0xec)]['to'](_0x541cbf=>{const _0x51914a=_0x35bdb6;this[_0x51914a(0x10f)](_0x51914a(0xf5),{'id':this[_0x51914a(0x11d)]}),_0x541cbf[_0x51914a(0xee)]();})}}),_0x36acb2;}[_0x1b8bcd(0xf2)](){const _0x48aba1=_0x1b8bcd,_0x3e2648=new _0x173ada(this[_0x48aba1(0x112)]);return _0x3e2648[_0x48aba1(0xf1)]({'label':_0x1bd6ab(this[_0x48aba1(0x112)],_0x48aba1(0x122)),'withText':!0x0,'class':_0x48aba1(0xfa)}),_0x3e2648[_0x48aba1(0x100)]({'on':{'click':this[_0x48aba1(0xec)]['to'](_0x3775bc=>{const _0x321db8=_0x48aba1;this[_0x321db8(0x10f)](_0x321db8(0x10b),{'id':this[_0x321db8(0x11d)]}),_0x3775bc[_0x321db8(0xee)]();})}}),_0x3e2648;}[_0x1b8bcd(0x109)](){const _0x512ae4=_0x1b8bcd,_0x4a307e=new _0x173ada(this[_0x512ae4(0x112)]);return _0x4a307e[_0x512ae4(0xf1)]({'label':_0x1bd6ab(this[_0x512ae4(0x112)],_0x512ae4(0x11e)),'icon':_0x29c6af,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x512ae4(0xf9),'class':_0x512ae4(0x106)}),_0x4a307e[_0x512ae4(0x104)](_0x512ae4(0x11f))['to'](this,_0x512ae4(0x10e),_0x53fe7c=>_0x53fe7c),_0x4a307e['on'](_0x512ae4(0x120),()=>{const _0x6f5703=_0x512ae4;console[_0x6f5703(0xf4)](_0x6f5703(0x115)),this[_0x6f5703(0x10e)]=!this[_0x6f5703(0x10e)];}),_0x4a307e;}}function _0x5064(_0x3e5615,_0x5d88a4){const _0x4d33ea=_0x4d33();return _0x5064=function(_0x506481,_0x4bfda2){_0x506481=_0x506481-0xec;let _0x52f299=_0x4d33ea[_0x506481];return _0x52f299;},_0x5064(_0x3e5615,_0x5d88a4);}function _0x4d33(){const _0x4eae25=['_createInfoButtonView','ck-ai-review-mode__check-run-result_active','dismissChange','_createAcceptButtonView','35xUhhSZ','isInfoToggleOn','fire','infoButtonView','setItemAsInactive','locale','90ijoQlG','24249468SuleXm','Toggle\x20info\x20view','10039662ecSKll','dismissButtonView','ck-ai-review-mode__check-run-result-footer','AI_REVIEW_MODE_ACCEPT_CHANGE','ck-ai-review-mode__check-run-result-response','activateChange','_createResultResponseView','changeId','AI_REVIEW_MODE_LEARN_MORE','isOn','execute','ck-content','AI_REVIEW_MODE_DISMISS_CHANGE','setItemAsActive','bindTemplate','22MjwIWe','stopPropagation','setTemplate','1476747pvfzmg','set','_createDismissButtonView','ck-content-direct-excluded','log','acceptChange','1365SGSIUJ','ck-ai-button-secondary\x20ck-ai-review-mode__check-run-result-accept-button','resultResponseView','menuitemcheckbox','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-dismiss-button','5tcphsn','isActive','click','ck-ai-review-mode__check-run-result-action-buttons','ck-ai-review-mode__check-run-result','extendTemplate','1573592PEXXwb','div','545093XANdSI','bind','9356PXaVgW','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','930352tYaubA','acceptButtonView'];_0x4d33=function(){return _0x4eae25;};return _0x4d33();}
23
+ const _0x4ace57=_0x478b;(function(_0x2214db,_0x1fb956){const _0x3d4dc6=_0x478b,_0x4534d1=_0x2214db();while(!![]){try{const _0x4021df=-parseInt(_0x3d4dc6(0x1b9))/0x1+parseInt(_0x3d4dc6(0x19a))/0x2+-parseInt(_0x3d4dc6(0x1c5))/0x3*(parseInt(_0x3d4dc6(0x1ab))/0x4)+parseInt(_0x3d4dc6(0x1ce))/0x5+parseInt(_0x3d4dc6(0x1af))/0x6*(parseInt(_0x3d4dc6(0x1b7))/0x7)+parseInt(_0x3d4dc6(0x1c4))/0x8+-parseInt(_0x3d4dc6(0x1a8))/0x9*(parseInt(_0x3d4dc6(0x19d))/0xa);if(_0x4021df===_0x1fb956)break;else _0x4534d1['push'](_0x4534d1['shift']());}catch(_0x1d13f1){_0x4534d1['push'](_0x4534d1['shift']());}}}(_0x46f8,0xe8971));import{View as _0x5d20ec,ButtonView as _0x21a269}from'ckeditor5/src/ui.js';function _0x478b(_0x1a406f,_0x5d1950){const _0x46f8ee=_0x46f8();return _0x478b=function(_0x478b10,_0x1cd087){_0x478b10=_0x478b10-0x19a;let _0x15ec7c=_0x46f8ee[_0x478b10];return _0x15ec7c;},_0x478b(_0x1a406f,_0x5d1950);}import{IconInfo as _0x95af8c}from'ckeditor5/src/icons.js';import{getTranslation as _0x5b0272}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x5d20ec{[_0x4ace57(0x1c3)];[_0x4ace57(0x19b)];[_0x4ace57(0x1cc)];[_0x4ace57(0x1ac)];constructor(_0x44f901,_0x4f19c6){const _0x43961c=_0x4ace57;super(_0x44f901),this['id']=_0x4f19c6,this[_0x43961c(0x1c6)](_0x43961c(0x1b4),_0x4f19c6),this[_0x43961c(0x1c3)]=this[_0x43961c(0x1b3)](),this[_0x43961c(0x19b)]=this[_0x43961c(0x1c9)](),this[_0x43961c(0x1cc)]=this[_0x43961c(0x1a4)](),this[_0x43961c(0x1ac)]=this[_0x43961c(0x1c7)](),this[_0x43961c(0x1c6)](_0x43961c(0x1c8),!0x1),this[_0x43961c(0x1c6)](_0x43961c(0x1bf),!0x1),this[_0x43961c(0x1c6)](_0x43961c(0x1b8),!0x0),this[_0x43961c(0x1cd)]({'tag':_0x43961c(0x1a9),'attributes':{'class':[_0x43961c(0x1b1),this[_0x43961c(0x1b0)]['if'](_0x43961c(0x1bf),_0x43961c(0x19c))]},'on':{'click':this[_0x43961c(0x1b0)]['to'](_0x43961c(0x1b6))},'children':[this[_0x43961c(0x1c3)],{'tag':_0x43961c(0x1a9),'attributes':{'class':[_0x43961c(0x1ca)]},'children':[{'tag':_0x43961c(0x1a9),'attributes':{'class':[_0x43961c(0x19f)]},'children':[this[_0x43961c(0x19b)],this[_0x43961c(0x1cc)]]},this[_0x43961c(0x1ac)]]}]}),this['on'](_0x43961c(0x1b6),()=>{const _0x391f82=_0x43961c;this[_0x391f82(0x1aa)](_0x391f82(0x1be),{'id':_0x4f19c6,'source':this});});}[_0x4ace57(0x1bb)](){const _0x420eb6=_0x4ace57;this[_0x420eb6(0x1bf)]=!0x0;}[_0x4ace57(0x1b2)](){const _0x366317=_0x4ace57;this[_0x366317(0x1bf)]=!0x1;}[_0x4ace57(0x1b3)](){const _0x4b9d04=_0x4ace57,_0x2881aa=new _0x5d20ec(this[_0x4b9d04(0x1cf)]);return _0x2881aa[_0x4b9d04(0x1cd)]({'tag':_0x4b9d04(0x1a9),'attributes':{'class':['ck',_0x4b9d04(0x1a3),_0x4b9d04(0x1ba),_0x4b9d04(0x1c0),this[_0x4b9d04(0x1b0)]['if'](_0x4b9d04(0x1b8),_0x4b9d04(0x1c1),_0x3e9810=>!_0x3e9810)]}}),_0x2881aa;}[_0x4ace57(0x1c9)](){const _0xff4440=_0x4ace57,_0x55add7=new _0x21a269(this[_0xff4440(0x1cf)]);return _0x55add7[_0xff4440(0x1c6)]({'label':_0x5b0272(this[_0xff4440(0x1cf)],_0xff4440(0x1ad)),'withText':!0x0,'class':_0xff4440(0x1bd)}),_0x55add7[_0xff4440(0x1cb)]({'on':{'click':this[_0xff4440(0x1b0)]['to'](_0xaa7fb1=>{const _0x24c43c=_0xff4440;this[_0x24c43c(0x1aa)](_0x24c43c(0x1a6),{'id':this[_0x24c43c(0x1b4)]}),_0xaa7fb1[_0x24c43c(0x19e)]();})}}),_0x55add7;}[_0x4ace57(0x1a4)](){const _0x1bc66d=_0x4ace57,_0x670d52=new _0x21a269(this[_0x1bc66d(0x1cf)]);return _0x670d52[_0x1bc66d(0x1c6)]({'label':_0x5b0272(this[_0x1bc66d(0x1cf)],_0x1bc66d(0x1bc)),'withText':!0x0,'class':_0x1bc66d(0x1c2)}),_0x670d52[_0x1bc66d(0x1cb)]({'on':{'click':this[_0x1bc66d(0x1b0)]['to'](_0x494ef1=>{const _0x2b432e=_0x1bc66d;this[_0x2b432e(0x1aa)](_0x2b432e(0x1ae),{'id':this[_0x2b432e(0x1b4)]}),_0x494ef1[_0x2b432e(0x19e)]();})}}),_0x670d52;}[_0x4ace57(0x1c7)](){const _0x5be843=_0x4ace57,_0x5ef570=new _0x21a269(this[_0x5be843(0x1cf)]);return _0x5ef570[_0x5be843(0x1c6)]({'label':_0x5b0272(this[_0x5be843(0x1cf)],_0x5be843(0x1a0)),'icon':_0x95af8c,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x5be843(0x1b5),'class':_0x5be843(0x1a5)}),_0x5ef570[_0x5be843(0x1a7)](_0x5be843(0x1a2))['to'](this,_0x5be843(0x1c8),_0x3fcb4a=>_0x3fcb4a),_0x5ef570['on'](_0x5be843(0x1a1),()=>{const _0x32689c=_0x5be843;this[_0x32689c(0x1c8)]=!this[_0x32689c(0x1c8)];}),_0x5ef570;}}function _0x46f8(){const _0x39b824=['7HszmFM','showDiff','554954utYxzu','ck-content-direct-excluded','setItemAsActive','AI_REVIEW_MODE_DISMISS_CHANGE','ck-ai-button-secondary\x20ck-ai-review-mode__check-run-result-accept-button','activateChange','isActive','ck-ai-review-mode__check-run-result-response','ck-hidden','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-dismiss-button','resultResponseView','433896TKoNDh','444909Mfmutd','set','_createInfoButtonView','isInfoToggleOn','_createAcceptButtonView','ck-ai-review-mode__check-run-result-footer','extendTemplate','dismissButtonView','setTemplate','7686255BZHvKy','locale','2367978tvKrwO','acceptButtonView','ck-ai-review-mode__check-run-result_active','130zZEexZ','stopPropagation','ck-ai-review-mode__check-run-result-action-buttons','AI_REVIEW_MODE_LEARN_MORE','execute','isOn','ck-content','_createDismissButtonView','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','acceptChange','bind','1381491aWyfJZ','div','fire','4AbhjDP','infoButtonView','AI_REVIEW_MODE_ACCEPT_CHANGE','dismissChange','5255736MQxmQn','bindTemplate','ck-ai-review-mode__check-run-result','setItemAsInactive','_createResultResponseView','changeId','menuitemcheckbox','click'];_0x46f8=function(){return _0x39b824;};return _0x46f8();}
@@ -5,19 +5,43 @@
5
5
  /**
6
6
  * @module ai/aireviewmode/ui/aireviewmodecustomcheckview
7
7
  */
8
- import { type Locale } from 'ckeditor5/src/utils.js';
9
- import { View, ButtonView } from 'ckeditor5/src/ui.js';
8
+ import { type Locale, KeystrokeHandler, FocusTracker } from 'ckeditor5/src/utils.js';
9
+ import { View, ButtonView, LabeledFieldView, FocusCycler } from 'ckeditor5/src/ui.js';
10
10
  import { AIReviewModePromptInputView } from './aireviemodepromptinputview.js';
11
11
  import type { AIReviewCheckCustom } from '../model/aireviewcheckcustom.js';
12
12
  export declare class AIReviewModeCustomCheckView extends View {
13
+ /**
14
+ * Tracks information about DOM focus in the form.
15
+ */
16
+ readonly focusTracker: FocusTracker;
17
+ /**
18
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
19
+ */
20
+ readonly keystrokes: KeystrokeHandler;
21
+ /**
22
+ * Helps cycling over {@link #_focusables} in the form.
23
+ */
24
+ readonly focusCycler: FocusCycler;
13
25
  prompt: string;
14
26
  modelId: string;
15
27
  submitButtonView: ButtonView;
16
28
  cancelButtonView: ButtonView;
17
- promptInputView: AIReviewModePromptInputView;
29
+ promptInputView: LabeledFieldView<AIReviewModePromptInputView>;
30
+ actionsFooterView: View;
18
31
  constructor(locale: Locale, check: AIReviewCheckCustom);
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ render(): void;
36
+ get modelDefaultValue(): string;
37
+ get modelDefaultLabel(): string;
19
38
  /**
20
39
  * Resets the form to its default state.
21
40
  */
22
41
  resetToDefault(): void;
42
+ /**
43
+ * Resets the form validation status.
44
+ */
45
+ resetFormValidationStatus(): void;
23
46
  }
47
+ export type CustomCheckFormValidatorCallback = () => string | undefined;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Collection as _0x560e37}from'ckeditor5/src/utils.js';import{View as _0xecdd71,ButtonView as _0x50723c,FormRowView as _0x54dffd,createDropdown as _0x1ffed3,addListToDropdown as _0x39b7ae,UIModel as _0x350920,ButtonLabelView as _0x15c6b9}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x498e8b}from'./aireviemodepromptinputview.js';export class AIReviewModeCustomCheckView extends _0xecdd71{['submitButtonView'];['cancelButtonView'];['promptInputView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x3156de,_0x48fa6c){super(_0x3156de),this['_check']=_0x48fa6c,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x48fa6c['models']&&_0x48fa6c['models']['length']>0x0?_0x48fa6c['models'][0x0]['id']:'',this['_defaultLabel']=_0x48fa6c['models']&&_0x48fa6c['models']['length']>0x0?_0x48fa6c['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),this['promptInputView']=new _0x498e8b(_0x3156de),this['promptInputView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['on']('input',()=>{this['prompt']=this['promptInputView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new _0x560e37(),this['_setModelList'](),_0x39b7ae(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']);const _0x282b19=new _0xecdd71(_0x3156de);_0x282b19['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions']},'children':[new _0x54dffd(this['locale'],{'children':[this['promptInputView']]}),new _0x54dffd(this['locale'],{'children':[_0x282b19]})]});}['resetToDefault'](){this['prompt']='',this['modelId']=this['_defaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['_defaultLabel'];}['_createSubmitButtonView'](){const _0x5dd208=new _0x50723c(this['locale']),t=this['locale']['t'];return _0x5dd208['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x5dd208['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x446cbe=>{_0x446cbe['stopPropagation']();})}}),_0x5dd208['on']('execute',()=>{this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x5dd208;}['_createCancelButtonView'](){const _0x3e4a40=new _0x50723c(this['locale']),t=this['locale']['t'];return _0x3e4a40['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x3e4a40['on']('execute',()=>{this['resetToDefault']();}),_0x3e4a40;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x37362=this['_check']['models'];if(this['resetToDefault'](),_0x37362?.['length'])for(const _0x1b5714 of _0x37362){const _0x194c59=new _0x350920({'label':_0x1b5714['name'],'withText':!0x0,'role':'menuitemradio','id':_0x1b5714['id'],'model':_0x1b5714});_0x194c59['bind']('isOn')['to'](this,'modelId',_0x434306=>_0x434306===_0x1b5714['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x194c59,'labelView':new js(this['locale'],_0x1b5714)});}}['_createModelSelectionDropdown'](){const _0x3e585f=_0x1ffed3(this['locale']);return _0x3e585f['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x3e585f['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x15f02f=>{_0x15f02f['stopPropagation']();})}}),_0x3e585f['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x3e585f,'execute',_0x3c62a8=>{this['modelId']=_0x3c62a8['source']['model']['id'],_0x3e585f['buttonView']['label']=_0x3c62a8['source']['label'];}),_0x3e585f;}}class js extends _0x15c6b9{constructor(_0x3aef55,_0xe927df){super();const _0x3804e1=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x3804e1['to']('style'),'id':_0x3804e1['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'text':_0x3804e1['to']('text')}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[{'text':_0xe927df['description']}]}]}]});}}
23
+ import{Collection as _0x5327a5,KeystrokeHandler as _0x38bd34,FocusTracker as _0x22422a}from'ckeditor5/src/utils.js';import{View as _0x204e52,ViewCollection as _0x579156,ButtonView as _0x3e6f5a,FormRowView as _0x49520b,createDropdown as _0x3ac330,addListToDropdown as _0x4481ec,UIModel as _0x533a62,ButtonLabelView as _0x9b1784,LabeledFieldView as _0x24721b,FocusCycler as _0x4a891c}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x53fcd1}from'./aireviemodepromptinputview.js';import{getTranslation as _0x27f6ce}from'../../aicore/utils/common-translations.js';export class AIReviewModeCustomCheckView extends _0x204e52{['focusTracker']=new _0x22422a();['keystrokes']=new _0x38bd34();['focusCycler'];['_focusables']=new _0x579156();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x16ebc3,_0x135f50){super(_0x16ebc3),this['_check']=_0x135f50,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x135f50['models']&&_0x135f50['models']['length']>0x0?_0x135f50['models'][0x0]['id']:'',this['_defaultLabel']=_0x135f50['models']&&_0x135f50['models']['length']>0x0?_0x135f50['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x24721b(this['locale'],()=>new _0x53fcd1(_0x16ebc3)),this['promptInputView']['fieldView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['fieldView']['on']('input',()=>{this['prompt']=this['promptInputView']['fieldView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new _0x5327a5(),this['_setModelList'](),_0x4481ec(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions']},'children':[new _0x49520b(this['locale'],{'children':[this['promptInputView']]}),new _0x49520b(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x37fe39,_0x82c538)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x82c538()):_0x82c538();}),this['focusCycler']=new _0x4a891c({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}));}['render'](){super['render'](),([this['promptInputView'],this['_modelSelectionDropdown'],this['cancelButtonView'],this['submitButtonView']]['forEach'](_0x18cb54=>{this['_focusables']['add'](_0x18cb54),this['focusTracker']['add'](_0x18cb54['element']);}),this['keystrokes']['listenTo'](this['element']));}get['modelDefaultValue'](){return this['_defaultValue'];}get['modelDefaultLabel'](){return this['_defaultLabel'];}['resetToDefault'](){this['prompt']='',this['modelId']=this['modelDefaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['modelDefaultLabel'],this['resetFormValidationStatus']();}['resetFormValidationStatus'](){this['promptInputView']['errorText']='';}['_isValid'](){this['resetFormValidationStatus']();for(const _0x46317b of this['_getFormValidators']()){const _0x5a1e0a=_0x46317b();if(_0x5a1e0a)return this['promptInputView']['errorText']=_0x5a1e0a,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x27f6ce(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x42c38a=new _0x3e6f5a(this['locale']),t=this['locale']['t'];return _0x42c38a['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x42c38a['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x42c38a;}['_createCancelButtonView'](){const _0x3c2682=new _0x3e6f5a(this['locale']),t=this['locale']['t'];return _0x3c2682['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x3c2682['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x502d55=>{_0x502d55['stopPropagation']();})}}),_0x3c2682['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x3c2682;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x334936=this['_check']['models'];if(this['resetToDefault'](),_0x334936?.['length'])for(const _0x20f459 of _0x334936){const _0x217348=new _0x533a62({'label':_0x20f459['name'],'withText':!0x0,'role':'menuitemradio','id':_0x20f459['id'],'model':_0x20f459});_0x217348['bind']('isOn')['to'](this,'modelId',_0x9f8e34=>_0x9f8e34===_0x20f459['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x217348,'labelView':new Hs(this['locale'],_0x20f459)});}}['_createModelSelectionDropdown'](){const _0x123e6f=_0x3ac330(this['locale']);return _0x123e6f['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x123e6f['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x123e6f,'execute',_0x4eb325=>{this['modelId']=_0x4eb325['source']['model']['id'],_0x123e6f['buttonView']['label']=_0x4eb325['source']['label'];}),_0x123e6f;}['_createActionsFooterView'](){const _0x3d7b6b=new _0x204e52(this['locale']);return _0x3d7b6b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x3d7b6b;}}class Hs extends _0x9b1784{constructor(_0x4f3a46,_0x353988){super();const _0x187da7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x187da7['to']('style'),'id':_0x187da7['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x187da7['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x353988['description']||'']}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5869(){const _0x22f268=['7FShqcC','741846SmjItV','resetToDefault','145695eiwUmA','isVisible','hasChecks','140JnZPpQ','setChecks','div','970884kvnwgq','bindTemplate','ck-ai-review-mode__check-list','delegate','runReviewCheck','_checkViews','4229736IwBBJZ','6504ZWxkpa','entries','add','576369AuPOmx','1293843YqPceQ','ck-hidden','setTemplate','clear','length','locale','185XGISYv','resetAllParameterizedChecks'];_0x5869=function(){return _0x22f268;};return _0x5869();}const _0x4deaa2=_0x348a;(function(_0xa3ffa7,_0x487c2d){const _0x4c5c3f=_0x348a,_0x5d72bf=_0xa3ffa7();while(!![]){try{const _0x3daafb=parseInt(_0x4c5c3f(0x199))/0x1+-parseInt(_0x4c5c3f(0x197))/0x2+parseInt(_0x4c5c3f(0x18e))/0x3+-parseInt(_0x4c5c3f(0x183))/0x4+-parseInt(_0x4c5c3f(0x194))/0x5*(parseInt(_0x4c5c3f(0x18a))/0x6)+parseInt(_0x4c5c3f(0x196))/0x7*(-parseInt(_0x4c5c3f(0x189))/0x8)+parseInt(_0x4c5c3f(0x18d))/0x9*(parseInt(_0x4c5c3f(0x19c))/0xa);if(_0x3daafb===_0x487c2d)break;else _0x5d72bf['push'](_0x5d72bf['shift']());}catch(_0x58416e){_0x5d72bf['push'](_0x5d72bf['shift']());}}}(_0x5869,0x47109));import{ListItemView as _0x30d26c,ViewCollection as _0x3b58a7}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCommandListItemView as _0x17158b}from'./aireviewmodereviewcommandlistitemview.js';function _0x348a(_0x49ad53,_0x4d0af4){const _0x586930=_0x5869();return _0x348a=function(_0x348a86,_0x331e7c){_0x348a86=_0x348a86-0x182;let _0x453066=_0x586930[_0x348a86];return _0x453066;},_0x348a(_0x49ad53,_0x4d0af4);}import'../../../theme/aireviewmode/aireviewmode-check-list.css';export class AIReviewModeReviewCheckListView extends _0x30d26c{[_0x4deaa2(0x188)];constructor(_0x44ca7d){const _0x4c6330=_0x4deaa2;super(_0x44ca7d),this[_0x4c6330(0x188)]=new _0x3b58a7();const _0x5ccc0a=this[_0x4c6330(0x184)];this[_0x4c6330(0x190)]({'tag':_0x4c6330(0x182),'attributes':{'class':[_0x4c6330(0x185),_0x5ccc0a['if'](_0x4c6330(0x19a),_0x4c6330(0x18f),_0x425043=>!_0x425043)]},'children':this[_0x4c6330(0x188)]});}[_0x4deaa2(0x19d)](_0x2df879){const _0xe23bcd=_0x4deaa2;this[_0xe23bcd(0x188)][_0xe23bcd(0x191)]();for(const [_0x324bfc,_0x5833bb]of _0x2df879[_0xe23bcd(0x18b)]()){const _0x2f3685=new _0x17158b(this[_0xe23bcd(0x193)],_0x5833bb,_0x324bfc);_0x2f3685[_0xe23bcd(0x186)](_0xe23bcd(0x187))['to'](this),this[_0xe23bcd(0x188)][_0xe23bcd(0x18c)](_0x2f3685);}}[_0x4deaa2(0x19b)](){const _0x12b471=_0x4deaa2;return this[_0x12b471(0x188)][_0x12b471(0x192)]>0x0;}[_0x4deaa2(0x195)](){const _0x229023=_0x4deaa2;for(const _0x4ace02 of this[_0x229023(0x188)])_0x4ace02 instanceof _0x17158b&&_0x4ace02[_0x229023(0x198)]();}}
23
+ const _0x55bf94=_0x4b78;(function(_0x55f7bf,_0x1ef07c){const _0x2ad824=_0x4b78,_0x1ec508=_0x55f7bf();while(!![]){try{const _0x51f72a=-parseInt(_0x2ad824(0xb8))/0x1*(parseInt(_0x2ad824(0xb6))/0x2)+-parseInt(_0x2ad824(0xa4))/0x3*(-parseInt(_0x2ad824(0xa2))/0x4)+parseInt(_0x2ad824(0xa7))/0x5+-parseInt(_0x2ad824(0xb2))/0x6*(-parseInt(_0x2ad824(0xba))/0x7)+-parseInt(_0x2ad824(0xb5))/0x8*(parseInt(_0x2ad824(0xae))/0x9)+parseInt(_0x2ad824(0xac))/0xa*(-parseInt(_0x2ad824(0xb4))/0xb)+parseInt(_0x2ad824(0xbd))/0xc;if(_0x51f72a===_0x1ef07c)break;else _0x1ec508['push'](_0x1ec508['shift']());}catch(_0x517695){_0x1ec508['push'](_0x1ec508['shift']());}}}(_0xc605,0x434d7));import{ListItemView as _0x176c5e,ViewCollection as _0x429386}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCommandListItemView as _0x178f10}from'./aireviewmodereviewcommandlistitemview.js';function _0xc605(){const _0x5e88d8=['426221heofXl','entries','560GkpUEv','_checkViews','runReviewCheck','3346740HxPZhD','resetToDefault','ck-hidden','335164fSWvCo','add','9DuNMLP','setTemplate','delegate','912195dDahow','ck-ai-review-mode__check-list','locale','hasChecks','clear','135170dcuYGN','div','134829MQLpWg','length','resetAllParameterizedChecks','setChecks','2340JuLOne','isVisible','22kmnUmj','8zMoifa','2PYujPc','bindTemplate'];_0xc605=function(){return _0x5e88d8;};return _0xc605();}function _0x4b78(_0x2ffec7,_0x55b85e){const _0xc60593=_0xc605();return _0x4b78=function(_0x4b78a1,_0x2319d0){_0x4b78a1=_0x4b78a1-0xa1;let _0x4aeb46=_0xc60593[_0x4b78a1];return _0x4aeb46;},_0x4b78(_0x2ffec7,_0x55b85e);}import'../../../theme/aireviewmode/aireviewmode-check-list.css';export class AIReviewModeReviewCheckListView extends _0x176c5e{[_0x55bf94(0xbb)];constructor(_0x5d1997){const _0x1d6e57=_0x55bf94;super(_0x5d1997),this[_0x1d6e57(0xbb)]=new _0x429386();const _0x2eb2ab=this[_0x1d6e57(0xb7)];this[_0x1d6e57(0xa5)]({'tag':_0x1d6e57(0xad),'attributes':{'class':[_0x1d6e57(0xa8),_0x2eb2ab['if'](_0x1d6e57(0xb3),_0x1d6e57(0xa1),_0x52a93f=>!_0x52a93f)]},'children':this[_0x1d6e57(0xbb)]});}[_0x55bf94(0xb1)](_0x3e9e8a){const _0x2911c0=_0x55bf94;this[_0x2911c0(0xbb)][_0x2911c0(0xab)]();for(const [_0x2a3aab,_0x9286d3]of _0x3e9e8a[_0x2911c0(0xb9)]()){const _0x21ead=new _0x178f10(this[_0x2911c0(0xa9)],_0x9286d3,_0x2a3aab);_0x21ead[_0x2911c0(0xa6)](_0x2911c0(0xbc))['to'](this),this[_0x2911c0(0xbb)][_0x2911c0(0xa3)](_0x21ead);}}[_0x55bf94(0xaa)](){const _0xf284d3=_0x55bf94;return this[_0xf284d3(0xbb)][_0xf284d3(0xaf)]>0x0;}[_0x55bf94(0xb0)](){const _0x2aaca2=_0x55bf94;for(const _0x16b1f9 of this[_0x2aaca2(0xbb)])_0x16b1f9 instanceof _0x178f10&&_0x16b1f9[_0x2aaca2(0xbe)]();}}
@@ -12,7 +12,13 @@ import { AIDisclaimerView } from '../../aicore/ui/aidisclaimerview.js';
12
12
  import '../../../theme/aireviewmode/aireviewmode-check-run.css';
13
13
  import '../../../theme/aireviewmode/aireviewmode-check-run-result.css';
14
14
  export declare class AIReviewModeReviewCheckResultsView extends ListItemView {
15
+ /**
16
+ * The header view containing the title and action buttons.
17
+ */
15
18
  resultsHeader: View;
19
+ /**
20
+ * The disclaimer view shown below the results.
21
+ */
16
22
  reviewDisclaimer: AIDisclaimerView;
17
23
  /**
18
24
  * The title of the current check results.
@@ -20,6 +26,12 @@ export declare class AIReviewModeReviewCheckResultsView extends ListItemView {
20
26
  * @observable
21
27
  */
22
28
  headerTitle: string;
29
+ /**
30
+ * The subtitle of the current check results.
31
+ *
32
+ * @observable
33
+ */
34
+ headerSubtitle: string;
23
35
  /**
24
36
  * The loading state of the controls.
25
37
  *
@@ -54,7 +66,7 @@ export declare class AIReviewModeReviewCheckResultsView extends ListItemView {
54
66
  *
55
67
  * @param title The title to set in the header.
56
68
  */
57
- setTitle(title: string): void;
69
+ setTitle(title: string, subtitle?: string): void;
58
70
  showChunkErrorMessage(): void;
59
71
  showGeneralErrorMessage(): void;
60
72
  resetErrorState(): void;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ListItemView as _0x53ba0c,View as _0x2eb4aa,ViewCollection as _0x4a4627,ButtonView as _0x3299a3}from'ckeditor5/src/ui.js';import{IconStop as _0x45a3d8,IconEye as _0x47aece,IconEyeCrossedOut as _0x563527}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0xda0c25}from'./aireviewmodechecklistitemresultview.js';import{AISkeletonView as _0x23a77c,SKELETON_DEFINITIONS as _0x3e95af}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x156724}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x140ac9}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x29ce2e}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x53ba0c{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];constructor(_0x12b6aa){super(_0x12b6aa),this['_resultViews']=new _0x4a4627(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x156724(_0x12b6aa),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general');const _0xfb115c=this['_createCombinedSkeletonLoader'](),_0x4a2e74=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x4a2e74['if']('isVisible','ck-hidden',_0x3e37a2=>!_0x3e37a2)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x3e7665=>_0x3e7665)]},'children':this['_resultViews']},_0xfb115c]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x15cb6b){const _0x28ece1=new _0xda0c25(this['locale'],_0x15cb6b['id']);_0x28ece1['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x28ece1),_0x28ece1['resultResponseView']['element']['innerHTML']=_0x15cb6b['contentDiffed'];}['hideResult'](_0x17321a){const _0x3e2312=this['_resultViews']['find'](_0x39c009=>_0x39c009['id']===_0x17321a);_0x3e2312&&(_0x3e2312['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_removing'),_0x3e2312['element']?.['addEventListener']('animationend',()=>{this['_resultViews']['remove'](_0x3e2312),_0x3e2312['destroy']();},{'once':!0x0}));}['setTitle'](_0x3a18a8){this['headerTitle']=_0x3a18a8;}['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 _0x23a77c(this['locale'],_0x3e95af['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x2a08b0=new _0x2eb4aa(this['locale']),_0x449d17=[];for(let _0x55d420=0x0;_0x55d420<0x10;_0x55d420++){const _0x49661c=this['_createSkeletonLoader']();_0x49661c['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x449d17['push'](_0x49661c);}return _0x2a08b0['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x46eb28=>!_0x46eb28)]},'children':_0x449d17}),_0x2a08b0;}['_createErrorView'](){const _0x2d1cdf=new _0x2eb4aa(this['locale']),_0x8e1e=new _0x3299a3(this['locale']),t=this['locale']['t'];return _0x2d1cdf['delegate']('retryReview')['to'](this),_0x8e1e['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x8e1e['on']('execute',()=>{this['fire']('retryReview');}),_0x2d1cdf['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x5c7aa8=>!_0x5c7aa8),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x3ce521=>'chunk'===_0x3ce521)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-chat-error','ck-ai-chat-error_full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-chat-error_warning',_0x3c10e8=>'chunk'===_0x3c10e8)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x3e9445=>'general'!==_0x3e9445)]},'children':[{'text':_0x140ac9(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x1a8942=>'chunk'!==_0x1a8942)]},'children':[{'text':_0x140ac9(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x8e1e]}),_0x2d1cdf;}['_createCancelButtonView'](){const _0x56024a=new _0x3299a3(this['locale']);return _0x56024a['set']({'label':_0x140ac9(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ai-chat-controls-loader__cancel-button'],'icon':_0x45a3d8}),_0x56024a['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x461400=>_0x461400)]}}),_0x56024a['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x56024a;}['_createToggleDiffButtonView'](){const _0x2e3b9a=new _0x3299a3(this['locale']);_0x2e3b9a['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x2e3b9a['bind']('isEnabled')['to'](this,'isError',_0x24c033=>!_0x24c033),_0x2e3b9a['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x33dae2=>!_0x33dae2)]}});const _0x458f11=_0x140ac9(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x34de7a=_0x140ac9(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x2e3b9a['bind']('isOn')['to'](this,'isToggleDiffOn',_0x53098c=>_0x53098c),_0x2e3b9a['bind']('icon')['to'](this,'isToggleDiffOn',_0x15a571=>_0x15a571?_0x47aece:_0x563527),_0x2e3b9a['bind']('label')['to'](this,'isToggleDiffOn',_0x21388f=>_0x21388f?_0x458f11:_0x34de7a),_0x2e3b9a['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x2e3b9a;}['_createAcceptAllButtonView'](){const _0x35cc83=new _0x3299a3(this['locale']);return _0x35cc83['set']({'label':_0x140ac9(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x35cc83['bind']('isEnabled')['to'](this,'isError',_0x24dc9b=>!_0x24dc9b),_0x35cc83['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3c6508=>!_0x3c6508)]}}),_0x35cc83['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x35cc83;}['_createExitReviewButtonView'](){const _0x26ca39=new _0x3299a3(this['locale']);return _0x26ca39['set']({'label':_0x140ac9(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x26ca39['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x390fc1=>!_0x390fc1)]}}),_0x26ca39['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x26ca39;}['_createResultHeaderView'](){const _0x4a1a4f=new _0x2eb4aa(this['locale']),_0x37bf0a=new _0x29ce2e();return _0x37bf0a['bind']('isVisible')['to'](this,'isResultReady',_0xfd7b99=>!_0xfd7b99),_0x4a1a4f['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[_0x37bf0a,this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView']]}]}),_0x4a1a4f;}}
23
+ import{ListItemView as _0x1ab307,View as _0x44489f,ViewCollection as _0x3cbb9c,ButtonView as _0x598330}from'ckeditor5/src/ui.js';import{IconStop as _0x5b347f,IconEye as _0x496f1d,IconEyeCrossedOut as _0x512cca}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x50bec9}from'./aireviewmodechecklistitemresultview.js';import{AISkeletonView as _0x41d3aa,SKELETON_DEFINITIONS as _0xde3cdf}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x4c8bb8}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x44def6}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x42463c}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x1ab307{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];constructor(_0x11c642){super(_0x11c642),this['_resultViews']=new _0x3cbb9c(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x4c8bb8(_0x11c642),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');const _0x4a8f05=this['_createCombinedSkeletonLoader'](),_0x363bc8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x363bc8['if']('isVisible','ck-hidden',_0x515646=>!_0x515646)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x38acab=>_0x38acab)]},'children':this['_resultViews']},_0x4a8f05]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x181447){const _0x31cef2=new _0x50bec9(this['locale'],_0x181447['id']);_0x31cef2['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x31cef2),_0x31cef2['resultResponseView']['element']['innerHTML']=_0x181447['contentDiffed'];}['hideResult'](_0xaa3767){const _0x265579=this['_resultViews']['find'](_0x5aef7e=>_0x5aef7e['id']===_0xaa3767);_0x265579&&(_0x265579['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_removing'),_0x265579['element']?.['addEventListener']('animationend',()=>{this['_resultViews']['remove'](_0x265579),_0x265579['destroy']();},{'once':!0x0}));}['setTitle'](_0xcd4212,_0x58cd1e){this['headerTitle']=_0xcd4212,this['headerSubtitle']=_0x58cd1e||'';}['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 _0x41d3aa(this['locale'],_0xde3cdf['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x18b340=new _0x44489f(this['locale']),_0x4e7d61=[];for(let _0x158cd7=0x0;_0x158cd7<0x10;_0x158cd7++){const _0x18f99f=this['_createSkeletonLoader']();_0x18f99f['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x4e7d61['push'](_0x18f99f);}return _0x18b340['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x90d9c9=>!_0x90d9c9)]},'children':_0x4e7d61}),_0x18b340;}['_createErrorView'](){const _0x1d6c51=new _0x44489f(this['locale']),_0x119ca8=new _0x598330(this['locale']),t=this['locale']['t'];return _0x1d6c51['delegate']('retryReview')['to'](this),_0x119ca8['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x119ca8['on']('execute',()=>{this['fire']('retryReview');}),_0x1d6c51['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x31cb36=>!_0x31cb36),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x236f31=>'chunk'===_0x236f31)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-chat-error','ck-ai-chat-error_full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-chat-error_warning',_0x571416=>'chunk'===_0x571416)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x30fb2c=>'general'!==_0x30fb2c)]},'children':[{'text':_0x44def6(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0xe5b840=>'chunk'!==_0xe5b840)]},'children':[{'text':_0x44def6(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x119ca8]}),_0x1d6c51;}['_createCancelButtonView'](){const _0x29f4d3=new _0x598330(this['locale']);return _0x29f4d3['set']({'label':_0x44def6(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ai-chat-controls-loader__cancel-button'],'icon':_0x5b347f}),_0x29f4d3['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x51cb10=>_0x51cb10)]}}),_0x29f4d3['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x29f4d3;}['_createToggleDiffButtonView'](){const _0x4822fd=new _0x598330(this['locale']);_0x4822fd['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x4822fd['bind']('isEnabled')['to'](this,'isError',_0x22fd30=>!_0x22fd30),_0x4822fd['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4bf77c=>!_0x4bf77c)]}});const _0x488f3b=_0x44def6(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x5e6101=_0x44def6(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x4822fd['bind']('isOn')['to'](this,'isToggleDiffOn',_0x4403e5=>_0x4403e5),_0x4822fd['bind']('icon')['to'](this,'isToggleDiffOn',_0x1c6b64=>_0x1c6b64?_0x496f1d:_0x512cca),_0x4822fd['bind']('label')['to'](this,'isToggleDiffOn',_0x330fa2=>_0x330fa2?_0x488f3b:_0x5e6101),_0x4822fd['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x4822fd;}['_createAcceptAllButtonView'](){const _0x4670f4=new _0x598330(this['locale']);return _0x4670f4['set']({'label':_0x44def6(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x4670f4['bind']('isEnabled')['to'](this,'isError',_0x2069d4=>!_0x2069d4),_0x4670f4['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x646297=>!_0x646297)]}}),_0x4670f4['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x4670f4;}['_createExitReviewButtonView'](){const _0x42e83d=new _0x598330(this['locale']);return _0x42e83d['set']({'label':_0x44def6(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x42e83d['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4e9563=>!_0x4e9563)]}}),_0x42e83d['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x42e83d;}['_createResultHeaderView'](){const _0x48574e=new _0x44489f(this['locale']),_0x59c9ff=this['_createTitleView']();return _0x48574e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header']},'children':[_0x59c9ff,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView']]}]}),_0x48574e;}['_createTitleView'](){const _0x134918=new _0x44489f(this['locale']),_0x31cdc5=new _0x42463c();return _0x31cdc5['bind']('isVisible')['to'](this,'isResultReady',_0x526c43=>!_0x526c43),_0x134918['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x31cdc5,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]}]}),_0x134918;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ListItemView as _0x207cdb,IconView as _0x3d8c79,View as _0x4e3946,ViewCollection as _0x39310c,ButtonView as _0x12c13c,clickOutsideHandler as _0x4b1ca9}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x1837d2}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x5e5f93}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as _0x1fa446}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x207cdb{['_formItemsCollection']=new _0x39310c();['_customCheckView']=null;constructor(_0x4ecaa2,_0x46a9a8,_0x3801d4){super(_0x4ecaa2),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x46a9a8['isParameterized']);const _0x44483e=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai-review-mode__check-list-item_selected',_0x42f94e=>_0x42f94e),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x350b50=>_0x350b50)],'style':{'--ck-ai-check-list-item-index':_0x3801d4}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-list-item-title-text']},'children':[{'text':_0x46a9a8['title']}]},_0x44483e]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x46a9a8['description']}]}]}]},..._0x46a9a8['isParameterized']?[this['_createParameterizedView'](_0x46a9a8)]:[],...'custom'===_0x46a9a8['id']?[this['_createCustomView'](_0x46a9a8)]:[]]}),this['on']('click',()=>{_0x46a9a8['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x46a9a8['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x4b1ca9({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x573eaf=>{_0x573eaf['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x420317=new _0x3d8c79();return _0x420317['content']=_0x1837d2,_0x420317['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x420317;}['_createParameterizedView'](_0x5d7f6f){const _0x1ffc57=new _0x4e3946(),_0x37ae9d=this['_createFormView'](_0x5d7f6f);return _0x1ffc57['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x416dbd=>!_0x416dbd)]},'children':[_0x37ae9d]}),_0x1ffc57;}['_createFormView'](_0x23749c){const _0x295c86=new _0x4e3946(),_0x551359=Array['isArray'](_0x23749c['options'])?_0x23749c['options']:[],_0x2f86cd=new _0x12c13c(this['locale']),t=this['locale']['t'];_0x2f86cd['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x2f86cd['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x4c95d3=>{_0x4c95d3['stopPropagation']();})}}),_0x2f86cd['on']('execute',()=>{const _0x5b035e=[],_0x3aec41={};this['_formItemsCollection']['forEach'](_0x4b3804=>{_0x5b035e['push'](_0x4b3804['value']),_0x23749c['useArgs']&&_0x23749c['options']&&(_0x3aec41[_0x4b3804['argsKey']]=_0x4b3804['value']);}),this['fire']('runReviewCheck',{'id':_0x23749c['id'],'params':_0x5b035e['length']?_0x5b035e:void 0x0,'args':Object['keys'](_0x3aec41)['length']?_0x3aec41:void 0x0});});const _0x413f41=_0x551359['length'];return _0x551359['forEach']((_0x309f15,_0x295cc5)=>{const _0x25cd66=_0x295cc5===_0x413f41-0x1;this['_formItemsCollection']['add'](new _0x5e5f93(this['locale'],_0x309f15,_0x25cd66?_0x2f86cd:null));}),_0x295c86['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x295c86;}['_createCustomView'](_0x260c02){return this['_customCheckView']=new _0x1fa446(this['locale'],_0x260c02),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized','ck-ai-review-mode__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x9cd6c1=>!_0x9cd6c1)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['_customCheckView'];}}
23
+ import{ListItemView as _0x1188e3,IconView as _0x505ef9,View as _0x25f0e7,ViewCollection as _0x247c09,ButtonView as _0x185cd5,clickOutsideHandler as _0x3ef285}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x3e3c33}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x2a5f41}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as _0x6cd670}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x1188e3{['_formItemsCollection']=new _0x247c09();['_customCheckView']=null;constructor(_0x58c8b1,_0x1be40b,_0x24ca3f){super(_0x58c8b1),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x1be40b['isParameterized']);const _0x589794=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai-review-mode__check-list-item_selected',_0x46ddfb=>_0x46ddfb),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x24990b=>_0x24990b)],'style':{'--ck-ai-check-list-item-index':_0x24ca3f}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-list-item-title-text']},'children':[{'text':_0x1be40b['title']}]},_0x589794]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x1be40b['description']}]}]}]},..._0x1be40b['isParameterized']?[this['_createParameterizedView'](_0x1be40b)]:[],...'custom'===_0x1be40b['id']?[this['_createCustomView'](_0x1be40b)]:[]]}),this['on']('click',()=>{_0x1be40b['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x1be40b['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x3ef285({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x3c4819=>{_0x3c4819['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x4fef16=new _0x505ef9();return _0x4fef16['content']=_0x3e3c33,_0x4fef16['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x4fef16;}['_createParameterizedView'](_0x375674){const _0x1d3f38=new _0x25f0e7(),_0x211627=this['_createFormView'](_0x375674);return _0x1d3f38['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x2d2e4c=>!_0x2d2e4c)]},'children':[_0x211627]}),_0x1d3f38;}['_createFormView'](_0x3b2414){const _0x13723e=new _0x25f0e7(),_0x3d7a95=Array['isArray'](_0x3b2414['options'])?_0x3b2414['options']:[],_0x518ec8=new _0x185cd5(this['locale']),t=this['locale']['t'];_0x518ec8['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x518ec8['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x51dcf3=>{_0x51dcf3['stopPropagation']();})}}),_0x518ec8['on']('execute',()=>{const _0x1fba6a=[],_0x3127ed={};this['_formItemsCollection']['forEach'](_0x1fdad9=>{_0x1fba6a['push'](_0x1fdad9['value']),_0x3b2414['useArgs']&&_0x3b2414['options']&&(_0x3127ed[_0x1fdad9['argsKey']]=_0x1fdad9['value']);}),this['fire']('runReviewCheck',{'id':_0x3b2414['id'],'params':_0x1fba6a['length']?_0x1fba6a:void 0x0,'args':Object['keys'](_0x3127ed)['length']?_0x3127ed:void 0x0});});const _0x5c2b80=_0x3d7a95['length'];return _0x3d7a95['forEach']((_0x10ded5,_0x58104a)=>{const _0x462cf7=_0x58104a===_0x5c2b80-0x1;this['_formItemsCollection']['add'](new _0x2a5f41(this['locale'],_0x10ded5,_0x462cf7?_0x518ec8:null));}),_0x13723e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x13723e;}['_createCustomView'](_0x510bfe){return this['_customCheckView']=new _0x6cd670(this['locale'],_0x510bfe),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized','ck-ai-review-mode__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x354099=>!_0x354099)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x4124b9,_0xe433fc,_0x1518d0)=>{_0x1518d0||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3321(_0x5662f9,_0x20604e){const _0x5d2832=_0x5d28();return _0x3321=function(_0x33211e,_0x1f073d){_0x33211e=_0x33211e-0x9d;let _0x133ade=_0x5d2832[_0x33211e];return _0x133ade;},_0x3321(_0x5662f9,_0x20604e);}const _0x1b317e=_0x3321;(function(_0x318eb5,_0x2c44d4){const _0x284584=_0x3321,_0x1d54bf=_0x318eb5();while(!![]){try{const _0x55feaa=-parseInt(_0x284584(0xb0))/0x1*(parseInt(_0x284584(0xc3))/0x2)+-parseInt(_0x284584(0xb8))/0x3*(-parseInt(_0x284584(0xbb))/0x4)+parseInt(_0x284584(0xa2))/0x5*(parseInt(_0x284584(0xb2))/0x6)+parseInt(_0x284584(0xb3))/0x7*(parseInt(_0x284584(0xaa))/0x8)+-parseInt(_0x284584(0xa3))/0x9*(parseInt(_0x284584(0xba))/0xa)+-parseInt(_0x284584(0xaf))/0xb*(parseInt(_0x284584(0xc5))/0xc)+parseInt(_0x284584(0xc7))/0xd*(parseInt(_0x284584(0xad))/0xe);if(_0x55feaa===_0x2c44d4)break;else _0x1d54bf['push'](_0x1d54bf['shift']());}catch(_0x91e692){_0x1d54bf['push'](_0x1d54bf['shift']());}}}(_0x5d28,0x42433));import{ListItemView as _0x459dd7,View as _0x43a19e,ButtonView as _0x3b6bef}from'ckeditor5/src/ui.js';import{getTranslation as _0x35ce75}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';function _0x5d28(){const _0x42e82f=['execute','locale','112axpcio','viewType','22KFtEas','4941Vwdgyg','setTemplate','62796OyFeeP','14jWUDzk','ck-ai-button-primary','ck-ai-review-mode__review-completed-content-text','fire','div','3819tZOBKL','_finishReviewButtonView','908070KqhQXP','1052YIpTSo','_createResultHeaderView','ck-ai-review-mode__review-completed-header-title','AI_REVIEW_MODE_COMPLETED_TEXT','AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','_createFinishReviewButtonView','span','bindTemplate','2dplNUF','set','807720LtISCI','completed','103103kMhIys','ck-ai-review-mode__review-completed-content-icon','ck-ai-review-mode__review-completed','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','finishReview','ck-ai-review-mode__review-completed-header-buttons','50bYBzuw','27YRHpse','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','ck-ai-review-mode__review-completed-header','ck-ai-review-mode__review-completed-content','resultsHeader','isVisible','ck-hidden','721944QAEwwN'];_0x5d28=function(){return _0x42e82f;};return _0x5d28();}export class AIReviewModeReviewCompletedView extends _0x459dd7{[_0x1b317e(0xa7)];[_0x1b317e(0xb9)];constructor(_0x28d3e9){const _0x42af07=_0x1b317e;super(_0x28d3e9),this[_0x42af07(0xb9)]=this[_0x42af07(0xc0)](),this[_0x42af07(0xa7)]=this[_0x42af07(0xbc)](),this[_0x42af07(0xc4)](_0x42af07(0xae),_0x42af07(0xc6));const _0x1eeb55=this[_0x42af07(0xc2)];this[_0x42af07(0xb1)]({'tag':_0x42af07(0xb7),'attributes':{'class':[_0x42af07(0x9e),_0x1eeb55['if'](_0x42af07(0xa8),_0x42af07(0xa9),_0x60cb6=>!_0x60cb6)]},'children':[this[_0x42af07(0xa7)],{'tag':_0x42af07(0xb7),'attributes':{'class':[_0x42af07(0xa6)]},'children':[{'tag':_0x42af07(0xc1),'attributes':{'class':[_0x42af07(0x9d)]},'children':[{'text':_0x1eeb55['to'](_0x42af07(0xae),_0x3aad5b=>_0x42af07(0xc6)===_0x3aad5b?'🎉':'👍')}]},{'tag':'p','attributes':{'class':[_0x42af07(0xb5)]},'children':[{'text':_0x1eeb55['to'](_0x42af07(0xae),_0x962266=>_0x35ce75(_0x28d3e9,_0x42af07(0xc6)===_0x962266?_0x42af07(0xbe):_0x42af07(0xbf)))}]}]}]});}[_0x1b317e(0xc0)](){const _0x5b23e3=_0x1b317e,_0x2118b3=new _0x3b6bef(this[_0x5b23e3(0xac)]);return _0x2118b3[_0x5b23e3(0xc4)]({'label':_0x35ce75(this[_0x5b23e3(0xac)],_0x5b23e3(0x9f)),'withText':!0x0,'class':_0x5b23e3(0xb4)}),_0x2118b3['on'](_0x5b23e3(0xab),()=>{const _0x8f62e2=_0x5b23e3;this[_0x8f62e2(0xb6)](_0x8f62e2(0xa0));}),_0x2118b3;}[_0x1b317e(0xbc)](){const _0x242305=_0x1b317e,_0xb0b566=new _0x43a19e(this[_0x242305(0xac)]);return _0xb0b566[_0x242305(0xb1)]({'tag':_0x242305(0xb7),'attributes':{'class':[_0x242305(0xa5)]},'children':[{'tag':_0x242305(0xc1),'attributes':{'class':[_0x242305(0xbd)]},'children':[{'text':_0x35ce75(this[_0x242305(0xac)],_0x242305(0xa4))}]},{'tag':_0x242305(0xb7),'attributes':{'class':[_0x242305(0xa1)]},'children':[this[_0x242305(0xb9)]]}]}),_0xb0b566;}}
23
+ const _0x1f2bd7=_0x27f6;(function(_0x55a406,_0x3a3675){const _0x53d440=_0x27f6,_0x175d74=_0x55a406();while(!![]){try{const _0x3ff07e=-parseInt(_0x53d440(0x1e7))/0x1*(parseInt(_0x53d440(0x1d4))/0x2)+parseInt(_0x53d440(0x1db))/0x3+parseInt(_0x53d440(0x1e5))/0x4*(parseInt(_0x53d440(0x1f3))/0x5)+parseInt(_0x53d440(0x1eb))/0x6+-parseInt(_0x53d440(0x1f5))/0x7*(-parseInt(_0x53d440(0x1d2))/0x8)+parseInt(_0x53d440(0x1e2))/0x9*(-parseInt(_0x53d440(0x1d1))/0xa)+-parseInt(_0x53d440(0x1dd))/0xb;if(_0x3ff07e===_0x3a3675)break;else _0x175d74['push'](_0x175d74['shift']());}catch(_0x48fabe){_0x175d74['push'](_0x175d74['shift']());}}}(_0x4afa,0x7ec60));import{ListItemView as _0x50315e,View as _0x111d43,ButtonView as _0x30a56a}from'ckeditor5/src/ui.js';function _0x27f6(_0x18eac8,_0x2c8e2c){const _0x4afa2e=_0x4afa();return _0x27f6=function(_0x27f679,_0x55be4f){_0x27f679=_0x27f679-0x1d1;let _0x11ad18=_0x4afa2e[_0x27f679];return _0x11ad18;},_0x27f6(_0x18eac8,_0x2c8e2c);}function _0x4afa(){const _0x3b7a72=['span','bindTemplate','setTemplate','viewType','isVisible','_createResultHeaderView','ck-ai-review-mode__review-completed','24995JIuCAt','resultsHeader','581WvslTO','ck-ai-review-mode__review-completed-content','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','div','10yjktQa','94984LizHzh','ck-ai-review-mode__review-completed-header','16SaTWNs','set','ck-hidden','_finishReviewButtonView','ck-ai-review-mode__review-completed-content-text','AI_REVIEW_MODE_COMPLETED_TEXT','ck-ai-review-mode__review-completed-header-title','2780073JvUYlU','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','3578333ZojZbH','execute','locale','fire','ck-ai-review-mode__review-completed-header-buttons','8235477EKmggS','completed','_createFinishReviewButtonView','568UteDOy','finishReview','107854KShFCq','ck-ai-button-primary','AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','ck-ai-review-mode__review-completed-content-icon','2664TwpluD'];_0x4afa=function(){return _0x3b7a72;};return _0x4afa();}import{getTranslation as _0xb12671}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeReviewCompletedView extends _0x50315e{[_0x1f2bd7(0x1f4)];[_0x1f2bd7(0x1d7)];constructor(_0x29baad){const _0x5a9281=_0x1f2bd7;super(_0x29baad),this[_0x5a9281(0x1d7)]=this[_0x5a9281(0x1e4)](),this[_0x5a9281(0x1f4)]=this[_0x5a9281(0x1f1)](),this[_0x5a9281(0x1d5)](_0x5a9281(0x1ef),_0x5a9281(0x1e3));const _0x324074=this[_0x5a9281(0x1ed)];this[_0x5a9281(0x1ee)]({'tag':_0x5a9281(0x1f8),'attributes':{'class':[_0x5a9281(0x1f2),_0x324074['if'](_0x5a9281(0x1f0),_0x5a9281(0x1d6),_0x1eb5ec=>!_0x1eb5ec)]},'children':[this[_0x5a9281(0x1f4)],{'tag':_0x5a9281(0x1f8),'attributes':{'class':[_0x5a9281(0x1f6)]},'children':[{'tag':_0x5a9281(0x1ec),'attributes':{'class':[_0x5a9281(0x1ea)]},'children':[{'text':_0x324074['to'](_0x5a9281(0x1ef),_0x190e00=>_0x5a9281(0x1e3)===_0x190e00?'🎉':'👍')}]},{'tag':'p','attributes':{'class':[_0x5a9281(0x1d8)]},'children':[{'text':_0x324074['to'](_0x5a9281(0x1ef),_0x1c5efb=>_0xb12671(_0x29baad,_0x5a9281(0x1e3)===_0x1c5efb?_0x5a9281(0x1d9):_0x5a9281(0x1e9)))}]}]}]});}[_0x1f2bd7(0x1e4)](){const _0x411a80=_0x1f2bd7,_0x3ec664=new _0x30a56a(this[_0x411a80(0x1df)]);return _0x3ec664[_0x411a80(0x1d5)]({'label':_0xb12671(this[_0x411a80(0x1df)],_0x411a80(0x1f7)),'withText':!0x0,'class':_0x411a80(0x1e8)}),_0x3ec664['on'](_0x411a80(0x1de),()=>{const _0x29c8f5=_0x411a80;this[_0x29c8f5(0x1e0)](_0x29c8f5(0x1e6));}),_0x3ec664;}[_0x1f2bd7(0x1f1)](){const _0x1c722b=_0x1f2bd7,_0x5bbae1=new _0x111d43(this[_0x1c722b(0x1df)]);return _0x5bbae1[_0x1c722b(0x1ee)]({'tag':_0x1c722b(0x1f8),'attributes':{'class':[_0x1c722b(0x1d3)]},'children':[{'tag':_0x1c722b(0x1ec),'attributes':{'class':[_0x1c722b(0x1da)]},'children':[{'text':_0xb12671(this[_0x1c722b(0x1df)],_0x1c722b(0x1dc))}]},{'tag':_0x1c722b(0x1f8),'attributes':{'class':[_0x1c722b(0x1e1)]},'children':[this[_0x1c722b(0x1d7)]]}]}),_0x5bbae1;}}