@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1628c4=_0x5a0f;(function(_0x2ab41c,_0x27b7c8){var _0x110953=_0x5a0f,_0x32fdb1=_0x2ab41c();while(!![]){try{var _0x43ee09=parseInt(_0x110953(0x1db))/0x1+-parseInt(_0x110953(0x1cb))/0x2+parseInt(_0x110953(0x1d7))/0x3*(-parseInt(_0x110953(0x1d0))/0x4)+-parseInt(_0x110953(0x1da))/0x5+-parseInt(_0x110953(0x1ca))/0x6*(parseInt(_0x110953(0x1cd))/0x7)+parseInt(_0x110953(0x1cf))/0x8*(-parseInt(_0x110953(0x1dd))/0x9)+parseInt(_0x110953(0x1cc))/0xa;if(_0x43ee09===_0x27b7c8)break;else _0x32fdb1['push'](_0x32fdb1['shift']());}catch(_0x4ffcff){_0x32fdb1['push'](_0x32fdb1['shift']());}}}(_0x109a,0x5b3a0));function _0x5a0f(_0x3d15f7,_0x3b60e7){var _0x109a1e=_0x109a();return _0x5a0f=function(_0x5a0fd3,_0x29b14a){_0x5a0fd3=_0x5a0fd3-0x1c8;var _0x8ba624=_0x109a1e[_0x5a0fd3];return _0x8ba624;},_0x5a0f(_0x3d15f7,_0x3b60e7);}function _0x109a(){var _0x4b6c35=['70185JSWzRi','409463vjjhrk','change:status','153GzCWVo','isActivated','operationsIsolated','isRated','31050rqbbKF','1282674VmwEEF','9959400FLpbHf','287KLFZwG','pending','55520zurEAz','20RYDYRX','_data','status','operations','contentDiffed','context','set','27726tRoXul','parent','_editorOperations'];_0x109a=function(){return _0x4b6c35;};return _0x109a();}import{ObservableMixin as _0x140f12}from'ckeditor5/src/utils.js';export class AIReviewCheckResultChange extends _0x140f12(){['id'];[_0x1628c4(0x1d8)];[_0x1628c4(0x1d1)];[_0x1628c4(0x1d9)]=[];constructor(_0x10b5b3,_0x5ec554,_0x57131a){var _0x861ef1=_0x1628c4;super(),this['id']=_0x10b5b3,this[_0x861ef1(0x1d8)]=_0x57131a,this[_0x861ef1(0x1d1)]=_0x5ec554,this[_0x861ef1(0x1d6)](_0x861ef1(0x1de),!0x1),this[_0x861ef1(0x1d6)](_0x861ef1(0x1c9),!0x1),this[_0x861ef1(0x1d6)](_0x861ef1(0x1d2),_0x861ef1(0x1ce)),this['on'](_0x861ef1(0x1dc),()=>{var _0x1410d2=_0x861ef1;_0x1410d2(0x1ce)!==this[_0x1410d2(0x1d2)]&&this[_0x1410d2(0x1de)]&&(this[_0x1410d2(0x1de)]=!0x1);});}get[_0x1628c4(0x1d4)](){var _0x2d0e33=_0x1628c4;return this[_0x2d0e33(0x1d1)][_0x2d0e33(0x1d5)]();}get[_0x1628c4(0x1d3)](){var _0x1d943a=_0x1628c4;return this[_0x1d943a(0x1d1)][_0x1d943a(0x1d3)];}get[_0x1628c4(0x1c8)](){var _0x162f2b=_0x1628c4;return this[_0x162f2b(0x1d1)][_0x162f2b(0x1c8)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x250f71=_0x5b40;(function(_0x53533a,_0x383f65){const _0x12390c=_0x5b40,_0x367169=_0x53533a();while(!![]){try{const _0x519cde=-parseInt(_0x12390c(0xc8))/0x1+-parseInt(_0x12390c(0xf9))/0x2+parseInt(_0x12390c(0xc1))/0x3*(parseInt(_0x12390c(0xfc))/0x4)+parseInt(_0x12390c(0xfa))/0x5+-parseInt(_0x12390c(0xba))/0x6+-parseInt(_0x12390c(0xb1))/0x7*(-parseInt(_0x12390c(0xe6))/0x8)+parseInt(_0x12390c(0xe5))/0x9;if(_0x519cde===_0x383f65)break;else _0x367169['push'](_0x367169['shift']());}catch(_0x344b59){_0x367169['push'](_0x367169['shift']());}}}(_0x361b,0x94431));import{ObservableMixin as _0x285213,uid as _0x6cb213}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x5f5224}from'./aireviewcheckresult.js';function _0x5b40(_0x1e9e47,_0x12ded2){const _0x361ba7=_0x361b();return _0x5b40=function(_0x5b406f,_0x3a85ea){_0x5b406f=_0x5b406f-0xa9;let _0x5bd08a=_0x361ba7[_0x5b406f];return _0x5bd08a;},_0x5b40(_0x1e9e47,_0x12ded2);}function _0x361b(){const _0x1f10ae=['subTitle','reviewCheckResultReady','forEach','status','push','event','change:isActivated','forceReadyState','callId','_changes','reviewCheckRunUpdated','4391451DhVYrq','144488bMpvSZ','addResultChanges','_currentError','isChangeActive','ai-request-aborted','getStream','abort','_reviewArgs','reviewCheckResultDeactivated','error','ready','_sendRatingRequest','_activeRequest','clear','dataId','operation','_createApiRequest','every','currentError','996058mVSUoA','1766560vDBDPf','sendRating','8RsOlUd','_aiConnector','deactivateChange','change:status','aborted','unmodified','get','processedResultsCount','markChangeAsRejected','message','set','accepted','length','data','restart','markChangeAsPending','isActivated','getActiveChanges','includes','_addReviewCheckResult','301tFjCMq','markChangeAsAccepted','_sourceCheck','_results','_checkIfFinished','elements','hasModifications','activateChange','error-chunk','232830lKdmox','size','outdated','start','_documentData','abortController','version','3069gTKrTW','find','isRated','fire','title','reviewCheckResultAdded','loading','475805BiECub','markAllChangesAsAccepted','error-general','parent','initialized','documentData','markChangeAsOutdated','_reviewParams','reviewCheckResultActivated','filter','finished','review-metadata','rejected','getContent','reviewCheckResultChangeStatusUpdated','reviewName','textDelta','pending'];_0x361b=function(){return _0x1f10ae;};return _0x361b();}import{AIReviewCheckResultChange as _0x11ae06}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x285213(){['id']=_0x6cb213();[_0x250f71(0xe2)];[_0x250f71(0xb4)]=new Map();[_0x250f71(0xe3)]=[];[_0x250f71(0xbe)];[_0x250f71(0xb3)];[_0x250f71(0xfd)];[_0x250f71(0xcf)];[_0x250f71(0xed)];[_0x250f71(0xf2)]=null;[_0x250f71(0xe8)];constructor(_0x3c61c1,_0x5d3e27,_0x11a3f3,_0x28403e,_0x3a64bb){const _0x1929b5=_0x250f71;super(),this[_0x1929b5(0xbe)]=_0x3c61c1,this[_0x1929b5(0xb3)]=_0x5d3e27,this[_0x1929b5(0xfd)]=_0x11a3f3,this[_0x1929b5(0xcf)]=_0x28403e,this[_0x1929b5(0xed)]=_0x3a64bb,this['on'](_0x1929b5(0xff),(_0x33831b,_0x52d9b4,_0xaf095)=>{const _0x3f5686=_0x1929b5;this[_0x3f5686(0xc4)](_0x3f5686(0xe4),{'status':_0xaf095,'run':this,'error':this[_0x3f5686(0xe8)]});}),this[_0x1929b5(0x106)](_0x1929b5(0xdd),_0x1929b5(0xcc));}get[_0x250f71(0xcd)](){const _0x1c013e=_0x250f71;return this[_0x1c013e(0xbe)];}get[_0x250f71(0x103)](){const _0x2b4737=_0x250f71;return this[_0x2b4737(0xb4)][_0x2b4737(0xbb)];}get[_0x250f71(0xc5)](){const _0x1d6bf8=_0x250f71;return this[_0x1d6bf8(0xb3)][_0x1d6bf8(0xc5)];}get[_0x250f71(0xda)](){return'';}get[_0x250f71(0xd7)](){const _0x2c958e=_0x250f71;return this[_0x2c958e(0xb3)]['id'];}get[_0x250f71(0xb7)](){const _0x199376=_0x250f71;return!this[_0x199376(0xe3)][_0x199376(0xf7)](_0x5e2c2d=>_0x199376(0xd9)===_0x5e2c2d[_0x199376(0xdd)]);}get[_0x250f71(0xf8)](){const _0x4be276=_0x250f71;return this[_0x4be276(0xe8)];}async[_0x250f71(0xbd)](){const _0x3a099f=_0x250f71;this[_0x3a099f(0xdd)]=_0x3a099f(0xc7),this[_0x3a099f(0xe8)]=void 0x0;try{this[_0x3a099f(0xf2)]=this[_0x3a099f(0xf6)]();const _0x3e4fa3=await this[_0x3a099f(0xf2)][_0x3a099f(0xeb)]();this[_0x3a099f(0xdd)]=_0x3a099f(0xaa);for await(const _0x13fe2c of _0x3e4fa3)_0x3a099f(0x101)!==_0x13fe2c[_0x3a099f(0xaa)][_0x3a099f(0xf5)]&&(_0x3a099f(0xef)!==_0x13fe2c[_0x3a099f(0xaa)][_0x3a099f(0xf5)]?_0x3a099f(0xd3)!==_0x13fe2c[_0x3a099f(0xdf)]?this[_0x3a099f(0xb0)](_0x13fe2c[_0x3a099f(0xaa)][_0x3a099f(0xf4)],_0x13fe2c[_0x3a099f(0xaa)][_0x3a099f(0xd8)]):this[_0x3a099f(0xe2)]=_0x13fe2c[_0x3a099f(0xaa)][_0x3a099f(0xe2)]:this[_0x3a099f(0xdd)]=_0x3a099f(0xb9));_0x3a099f(0xb9)!==this[_0x3a099f(0xdd)]&&(0x0===this[_0x3a099f(0xb4)][_0x3a099f(0xbb)]?this[_0x3a099f(0xdd)]=_0x3a099f(0x101):this[_0x3a099f(0xdd)]=_0x3a099f(0xf0));}catch(_0x113b5d){this[_0x3a099f(0xe8)]=_0x113b5d,_0x113b5d instanceof Error&&_0x113b5d[_0x3a099f(0x105)][_0x3a099f(0xaf)](_0x3a099f(0xea))?this[_0x3a099f(0xdd)]=_0x3a099f(0x100):this[_0x3a099f(0xdd)]=_0x3a099f(0xca);}finally{this[_0x3a099f(0xf2)]=null;}}async[_0x250f71(0xab)](){const _0x48a875=_0x250f71;this[_0x48a875(0xb4)][_0x48a875(0xf3)](),this[_0x48a875(0xe3)][_0x48a875(0xa9)]=0x0,this[_0x48a875(0xe8)]=void 0x0,await this[_0x48a875(0xbd)]();}[_0x250f71(0xe7)](_0x2751ee,_0x2df946){const _0x4201d1=_0x250f71,_0x467f49=this[_0x4201d1(0xb4)][_0x4201d1(0x102)](_0x2751ee);if(!_0x467f49)return;const _0x7f09d8=[];_0x2df946[_0x4201d1(0xdc)]((_0x1ef614,_0x1b180b)=>{const _0x588a80=_0x4201d1,_0x24383c=new _0x11ae06(_0x467f49['id']+'-'+_0x1b180b,_0x1ef614,_0x467f49);_0x24383c['on'](_0x588a80(0xff),()=>{const _0x491505=_0x588a80;this[_0x491505(0xc4)](_0x491505(0xd6),{'change':_0x24383c,'status':_0x24383c[_0x491505(0xdd)]});}),_0x24383c['on'](_0x588a80(0xe0),()=>{const _0x594fd0=_0x588a80;_0x24383c[_0x594fd0(0xad)]?this[_0x594fd0(0xc4)](_0x594fd0(0xd0),{'change':_0x24383c}):this[_0x594fd0(0xc4)](_0x594fd0(0xee),{'change':_0x24383c});}),this[_0x588a80(0xe3)][_0x588a80(0xde)](_0x24383c),_0x7f09d8[_0x588a80(0xde)](_0x24383c);}),this[_0x4201d1(0xc4)](_0x4201d1(0xdb),{'changes':_0x7f09d8,'result':_0x467f49,'source':this});}[_0x250f71(0xec)](){const _0x3004ed=_0x250f71;this[_0x3004ed(0xf2)]&&(this[_0x3004ed(0xf2)][_0x3004ed(0xbf)][_0x3004ed(0xec)](),this[_0x3004ed(0xf2)]=null,this[_0x3004ed(0xdd)]=_0x3004ed(0x100));}[_0x250f71(0xe9)](_0x34365){const _0xfcbea8=_0x250f71,_0x113821=this[_0xfcbea8(0xe3)][_0xfcbea8(0xc2)](_0x19eeff=>_0x19eeff['id']===_0x34365);return!(!_0x113821||_0xfcbea8(0xd9)!==_0x113821[_0xfcbea8(0xdd)]);}[_0x250f71(0xae)](){const _0x1e4c0e=_0x250f71;return this[_0x1e4c0e(0xe3)][_0x1e4c0e(0xd1)](_0x3819e1=>_0x1e4c0e(0xd9)===_0x3819e1[_0x1e4c0e(0xdd)]);}[_0x250f71(0xc9)](){const _0x22e06d=_0x250f71;for(const _0x2ac734 of this[_0x22e06d(0xe3)])_0x22e06d(0xd9)===_0x2ac734[_0x22e06d(0xdd)]&&(_0x2ac734[_0x22e06d(0xdd)]=_0x22e06d(0x107));this[_0x22e06d(0xb5)]();}[_0x250f71(0xb2)](_0x55113){const _0xda9bd9=_0x250f71,_0x161434=this[_0xda9bd9(0xe3)][_0xda9bd9(0xc2)](_0x1aeb72=>_0x1aeb72['id']===_0x55113);_0x161434&&_0xda9bd9(0xd9)===_0x161434[_0xda9bd9(0xdd)]&&(_0x161434[_0xda9bd9(0xdd)]=_0xda9bd9(0x107)),this[_0xda9bd9(0xb5)]();}[_0x250f71(0x104)](_0x2ec8ba){const _0x1f8d70=_0x250f71,_0xab8256=this[_0x1f8d70(0xe3)][_0x1f8d70(0xc2)](_0x2703be=>_0x2703be['id']===_0x2ec8ba);_0xab8256&&_0x1f8d70(0xd9)===_0xab8256[_0x1f8d70(0xdd)]&&(_0xab8256[_0x1f8d70(0xdd)]=_0x1f8d70(0xd4)),this[_0x1f8d70(0xb5)]();}[_0x250f71(0xce)](_0x3ca150){const _0x5574c9=_0x250f71,_0x28bba5=this[_0x5574c9(0xe3)][_0x5574c9(0xc2)](_0x3ba7d3=>_0x3ba7d3['id']===_0x3ca150);_0x28bba5&&_0x5574c9(0xd9)===_0x28bba5[_0x5574c9(0xdd)]&&(_0x28bba5[_0x5574c9(0xdd)]=_0x5574c9(0xbc)),this[_0x5574c9(0xb5)]();}[_0x250f71(0xac)](_0x19a3d6){const _0xb17fc8=_0x250f71,_0x3ec359=this[_0xb17fc8(0xe3)][_0xb17fc8(0xc2)](_0x9ac627=>_0x9ac627['id']===_0x19a3d6);_0x3ec359&&_0xb17fc8(0xbc)===_0x3ec359[_0xb17fc8(0xdd)]&&(_0x3ec359[_0xb17fc8(0xdd)]=_0xb17fc8(0xd9)),this[_0xb17fc8(0xb5)]();}[_0x250f71(0xb8)](_0x4c184e){const _0x430e62=_0x250f71;this[_0x430e62(0xe3)][_0x430e62(0xd1)](_0x1643de=>_0x1643de[_0x430e62(0xad)]&&_0x1643de['id']!==_0x4c184e)[_0x430e62(0xdc)](_0x2e7810=>{const _0x3dbca5=_0x430e62;_0x2e7810[_0x3dbca5(0xad)]=!0x1;});const _0x2578b0=this[_0x430e62(0xe3)][_0x430e62(0xc2)](_0x2c89f4=>_0x2c89f4['id']===_0x4c184e);_0x2578b0&&_0x430e62(0xd9)===_0x2578b0[_0x430e62(0xdd)]&&(_0x2578b0[_0x430e62(0xad)]=!0x0);}[_0x250f71(0xfe)](){const _0x100feb=_0x250f71;this[_0x100feb(0xe3)][_0x100feb(0xd1)](_0x496e4a=>_0x496e4a[_0x100feb(0xad)])[_0x100feb(0xdc)](_0x15119a=>{const _0xa9c4d4=_0x100feb;_0x15119a[_0xa9c4d4(0xad)]=!0x1;});}[_0x250f71(0xe1)](){const _0x4ef069=_0x250f71;this[_0x4ef069(0xdd)]=_0x4ef069(0xf0);}async[_0x250f71(0xfb)](_0x44109d){const _0x52ca73=_0x250f71;if(_0x52ca73(0xcc)===this[_0x52ca73(0xdd)]||_0x52ca73(0xc7)===this[_0x52ca73(0xdd)]||_0x52ca73(0xaa)===this[_0x52ca73(0xdd)])return;if(!this[_0x52ca73(0xe2)]||0x0===this[_0x52ca73(0xe3)][_0x52ca73(0xa9)])return;let _0x15e0cb;if(_0x44109d){const _0x2ce0bc=this[_0x52ca73(0xe3)][_0x52ca73(0xc2)](_0x40fbf7=>_0x40fbf7['id']===_0x44109d);if(_0x2ce0bc&&_0x2ce0bc[_0x52ca73(0xc3)])return;_0x2ce0bc&&(_0x15e0cb=_0x2ce0bc[_0x52ca73(0xcb)]['id'],_0x2ce0bc[_0x52ca73(0xc3)]=!0x0);}const _0x69578e={'positiveCount':this[_0x52ca73(0xe3)][_0x52ca73(0xd1)](_0x248191=>_0x52ca73(0x107)===_0x248191[_0x52ca73(0xdd)])[_0x52ca73(0xa9)],'totalCount':this[_0x52ca73(0xe3)][_0x52ca73(0xa9)]};this[_0x52ca73(0xf1)](_0x69578e,this[_0x52ca73(0xe2)],_0x15e0cb);}[_0x250f71(0xb0)](_0x30cf75,_0x2e74ea){const _0x32ebf8=_0x250f71,_0x431ba3=this[_0x32ebf8(0xbe)][_0x32ebf8(0xb6)][_0x32ebf8(0x102)](_0x30cf75);if(!_0x431ba3)return;const _0x392388=_0x431ba3[_0x32ebf8(0xd5)]();if(_0x392388===_0x2e74ea)return;const _0x22d6f4=new _0x5f5224({'id':_0x30cf75,'contentInitial':_0x392388,'contentNew':_0x2e74ea,'documentVersion':this[_0x32ebf8(0xbe)][_0x32ebf8(0xc0)]});this[_0x32ebf8(0xb4)][_0x32ebf8(0x106)](_0x22d6f4['id'],_0x22d6f4),this[_0x32ebf8(0xc4)](_0x32ebf8(0xc6),{'result':_0x22d6f4,'source':this});}[_0x250f71(0xb5)](){const _0xba2170=_0x250f71;_0xba2170(0xd2)===this[_0xba2170(0xdd)]&&(this[_0xba2170(0xe3)][_0xba2170(0xd1)](_0xc38dcc=>_0xba2170(0xd9)===_0xc38dcc[_0xba2170(0xdd)])[_0xba2170(0xa9)]>0x0&&(this[_0xba2170(0xdd)]=_0xba2170(0xf0))),_0xba2170(0xf0)===this[_0xba2170(0xdd)]&&(0x0===this[_0xba2170(0xe3)][_0xba2170(0xd1)](_0x3fd5bc=>_0xba2170(0xd9)===_0x3fd5bc[_0xba2170(0xdd)])[_0xba2170(0xa9)]&&(this[_0xba2170(0xdd)]=_0xba2170(0xd2)));}}
|
|
23
|
+
const _0x352f89=_0x45b2;(function(_0x5f1f7e,_0x56c2e6){const _0x5f4dcc=_0x45b2,_0x3345dc=_0x5f1f7e();while(!![]){try{const _0x4828ca=-parseInt(_0x5f4dcc(0xc5))/0x1*(parseInt(_0x5f4dcc(0xe4))/0x2)+parseInt(_0x5f4dcc(0xe1))/0x3*(-parseInt(_0x5f4dcc(0xa9))/0x4)+-parseInt(_0x5f4dcc(0xd7))/0x5+parseInt(_0x5f4dcc(0x96))/0x6*(parseInt(_0x5f4dcc(0xbf))/0x7)+parseInt(_0x5f4dcc(0x94))/0x8+-parseInt(_0x5f4dcc(0xc3))/0x9+parseInt(_0x5f4dcc(0xe8))/0xa;if(_0x4828ca===_0x56c2e6)break;else _0x3345dc['push'](_0x3345dc['shift']());}catch(_0x49ceb0){_0x3345dc['push'](_0x3345dc['shift']());}}}(_0x51b8,0x40206));function _0x45b2(_0x1a1175,_0x731d48){const _0x51b89b=_0x51b8();return _0x45b2=function(_0x45b29d,_0x1658a7){_0x45b29d=_0x45b29d-0x93;let _0x2ae434=_0x51b89b[_0x45b29d];return _0x2ae434;},_0x45b2(_0x1a1175,_0x731d48);}import{ObservableMixin as _0x4237e2,uid as _0x4aeefb}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x5c7613}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x14120a}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x4237e2(){['id']=_0x4aeefb();[_0x352f89(0xa3)];[_0x352f89(0xc8)]=new Map();[_0x352f89(0x9e)]=[];[_0x352f89(0xc9)];[_0x352f89(0xb2)];[_0x352f89(0xbd)];[_0x352f89(0xec)];[_0x352f89(0xd9)];[_0x352f89(0xd5)]=null;[_0x352f89(0xde)];constructor(_0x2ae589,_0x262cc0,_0x84e072,_0x4710b3,_0x3e0383){const _0x36c64b=_0x352f89;super(),this[_0x36c64b(0xc9)]=_0x2ae589,this[_0x36c64b(0xb2)]=_0x262cc0,this[_0x36c64b(0xbd)]=_0x84e072,this[_0x36c64b(0xec)]=_0x4710b3,this[_0x36c64b(0xd9)]=_0x3e0383,this['on'](_0x36c64b(0xba),(_0x583da4,_0x2e3ca9,_0x210fde)=>{const _0x363e87=_0x36c64b;this[_0x363e87(0xb3)](_0x363e87(0xcd),{'status':_0x210fde,'run':this,'error':this[_0x363e87(0xde)]});}),this[_0x36c64b(0xa5)](_0x36c64b(0xbc),_0x36c64b(0x9f));}get[_0x352f89(0xef)](){const _0x341cea=_0x352f89;return this[_0x341cea(0xc9)];}get[_0x352f89(0xee)](){const _0xa8e4fe=_0x352f89;return this[_0xa8e4fe(0xc8)][_0xa8e4fe(0x9a)];}get[_0x352f89(0xb6)](){const _0x439213=_0x352f89;return this[_0x439213(0xb2)][_0x439213(0xb6)];}get[_0x352f89(0x93)](){return'';}get[_0x352f89(0xad)](){const _0x1a8ab9=_0x352f89;return this[_0x1a8ab9(0xb2)]['id'];}get[_0x352f89(0xc6)](){const _0x278c45=_0x352f89;return!this[_0x278c45(0x9e)][_0x278c45(0xcb)](_0x33718e=>_0x278c45(0xcf)===_0x33718e[_0x278c45(0xbc)]);}get[_0x352f89(0x95)](){const _0x287ea5=_0x352f89;return this[_0x287ea5(0xde)];}async[_0x352f89(0xbe)](){const _0x2f3ff0=_0x352f89;this[_0x2f3ff0(0xbc)]=_0x2f3ff0(0xed),this[_0x2f3ff0(0xde)]=void 0x0;try{this[_0x2f3ff0(0xd5)]=this[_0x2f3ff0(0xb7)]();const _0x2550a2=await this[_0x2f3ff0(0xd5)][_0x2f3ff0(0xd4)]();this[_0x2f3ff0(0xbc)]=_0x2f3ff0(0xc2);for await(const _0x1133c4 of _0x2550a2)_0x2f3ff0(0xa8)!==_0x1133c4[_0x2f3ff0(0xc2)][_0x2f3ff0(0xd6)]&&(_0x2f3ff0(0x98)!==_0x1133c4[_0x2f3ff0(0xc2)][_0x2f3ff0(0xd6)]?_0x2f3ff0(0xaf)!==_0x1133c4[_0x2f3ff0(0xce)]?this[_0x2f3ff0(0xaa)](_0x1133c4[_0x2f3ff0(0xc2)][_0x2f3ff0(0xa2)],_0x1133c4[_0x2f3ff0(0xc2)][_0x2f3ff0(0xf0)]):this[_0x2f3ff0(0xa3)]=_0x1133c4[_0x2f3ff0(0xc2)][_0x2f3ff0(0xa3)]:this[_0x2f3ff0(0xbc)]=_0x2f3ff0(0xa7));_0x2f3ff0(0xa7)!==this[_0x2f3ff0(0xbc)]&&(0x0===this[_0x2f3ff0(0xc8)][_0x2f3ff0(0x9a)]?this[_0x2f3ff0(0xbc)]=_0x2f3ff0(0xa8):this[_0x2f3ff0(0xbc)]=_0x2f3ff0(0xd8));}catch(_0x1f75f9){this[_0x2f3ff0(0xde)]=_0x1f75f9,_0x1f75f9 instanceof Error&&_0x1f75f9[_0x2f3ff0(0xdd)][_0x2f3ff0(0xe3)](_0x2f3ff0(0xe7))?this[_0x2f3ff0(0xbc)]=_0x2f3ff0(0xf1):this[_0x2f3ff0(0xbc)]=_0x2f3ff0(0x9d);}finally{this[_0x2f3ff0(0xd5)]=null;}}async[_0x352f89(0xa6)](){const _0x58ed9a=_0x352f89;this[_0x58ed9a(0xc8)][_0x58ed9a(0xbb)](),this[_0x58ed9a(0x9e)][_0x58ed9a(0xd1)]=0x0,this[_0x58ed9a(0xde)]=void 0x0,await this[_0x58ed9a(0xbe)]();}[_0x352f89(0xea)](_0x2f8d17,_0x573a2d){const _0x12fa53=_0x352f89,_0x3189cc=this[_0x12fa53(0xc8)][_0x12fa53(0xeb)](_0x2f8d17);if(!_0x3189cc)return;const _0x55dde1=[];_0x573a2d[_0x12fa53(0xe9)]((_0x38ae81,_0x7e8be4)=>{const _0x5481ae=_0x12fa53,_0x1a9b3a=new _0x14120a(_0x3189cc['id']+'-'+_0x7e8be4,_0x38ae81,_0x3189cc);_0x1a9b3a['on'](_0x5481ae(0xba),()=>{const _0x5ad035=_0x5481ae;this[_0x5ad035(0xb3)](_0x5ad035(0xb8),{'change':_0x1a9b3a,'status':_0x1a9b3a[_0x5ad035(0xbc)]});}),_0x1a9b3a['on'](_0x5481ae(0xc4),()=>{const _0x36a259=_0x5481ae;_0x1a9b3a[_0x36a259(0xb9)]?this[_0x36a259(0xb3)](_0x36a259(0xf2),{'change':_0x1a9b3a}):this[_0x36a259(0xb3)](_0x36a259(0xe6),{'change':_0x1a9b3a});}),this[_0x5481ae(0x9e)][_0x5481ae(0xd3)](_0x1a9b3a),_0x55dde1[_0x5481ae(0xd3)](_0x1a9b3a);}),this[_0x12fa53(0xb3)](_0x12fa53(0xc7),{'changes':_0x55dde1,'result':_0x3189cc,'source':this});}[_0x352f89(0xb5)](){const _0x55b0a2=_0x352f89;this[_0x55b0a2(0xd5)]&&(this[_0x55b0a2(0xd5)][_0x55b0a2(0x9c)][_0x55b0a2(0xb5)](),this[_0x55b0a2(0xd5)]=null,this[_0x55b0a2(0xbc)]=_0x55b0a2(0xf1));}[_0x352f89(0xe2)](_0x3a2522){const _0x3bad94=_0x352f89,_0x290434=this[_0x3bad94(0x9e)][_0x3bad94(0x9b)](_0x184167=>_0x184167['id']===_0x3a2522);return!(!_0x290434||_0x3bad94(0xcf)!==_0x290434[_0x3bad94(0xbc)]);}[_0x352f89(0xdc)](){const _0x6e0fdb=_0x352f89;return this[_0x6e0fdb(0x9e)][_0x6e0fdb(0x97)](_0x35635c=>_0x6e0fdb(0xcf)===_0x35635c[_0x6e0fdb(0xbc)]);}[_0x352f89(0xa1)](){const _0x53d2fd=_0x352f89;for(const _0x57428d of this[_0x53d2fd(0x9e)])_0x53d2fd(0xcf)===_0x57428d[_0x53d2fd(0xbc)]&&(_0x57428d[_0x53d2fd(0xbc)]=_0x53d2fd(0xdb));this[_0x53d2fd(0xe0)]();}[_0x352f89(0xdf)](_0x487ce7){const _0x1b005c=_0x352f89,_0x8abb53=this[_0x1b005c(0x9e)][_0x1b005c(0x9b)](_0x31dac5=>_0x31dac5['id']===_0x487ce7);_0x8abb53&&_0x1b005c(0xcf)===_0x8abb53[_0x1b005c(0xbc)]&&(_0x8abb53[_0x1b005c(0xbc)]=_0x1b005c(0xdb)),this[_0x1b005c(0xe0)]();}[_0x352f89(0xca)](_0x1d99da){const _0x51f95b=_0x352f89,_0x34e27f=this[_0x51f95b(0x9e)][_0x51f95b(0x9b)](_0x4669f7=>_0x4669f7['id']===_0x1d99da);_0x34e27f&&_0x51f95b(0xcf)===_0x34e27f[_0x51f95b(0xbc)]&&(_0x34e27f[_0x51f95b(0xbc)]=_0x51f95b(0xc1)),this[_0x51f95b(0xe0)]();}[_0x352f89(0xb1)](_0x17509f){const _0x56cecf=_0x352f89,_0x28ec4b=this[_0x56cecf(0x9e)][_0x56cecf(0x9b)](_0x15545d=>_0x15545d['id']===_0x17509f);_0x28ec4b&&_0x56cecf(0xcf)===_0x28ec4b[_0x56cecf(0xbc)]&&(_0x28ec4b[_0x56cecf(0xbc)]=_0x56cecf(0xb0)),this[_0x56cecf(0xe0)]();}[_0x352f89(0xe5)](_0x1eb8c5){const _0x42b22a=_0x352f89,_0x5347ae=this[_0x42b22a(0x9e)][_0x42b22a(0x9b)](_0x5f4eb2=>_0x5f4eb2['id']===_0x1eb8c5);_0x5347ae&&_0x42b22a(0xb0)===_0x5347ae[_0x42b22a(0xbc)]&&(_0x5347ae[_0x42b22a(0xbc)]=_0x42b22a(0xcf)),this[_0x42b22a(0xe0)]();}[_0x352f89(0xa4)](_0x2afd9a){const _0x4e1998=_0x352f89;this[_0x4e1998(0x9e)][_0x4e1998(0x97)](_0x1383b4=>_0x1383b4[_0x4e1998(0xb9)]&&_0x1383b4['id']!==_0x2afd9a)[_0x4e1998(0xe9)](_0x5c1f65=>{const _0x582ec8=_0x4e1998;_0x5c1f65[_0x582ec8(0xb9)]=!0x1;});const _0x4b7b08=this[_0x4e1998(0x9e)][_0x4e1998(0x9b)](_0x24513f=>_0x24513f['id']===_0x2afd9a);_0x4b7b08&&_0x4e1998(0xcf)===_0x4b7b08[_0x4e1998(0xbc)]&&(_0x4b7b08[_0x4e1998(0xb9)]=!0x0);}[_0x352f89(0xa0)](){const _0x51fddc=_0x352f89;this[_0x51fddc(0x9e)][_0x51fddc(0x97)](_0x2a8d36=>_0x2a8d36[_0x51fddc(0xb9)])[_0x51fddc(0xe9)](_0x27815b=>{const _0x464d74=_0x51fddc;_0x27815b[_0x464d74(0xb9)]=!0x1;});}[_0x352f89(0xab)](){const _0x3feda9=_0x352f89;this[_0x3feda9(0xbc)]=_0x3feda9(0xd8);}async[_0x352f89(0xb4)](_0x12426a){const _0x5436d7=_0x352f89;if(_0x5436d7(0x9f)===this[_0x5436d7(0xbc)]||_0x5436d7(0xed)===this[_0x5436d7(0xbc)]||_0x5436d7(0xc2)===this[_0x5436d7(0xbc)])return;if(!this[_0x5436d7(0xa3)]||0x0===this[_0x5436d7(0x9e)][_0x5436d7(0xd1)])return;let _0x3e8e59;if(_0x12426a){const _0x5d992d=this[_0x5436d7(0x9e)][_0x5436d7(0x9b)](_0x432b76=>_0x432b76['id']===_0x12426a);if(_0x5d992d&&_0x5d992d[_0x5436d7(0xda)])return;_0x5d992d&&(_0x3e8e59=_0x5d992d[_0x5436d7(0xc0)]['id'],_0x5d992d[_0x5436d7(0xda)]=!0x0);}const _0x56b7c6={'positiveCount':this[_0x5436d7(0x9e)][_0x5436d7(0x97)](_0x3640d3=>_0x5436d7(0xdb)===_0x3640d3[_0x5436d7(0xbc)])[_0x5436d7(0xd1)],'totalCount':this[_0x5436d7(0x9e)][_0x5436d7(0xd1)]};this[_0x5436d7(0xae)](_0x56b7c6,this[_0x5436d7(0xa3)],_0x3e8e59);}[_0x352f89(0xaa)](_0x580405,_0x4b361a){const _0x3ae7bc=_0x352f89,_0xccf5da=this[_0x3ae7bc(0xc9)][_0x3ae7bc(0x99)][_0x3ae7bc(0xeb)](_0x580405);if(!_0xccf5da)return;const _0x177ccb=_0xccf5da[_0x3ae7bc(0xd0)]();if(_0x177ccb===_0x4b361a)return;const _0x1ef129=new _0x5c7613({'id':_0x580405,'contentInitial':_0x177ccb,'contentNew':_0x4b361a,'documentVersion':this[_0x3ae7bc(0xc9)][_0x3ae7bc(0xac)]});this[_0x3ae7bc(0xc8)][_0x3ae7bc(0xa5)](_0x1ef129['id'],_0x1ef129),this[_0x3ae7bc(0xb3)](_0x3ae7bc(0xd2),{'result':_0x1ef129,'source':this});}[_0x352f89(0xe0)](){const _0x5f300d=_0x352f89;_0x5f300d(0xcc)===this[_0x5f300d(0xbc)]&&(this[_0x5f300d(0x9e)][_0x5f300d(0x97)](_0x202a61=>_0x5f300d(0xcf)===_0x202a61[_0x5f300d(0xbc)])[_0x5f300d(0xd1)]>0x0&&(this[_0x5f300d(0xbc)]=_0x5f300d(0xd8))),_0x5f300d(0xd8)===this[_0x5f300d(0xbc)]&&(0x0===this[_0x5f300d(0x9e)][_0x5f300d(0x97)](_0x2c1597=>_0x5f300d(0xcf)===_0x2c1597[_0x5f300d(0xbc)])[_0x5f300d(0xd1)]&&(this[_0x5f300d(0xbc)]=_0x5f300d(0xcc)));}}function _0x51b8(){const _0x327f11=['1804276VsqDiY','_addReviewCheckResult','forceReadyState','version','reviewName','_sendRatingRequest','review-metadata','outdated','markChangeAsOutdated','_sourceCheck','fire','sendRating','abort','title','_createApiRequest','reviewCheckResultChangeStatusUpdated','isActivated','change:status','clear','status','_aiConnector','start','859831HoNvtk','parent','rejected','data','4718619ZBrQEc','change:isActivated','9QkEbGe','hasModifications','reviewCheckResultReady','_results','_documentData','markChangeAsRejected','every','finished','reviewCheckRunUpdated','event','pending','getContent','length','reviewCheckResultAdded','push','getStream','_activeRequest','operation','2266110IYheWC','ready','_reviewArgs','isRated','accepted','getActiveChanges','message','_currentError','markChangeAsAccepted','_checkIfFinished','3QjkOJg','isChangeActive','includes','14890OyedqJ','markChangeAsPending','reviewCheckResultDeactivated','ai-request-aborted','12526610dGfbKg','forEach','addResultChanges','get','_reviewParams','loading','processedResultsCount','documentData','textDelta','aborted','reviewCheckResultActivated','subTitle','114048AvdFNz','currentError','24SUcMpr','filter','error','elements','size','find','abortController','error-general','_changes','initialized','deactivateChange','markAllChangesAsAccepted','dataId','callId','activateChange','set','restart','error-chunk','unmodified'];_0x51b8=function(){return _0x327f11;};return _0x51b8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x126e(_0xbbdba3,_0x495518){var _0x18b108=_0x18b1();return _0x126e=function(_0x126e7d,_0x4c877a){_0x126e7d=_0x126e7d-0xd2;var _0x19cfef=_0x18b108[_0x126e7d];return _0x19cfef;},_0x126e(_0xbbdba3,_0x495518);}var _0xcb26d6=_0x126e;(function(_0x4c7175,_0x2a4ff6){var _0x4d536e=_0x126e,_0x2846cf=_0x4c7175();while(!![]){try{var _0x4234f2=-parseInt(_0x4d536e(0xe0))/0x1+-parseInt(_0x4d536e(0xd3))/0x2+parseInt(_0x4d536e(0xdb))/0x3+parseInt(_0x4d536e(0xd4))/0x4+parseInt(_0x4d536e(0xdf))/0x5*(-parseInt(_0x4d536e(0xd7))/0x6)+-parseInt(_0x4d536e(0xd8))/0x7+parseInt(_0x4d536e(0xe2))/0x8*(parseInt(_0x4d536e(0xd5))/0x9);if(_0x4234f2===_0x2a4ff6)break;else _0x2846cf['push'](_0x2846cf['shift']());}catch(_0x34fb29){_0x2846cf['push'](_0x2846cf['shift']());}}}(_0x18b1,0x235ac));import{AIReviewCheckRun as _0x170344}from'./aireviewcheckrun.js';function _0x18b1(){var _0x11204a=['callCustomReview','974992XWOToz','upsertCustomAIReviewRating','_aiConnector','_model','349200aaYRIW','256076CvjQVa','27STrlDG','subTitle','21606HyRKVR','1615425aEkGjA','_createApiRequest','_sendRatingRequest','506874yHokaV','_documentData','_prompt','content','5bhWldu','44811MSHJlu'];_0x18b1=function(){return _0x11204a;};return _0x18b1();}export class AIReviewCustomCheckRun extends _0x170344{[_0xcb26d6(0xdd)];[_0xcb26d6(0xd2)];constructor(_0x5753ae,_0x50e545,_0x132290,_0x16f828,_0x367b50){var _0x376ec1=_0xcb26d6;super(_0x132290,_0x16f828,_0x367b50),this[_0x376ec1(0xdd)]=_0x5753ae,this[_0x376ec1(0xd2)]=_0x50e545;}get[_0xcb26d6(0xd6)](){var _0x50469c=_0xcb26d6;return this[_0x50469c(0xdd)];}[_0xcb26d6(0xd9)](){var _0x3330c1=_0xcb26d6;return this[_0x3330c1(0xe4)][_0x3330c1(0xe1)]({'content':this[_0x3330c1(0xdc)][_0x3330c1(0xde)],'prompt':this[_0x3330c1(0xdd)],'model':this[_0x3330c1(0xd2)]});}[_0xcb26d6(0xda)](_0x178ff6,_0x33fd49,_0x47296a){var _0x11a119=_0xcb26d6;return this[_0x11a119(0xe4)][_0x11a119(0xe3)](_0x33fd49,_0x178ff6,_0x47296a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1f0c(_0x403ddf,_0x433394){const _0x2a65ea=_0x2a65();return _0x1f0c=function(_0x1f0c04,_0x16e4c7){_0x1f0c04=_0x1f0c04-0x1d2;let _0x32985e=_0x2a65ea[_0x1f0c04];return _0x32985e;},_0x1f0c(_0x403ddf,_0x433394);}const _0x457be4=_0x1f0c;(function(_0x1b6b66,_0x4e0af4){const _0xffe53d=_0x1f0c,_0x1cd161=_0x1b6b66();while(!![]){try{const _0x31b0b0=parseInt(_0xffe53d(0x1df))/0x1*(parseInt(_0xffe53d(0x1ed))/0x2)+-parseInt(_0xffe53d(0x1e7))/0x3*(-parseInt(_0xffe53d(0x1eb))/0x4)+parseInt(_0xffe53d(0x1e6))/0x5+parseInt(_0xffe53d(0x1e5))/0x6+parseInt(_0xffe53d(0x1e0))/0x7*(-parseInt(_0xffe53d(0x1e1))/0x8)+parseInt(_0xffe53d(0x1f1))/0x9+-parseInt(_0xffe53d(0x1de))/0xa*(-parseInt(_0xffe53d(0x1d9))/0xb);if(_0x31b0b0===_0x4e0af4)break;else _0x1cd161['push'](_0x1cd161['shift']());}catch(_0x35f676){_0x1cd161['push'](_0x1cd161['shift']());}}}(_0x2a65,0x91f4e));import{AIReviewCheckRun as _0x145c70}from'./aireviewcheckrun.js';function _0x2a65(){const _0x2866ed=['_createApiRequest','_reviewParams','join','10iZjEzy','11bpJJdW','71225wAvyDw','728TxmEJo','callSystemReview','_documentData','push','1668354SSbaKY','1186315AavuQw','3eTUJXF','_composeReviewName','useArgs','_aiConnector','281188fsFihH','length','86042hZZPvy','reviewName','upsertAIReviewRating','_sourceCheck','1086372GGdmdj','options','_sendRatingRequest','content','subTitle','_reviewArgs','label','find','3786255GNLusK','data'];_0x2a65=function(){return _0x2866ed;};return _0x2a65();}export class AIReviewSystemCheckRun extends _0x145c70{get[_0x457be4(0x1d5)](){const _0x31b454=_0x457be4;if(!this[_0x31b454(0x1dc)]||0x0===this[_0x31b454(0x1dc)][_0x31b454(0x1ec)])return'';const _0x5b1d6c=[];if(this[_0x31b454(0x1dc)][_0x31b454(0x1ec)]>0x0&&this[_0x31b454(0x1f0)][_0x31b454(0x1d2)])for(let _0x531f49=0x0;_0x531f49<this[_0x31b454(0x1dc)][_0x31b454(0x1ec)];_0x531f49++){if(!this[_0x31b454(0x1dc)][_0x531f49]||!this[_0x31b454(0x1f0)][_0x31b454(0x1d2)][_0x531f49])continue;const _0x38bd3c=this[_0x31b454(0x1f0)][_0x31b454(0x1d2)][_0x531f49],_0x27a317=_0x38bd3c[_0x31b454(0x1da)]?.[_0x31b454(0x1d8)](_0xdfa2b8=>_0xdfa2b8['id']===this[_0x31b454(0x1dc)][_0x531f49]);_0x27a317&&_0x5b1d6c[_0x31b454(0x1e4)](_0x27a317[_0x31b454(0x1d7)]);}return _0x5b1d6c[_0x31b454(0x1dd)](',\x20');}get[_0x457be4(0x1ee)](){const _0x18751c=_0x457be4;return this[_0x18751c(0x1e8)]();}[_0x457be4(0x1db)](){const _0xeaf9ae=_0x457be4;return this[_0xeaf9ae(0x1ea)][_0xeaf9ae(0x1e2)]({'reviewName':this[_0xeaf9ae(0x1e8)](),'content':this[_0xeaf9ae(0x1e3)][_0xeaf9ae(0x1d4)],'args':this[_0xeaf9ae(0x1d6)]});}[_0x457be4(0x1d3)](_0xad1f8d,_0x27014b,_0x1b787f){const _0x199ca0=_0x457be4;return this[_0x199ca0(0x1ea)][_0x199ca0(0x1ef)](this[_0x199ca0(0x1ee)],_0x27014b,_0xad1f8d,_0x1b787f);}[_0x457be4(0x1e8)](){const _0x3b0df4=_0x457be4;return!this[_0x3b0df4(0x1dc)]||0x0===this[_0x3b0df4(0x1dc)][_0x3b0df4(0x1ec)]||this[_0x3b0df4(0x1f0)][_0x3b0df4(0x1e9)]?this[_0x3b0df4(0x1f0)]['id']:[this[_0x3b0df4(0x1f0)]['id'],...this[_0x3b0df4(0x1dc)]][_0x3b0df4(0x1dd)]('-');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x1a46a9=_0x3801;function _0x3801(_0x9f73fb,_0x3282d9){var _0x4704eb=_0x4704();return _0x3801=function(_0x380155,_0x3c20ad){_0x380155=_0x380155-0x16b;var _0x273560=_0x4704eb[_0x380155];return _0x273560;},_0x3801(_0x9f73fb,_0x3282d9);}(function(_0x434b06,_0xe9bfd6){var _0x3469c4=_0x3801,_0x3359b5=_0x434b06();while(!![]){try{var _0x3cf7ba=-parseInt(_0x3469c4(0x17a))/0x1*(parseInt(_0x3469c4(0x174))/0x2)+parseInt(_0x3469c4(0x17f))/0x3+parseInt(_0x3469c4(0x16c))/0x4+parseInt(_0x3469c4(0x17e))/0x5+parseInt(_0x3469c4(0x172))/0x6+-parseInt(_0x3469c4(0x179))/0x7+-parseInt(_0x3469c4(0x16e))/0x8*(parseInt(_0x3469c4(0x173))/0x9);if(_0x3cf7ba===_0xe9bfd6)break;else _0x3359b5['push'](_0x3359b5['shift']());}catch(_0x5626ee){_0x3359b5['push'](_0x3359b5['shift']());}}}(_0x4704,0x6a2c0));import{TextareaView as _0x521329}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x55e6f4}from'ckeditor5/src/utils.js';export class AIReviewModePromptInputView extends _0x521329{[_0x1a46a9(0x16f)];static [_0x1a46a9(0x17d)]=0x1;static [_0x1a46a9(0x175)]=0xc;constructor(_0x2668e8){var _0x1ee5ca=_0x1a46a9;super(_0x2668e8),this[_0x1ee5ca(0x171)](_0x1ee5ca(0x16b),!0x0),this[_0x1ee5ca(0x16f)]=new _0x55e6f4(),this[_0x1ee5ca(0x17c)]=AIReviewModePromptInputView[_0x1ee5ca(0x17d)],this[_0x1ee5ca(0x181)]=AIReviewModePromptInputView[_0x1ee5ca(0x175)],this[_0x1ee5ca(0x180)]({'attributes':{'id':_0x1ee5ca(0x178),'class':['ck',_0x1ee5ca(0x177)]}});}[_0x1a46a9(0x17b)](){var _0x41d81e=_0x1a46a9;super[_0x41d81e(0x17b)](),this['on'](_0x41d81e(0x183),()=>{var _0x105ad1=_0x41d81e;this[_0x105ad1(0x16b)]=''===this[_0x105ad1(0x16d)][_0x105ad1(0x176)]?.[_0x105ad1(0x170)]();}),this[_0x41d81e(0x16f)][_0x41d81e(0x182)](this[_0x41d81e(0x16d)]);}}function _0x4704(){var _0x19cf0a=['4244709WXfRqH','10FPOdUX','render','minRows','MIN_ROWS','4312410ceftkJ','1585188AwtEaf','extendTemplate','maxRows','listenTo','update','isEmpty','1135404SIHBwf','element','8OoHwdd','keystrokes','trim','set','1703046RdqEIj','6621417owxCrE','36318kwJYXg','MAX_ROWS','value','ck-review-mode__prompt-input','ai-review-mode-prompt-input'];_0x4704=function(){return _0x19cf0a;};return _0x4704();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x421da7=_0xe72a;(function(_0x88ed23,_0x313653){const _0x238b60=_0xe72a,_0x6b05a8=_0x88ed23();while(!![]){try{const _0x599f2f=-parseInt(_0x238b60(0x1d6))/0x1+-parseInt(_0x238b60(0x1d9))/0x2+-parseInt(_0x238b60(0x1de))/0x3*(parseInt(_0x238b60(0x1cf))/0x4)+parseInt(_0x238b60(0x1c9))/0x5+-parseInt(_0x238b60(0x1cb))/0x6+parseInt(_0x238b60(0x1e6))/0x7+parseInt(_0x238b60(0x1ed))/0x8*(parseInt(_0x238b60(0x1c1))/0x9);if(_0x599f2f===_0x313653)break;else _0x6b05a8['push'](_0x6b05a8['shift']());}catch(_0x4c2040){_0x6b05a8['push'](_0x6b05a8['shift']());}}}(_0x334c,0x82391));import{BalloonPanelView as _0x26354c,View as _0x52370e,clickOutsideHandler as _0x121f38}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCheckListItemResultsView as _0x51514d}from'./aireviewmodechecklistitemresultview.js';function _0x334c(){const _0xa8096=['getClientRects','resultItemView','ck-reset','ck-content','arrow_se','_setupClickOutsideHandler','contentDiffed','4313440MHMaic','show','2033664OWEMiX','find','_getBestRectPosition','isVisible','1432DYhmYk','resultResponseView','pin','unpin','acceptChange','_createContentView','locale','950491EBeGWm','showDiffInBalloon','hideBalloon','728052hPbbLS','updateContent','width','showBalloon','from','1260yllIur','deactivateChange','add','hideDiffInBalloon','innerHTML','element','set','ck-ai-review-mode-balloon-panel-suggestion','3053673MFMMtL','render','setTemplate','showDiff','content','changeId','dismissChange','286424bXVkrF','ck-ai-review-mode__suggestion-text','div','fire','hide','extendTemplate','delegate','261YsagEU'];_0x334c=function(){return _0xa8096;};return _0x334c();}import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';function _0xe72a(_0xcef6e3,_0x4f8eef){const _0x334c6c=_0x334c();return _0xe72a=function(_0xe72a16,_0x406671){_0xe72a16=_0xe72a16-0x1bc;let _0x4bf6e0=_0x334c6c[_0xe72a16];return _0x4bf6e0;},_0xe72a(_0xcef6e3,_0x4f8eef);}import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeBalloonSuggestionItemView extends _0x26354c{[_0x421da7(0x1c3)];constructor(_0x1cac7d,_0x3d7685){const _0x3e7a48=_0x421da7;super(_0x1cac7d),this[_0x3e7a48(0x1e4)]({'isVisible':!0x1,'position':_0x3e7a48(0x1c6),'class':null,'top':0x0,'left':0x0}),this[_0x3e7a48(0x1bf)]({'tag':_0x3e7a48(0x1bc),'attributes':{'class':[_0x3e7a48(0x1c4)],'tabindex':'-1'}}),this[_0x3e7a48(0x1ea)][_0x3e7a48(0x1e0)](this[_0x3e7a48(0x1d4)]()),_0x3d7685[_0x3e7a48(0x1e0)](this);}[_0x421da7(0x1e7)](){const _0x1bed0a=_0x421da7;super[_0x1bed0a(0x1e7)](),this[_0x1bed0a(0x1c7)]();}[_0x421da7(0x1da)](_0x264464){const _0x5f4462=_0x421da7;this[_0x5f4462(0x1c3)][_0x5f4462(0x1eb)]=_0x264464['id'],this[_0x5f4462(0x1c3)][_0x5f4462(0x1d0)][_0x5f4462(0x1e3)][_0x5f4462(0x1e2)]=_0x264464[_0x5f4462(0x1c8)];}[_0x421da7(0x1dc)](_0xabf749,_0x4c9c60){const _0x1c5375=_0x421da7;this[_0x1c5375(0x1da)](_0xabf749),this[_0x1c5375(0x1ca)](),this[_0x1c5375(0x1d1)]({'target':()=>this[_0x1c5375(0x1cd)](_0x4c9c60)});}[_0x421da7(0x1d8)](){const _0x55fed3=_0x421da7;this[_0x55fed3(0x1be)](),this[_0x55fed3(0x1d2)]();}[_0x421da7(0x1e1)](){const _0x5df706=_0x421da7;this[_0x5df706(0x1c3)][_0x5df706(0x1e9)]=!0x1;}[_0x421da7(0x1d7)](){const _0x5e8690=_0x421da7;this[_0x5e8690(0x1c3)][_0x5e8690(0x1e9)]=!0x0;}[_0x421da7(0x1df)](){const _0x20af64=_0x421da7;this[_0x20af64(0x1bd)](_0x20af64(0x1df));}[_0x421da7(0x1c7)](){const _0x203b3d=_0x421da7;_0x121f38({'emitter':this,'activator':()=>this[_0x203b3d(0x1ce)],'contextElements':[this[_0x203b3d(0x1e3)]],'callback':()=>{const _0x4f51e6=_0x203b3d;this[_0x4f51e6(0x1d8)](),this[_0x4f51e6(0x1df)]();}});}[_0x421da7(0x1d4)](){const _0x70a5ab=_0x421da7,_0x5cd499=new _0x52370e();return this[_0x70a5ab(0x1c3)]=new _0x51514d(this[_0x70a5ab(0x1d5)],''),this[_0x70a5ab(0x1c3)][_0x70a5ab(0x1d0)][_0x70a5ab(0x1bf)]({'attributes':{'class':[_0x70a5ab(0x1c5)]}}),this[_0x70a5ab(0x1c3)][_0x70a5ab(0x1c0)](_0x70a5ab(0x1d3),_0x70a5ab(0x1ec))['to'](this),_0x5cd499[_0x70a5ab(0x1e8)]({'tag':_0x70a5ab(0x1bc),'attributes':{'class':[_0x70a5ab(0x1c4),_0x70a5ab(0x1e5)]},'children':[{'tag':'p','attributes':{'class':[_0x70a5ab(0x1ee)]},'children':[this[_0x70a5ab(0x1c3)]]}]}),_0x5cd499;}[_0x421da7(0x1cd)](_0x31dc28){const _0x27262f=_0x421da7,_0x320f42=Array[_0x27262f(0x1dd)](_0x31dc28[_0x27262f(0x1c2)]());return _0x320f42[_0x27262f(0x1cc)](_0x17485c=>_0x17485c[_0x27262f(0x1db)]>0x0)||_0x320f42[0x0];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23a8c6=_0x1630;(function(_0x1b3594,_0x26392e){const _0x5e51d3=_0x1630,_0x201ae3=_0x1b3594();while(!![]){try{const _0x5723e5=parseInt(_0x5e51d3(0x122))/0x1+parseInt(_0x5e51d3(0x113))/0x2*(parseInt(_0x5e51d3(0x12d))/0x3)+-parseInt(_0x5e51d3(0x12c))/0x4*(parseInt(_0x5e51d3(0x100))/0x5)+parseInt(_0x5e51d3(0x108))/0x6+parseInt(_0x5e51d3(0xf8))/0x7*(parseInt(_0x5e51d3(0x109))/0x8)+parseInt(_0x5e51d3(0x105))/0x9*(parseInt(_0x5e51d3(0x103))/0xa)+parseInt(_0x5e51d3(0xff))/0xb*(-parseInt(_0x5e51d3(0x121))/0xc);if(_0x5723e5===_0x26392e)break;else _0x201ae3['push'](_0x201ae3['shift']());}catch(_0x10cee2){_0x201ae3['push'](_0x201ae3['shift']());}}}(_0x5892,0xd3fe2));function _0x5892(){const _0x8b6e09=['_createStatusButtonView','setItemAsInactive','execute','resultResponseView','541933dpuASS','setItemAsActive','ck-ai-review-mode__check-run-result-dismiss-button','statusButtonView','acceptChange','_createDismissButtonView','toUpperCase','11YALlBb','5815nmNzmo','ck-ai-button-tertiary-filled','showDiff','266870MegXoQ','ck-ai-review-mode__check-run-result-footer','270MdcYKI','dismissButtonView','ck-content','5933502BXGISC','128fARySu','ck-ai-review-mode__check-run-result-accept-button','AI_REVIEW_MODE_DISMISS_CHANGE','_createResultResponseView','disabled','extendTemplate','fire','ck-content-direct-excluded','ACCEPTED','div','16462DFNEMz','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','bindTemplate','label','ck-ai-review-mode__check-run-result','click','activateChange','bind','set','infoButtonView','menuitemcheckbox','dismissChange','ck-ai-review-mode__check-run-result-status-button','icon','53740008OLWEnv','1638159QfvskQ','REJECTED','changeId','ck-hidden','status','ck-ai-review-mode__check-run-result-action-buttons','AI_REVIEW_MODE_CHECK_STATUS_','AI_REVIEW_MODE_ACCEPT_CHANGE','_createAcceptButtonView','ck-ai-review-mode__check-run-result_active','2388gzezSs','501TcqGsh','isOn','acceptButtonView','pending','isActive','locale','AI_REVIEW_MODE_LEARN_MORE','stopPropagation','ck-ai-review-mode__check-run-result-response','isInfoToggleOn','setTemplate','_createInfoButtonView','ck-ai-button-secondary'];_0x5892=function(){return _0x8b6e09;};return _0x5892();}import{View as _0x2cc346,ButtonView as _0x186878}from'ckeditor5/src/ui.js';function _0x1630(_0x23cc00,_0x48f1af){const _0x589237=_0x5892();return _0x1630=function(_0x1630df,_0xf2fcf3){_0x1630df=_0x1630df-0xf0;let _0x272f5b=_0x589237[_0x1630df];return _0x272f5b;},_0x1630(_0x23cc00,_0x48f1af);}import{IconInfo as _0x2268dc,IconCheck as _0xbdfeec,IconCancel as _0xbc152a,IconOutdated as _0x2a5647}from'ckeditor5/src/icons.js';import{getTranslation as _0x553c7b}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x2cc346{[_0x23a8c6(0xf7)];[_0x23a8c6(0x12f)];[_0x23a8c6(0x106)];[_0x23a8c6(0x11c)];[_0x23a8c6(0xfb)];constructor(_0x828b5b,_0xc16a40){const _0x4d3d2e=_0x23a8c6;super(_0x828b5b),this['id']=_0xc16a40,this[_0x4d3d2e(0x11b)](_0x4d3d2e(0x126),_0x4d3d2e(0x130)),this[_0x4d3d2e(0x11b)](_0x4d3d2e(0x124),_0xc16a40),this[_0x4d3d2e(0xf7)]=this[_0x4d3d2e(0x10c)](),this[_0x4d3d2e(0x12f)]=this[_0x4d3d2e(0x12a)](),this[_0x4d3d2e(0x106)]=this[_0x4d3d2e(0xfd)](),this[_0x4d3d2e(0x11c)]=this[_0x4d3d2e(0xf2)](),this[_0x4d3d2e(0xfb)]=this[_0x4d3d2e(0xf4)](),this[_0x4d3d2e(0x11b)](_0x4d3d2e(0xf0),!0x1),this[_0x4d3d2e(0x11b)](_0x4d3d2e(0x131),!0x1),this[_0x4d3d2e(0x11b)](_0x4d3d2e(0x102),!0x0),this[_0x4d3d2e(0xf1)]({'tag':_0x4d3d2e(0x112),'attributes':{'class':[_0x4d3d2e(0x117),this[_0x4d3d2e(0x115)]['if'](_0x4d3d2e(0x131),_0x4d3d2e(0x12b))]},'on':{'click':this[_0x4d3d2e(0x115)]['to'](_0x4d3d2e(0x118))},'children':[this[_0x4d3d2e(0xf7)],{'tag':_0x4d3d2e(0x112),'attributes':{'class':[_0x4d3d2e(0x104)]},'children':[{'tag':_0x4d3d2e(0x112),'attributes':{'class':[_0x4d3d2e(0x127)]},'children':[this[_0x4d3d2e(0x12f)],this[_0x4d3d2e(0x106)],this[_0x4d3d2e(0xfb)]]},this[_0x4d3d2e(0x11c)]]}]}),this['on'](_0x4d3d2e(0x118),()=>{const _0x44f455=_0x4d3d2e;this[_0x44f455(0x10f)](_0x44f455(0x119),{'id':_0xc16a40,'source':this});});}[_0x23a8c6(0xf9)](){const _0x4a721c=_0x23a8c6;this[_0x4a721c(0x131)]=!0x0;}[_0x23a8c6(0xf5)](){const _0x3cab06=_0x23a8c6;this[_0x3cab06(0x131)]=!0x1;}[_0x23a8c6(0x10c)](){const _0x5098f2=_0x23a8c6,_0x135f5e=new _0x2cc346(this[_0x5098f2(0x132)]);return _0x135f5e[_0x5098f2(0xf1)]({'tag':_0x5098f2(0x112),'attributes':{'class':['ck',_0x5098f2(0x107),_0x5098f2(0x110),_0x5098f2(0x135),this[_0x5098f2(0x115)]['if'](_0x5098f2(0x102),_0x5098f2(0x125),_0x23b7e9=>!_0x23b7e9)]}}),_0x135f5e;}[_0x23a8c6(0x12a)](){const _0x3edb33=_0x23a8c6,_0x4173dd=new _0x186878(this[_0x3edb33(0x132)]);return _0x4173dd[_0x3edb33(0x11b)]({'label':_0x553c7b(this[_0x3edb33(0x132)],_0x3edb33(0x129)),'withText':!0x0}),_0x4173dd[_0x3edb33(0x10e)]({'on':{'click':this[_0x3edb33(0x115)]['to'](_0xdec0ac=>{const _0x399533=_0x3edb33;this[_0x399533(0x10f)](_0x399533(0xfc),{'id':this[_0x399533(0x124)]}),_0xdec0ac[_0x399533(0x134)]();})},'attributes':{'class':[_0x3edb33(0xf3),_0x3edb33(0x10a),this[_0x3edb33(0x115)]['if'](_0x3edb33(0x126),_0x3edb33(0x125),_0x5522ab=>_0x3edb33(0x130)!==_0x5522ab)]}}),_0x4173dd;}[_0x23a8c6(0xfd)](){const _0x550c05=_0x23a8c6,_0x44908a=new _0x186878(this[_0x550c05(0x132)]);return _0x44908a[_0x550c05(0x11b)]({'label':_0x553c7b(this[_0x550c05(0x132)],_0x550c05(0x10b)),'withText':!0x0}),_0x44908a[_0x550c05(0x10e)]({'on':{'click':this[_0x550c05(0x115)]['to'](_0x2f1b23=>{const _0x328ebf=_0x550c05;this[_0x328ebf(0x10f)](_0x328ebf(0x11e),{'id':this[_0x328ebf(0x124)]}),_0x2f1b23[_0x328ebf(0x134)]();})},'attributes':{'class':[_0x550c05(0x101),_0x550c05(0xfa),this[_0x550c05(0x115)]['if'](_0x550c05(0x126),_0x550c05(0x125),_0x50868e=>_0x550c05(0x130)!==_0x50868e)]}}),_0x44908a;}[_0x23a8c6(0xf2)](){const _0x45a2f9=_0x23a8c6,_0x5e0304=new _0x186878(this[_0x45a2f9(0x132)]);return _0x5e0304[_0x45a2f9(0x11b)]({'label':_0x553c7b(this[_0x45a2f9(0x132)],_0x45a2f9(0x133)),'icon':_0x2268dc,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x45a2f9(0x11d),'class':_0x45a2f9(0x114)}),_0x5e0304[_0x45a2f9(0x11a)](_0x45a2f9(0x12e))['to'](this,_0x45a2f9(0xf0),_0x2cde22=>_0x2cde22),_0x5e0304['on'](_0x45a2f9(0xf6),()=>{const _0x301878=_0x45a2f9;this[_0x301878(0xf0)]=!this[_0x301878(0xf0)];}),_0x5e0304;}[_0x23a8c6(0xf4)](){const _0x292b16=_0x23a8c6,_0x1fe173=new _0x186878(this[_0x292b16(0x132)]);return _0x1fe173[_0x292b16(0x11b)]({'withText':!0x0,'isEnabled':!0x1}),_0x1fe173[_0x292b16(0x11a)](_0x292b16(0x116))['to'](this,_0x292b16(0x126),_0xad61ad=>_0x553c7b(this[_0x292b16(0x132)],_0x292b16(0x128)+_0xad61ad[_0x292b16(0xfe)]())),_0x1fe173[_0x292b16(0x11a)](_0x292b16(0x120))['to'](this,_0x292b16(0x126),_0x4f052a=>_0x292b16(0x111)===_0x4f052a[_0x292b16(0xfe)]()?_0xbdfeec:_0x292b16(0x123)===_0x4f052a[_0x292b16(0xfe)]()?_0xbc152a:_0x2a5647),_0x1fe173[_0x292b16(0x10e)]({'attributes':{'class':[_0x292b16(0xf3),_0x292b16(0x11f),this[_0x292b16(0x115)]['if'](_0x292b16(0x126),_0x292b16(0x125),_0x23c5f3=>_0x292b16(0x130)===_0x23c5f3)],'disabled':_0x292b16(0x10d)}}),_0x1fe173;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x52d2ee,KeystrokeHandler as _0x1338c1,FocusTracker as ts}from'ckeditor5/src/utils.js';import{View as _0x3dea10,ViewCollection as _0x1479bb,ButtonView as _0x15e9a8,FormRowView as _0x51f93f,createDropdown as _0x160f31,addListToDropdown as _0x38f7e5,UIModel as _0x3e9d9b,ButtonLabelView as _0xb4af2b,LabeledFieldView as _0x4362a3,FocusCycler as $t}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x4020c7}from'./aireviemodepromptinputview.js';import{getTranslation as _0x44f6f4}from'../../aicore/utils/common-translations.js';import{AIModels as _0x3a067c}from'../../aicore/model/aimodels.js';export class AIReviewModeCustomCheckView extends _0x3dea10{['focusTracker']=new ts();['keystrokes']=new _0x1338c1();['focusCycler'];['_focusables']=new _0x1479bb();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x311e68,_0x1dc27e){super(_0x311e68),this['_check']=_0x1dc27e,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x1dc27e['models']&&_0x1dc27e['models']['length']>0x0?_0x1dc27e['models'][0x0]['id']:'',this['_defaultLabel']=_0x1dc27e['models']&&_0x1dc27e['models']['length']>0x0?_0x1dc27e['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x4362a3(this['locale'],()=>new _0x4020c7(_0x311e68)),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 _0x52d2ee(),this['_setModelList'](),_0x38f7e5(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 _0x51f93f(this['locale'],{'children':[this['promptInputView']]}),new _0x51f93f(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x436607,_0x211538)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x211538()):_0x211538();}),this['focusCycler']=new $t({'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'](_0x49537f=>{this['_focusables']['add'](_0x49537f),this['focusTracker']['add'](_0x49537f['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 _0x1b0887 of this['_getFormValidators']()){const _0xe31ff3=_0x1b0887();if(_0xe31ff3)return this['promptInputView']['errorText']=_0xe31ff3,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x44f6f4(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x2351ee=new _0x15e9a8(this['locale']),t=this['locale']['t'];return _0x2351ee['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x2351ee['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x2351ee;}['_createCancelButtonView'](){const _0x7639e0=new _0x15e9a8(this['locale']),t=this['locale']['t'];return _0x7639e0['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x7639e0['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x4b3473=>{_0x4b3473['stopPropagation']();})}}),_0x7639e0['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x7639e0;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x3fcc24=this['_check']['models'];if(this['resetToDefault'](),_0x3fcc24?.['length']){const _0x2524ee=_0x3a067c['getLocalized'](this['locale'],_0x3fcc24);for(const _0x23b61d of _0x2524ee){const _0x310479=new _0x3e9d9b({'label':_0x23b61d['name'],'withText':!0x0,'role':'menuitemradio','id':_0x23b61d['id'],'model':_0x23b61d});_0x310479['bind']('isOn')['to'](this,'modelId',_0x4d2624=>_0x4d2624===_0x23b61d['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x310479,'labelView':new Ws(this['locale'],_0x23b61d)});}}}['_createModelSelectionDropdown'](){const _0x584b0e=_0x160f31(this['locale']);return _0x584b0e['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x584b0e['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x584b0e,'execute',_0x5c3c9b=>{this['modelId']=_0x5c3c9b['source']['model']['id'],_0x584b0e['buttonView']['label']=_0x5c3c9b['source']['label'];}),_0x584b0e;}['_createActionsFooterView'](){const _0xeb5e66=new _0x3dea10(this['locale']);return _0xeb5e66['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']]}]}),_0xeb5e66;}}class Ws extends _0xb4af2b{constructor(_0x88ebe3,_0x3fbec6){super();const _0x52e470=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x52e470['to']('style'),'id':_0x52e470['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x52e470['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x3fbec6['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4cd99d,_0x2f78b7){var _0x3149c8=_0x5b1c,_0xdfaefc=_0x4cd99d();while(!![]){try{var _0x2d1ac7=parseInt(_0x3149c8(0xee))/0x1+-parseInt(_0x3149c8(0xf3))/0x2*(parseInt(_0x3149c8(0xfc))/0x3)+-parseInt(_0x3149c8(0xf4))/0x4+parseInt(_0x3149c8(0xed))/0x5+-parseInt(_0x3149c8(0xef))/0x6*(-parseInt(_0x3149c8(0xf0))/0x7)+-parseInt(_0x3149c8(0xf1))/0x8+parseInt(_0x3149c8(0xfb))/0x9*(-parseInt(_0x3149c8(0xf7))/0xa);if(_0x2d1ac7===_0x2f78b7)break;else _0xdfaefc['push'](_0xdfaefc['shift']());}catch(_0x2f0ef7){_0xdfaefc['push'](_0xdfaefc['shift']());}}}(_0x3319,0x50f80));import{ButtonView as _0x2e6694}from'ckeditor5/src/ui.js';function _0x5b1c(_0x430fd0,_0x18e4dd){var _0x33194d=_0x3319();return _0x5b1c=function(_0x5b1c69,_0x1dba42){_0x5b1c69=_0x5b1c69-0xec;var _0xbfc385=_0x33194d[_0x5b1c69];return _0xbfc385;},_0x5b1c(_0x430fd0,_0x18e4dd);}import{getTranslation as _0x31ff11}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';function _0x3319(){var _0x16a8ba=['execute','5446oniGQM','756180IRvvpw','set','fire','3029590WoJdgw','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','ck-ai-button-primary','finishReview','18jJFSSh','18krUPtW','locale','2237170McMsZA','631175KJFIhR','12vmBIQA','1293376CVxCMW','2441568lqBVLk'];_0x3319=function(){return _0x16a8ba;};return _0x3319();}export class AIReviewModeFinishReviewButtonView extends _0x2e6694{constructor(_0x48d23f){var _0x55762c=_0x5b1c;super(_0x48d23f),this[_0x55762c(0xf5)]({'label':_0x31ff11(this[_0x55762c(0xec)],_0x55762c(0xf8)),'withText':!0x0,'class':_0x55762c(0xf9)}),this['on'](_0x55762c(0xf2),()=>{var _0x13b083=_0x55762c;this[_0x13b083(0xf6)](_0x13b083(0xfa));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57186f=_0x1b5a;(function(_0x30e6a2,_0x512bbe){const _0x3d8cb7=_0x1b5a,_0x223a20=_0x30e6a2();while(!![]){try{const _0x5582da=parseInt(_0x3d8cb7(0x1f8))/0x1*(-parseInt(_0x3d8cb7(0x1f5))/0x2)+-parseInt(_0x3d8cb7(0x202))/0x3+-parseInt(_0x3d8cb7(0x210))/0x4*(parseInt(_0x3d8cb7(0x1fb))/0x5)+parseInt(_0x3d8cb7(0x200))/0x6*(parseInt(_0x3d8cb7(0x20b))/0x7)+parseInt(_0x3d8cb7(0x1ff))/0x8*(-parseInt(_0x3d8cb7(0x1fa))/0x9)+-parseInt(_0x3d8cb7(0x1f4))/0xa+parseInt(_0x3d8cb7(0x208))/0xb*(parseInt(_0x3d8cb7(0x20e))/0xc);if(_0x5582da===_0x512bbe)break;else _0x223a20['push'](_0x223a20['shift']());}catch(_0x1e06fd){_0x223a20['push'](_0x223a20['shift']());}}}(_0xa1ac,0x315ea));import{ListItemView as _0x266c01,ViewCollection as _0x120834}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCommandListItemView as _0x51511d}from'./aireviewmodereviewcommandlistitemview.js';function _0x1b5a(_0x6c7eb0,_0x3bb231){const _0xa1ac9d=_0xa1ac();return _0x1b5a=function(_0x1b5aa3,_0x5b2e5b){_0x1b5aa3=_0x1b5aa3-0x1f3;let _0x36b435=_0xa1ac9d[_0x1b5aa3];return _0x36b435;},_0x1b5a(_0x6c7eb0,_0x3bb231);}import'../../../theme/aireviewmode/aireviewmode-check-list.css';function _0xa1ac(){const _0x2cda80=['add','locale','161400HDozzS','2034156DwnmOV','resetToDefault','600585JCKfAM','div','ck-hidden','entries','length','resetAllParameterizedChecks','11lTCzZI','isVisible','ck-ai-review-mode__check-list','7wstYTm','setChecks','bindTemplate','6106488bJmerK','_checkViews','4JwYKeN','setTemplate','617820rDTuJA','4bsDRIS','clear','runReviewCheck','7109KdSEix','delegate','45FFfdTi','1343060HtCvmS','hasChecks'];_0xa1ac=function(){return _0x2cda80;};return _0xa1ac();}export class AIReviewModeReviewCheckListView extends _0x266c01{[_0x57186f(0x20f)];constructor(_0x24028c){const _0x148cd1=_0x57186f;super(_0x24028c),this[_0x148cd1(0x20f)]=new _0x120834();const _0x54b9ef=this[_0x148cd1(0x20d)];this[_0x148cd1(0x1f3)]({'tag':_0x148cd1(0x203),'attributes':{'class':[_0x148cd1(0x20a),_0x54b9ef['if'](_0x148cd1(0x209),_0x148cd1(0x204),_0x3ef6aa=>!_0x3ef6aa)]},'children':this[_0x148cd1(0x20f)]});}[_0x57186f(0x20c)](_0xbed0be){const _0x4961e0=_0x57186f;this[_0x4961e0(0x20f)][_0x4961e0(0x1f6)]();for(const [_0x358c5e,_0x552117]of _0xbed0be[_0x4961e0(0x205)]()){const _0xe27f88=new _0x51511d(this[_0x4961e0(0x1fe)],_0x552117,_0x358c5e);_0xe27f88[_0x4961e0(0x1f9)](_0x4961e0(0x1f7))['to'](this),this[_0x4961e0(0x20f)][_0x4961e0(0x1fd)](_0xe27f88);}}[_0x57186f(0x1fc)](){const _0xdef9aa=_0x57186f;return this[_0xdef9aa(0x20f)][_0xdef9aa(0x206)]>0x0;}[_0x57186f(0x207)](){const _0x2e61c2=_0x57186f;for(const _0x27572f of this[_0x2e61c2(0x20f)])_0x27572f instanceof _0x51511d&&_0x27572f[_0x2e61c2(0x201)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as _0x3bd611,View as st,ViewCollection as it,ButtonView as tt}from'ckeditor5/src/ui.js';import{IconStop as _0x185f98,IconEye as _0x4fe080,IconEyeCrossedOut as _0xaf21e9}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x5161bf}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x567350}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x5601ac,SKELETON_DEFINITIONS as _0x6f3d03}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x164499}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x1b5ad1}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x271c7d}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x3bd611{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x533722){super(_0x533722),this['_resultViews']=new it(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x164499(_0x533722),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1);const _0x52fd82=this['_createCombinedSkeletonLoader'](),_0x3204d2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x3204d2['if']('isVisible','ck-hidden',_0x3b4c24=>!_0x3b4c24)]},'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',_0x1908f9=>_0x1908f9)]},'children':this['_resultViews']},_0x52fd82]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x47074a){const _0x111dd3=new _0x5161bf(this['locale'],_0x47074a['id']);_0x111dd3['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x111dd3),_0x111dd3['resultResponseView']['element']['innerHTML']=_0x47074a['contentDiffed'];}['hideResult'](_0xbad207,_0x410850){if('pending'===_0x410850)return;const _0x4137a9=this['_resultViews']['find'](_0x1e8c38=>_0x1e8c38['id']===_0xbad207);_0x4137a9&&(_0x4137a9['status']=_0x410850,_0x4137a9['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x5d8dde,_0x5b2968){if('pending'!==_0x5b2968)return;const _0x2c7633=this['_resultViews']['find'](_0x16d947=>_0x16d947['id']===_0x5d8dde);_0x2c7633&&(_0x2c7633['status']=_0x5b2968,_0x2c7633['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x3e9975,_0x59bd7d){this['headerTitle']=_0x3e9975,this['headerSubtitle']=_0x59bd7d||'';}['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 _0x5601ac(this['locale'],_0x6f3d03['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0xc39520=new st(this['locale']),_0x32117a=[];for(let _0x5f2323=0x0;_0x5f2323<0x10;_0x5f2323++){const _0x4d25d0=this['_createSkeletonLoader']();_0x4d25d0['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x32117a['push'](_0x4d25d0);}return _0xc39520['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x37dd3b=>!_0x37dd3b)]},'children':_0x32117a}),_0xc39520;}['_createErrorView'](){const _0x14b989=new st(this['locale']),_0x4c4e25=new tt(this['locale']),t=this['locale']['t'];return _0x14b989['delegate']('retryReview')['to'](this),_0x4c4e25['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x4c4e25['on']('execute',()=>{this['fire']('retryReview');}),_0x14b989['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0xdc4af9=>!_0xdc4af9),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x25c8de=>'chunk'===_0x25c8de)]},'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',_0x17c547=>'chunk'===_0x17c547)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x4a2f61=>'general'!==_0x4a2f61)]},'children':[{'text':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x52928c=>'chunk'!==_0x52928c)]},'children':[{'text':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x4c4e25]}),_0x14b989;}['_createCancelButtonView'](){const _0x5693d0=new tt(this['locale']);return _0x5693d0['set']({'label':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x185f98}),_0x5693d0['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4949ce=>_0x4949ce),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x550ab9=>_0x550ab9)]}}),_0x5693d0['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x5693d0;}['_createToggleDiffButtonView'](){const _0x5cf27d=new tt(this['locale']);_0x5cf27d['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x5cf27d['bind']('isEnabled')['to'](this,'isError',_0xeb9ed1=>!_0xeb9ed1),_0x5cf27d['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3ab2df=>!_0x3ab2df),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x405f42=>_0x405f42)]}});const _0x33ebd3=_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x1ed706=_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x5cf27d['bind']('isOn')['to'](this,'isToggleDiffOn',_0x1d22f2=>_0x1d22f2),_0x5cf27d['bind']('icon')['to'](this,'isToggleDiffOn',_0x4110cc=>_0x4110cc?_0x4fe080:_0xaf21e9),_0x5cf27d['bind']('label')['to'](this,'isToggleDiffOn',_0x4d4b46=>_0x4d4b46?_0x33ebd3:_0x1ed706),_0x5cf27d['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x5cf27d;}['_createAcceptAllButtonView'](){const _0x177e60=new tt(this['locale']);return _0x177e60['set']({'label':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x177e60['bind']('isEnabled')['to'](this,'isError',_0x36312e=>!_0x36312e),_0x177e60['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x2164f3=>!_0x2164f3),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x20cfd9=>_0x20cfd9)]}}),_0x177e60['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x177e60;}['_createExitReviewButtonView'](){const _0x126b3f=new tt(this['locale']);return _0x126b3f['set']({'label':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x126b3f['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x17c990=>!_0x17c990),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x217cad=>_0x217cad)]}}),_0x126b3f['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x126b3f;}['_createResultHeaderView'](){const _0x1e1508=new st(this['locale']),_0x14a995=this['_createTitleView']();return _0x1e1508['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0x273b69=>_0x273b69)]},'children':[_0x14a995,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x1e1508;}['_createTitleView'](){const _0x2da6fd=new st(this['locale']),_0x2c882d=new _0x271c7d();return _0x2c882d['bind']('isVisible')['to'](this,'isResultReady',_0xbfbdcc=>!_0xbfbdcc),_0x2da6fd['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x2c882d,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3a7773=>_0x3a7773)]},'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')}]}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4c7014=>!_0x4c7014)]},'children':[{'text':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x2da6fd;}['_createFinishReviewButtonView'](){const _0x10579b=new _0x567350(this['locale']);return _0x10579b['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x912dda=>!_0x912dda)]}}),_0x10579b['delegate']('finishReview')['to'](this),_0x10579b;}}
|
|
23
|
+
import{ListItemView as _0x1ef76d,View as _0x32a5fb,ViewCollection as _0x277014,ButtonView as _0x67f6b9}from'ckeditor5/src/ui.js';import{IconStop as _0x834751,IconEye as _0x1279bd,IconEyeCrossedOut as _0x162bd4}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x589922}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x5a7660}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x2cb325,SKELETON_DEFINITIONS as _0xa8a493}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x441955}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x5ce133}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x8f5af0}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x1ef76d{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x38fc70){super(_0x38fc70),this['_resultViews']=new _0x277014(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x441955(_0x38fc70),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1);const _0x3f2cdf=this['_createCombinedSkeletonLoader'](),_0x19a775=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x19a775['if']('isVisible','ck-hidden',_0x5d390e=>!_0x5d390e)]},'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',_0x20b223=>_0x20b223)]},'children':this['_resultViews']},_0x3f2cdf]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x4ff5fd){const _0x259739=new _0x589922(this['locale'],_0x4ff5fd['id']);_0x259739['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x259739),_0x259739['resultResponseView']['element']['innerHTML']=_0x4ff5fd['contentDiffed'];}['hideResult'](_0x27c40e,_0x2a9d5e){if('pending'===_0x2a9d5e)return;const _0x50f9b3=this['_resultViews']['find'](_0x3c563f=>_0x3c563f['id']===_0x27c40e);_0x50f9b3&&(_0x50f9b3['status']=_0x2a9d5e,_0x50f9b3['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x3bc006,_0x86006b){if('pending'!==_0x86006b)return;const _0x1a2fcb=this['_resultViews']['find'](_0x2d10b1=>_0x2d10b1['id']===_0x3bc006);_0x1a2fcb&&(_0x1a2fcb['status']=_0x86006b,_0x1a2fcb['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x335cc9,_0x83118e){this['headerTitle']=_0x335cc9,this['headerSubtitle']=_0x83118e||'';}['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 _0x2cb325(this['locale'],_0xa8a493['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x327cff=new _0x32a5fb(this['locale']),_0x1a3141=[];for(let _0x43e3b3=0x0;_0x43e3b3<0x10;_0x43e3b3++){const _0x898a77=this['_createSkeletonLoader']();_0x898a77['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x1a3141['push'](_0x898a77);}return _0x327cff['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x191ee4=>!_0x191ee4)]},'children':_0x1a3141}),_0x327cff;}['_createErrorView'](){const _0x251952=new _0x32a5fb(this['locale']),_0x6d02ad=new _0x67f6b9(this['locale']),t=this['locale']['t'];return _0x251952['delegate']('retryReview')['to'](this),_0x6d02ad['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x6d02ad['on']('execute',()=>{this['fire']('retryReview');}),_0x251952['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x3abcbd=>!_0x3abcbd),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x566d36=>'chunk'===_0x566d36)]},'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',_0xc1d9c7=>'chunk'===_0xc1d9c7)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x5b14d7=>'general'!==_0x5b14d7)]},'children':[{'text':_0x5ce133(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x2ec86b=>'chunk'!==_0x2ec86b)]},'children':[{'text':_0x5ce133(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x6d02ad]}),_0x251952;}['_createCancelButtonView'](){const _0x3c8a83=new _0x67f6b9(this['locale']);return _0x3c8a83['set']({'label':_0x5ce133(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x834751}),_0x3c8a83['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4d633f=>_0x4d633f),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1c7195=>_0x1c7195)]}}),_0x3c8a83['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x3c8a83;}['_createToggleDiffButtonView'](){const _0xed15af=new _0x67f6b9(this['locale']);_0xed15af['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0xed15af['bind']('isEnabled')['to'](this,'isError',_0x3afbce=>!_0x3afbce),_0xed15af['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1f303a=>!_0x1f303a),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4e229c=>_0x4e229c)]}});const _0x2f3bf6=_0x5ce133(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x1a1d22=_0x5ce133(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0xed15af['bind']('isOn')['to'](this,'isToggleDiffOn',_0x25d769=>_0x25d769),_0xed15af['bind']('icon')['to'](this,'isToggleDiffOn',_0x528061=>_0x528061?_0x1279bd:_0x162bd4),_0xed15af['bind']('label')['to'](this,'isToggleDiffOn',_0x56f689=>_0x56f689?_0x2f3bf6:_0x1a1d22),_0xed15af['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0xed15af;}['_createAcceptAllButtonView'](){const _0x146e64=new _0x67f6b9(this['locale']);return _0x146e64['set']({'label':_0x5ce133(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x146e64['bind']('isEnabled')['to'](this,'isError',_0x4a2888=>!_0x4a2888),_0x146e64['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4db19d=>!_0x4db19d),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x14f596=>_0x14f596)]}}),_0x146e64['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x146e64;}['_createExitReviewButtonView'](){const _0x1a5135=new _0x67f6b9(this['locale']);return _0x1a5135['set']({'label':_0x5ce133(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x1a5135['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3a0e88=>!_0x3a0e88),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x42c7e3=>_0x42c7e3)]}}),_0x1a5135['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x1a5135;}['_createResultHeaderView'](){const _0x11f458=new _0x32a5fb(this['locale']),_0x289e30=this['_createTitleView']();return _0x11f458['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0x36796b=>_0x36796b)]},'children':[_0x289e30,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x11f458;}['_createTitleView'](){const _0x48ac15=new _0x32a5fb(this['locale']),_0x17b86f=new _0x8f5af0();return _0x17b86f['bind']('isVisible')['to'](this,'isResultReady',_0x5312a3=>!_0x5312a3),_0x48ac15['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x17b86f,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x13368d=>_0x13368d)]},'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')}]}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x36dc98=>!_0x36dc98)]},'children':[{'text':_0x5ce133(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x48ac15;}['_createFinishReviewButtonView'](){const _0x446a19=new _0x5a7660(this['locale']);return _0x446a19['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3a9d3=>!_0x3a9d3)]}}),_0x446a19['delegate']('finishReview')['to'](this),_0x446a19;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0xb5ef40,IconView as _0x521d3f,View as _0x15d195,ViewCollection as _0x1be23b,ButtonView as _0xefa89d,clickOutsideHandler as _0xb737d3}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x3f630c}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x313209}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as _0x125f11}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0xb5ef40{['_formItemsCollection']=new _0x1be23b();['_customCheckView']=null;constructor(_0x112bb8,_0xb17593,_0x3dfd96){super(_0x112bb8),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0xb17593['isParameterized']);const _0xc4d66e=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',_0x5dffab=>_0x5dffab),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x4592ad=>_0x4592ad)],'style':{'--ck-ai-review-check-list-item-index':_0x3dfd96}},'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':_0xb17593['title']}]},_0xc4d66e]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0xb17593['description']}]}]}]},..._0xb17593['isParameterized']?[this['_createParameterizedView'](_0xb17593)]:[],...'custom'===_0xb17593['id']?[this['_createCustomView'](_0xb17593)]:[]]}),this['on']('click',()=>{_0xb17593['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0xb17593['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0xb737d3({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x2e50ab=>{_0x2e50ab['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x230220=new _0x521d3f();return _0x230220['content']=_0x3f630c,_0x230220['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x230220;}['_createParameterizedView'](_0x2455bc){const _0x7713f5=new _0x15d195(),_0x1367c4=this['_createFormView'](_0x2455bc);return _0x7713f5['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x1dacfd=>!_0x1dacfd)]},'children':[_0x1367c4]}),_0x7713f5;}['_createFormView'](_0x225a6a){const _0x5b77cb=new _0x15d195(),_0xfd1e15=Array['isArray'](_0x225a6a['options'])?_0x225a6a['options']:[],_0x333487=new _0xefa89d(this['locale']),t=this['locale']['t'];_0x333487['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x333487['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0xe11848=>{_0xe11848['stopPropagation']();})}}),_0x333487['on']('execute',()=>{const _0x55ae8a=[],_0x577f84={};this['_formItemsCollection']['forEach'](_0x2fb6c9=>{_0x55ae8a['push'](_0x2fb6c9['value']),_0x225a6a['useArgs']&&_0x225a6a['options']&&(_0x577f84[_0x2fb6c9['argsKey']]=_0x2fb6c9['value']);}),this['fire']('runReviewCheck',{'id':_0x225a6a['id'],'params':_0x55ae8a['length']?_0x55ae8a:void 0x0,'args':Object['keys'](_0x577f84)['length']?_0x577f84:void 0x0});});const _0x1d7e8c=_0xfd1e15['length'];return _0xfd1e15['forEach']((_0x1b94f9,_0xc822c6)=>{const _0x484daa=_0xc822c6===_0x1d7e8c-0x1;this['_formItemsCollection']['add'](new _0x313209(this['locale'],_0x1b94f9,_0x484daa?_0x333487:null));}),_0x5b77cb['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x5b77cb;}['_createCustomView'](_0x14f54e){return this['_customCheckView']=new _0x125f11(this['locale'],_0x14f54e),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',_0x34c851=>!_0x34c851)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x46dbd4,_0x493f9f,_0x1e7c58)=>{_0x1e7c58||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8c41f4=_0x314b;function _0x314b(_0x358e57,_0x4db97){const _0x476bab=_0x476b();return _0x314b=function(_0x314b49,_0x16ceed){_0x314b49=_0x314b49-0x73;let _0x429a46=_0x476bab[_0x314b49];return _0x429a46;},_0x314b(_0x358e57,_0x4db97);}(function(_0x4bab15,_0x58b28b){const _0x79d914=_0x314b,_0x475e41=_0x4bab15();while(!![]){try{const _0xb7ab97=-parseInt(_0x79d914(0x84))/0x1*(parseInt(_0x79d914(0x75))/0x2)+parseInt(_0x79d914(0x85))/0x3*(parseInt(_0x79d914(0x8c))/0x4)+parseInt(_0x79d914(0x8f))/0x5+-parseInt(_0x79d914(0x7c))/0x6*(parseInt(_0x79d914(0x89))/0x7)+parseInt(_0x79d914(0x73))/0x8+-parseInt(_0x79d914(0x77))/0x9+parseInt(_0x79d914(0x8a))/0xa;if(_0xb7ab97===_0x58b28b)break;else _0x475e41['push'](_0x475e41['shift']());}catch(_0x2bf8db){_0x475e41['push'](_0x475e41['shift']());}}}(_0x476b,0x4f5c0));import{ListItemView as _0x190220,View as _0x561ac0}from'ckeditor5/src/ui.js';function _0x476b(){const _0x4073ab=['ck-ai-review-mode__review-completed','finishReview','ck-ai-review-mode__review-completed-header-buttons','43716NbpmSR','ck-hidden','ck-ai-review-mode__review-completed-content','setTemplate','ck-ai-review-mode__review-completed-header-title','ck-ai-review-mode__review-completed-content-text','div','ck-ai-review-mode__review-completed-content-icon','942wWZRgz','223869vAojtU','delegate','locale','AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','140wrjDvE','5059790KhkaTD','isVisible','4mNvzjB','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','_createResultHeaderView','753345vHOlkv','ck-ai-review-mode__review-completed-header','resultsHeader','_finishReviewButtonView','2336312EGbnna','bindTemplate','182DlINhY','_createFinishReviewButtonView','4201308BaYyak','span'];_0x476b=function(){return _0x4073ab;};return _0x476b();}import{AIReviewModeFinishReviewButtonView as _0x260843}from'./aireviewmodefinishreviewbuttonview.js';import{getTranslation as _0x27f1f3}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeReviewCompletedView extends _0x190220{[_0x8c41f4(0x91)];[_0x8c41f4(0x92)];constructor(_0x40d656){const _0x20504d=_0x8c41f4;super(_0x40d656),this[_0x20504d(0x92)]=this[_0x20504d(0x76)](),this[_0x20504d(0x91)]=this[_0x20504d(0x8e)]();const _0xb173c2=this[_0x20504d(0x74)];this[_0x20504d(0x7f)]({'tag':_0x20504d(0x82),'attributes':{'class':[_0x20504d(0x79),_0xb173c2['if'](_0x20504d(0x8b),_0x20504d(0x7d),_0x209bb4=>!_0x209bb4)]},'children':[this[_0x20504d(0x91)],{'tag':_0x20504d(0x82),'attributes':{'class':[_0x20504d(0x7e)]},'children':[{'tag':_0x20504d(0x78),'attributes':{'class':[_0x20504d(0x83)]},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':[_0x20504d(0x81)]},'children':[{'text':_0x27f1f3(_0x40d656,_0x20504d(0x88))}]}]}]});}[_0x8c41f4(0x76)](){const _0x5633b8=_0x8c41f4,_0x22bc78=new _0x260843(this[_0x5633b8(0x87)]);return _0x22bc78[_0x5633b8(0x86)](_0x5633b8(0x7a))['to'](this),_0x22bc78;}[_0x8c41f4(0x8e)](){const _0x26bd62=_0x8c41f4,_0x55c7e0=new _0x561ac0(this[_0x26bd62(0x87)]);return _0x55c7e0[_0x26bd62(0x7f)]({'tag':_0x26bd62(0x82),'attributes':{'class':[_0x26bd62(0x90)]},'children':[{'tag':_0x26bd62(0x78),'attributes':{'class':[_0x26bd62(0x80)]},'children':[{'text':_0x27f1f3(this[_0x26bd62(0x87)],_0x26bd62(0x8d))}]},{'tag':_0x26bd62(0x82),'attributes':{'class':[_0x26bd62(0x7b)]},'children':[this[_0x26bd62(0x92)]]}]}),_0x55c7e0;}}
|