@ckeditor/ckeditor5-ai 47.2.0-alpha.5 → 47.2.0-alpha.7
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.d.ts +10 -2
- 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 _0x531597=_0x9d19;function _0x9d19(_0x4f5e07,_0x30f17a){var _0x466631=_0x4666();return _0x9d19=function(_0x9d197a,_0xaa39e9){_0x9d197a=_0x9d197a-0xef;var _0x5a37b0=_0x466631[_0x9d197a];return _0x5a37b0;},_0x9d19(_0x4f5e07,_0x30f17a);}(function(_0x450647,_0x4110c5){var _0x5cedf8=_0x9d19,_0x2a5713=_0x450647();while(!![]){try{var _0x522e63=parseInt(_0x5cedf8(0x102))/0x1+-parseInt(_0x5cedf8(0x100))/0x2+-parseInt(_0x5cedf8(0xfa))/0x3+parseInt(_0x5cedf8(0xf6))/0x4+-parseInt(_0x5cedf8(0xf7))/0x5*(-parseInt(_0x5cedf8(0xf8))/0x6)+-parseInt(_0x5cedf8(0xf9))/0x7+-parseInt(_0x5cedf8(0xf2))/0x8*(-parseInt(_0x5cedf8(0xfb))/0x9);if(_0x522e63===_0x4110c5)break;else _0x2a5713['push'](_0x2a5713['shift']());}catch(_0x17f777){_0x2a5713['push'](_0x2a5713['shift']());}}}(_0x4666,0xd257d));import{ObservableMixin as _0x22a7b1}from'ckeditor5/src/utils.js';function _0x4666(){var _0xab8285=['set','_data','6667712AYpwCx','5TfblDG','1481586jIoXre','8442224FjuzDN','1555332JZSDay','279fLZtod','change:status','parent','context','contentDiffed','2934448BsULKp','operations','1031807gFKKbV','isActivated','pending','operationsIsolated','_editorOperations','isRated','285832Fkzgnv','status'];_0x4666=function(){return _0xab8285;};return _0x4666();}export class AIReviewCheckResultChange extends _0x22a7b1(){['id'];[_0x531597(0xfd)];[_0x531597(0xf5)];[_0x531597(0xf0)]=[];constructor(_0x581b0d,_0x16fe74,_0xfa65aa){var _0x1a2e60=_0x531597;super(),this['id']=_0x581b0d,this[_0x1a2e60(0xfd)]=_0xfa65aa,this[_0x1a2e60(0xf5)]=_0x16fe74,this[_0x1a2e60(0xf4)](_0x1a2e60(0x103),!0x1),this[_0x1a2e60(0xf4)](_0x1a2e60(0xf1),!0x1),this[_0x1a2e60(0xf4)](_0x1a2e60(0xf3),_0x1a2e60(0x104)),this['on'](_0x1a2e60(0xfc),()=>{var _0x30618b=_0x1a2e60;_0x30618b(0x104)!==this[_0x30618b(0xf3)]&&this[_0x30618b(0x103)]&&(this[_0x30618b(0x103)]=!0x1);});}get[_0x531597(0xff)](){var _0x19e19a=_0x531597;return this[_0x19e19a(0xf5)][_0x19e19a(0xfe)]();}get[_0x531597(0x101)](){var _0x5cf4a9=_0x531597;return this[_0x5cf4a9(0xf5)][_0x5cf4a9(0x101)];}get[_0x531597(0xef)](){var _0x3e61a1=_0x531597;return this[_0x3e61a1(0xf5)][_0x3e61a1(0xef)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27f325=_0x2ddd;(function(_0x16d65,_0x331a61){const _0x27f53f=_0x2ddd,_0x34e567=_0x16d65();while(!![]){try{const _0x50bebf=parseInt(_0x27f53f(0x12f))/0x1*(-parseInt(_0x27f53f(0x177))/0x2)+parseInt(_0x27f53f(0x13c))/0x3+parseInt(_0x27f53f(0x12c))/0x4+parseInt(_0x27f53f(0x178))/0x5+-parseInt(_0x27f53f(0x127))/0x6+-parseInt(_0x27f53f(0x170))/0x7*(-parseInt(_0x27f53f(0x171))/0x8)+-parseInt(_0x27f53f(0x14b))/0x9*(-parseInt(_0x27f53f(0x146))/0xa);if(_0x50bebf===_0x331a61)break;else _0x34e567['push'](_0x34e567['shift']());}catch(_0x3a48ae){_0x34e567['push'](_0x34e567['shift']());}}}(_0x5827,0xf2111));import{ObservableMixin as _0x31ff6d,uid as _0x1aa282}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x24668b}from'./aireviewcheckresult.js';function _0x2ddd(_0x597947,_0x53a27d){const _0x5827a8=_0x5827();return _0x2ddd=function(_0x2ddd5e,_0x4d9cbd){_0x2ddd5e=_0x2ddd5e-0x11c;let _0x1ca0d9=_0x5827a8[_0x2ddd5e];return _0x1ca0d9;},_0x2ddd(_0x597947,_0x53a27d);}import{AIReviewCheckResultChange as _0x288bb2}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x31ff6d(){['id']=_0x1aa282();[_0x27f325(0x137)];[_0x27f325(0x17b)]=new Map();[_0x27f325(0x142)]=[];[_0x27f325(0x11f)];[_0x27f325(0x14d)];[_0x27f325(0x154)];[_0x27f325(0x149)];[_0x27f325(0x151)];[_0x27f325(0x141)]=null;[_0x27f325(0x157)];constructor(_0x2a4040,_0x40def9,_0x158834,_0x2a77ee,_0x21c1ba){const _0x5f342a=_0x27f325;super(),this[_0x5f342a(0x11f)]=_0x2a4040,this[_0x5f342a(0x14d)]=_0x40def9,this[_0x5f342a(0x154)]=_0x158834,this[_0x5f342a(0x149)]=_0x2a77ee,this[_0x5f342a(0x151)]=_0x21c1ba,this['on'](_0x5f342a(0x163),(_0x28d82e,_0x5c7a9c,_0x2909a5)=>{const _0x20ca51=_0x5f342a;this[_0x20ca51(0x156)](_0x20ca51(0x150),{'status':_0x2909a5,'run':this,'error':this[_0x20ca51(0x157)]});}),this[_0x5f342a(0x12b)](_0x5f342a(0x13b),_0x5f342a(0x144));}get[_0x27f325(0x165)](){const _0x113ecb=_0x27f325;return this[_0x113ecb(0x11f)];}get[_0x27f325(0x159)](){const _0x1835ed=_0x27f325;return this[_0x1835ed(0x17b)][_0x1835ed(0x122)];}get[_0x27f325(0x13e)](){const _0x548c39=_0x27f325;return this[_0x548c39(0x14d)][_0x548c39(0x13e)];}get[_0x27f325(0x12d)](){return'';}get[_0x27f325(0x16b)](){const _0x1f0c33=_0x27f325;return this[_0x1f0c33(0x14d)]['id'];}get[_0x27f325(0x15c)](){const _0x328187=_0x27f325;return!this[_0x328187(0x142)][_0x328187(0x130)](_0x228860=>_0x328187(0x139)===_0x228860[_0x328187(0x13b)]);}get[_0x27f325(0x15e)](){const _0x50e11c=_0x27f325;return this[_0x50e11c(0x157)];}async[_0x27f325(0x124)](){const _0x48dbde=_0x27f325;this[_0x48dbde(0x13b)]=_0x48dbde(0x160),this[_0x48dbde(0x157)]=void 0x0;try{this[_0x48dbde(0x141)]=this[_0x48dbde(0x175)]();const _0x562c5a=await this[_0x48dbde(0x141)][_0x48dbde(0x147)]();this[_0x48dbde(0x13b)]=_0x48dbde(0x13d);for await(const _0x32367a of _0x562c5a)_0x48dbde(0x14a)!==_0x32367a[_0x48dbde(0x13d)][_0x48dbde(0x13f)]&&(_0x48dbde(0x120)!==_0x32367a[_0x48dbde(0x13d)][_0x48dbde(0x13f)]?_0x48dbde(0x15b)!==_0x32367a[_0x48dbde(0x138)]?this[_0x48dbde(0x12e)](_0x32367a[_0x48dbde(0x13d)][_0x48dbde(0x16f)],_0x32367a[_0x48dbde(0x13d)][_0x48dbde(0x136)]):this[_0x48dbde(0x137)]=_0x32367a[_0x48dbde(0x13d)][_0x48dbde(0x137)]:this[_0x48dbde(0x13b)]=_0x48dbde(0x14e));_0x48dbde(0x14e)!==this[_0x48dbde(0x13b)]&&(0x0===this[_0x48dbde(0x17b)][_0x48dbde(0x122)]?this[_0x48dbde(0x13b)]=_0x48dbde(0x14a):this[_0x48dbde(0x13b)]=_0x48dbde(0x143));}catch(_0x4d1357){this[_0x48dbde(0x157)]=_0x4d1357,_0x4d1357 instanceof Error&&_0x4d1357[_0x48dbde(0x152)][_0x48dbde(0x16e)](_0x48dbde(0x145))?this[_0x48dbde(0x13b)]=_0x48dbde(0x168):this[_0x48dbde(0x13b)]=_0x48dbde(0x14f);}finally{this[_0x48dbde(0x141)]=null;}}async[_0x27f325(0x15f)](){const _0x598d70=_0x27f325;this[_0x598d70(0x17b)][_0x598d70(0x15d)](),this[_0x598d70(0x142)][_0x598d70(0x140)]=0x0,this[_0x598d70(0x157)]=void 0x0,await this[_0x598d70(0x124)]();}[_0x27f325(0x16a)](_0x2db737,_0x4cc44e){const _0x23084d=_0x27f325,_0x4ebf2e=this[_0x23084d(0x17b)][_0x23084d(0x169)](_0x2db737);if(!_0x4ebf2e)return;const _0x39ad8f=[];_0x4cc44e[_0x23084d(0x129)]((_0x1f7fa0,_0x298f01)=>{const _0x4f2228=_0x23084d,_0xd6c562=new _0x288bb2(_0x4ebf2e['id']+'-'+_0x298f01,_0x1f7fa0,_0x4ebf2e);_0xd6c562['on'](_0x4f2228(0x163),()=>{const _0x3cf6b7=_0x4f2228;this[_0x3cf6b7(0x156)](_0x3cf6b7(0x166),{'change':_0xd6c562,'status':_0xd6c562[_0x3cf6b7(0x13b)]});}),_0xd6c562['on'](_0x4f2228(0x121),()=>{const _0x360321=_0x4f2228;_0xd6c562[_0x360321(0x153)]?this[_0x360321(0x156)](_0x360321(0x164),{'change':_0xd6c562}):this[_0x360321(0x156)](_0x360321(0x172),{'change':_0xd6c562});}),this[_0x4f2228(0x142)][_0x4f2228(0x16d)](_0xd6c562),_0x39ad8f[_0x4f2228(0x16d)](_0xd6c562);}),this[_0x23084d(0x156)](_0x23084d(0x131),{'changes':_0x39ad8f,'result':_0x4ebf2e,'source':this});}[_0x27f325(0x11e)](){const _0x67b9da=_0x27f325;this[_0x67b9da(0x141)]&&(this[_0x67b9da(0x141)][_0x67b9da(0x162)][_0x67b9da(0x11e)](),this[_0x67b9da(0x141)]=null,this[_0x67b9da(0x13b)]=_0x67b9da(0x168));}[_0x27f325(0x12a)](_0x5ea9c7){const _0x3079d2=_0x27f325,_0x5ede83=this[_0x3079d2(0x142)][_0x3079d2(0x123)](_0x314793=>_0x314793['id']===_0x5ea9c7);return!(!_0x5ede83||_0x3079d2(0x139)!==_0x5ede83[_0x3079d2(0x13b)]);}[_0x27f325(0x173)](){const _0x4566b7=_0x27f325;return this[_0x4566b7(0x142)][_0x4566b7(0x125)](_0x38c9b7=>_0x4566b7(0x139)===_0x38c9b7[_0x4566b7(0x13b)]);}[_0x27f325(0x126)](){const _0x22fa12=_0x27f325;for(const _0x1b72f7 of this[_0x22fa12(0x142)])_0x22fa12(0x139)===_0x1b72f7[_0x22fa12(0x13b)]&&(_0x1b72f7[_0x22fa12(0x13b)]=_0x22fa12(0x161));this[_0x22fa12(0x135)]();}[_0x27f325(0x155)](_0x22e2d3){const _0x2765c5=_0x27f325,_0x4e432f=this[_0x2765c5(0x142)][_0x2765c5(0x123)](_0x5b1313=>_0x5b1313['id']===_0x22e2d3);_0x4e432f&&_0x2765c5(0x139)===_0x4e432f[_0x2765c5(0x13b)]&&(_0x4e432f[_0x2765c5(0x13b)]=_0x2765c5(0x161)),this[_0x2765c5(0x135)]();}[_0x27f325(0x176)](_0x358be9){const _0x1a223c=_0x27f325,_0x43e12b=this[_0x1a223c(0x142)][_0x1a223c(0x123)](_0x113583=>_0x113583['id']===_0x358be9);_0x43e12b&&_0x1a223c(0x139)===_0x43e12b[_0x1a223c(0x13b)]&&(_0x43e12b[_0x1a223c(0x13b)]=_0x1a223c(0x14c)),this[_0x1a223c(0x135)]();}[_0x27f325(0x133)](_0xf4b40d){const _0x480269=_0x27f325,_0xe769aa=this[_0x480269(0x142)][_0x480269(0x123)](_0x229329=>_0x229329['id']===_0xf4b40d);_0xe769aa&&_0x480269(0x139)===_0xe769aa[_0x480269(0x13b)]&&(_0xe769aa[_0x480269(0x13b)]=_0x480269(0x17a)),this[_0x480269(0x135)]();}[_0x27f325(0x15a)](_0x10f608){const _0x8fc19b=_0x27f325,_0x563dad=this[_0x8fc19b(0x142)][_0x8fc19b(0x123)](_0x421c4d=>_0x421c4d['id']===_0x10f608);_0x563dad&&_0x8fc19b(0x17a)===_0x563dad[_0x8fc19b(0x13b)]&&(_0x563dad[_0x8fc19b(0x13b)]=_0x8fc19b(0x139)),this[_0x8fc19b(0x135)]();}[_0x27f325(0x132)](_0x379eb0){const _0x5de3fc=_0x27f325;this[_0x5de3fc(0x142)][_0x5de3fc(0x125)](_0x121b7b=>_0x121b7b[_0x5de3fc(0x153)]&&_0x121b7b['id']!==_0x379eb0)[_0x5de3fc(0x129)](_0xb0c69d=>{const _0x19cf9f=_0x5de3fc;_0xb0c69d[_0x19cf9f(0x153)]=!0x1;});const _0x45b74e=this[_0x5de3fc(0x142)][_0x5de3fc(0x123)](_0x16437b=>_0x16437b['id']===_0x379eb0);_0x45b74e&&_0x5de3fc(0x139)===_0x45b74e[_0x5de3fc(0x13b)]&&(_0x45b74e[_0x5de3fc(0x153)]=!0x0);}[_0x27f325(0x16c)](){const _0x5c5953=_0x27f325;this[_0x5c5953(0x142)][_0x5c5953(0x125)](_0x2f23f2=>_0x2f23f2[_0x5c5953(0x153)])[_0x5c5953(0x129)](_0x4b1a92=>{const _0x69ff80=_0x5c5953;_0x4b1a92[_0x69ff80(0x153)]=!0x1;});}[_0x27f325(0x148)](){const _0x421eca=_0x27f325;this[_0x421eca(0x13b)]=_0x421eca(0x143);}async[_0x27f325(0x128)](_0xfa418d){const _0x36489b=_0x27f325;if(_0x36489b(0x144)===this[_0x36489b(0x13b)]||_0x36489b(0x160)===this[_0x36489b(0x13b)]||_0x36489b(0x13d)===this[_0x36489b(0x13b)])return;if(!this[_0x36489b(0x137)]||0x0===this[_0x36489b(0x142)][_0x36489b(0x140)])return;let _0x202061;if(_0xfa418d){const _0x23f0ff=this[_0x36489b(0x142)][_0x36489b(0x123)](_0x1b9346=>_0x1b9346['id']===_0xfa418d);if(_0x23f0ff&&_0x23f0ff[_0x36489b(0x167)])return;_0x23f0ff&&(_0x202061=_0x23f0ff[_0x36489b(0x158)]['id'],_0x23f0ff[_0x36489b(0x167)]=!0x0);}const _0xe61670={'positiveCount':this[_0x36489b(0x142)][_0x36489b(0x125)](_0x34a3c9=>_0x36489b(0x161)===_0x34a3c9[_0x36489b(0x13b)])[_0x36489b(0x140)],'totalCount':this[_0x36489b(0x142)][_0x36489b(0x140)]};this[_0x36489b(0x174)](_0xe61670,this[_0x36489b(0x137)],_0x202061);}[_0x27f325(0x12e)](_0x41cd6e,_0x3737f8){const _0x4977ad=_0x27f325,_0x3444c6=this[_0x4977ad(0x11f)][_0x4977ad(0x13a)][_0x4977ad(0x169)](_0x41cd6e);if(!_0x3444c6)return;const _0x33aefb=_0x3444c6[_0x4977ad(0x134)]();if(_0x33aefb===_0x3737f8)return;const _0x1f8d6e=new _0x24668b({'id':_0x41cd6e,'contentInitial':_0x33aefb,'contentNew':_0x3737f8,'documentVersion':this[_0x4977ad(0x11f)][_0x4977ad(0x11c)]});this[_0x4977ad(0x17b)][_0x4977ad(0x12b)](_0x1f8d6e['id'],_0x1f8d6e),this[_0x4977ad(0x156)](_0x4977ad(0x11d),{'result':_0x1f8d6e,'source':this});}[_0x27f325(0x135)](){const _0x42a1a5=_0x27f325;_0x42a1a5(0x179)===this[_0x42a1a5(0x13b)]&&(this[_0x42a1a5(0x142)][_0x42a1a5(0x125)](_0x56528d=>_0x42a1a5(0x139)===_0x56528d[_0x42a1a5(0x13b)])[_0x42a1a5(0x140)]>0x0&&(this[_0x42a1a5(0x13b)]=_0x42a1a5(0x143))),_0x42a1a5(0x143)===this[_0x42a1a5(0x13b)]&&(0x0===this[_0x42a1a5(0x142)][_0x42a1a5(0x125)](_0x20efd3=>_0x42a1a5(0x139)===_0x20efd3[_0x42a1a5(0x13b)])[_0x42a1a5(0x140)]&&(this[_0x42a1a5(0x13b)]=_0x42a1a5(0x179)));}}function _0x5827(){const _0x1fa96a=['reviewCheckResultChangeStatusUpdated','isRated','aborted','get','addResultChanges','reviewName','deactivateChange','push','includes','dataId','413NtljoQ','114728RHDKVR','reviewCheckResultDeactivated','getActiveChanges','_sendRatingRequest','_createApiRequest','markChangeAsRejected','77722DTMOBe','6403605qRMRkD','finished','outdated','_results','version','reviewCheckResultAdded','abort','_documentData','error','change:isActivated','size','find','start','filter','markAllChangesAsAccepted','11418438ZjjFqI','sendRating','forEach','isChangeActive','set','410228gwooEz','subTitle','_addReviewCheckResult','30PWNzde','every','reviewCheckResultReady','activateChange','markChangeAsOutdated','getContent','_checkIfFinished','textDelta','callId','event','pending','elements','status','2151357udULMm','data','title','operation','length','_activeRequest','_changes','ready','initialized','ai-request-aborted','856840bOwsQx','getStream','forceReadyState','_reviewParams','unmodified','117JSzAPb','rejected','_sourceCheck','error-chunk','error-general','reviewCheckRunUpdated','_reviewArgs','message','isActivated','_aiConnector','markChangeAsAccepted','fire','_currentError','parent','processedResultsCount','markChangeAsPending','review-metadata','hasModifications','clear','currentError','restart','loading','accepted','abortController','change:status','reviewCheckResultActivated','documentData'];_0x5827=function(){return _0x1fa96a;};return _0x5827();}
|
|
23
|
+
const _0x1e186=_0x43b5;(function(_0x1cfa66,_0xa2dfa8){const _0x1d3a06=_0x43b5,_0x165f8d=_0x1cfa66();while(!![]){try{const _0x2355c6=-parseInt(_0x1d3a06(0x116))/0x1*(parseInt(_0x1d3a06(0x14c))/0x2)+parseInt(_0x1d3a06(0x104))/0x3*(-parseInt(_0x1d3a06(0x127))/0x4)+-parseInt(_0x1d3a06(0x13e))/0x5+parseInt(_0x1d3a06(0x11c))/0x6+parseInt(_0x1d3a06(0x14a))/0x7*(parseInt(_0x1d3a06(0x121))/0x8)+-parseInt(_0x1d3a06(0x101))/0x9+-parseInt(_0x1d3a06(0x13a))/0xa*(-parseInt(_0x1d3a06(0xff))/0xb);if(_0x2355c6===_0xa2dfa8)break;else _0x165f8d['push'](_0x165f8d['shift']());}catch(_0x580cb5){_0x165f8d['push'](_0x165f8d['shift']());}}}(_0x34f8,0x27eae));function _0x43b5(_0x1f8965,_0xb47383){const _0x34f86a=_0x34f8();return _0x43b5=function(_0x43b5ca,_0x22e2e3){_0x43b5ca=_0x43b5ca-0xfd;let _0x11b7df=_0x34f86a[_0x43b5ca];return _0x11b7df;},_0x43b5(_0x1f8965,_0xb47383);}import{ObservableMixin as _0x49e87f,uid as _0x765001}from'ckeditor5/src/utils.js';function _0x34f8(){const _0x3c0205=['review-metadata','every','getContent','169038YAIHPu','change:isActivated','size','data','finished','24FYMEHV','unmodified','_results','event','title','hasModifications','73540gzhyai','_checkIfFinished','_sendRatingRequest','callId','markChangeAsRejected','_documentData','_reviewParams','currentError','ready','message','_sourceCheck','_createApiRequest','processedResultsCount','reviewName','change:status','aborted','find','fire','markChangeAsOutdated','130RAOqch','reviewCheckResultAdded','forceReadyState','sendRating','1137260VwPVgd','error-chunk','forEach','operation','_aiConnector','initialized','addResultChanges','activateChange','filter','markChangeAsPending','deactivateChange','abortController','421337QLuhrp','reviewCheckResultActivated','5708RgbgvP','reviewCheckResultReady','clear','textDelta','isRated','_addReviewCheckResult','restart','get','length','pending','reviewCheckResultDeactivated','status','getStream','version','parent','reviewCheckRunUpdated','loading','ai-request-aborted','elements','documentData','792836BoORCx','rejected','1893573CBQfdC','getActiveChanges','_activeRequest','39pZFTbw','includes','error','reviewCheckResultChangeStatusUpdated','start','_changes','isActivated','isChangeActive','subTitle','push','markAllChangesAsAccepted','outdated','_reviewArgs','markChangeAsAccepted','accepted','abort','_currentError','dataId','107tXblix','set','error-general'];_0x34f8=function(){return _0x3c0205;};return _0x34f8();}import{AIReviewCheckResult as _0xc052f1}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x8e12e9}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x49e87f(){['id']=_0x765001();[_0x1e186(0x12a)];[_0x1e186(0x123)]=new Map();[_0x1e186(0x109)]=[];[_0x1e186(0x12c)];[_0x1e186(0x131)];[_0x1e186(0x142)];[_0x1e186(0x12d)];[_0x1e186(0x110)];[_0x1e186(0x103)]=null;[_0x1e186(0x114)];constructor(_0x8d9259,_0xc8753a,_0x114c69,_0x4d0786,_0xb4ee8c){const _0x5a96c9=_0x1e186;super(),this[_0x5a96c9(0x12c)]=_0x8d9259,this[_0x5a96c9(0x131)]=_0xc8753a,this[_0x5a96c9(0x142)]=_0x114c69,this[_0x5a96c9(0x12d)]=_0x4d0786,this[_0x5a96c9(0x110)]=_0xb4ee8c,this['on'](_0x5a96c9(0x135),(_0x5d0855,_0x1dd1fc,_0x520a93)=>{const _0xe8a9c2=_0x5a96c9;this[_0xe8a9c2(0x138)](_0xe8a9c2(0x15b),{'status':_0x520a93,'run':this,'error':this[_0xe8a9c2(0x114)]});}),this[_0x5a96c9(0x117)](_0x5a96c9(0x157),_0x5a96c9(0x143));}get[_0x1e186(0xfe)](){const _0x1ae29c=_0x1e186;return this[_0x1ae29c(0x12c)];}get[_0x1e186(0x133)](){const _0x59c585=_0x1e186;return this[_0x59c585(0x123)][_0x59c585(0x11e)];}get[_0x1e186(0x125)](){const _0x42c236=_0x1e186;return this[_0x42c236(0x131)][_0x42c236(0x125)];}get[_0x1e186(0x10c)](){return'';}get[_0x1e186(0x134)](){const _0x4880eb=_0x1e186;return this[_0x4880eb(0x131)]['id'];}get[_0x1e186(0x126)](){const _0x2679e0=_0x1e186;return!this[_0x2679e0(0x109)][_0x2679e0(0x11a)](_0x5d0f3e=>_0x2679e0(0x155)===_0x5d0f3e[_0x2679e0(0x157)]);}get[_0x1e186(0x12e)](){const _0xf3ee9e=_0x1e186;return this[_0xf3ee9e(0x114)];}async[_0x1e186(0x108)](){const _0xe43fa4=_0x1e186;this[_0xe43fa4(0x157)]=_0xe43fa4(0x15c),this[_0xe43fa4(0x114)]=void 0x0;try{this[_0xe43fa4(0x103)]=this[_0xe43fa4(0x132)]();const _0x36b9c4=await this[_0xe43fa4(0x103)][_0xe43fa4(0x158)]();this[_0xe43fa4(0x157)]=_0xe43fa4(0x11f);for await(const _0x36ffbc of _0x36b9c4)_0xe43fa4(0x122)!==_0x36ffbc[_0xe43fa4(0x11f)][_0xe43fa4(0x141)]&&(_0xe43fa4(0x106)!==_0x36ffbc[_0xe43fa4(0x11f)][_0xe43fa4(0x141)]?_0xe43fa4(0x119)!==_0x36ffbc[_0xe43fa4(0x124)]?this[_0xe43fa4(0x151)](_0x36ffbc[_0xe43fa4(0x11f)][_0xe43fa4(0x115)],_0x36ffbc[_0xe43fa4(0x11f)][_0xe43fa4(0x14f)]):this[_0xe43fa4(0x12a)]=_0x36ffbc[_0xe43fa4(0x11f)][_0xe43fa4(0x12a)]:this[_0xe43fa4(0x157)]=_0xe43fa4(0x13f));_0xe43fa4(0x13f)!==this[_0xe43fa4(0x157)]&&(0x0===this[_0xe43fa4(0x123)][_0xe43fa4(0x11e)]?this[_0xe43fa4(0x157)]=_0xe43fa4(0x122):this[_0xe43fa4(0x157)]=_0xe43fa4(0x12f));}catch(_0x2b657e){this[_0xe43fa4(0x114)]=_0x2b657e,_0x2b657e instanceof Error&&_0x2b657e[_0xe43fa4(0x130)][_0xe43fa4(0x105)](_0xe43fa4(0x15d))?this[_0xe43fa4(0x157)]=_0xe43fa4(0x136):this[_0xe43fa4(0x157)]=_0xe43fa4(0x118);}finally{this[_0xe43fa4(0x103)]=null;}}async[_0x1e186(0x152)](){const _0x3b94dc=_0x1e186;this[_0x3b94dc(0x123)][_0x3b94dc(0x14e)](),this[_0x3b94dc(0x109)][_0x3b94dc(0x154)]=0x0,this[_0x3b94dc(0x114)]=void 0x0,await this[_0x3b94dc(0x108)]();}[_0x1e186(0x144)](_0x1f55b4,_0x2e6e71){const _0x164b4e=_0x1e186,_0x4a8f56=this[_0x164b4e(0x123)][_0x164b4e(0x153)](_0x1f55b4);if(!_0x4a8f56)return;const _0x1af17e=[];_0x2e6e71[_0x164b4e(0x140)]((_0x2789d5,_0x56eb9b)=>{const _0x1867f8=_0x164b4e,_0xc8b245=new _0x8e12e9(_0x4a8f56['id']+'-'+_0x56eb9b,_0x2789d5,_0x4a8f56);_0xc8b245['on'](_0x1867f8(0x135),()=>{const _0xa755ea=_0x1867f8;this[_0xa755ea(0x138)](_0xa755ea(0x107),{'change':_0xc8b245,'status':_0xc8b245[_0xa755ea(0x157)]});}),_0xc8b245['on'](_0x1867f8(0x11d),()=>{const _0x51ac37=_0x1867f8;_0xc8b245[_0x51ac37(0x10a)]?this[_0x51ac37(0x138)](_0x51ac37(0x14b),{'change':_0xc8b245}):this[_0x51ac37(0x138)](_0x51ac37(0x156),{'change':_0xc8b245});}),this[_0x1867f8(0x109)][_0x1867f8(0x10d)](_0xc8b245),_0x1af17e[_0x1867f8(0x10d)](_0xc8b245);}),this[_0x164b4e(0x138)](_0x164b4e(0x14d),{'changes':_0x1af17e,'result':_0x4a8f56,'source':this});}[_0x1e186(0x113)](){const _0x29ace9=_0x1e186;this[_0x29ace9(0x103)]&&(this[_0x29ace9(0x103)][_0x29ace9(0x149)][_0x29ace9(0x113)](),this[_0x29ace9(0x103)]=null,this[_0x29ace9(0x157)]=_0x29ace9(0x136));}[_0x1e186(0x10b)](_0x145d8d){const _0x31b3d0=_0x1e186,_0x3bd0a7=this[_0x31b3d0(0x109)][_0x31b3d0(0x137)](_0x1fccc6=>_0x1fccc6['id']===_0x145d8d);return!(!_0x3bd0a7||_0x31b3d0(0x155)!==_0x3bd0a7[_0x31b3d0(0x157)]);}[_0x1e186(0x102)](){const _0x34a326=_0x1e186;return this[_0x34a326(0x109)][_0x34a326(0x146)](_0x5c93a0=>_0x34a326(0x155)===_0x5c93a0[_0x34a326(0x157)]);}[_0x1e186(0x10e)](){const _0x14b1b8=_0x1e186;for(const _0xbe581a of this[_0x14b1b8(0x109)])_0x14b1b8(0x155)===_0xbe581a[_0x14b1b8(0x157)]&&(_0xbe581a[_0x14b1b8(0x157)]=_0x14b1b8(0x112));this[_0x14b1b8(0x128)]();}[_0x1e186(0x111)](_0xba9c10){const _0x3540a0=_0x1e186,_0x3052a2=this[_0x3540a0(0x109)][_0x3540a0(0x137)](_0x493d32=>_0x493d32['id']===_0xba9c10);_0x3052a2&&_0x3540a0(0x155)===_0x3052a2[_0x3540a0(0x157)]&&(_0x3052a2[_0x3540a0(0x157)]=_0x3540a0(0x112)),this[_0x3540a0(0x128)]();}[_0x1e186(0x12b)](_0x118072){const _0x1a0712=_0x1e186,_0x7d4752=this[_0x1a0712(0x109)][_0x1a0712(0x137)](_0x4c896e=>_0x4c896e['id']===_0x118072);_0x7d4752&&_0x1a0712(0x155)===_0x7d4752[_0x1a0712(0x157)]&&(_0x7d4752[_0x1a0712(0x157)]=_0x1a0712(0x100)),this[_0x1a0712(0x128)]();}[_0x1e186(0x139)](_0x2389ae){const _0x1fa32c=_0x1e186,_0x5e6466=this[_0x1fa32c(0x109)][_0x1fa32c(0x137)](_0x57f1bb=>_0x57f1bb['id']===_0x2389ae);_0x5e6466&&_0x1fa32c(0x155)===_0x5e6466[_0x1fa32c(0x157)]&&(_0x5e6466[_0x1fa32c(0x157)]=_0x1fa32c(0x10f)),this[_0x1fa32c(0x128)]();}[_0x1e186(0x147)](_0x351a25){const _0x1f9121=_0x1e186,_0x1c561a=this[_0x1f9121(0x109)][_0x1f9121(0x137)](_0x3b524f=>_0x3b524f['id']===_0x351a25);_0x1c561a&&_0x1f9121(0x10f)===_0x1c561a[_0x1f9121(0x157)]&&(_0x1c561a[_0x1f9121(0x157)]=_0x1f9121(0x155)),this[_0x1f9121(0x128)]();}[_0x1e186(0x145)](_0x24e930){const _0x3d3c84=_0x1e186;this[_0x3d3c84(0x109)][_0x3d3c84(0x146)](_0x5497b0=>_0x5497b0[_0x3d3c84(0x10a)]&&_0x5497b0['id']!==_0x24e930)[_0x3d3c84(0x140)](_0x6ac949=>{const _0x3114bb=_0x3d3c84;_0x6ac949[_0x3114bb(0x10a)]=!0x1;});const _0x59cda7=this[_0x3d3c84(0x109)][_0x3d3c84(0x137)](_0x18b405=>_0x18b405['id']===_0x24e930);_0x59cda7&&_0x3d3c84(0x155)===_0x59cda7[_0x3d3c84(0x157)]&&(_0x59cda7[_0x3d3c84(0x10a)]=!0x0);}[_0x1e186(0x148)](){const _0x1ad87d=_0x1e186;this[_0x1ad87d(0x109)][_0x1ad87d(0x146)](_0x58c3ba=>_0x58c3ba[_0x1ad87d(0x10a)])[_0x1ad87d(0x140)](_0x29552a=>{const _0x38deca=_0x1ad87d;_0x29552a[_0x38deca(0x10a)]=!0x1;});}[_0x1e186(0x13c)](){const _0x2b7e7f=_0x1e186;this[_0x2b7e7f(0x157)]=_0x2b7e7f(0x12f);}async[_0x1e186(0x13d)](_0x8d3c39){const _0x55fd4d=_0x1e186;if(_0x55fd4d(0x143)===this[_0x55fd4d(0x157)]||_0x55fd4d(0x15c)===this[_0x55fd4d(0x157)]||_0x55fd4d(0x11f)===this[_0x55fd4d(0x157)])return;if(!this[_0x55fd4d(0x12a)]||0x0===this[_0x55fd4d(0x109)][_0x55fd4d(0x154)])return;let _0x17f44c;if(_0x8d3c39){const _0x4f21fa=this[_0x55fd4d(0x109)][_0x55fd4d(0x137)](_0x52fbce=>_0x52fbce['id']===_0x8d3c39);if(_0x4f21fa&&_0x4f21fa[_0x55fd4d(0x150)])return;_0x4f21fa&&(_0x17f44c=_0x4f21fa[_0x55fd4d(0x15a)]['id'],_0x4f21fa[_0x55fd4d(0x150)]=!0x0);}const _0x5c5954={'positiveCount':this[_0x55fd4d(0x109)][_0x55fd4d(0x146)](_0x237775=>_0x55fd4d(0x112)===_0x237775[_0x55fd4d(0x157)])[_0x55fd4d(0x154)],'totalCount':this[_0x55fd4d(0x109)][_0x55fd4d(0x154)]};this[_0x55fd4d(0x129)](_0x5c5954,this[_0x55fd4d(0x12a)],_0x17f44c);}[_0x1e186(0x151)](_0x1b129c,_0x5b4f71){const _0x51f11e=_0x1e186,_0x1d1fe2=this[_0x51f11e(0x12c)][_0x51f11e(0xfd)][_0x51f11e(0x153)](_0x1b129c);if(!_0x1d1fe2)return;const _0x21c210=_0x1d1fe2[_0x51f11e(0x11b)]();if(_0x21c210===_0x5b4f71)return;const _0x404499=new _0xc052f1({'id':_0x1b129c,'contentInitial':_0x21c210,'contentNew':_0x5b4f71,'documentVersion':this[_0x51f11e(0x12c)][_0x51f11e(0x159)]});this[_0x51f11e(0x123)][_0x51f11e(0x117)](_0x404499['id'],_0x404499),this[_0x51f11e(0x138)](_0x51f11e(0x13b),{'result':_0x404499,'source':this});}[_0x1e186(0x128)](){const _0x28df5b=_0x1e186;_0x28df5b(0x120)===this[_0x28df5b(0x157)]&&(this[_0x28df5b(0x109)][_0x28df5b(0x146)](_0x267c31=>_0x28df5b(0x155)===_0x267c31[_0x28df5b(0x157)])[_0x28df5b(0x154)]>0x0&&(this[_0x28df5b(0x157)]=_0x28df5b(0x12f))),_0x28df5b(0x12f)===this[_0x28df5b(0x157)]&&(0x0===this[_0x28df5b(0x109)][_0x28df5b(0x146)](_0x148975=>_0x28df5b(0x155)===_0x148975[_0x28df5b(0x157)])[_0x28df5b(0x154)]&&(this[_0x28df5b(0x157)]=_0x28df5b(0x120)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x19b547=_0xe5fd;function _0x2fcf(){var _0x1528b2=['77DMtZQe','3142867sBrLnq','_model','_sendRatingRequest','content','22789YXLiTA','1272arUEPy','16524gXTTHI','_createApiRequest','upsertCustomAIReviewRating','7036oOMezG','6KpHHzJ','1435109KXkZZe','_prompt','callCustomReview','subTitle','1891690zFnFSy','3QxwZOg','_aiConnector','_documentData','1355BRwefO','63261gFGMMG','3349154ziGKBn'];_0x2fcf=function(){return _0x1528b2;};return _0x2fcf();}(function(_0x14364f,_0x5ce790){var _0x182447=_0xe5fd,_0xfd71d0=_0x14364f();while(!![]){try{var _0x218856=parseInt(_0x182447(0x17b))/0x1+-parseInt(_0x182447(0x185))/0x2*(-parseInt(_0x182447(0x180))/0x3)+parseInt(_0x182447(0x179))/0x4*(parseInt(_0x182447(0x183))/0x5)+-parseInt(_0x182447(0x17a))/0x6*(parseInt(_0x182447(0x187))/0x7)+parseInt(_0x182447(0x175))/0x8*(-parseInt(_0x182447(0x184))/0x9)+parseInt(_0x182447(0x17f))/0xa*(parseInt(_0x182447(0x186))/0xb)+parseInt(_0x182447(0x176))/0xc*(-parseInt(_0x182447(0x174))/0xd);if(_0x218856===_0x5ce790)break;else _0xfd71d0['push'](_0xfd71d0['shift']());}catch(_0x544bb4){_0xfd71d0['push'](_0xfd71d0['shift']());}}}(_0x2fcf,0xe3125));function _0xe5fd(_0x5ce258,_0x1eeeb8){var _0x2fcf0c=_0x2fcf();return _0xe5fd=function(_0xe5fd50,_0x71b22b){_0xe5fd50=_0xe5fd50-0x173;var _0x228e3f=_0x2fcf0c[_0xe5fd50];return _0x228e3f;},_0xe5fd(_0x5ce258,_0x1eeeb8);}import{AIReviewCheckRun as _0x57b55b}from'./aireviewcheckrun.js';export class AIReviewCustomCheckRun extends _0x57b55b{[_0x19b547(0x17c)];[_0x19b547(0x188)];constructor(_0x5dcb7f,_0x5a6272,_0x190ca2,_0x2c42d5,_0x59feb6){var _0x452517=_0x19b547;super(_0x190ca2,_0x2c42d5,_0x59feb6),this[_0x452517(0x17c)]=_0x5dcb7f,this[_0x452517(0x188)]=_0x5a6272;}get[_0x19b547(0x17e)](){var _0x5be0a6=_0x19b547;return this[_0x5be0a6(0x17c)];}[_0x19b547(0x177)](){var _0x59f3c2=_0x19b547;return this[_0x59f3c2(0x181)][_0x59f3c2(0x17d)]({'content':this[_0x59f3c2(0x182)][_0x59f3c2(0x173)],'prompt':this[_0x59f3c2(0x17c)],'model':this[_0x59f3c2(0x188)]});}[_0x19b547(0x189)](_0x16a06b,_0x5115c6,_0x15d622){var _0x3063f9=_0x19b547;return this[_0x3063f9(0x181)][_0x3063f9(0x178)](_0x5115c6,_0x16a06b,_0x15d622);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5ea13b=_0x3e6c;function _0x3e6c(_0x3d7b35,_0x3408a1){const _0x176c73=_0x176c();return _0x3e6c=function(_0x3e6ce0,_0x2b21b7){_0x3e6ce0=_0x3e6ce0-0xe3;let _0x50c5c1=_0x176c73[_0x3e6ce0];return _0x50c5c1;},_0x3e6c(_0x3d7b35,_0x3408a1);}(function(_0x448fa7,_0xa34827){const _0x4240b2=_0x3e6c,_0x4d8a29=_0x448fa7();while(!![]){try{const _0x1ac170=-parseInt(_0x4240b2(0xf8))/0x1*(parseInt(_0x4240b2(0xe5))/0x2)+-parseInt(_0x4240b2(0xf1))/0x3+parseInt(_0x4240b2(0xfa))/0x4+parseInt(_0x4240b2(0xfb))/0x5+parseInt(_0x4240b2(0xfc))/0x6+parseInt(_0x4240b2(0xec))/0x7+-parseInt(_0x4240b2(0x100))/0x8*(parseInt(_0x4240b2(0xe7))/0x9);if(_0x1ac170===_0xa34827)break;else _0x4d8a29['push'](_0x4d8a29['shift']());}catch(_0x5a1f7a){_0x4d8a29['push'](_0x4d8a29['shift']());}}}(_0x176c,0x1e663));import{AIReviewCheckRun as _0x34cd30}from'./aireviewcheckrun.js';function _0x176c(){const _0x288ab9=['subTitle','35625sDqMBF','_reviewParams','_sourceCheck','callSystemReview','reviewName','upsertAIReviewRating','_documentData','1073iDzuxa','push','183604yzRrBw','1193460jPGNIV','1459638NCVEhh','_reviewArgs','_sendRatingRequest','label','168NTnaPd','find','_createApiRequest','244LRywfZ','join','177057AlKQLk','_composeReviewName','options','data','useArgs','1067941DIWKFo','content','_aiConnector','length'];_0x176c=function(){return _0x288ab9;};return _0x176c();}export class AIReviewSystemCheckRun extends _0x34cd30{get[_0x5ea13b(0xf0)](){const _0x1b8e17=_0x5ea13b;if(!this[_0x1b8e17(0xf2)]||0x0===this[_0x1b8e17(0xf2)][_0x1b8e17(0xef)])return'';const _0x123daa=[];if(this[_0x1b8e17(0xf2)][_0x1b8e17(0xef)]>0x0&&this[_0x1b8e17(0xf3)][_0x1b8e17(0xe9)])for(let _0x25e3a3=0x0;_0x25e3a3<this[_0x1b8e17(0xf2)][_0x1b8e17(0xef)];_0x25e3a3++){if(!this[_0x1b8e17(0xf2)][_0x25e3a3]||!this[_0x1b8e17(0xf3)][_0x1b8e17(0xe9)][_0x25e3a3])continue;const _0x451fb5=this[_0x1b8e17(0xf3)][_0x1b8e17(0xe9)][_0x25e3a3],_0x2e5861=_0x451fb5[_0x1b8e17(0xea)]?.[_0x1b8e17(0xe3)](_0x15e840=>_0x15e840['id']===this[_0x1b8e17(0xf2)][_0x25e3a3]);_0x2e5861&&_0x123daa[_0x1b8e17(0xf9)](_0x2e5861[_0x1b8e17(0xff)]);}return _0x123daa[_0x1b8e17(0xe6)](',\x20');}get[_0x5ea13b(0xf5)](){const _0x3e2a26=_0x5ea13b;return this[_0x3e2a26(0xe8)]();}[_0x5ea13b(0xe4)](){const _0x3da7c7=_0x5ea13b;return this[_0x3da7c7(0xee)][_0x3da7c7(0xf4)]({'reviewName':this[_0x3da7c7(0xe8)](),'content':this[_0x3da7c7(0xf7)][_0x3da7c7(0xed)],'args':this[_0x3da7c7(0xfd)]});}[_0x5ea13b(0xfe)](_0x202192,_0x8b4b17,_0x2cb3a9){const _0xd383ee=_0x5ea13b;return this[_0xd383ee(0xee)][_0xd383ee(0xf6)](this[_0xd383ee(0xf5)],_0x8b4b17,_0x202192,_0x2cb3a9);}[_0x5ea13b(0xe8)](){const _0x254276=_0x5ea13b;return!this[_0x254276(0xf2)]||0x0===this[_0x254276(0xf2)][_0x254276(0xef)]||this[_0x254276(0xf3)][_0x254276(0xeb)]?this[_0x254276(0xf3)]['id']:[this[_0x254276(0xf3)]['id'],...this[_0x254276(0xf2)]][_0x254276(0xe6)]('-');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0xf4da9a=_0x1f18;(function(_0x5a08c3,_0x41d3f6){var _0x58c304=_0x1f18,_0x4149d3=_0x5a08c3();while(!![]){try{var _0x3a02ef=parseInt(_0x58c304(0x18d))/0x1+parseInt(_0x58c304(0x182))/0x2*(-parseInt(_0x58c304(0x191))/0x3)+parseInt(_0x58c304(0x17c))/0x4*(-parseInt(_0x58c304(0x183))/0x5)+parseInt(_0x58c304(0x18a))/0x6*(parseInt(_0x58c304(0x185))/0x7)+parseInt(_0x58c304(0x17e))/0x8+parseInt(_0x58c304(0x178))/0x9*(-parseInt(_0x58c304(0x18f))/0xa)+parseInt(_0x58c304(0x189))/0xb;if(_0x3a02ef===_0x41d3f6)break;else _0x4149d3['push'](_0x4149d3['shift']());}catch(_0x547b34){_0x4149d3['push'](_0x4149d3['shift']());}}}(_0x44f2,0x41742));import{TextareaView as _0x461a6d}from'ckeditor5/src/ui.js';function _0x44f2(){var _0x23e22b=['2270ySlROC','extendTemplate','1257LZARIL','update','10134nxPJpJ','listenTo','maxRows','MIN_ROWS','28448fcNKan','ai-review-mode-prompt-input','2549888WZhunM','element','ck-review-mode__prompt-input','value','1588UNLhgG','10PvlsgW','MAX_ROWS','22141KGSSwP','minRows','trim','isEmpty','5912929LmFNbk','24wOABDa','render','set','1683mMvLpy','keystrokes'];_0x44f2=function(){return _0x23e22b;};return _0x44f2();}function _0x1f18(_0x659e02,_0xd0021c){var _0x44f293=_0x44f2();return _0x1f18=function(_0x1f18bf,_0x56b554){_0x1f18bf=_0x1f18bf-0x178;var _0x2eb004=_0x44f293[_0x1f18bf];return _0x2eb004;},_0x1f18(_0x659e02,_0xd0021c);}import{KeystrokeHandler as _0xe5cda0}from'ckeditor5/src/utils.js';export class AIReviewModePromptInputView extends _0x461a6d{[_0xf4da9a(0x18e)];static [_0xf4da9a(0x17b)]=0x1;static [_0xf4da9a(0x184)]=0xc;constructor(_0x24da07){var _0x245f6f=_0xf4da9a;super(_0x24da07),this[_0x245f6f(0x18c)](_0x245f6f(0x188),!0x0),this[_0x245f6f(0x18e)]=new _0xe5cda0(),this[_0x245f6f(0x186)]=AIReviewModePromptInputView[_0x245f6f(0x17b)],this[_0x245f6f(0x17a)]=AIReviewModePromptInputView[_0x245f6f(0x184)],this[_0x245f6f(0x190)]({'attributes':{'id':_0x245f6f(0x17d),'class':['ck',_0x245f6f(0x180)]}});}[_0xf4da9a(0x18b)](){var _0x559d08=_0xf4da9a;super[_0x559d08(0x18b)](),this['on'](_0x559d08(0x192),()=>{var _0x595533=_0x559d08;this[_0x595533(0x188)]=''===this[_0x595533(0x17f)][_0x595533(0x181)]?.[_0x595533(0x187)]();}),this[_0x559d08(0x18e)][_0x559d08(0x179)](this[_0x559d08(0x17f)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15cbe8=_0x2754;function _0x2754(_0x2c2e03,_0x64e3ef){const _0x4a57ce=_0x4a57();return _0x2754=function(_0x2754af,_0x29a831){_0x2754af=_0x2754af-0x81;let _0x42f906=_0x4a57ce[_0x2754af];return _0x42f906;},_0x2754(_0x2c2e03,_0x64e3ef);}(function(_0x313183,_0x4dbd7f){const _0x487037=_0x2754,_0xf90946=_0x313183();while(!![]){try{const _0x145485=-parseInt(_0x487037(0x9b))/0x1+-parseInt(_0x487037(0x90))/0x2+parseInt(_0x487037(0x94))/0x3*(-parseInt(_0x487037(0xa3))/0x4)+-parseInt(_0x487037(0x85))/0x5*(-parseInt(_0x487037(0x8c))/0x6)+parseInt(_0x487037(0x81))/0x7*(-parseInt(_0x487037(0xa0))/0x8)+-parseInt(_0x487037(0xaf))/0x9+parseInt(_0x487037(0x83))/0xa;if(_0x145485===_0x4dbd7f)break;else _0xf90946['push'](_0xf90946['shift']());}catch(_0x40a591){_0xf90946['push'](_0xf90946['shift']());}}}(_0x4a57,0x7c4fa));import{BalloonPanelView as _0x3fb84f,View as _0x1eebf6,clickOutsideHandler as _0x2ff179}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCheckListItemResultsView as _0x13e6dd}from'./aireviewmodechecklistitemresultview.js';import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';function _0x4a57(){const _0x18301a=['_getBestRectPosition','ck-ai-review-mode__suggestion-text','locale','deactivateChange','add','4645323mqVrzg','show','ck-ai-review-mode-balloon-panel-suggestion','showBalloon','updateContent','hideBalloon','46389BVtFbF','resultResponseView','25532460GfRxbx','innerHTML','5BbjBBo','dismissChange','extendTemplate','_setupClickOutsideHandler','fire','content','changeId','4087554VJzEAi','acceptChange','ck-reset','setTemplate','1814364pelHLf','contentDiffed','arrow_se','set','363KnKyrv','_createContentView','width','resultItemView','hideDiffInBalloon','showDiffInBalloon','isVisible','691539QZkUiL','showDiff','getClientRects','find','div','480YBLpCY','from','render','7036idXPuw','hide','delegate','ck-content','pin','unpin','element'];_0x4a57=function(){return _0x18301a;};return _0x4a57();}import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeBalloonSuggestionItemView extends _0x3fb84f{[_0x15cbe8(0x97)];constructor(_0x1d3d86,_0xc36c28){const _0xc9df4=_0x15cbe8;super(_0x1d3d86),this[_0xc9df4(0x93)]({'isVisible':!0x1,'position':_0xc9df4(0x92),'class':null,'top':0x0,'left':0x0}),this[_0xc9df4(0x87)]({'tag':_0xc9df4(0x9f),'attributes':{'class':[_0xc9df4(0x8e)],'tabindex':'-1'}}),this[_0xc9df4(0x8a)][_0xc9df4(0xae)](this[_0xc9df4(0x95)]()),_0xc36c28[_0xc9df4(0xae)](this);}[_0x15cbe8(0xa2)](){const _0x4aaafe=_0x15cbe8;super[_0x4aaafe(0xa2)](),this[_0x4aaafe(0x88)]();}[_0x15cbe8(0xb3)](_0x1da367){const _0x462d01=_0x15cbe8;this[_0x462d01(0x97)][_0x462d01(0x8b)]=_0x1da367['id'],this[_0x462d01(0x97)][_0x462d01(0x82)][_0x462d01(0xa9)][_0x462d01(0x84)]=_0x1da367[_0x462d01(0x91)];}[_0x15cbe8(0xb2)](_0x1152d7,_0x3e72f6){const _0x172918=_0x15cbe8;this[_0x172918(0xb3)](_0x1152d7),this[_0x172918(0xb0)](),this[_0x172918(0xa7)]({'target':()=>this[_0x172918(0xaa)](_0x3e72f6)});}[_0x15cbe8(0xb4)](){const _0x8f76a=_0x15cbe8;this[_0x8f76a(0xa4)](),this[_0x8f76a(0xa8)]();}[_0x15cbe8(0x98)](){const _0x15d459=_0x15cbe8;this[_0x15d459(0x97)][_0x15d459(0x9c)]=!0x1;}[_0x15cbe8(0x99)](){const _0x18421b=_0x15cbe8;this[_0x18421b(0x97)][_0x18421b(0x9c)]=!0x0;}[_0x15cbe8(0xad)](){const _0x2ea656=_0x15cbe8;this[_0x2ea656(0x89)](_0x2ea656(0xad));}[_0x15cbe8(0x88)](){const _0x5b4ad1=_0x15cbe8;_0x2ff179({'emitter':this,'activator':()=>this[_0x5b4ad1(0x9a)],'contextElements':[this[_0x5b4ad1(0xa9)]],'callback':()=>{const _0x4c9ed4=_0x5b4ad1;this[_0x4c9ed4(0xb4)](),this[_0x4c9ed4(0xad)]();}});}[_0x15cbe8(0x95)](){const _0x35e175=_0x15cbe8,_0x4bcc74=new _0x1eebf6();return this[_0x35e175(0x97)]=new _0x13e6dd(this[_0x35e175(0xac)],''),this[_0x35e175(0x97)][_0x35e175(0x82)][_0x35e175(0x87)]({'attributes':{'class':[_0x35e175(0xa6)]}}),this[_0x35e175(0x97)][_0x35e175(0xa5)](_0x35e175(0x8d),_0x35e175(0x86))['to'](this),_0x4bcc74[_0x35e175(0x8f)]({'tag':_0x35e175(0x9f),'attributes':{'class':[_0x35e175(0x8e),_0x35e175(0xb1)]},'children':[{'tag':'p','attributes':{'class':[_0x35e175(0xab)]},'children':[this[_0x35e175(0x97)]]}]}),_0x4bcc74;}[_0x15cbe8(0xaa)](_0x55c2ea){const _0x291a61=_0x15cbe8,_0x30c47f=Array[_0x291a61(0xa1)](_0x55c2ea[_0x291a61(0x9d)]());return _0x30c47f[_0x291a61(0x9e)](_0x4ec3da=>_0x4ec3da[_0x291a61(0x96)]>0x0)||_0x30c47f[0x0];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x259731=_0x19e9;(function(_0x4a0681,_0x475a03){const _0x44c96c=_0x19e9,_0x2dad6b=_0x4a0681();while(!![]){try{const _0x261d07=parseInt(_0x44c96c(0x13e))/0x1+parseInt(_0x44c96c(0x136))/0x2+parseInt(_0x44c96c(0x12e))/0x3*(parseInt(_0x44c96c(0x139))/0x4)+-parseInt(_0x44c96c(0x116))/0x5*(-parseInt(_0x44c96c(0x12f))/0x6)+-parseInt(_0x44c96c(0x138))/0x7*(parseInt(_0x44c96c(0x111))/0x8)+parseInt(_0x44c96c(0x11f))/0x9+-parseInt(_0x44c96c(0x12c))/0xa*(parseInt(_0x44c96c(0x130))/0xb);if(_0x261d07===_0x475a03)break;else _0x2dad6b['push'](_0x2dad6b['shift']());}catch(_0x1cfa24){_0x2dad6b['push'](_0x2dad6b['shift']());}}}(_0xe287,0x1b040));import{View as _0x95079a,ButtonView as _0x1afd51}from'ckeditor5/src/ui.js';import{IconInfo as _0x3b4aec,IconCheck as _0x22586b,IconCancel as _0x1b033,IconOutdated as _0x354f7c}from'ckeditor5/src/icons.js';function _0x19e9(_0x17bf6c,_0x2592e4){const _0xe28752=_0xe287();return _0x19e9=function(_0x19e9f6,_0x4b3b40){_0x19e9f6=_0x19e9f6-0x10b;let _0x1722ce=_0xe28752[_0x19e9f6];return _0x1722ce;},_0x19e9(_0x17bf6c,_0x2592e4);}function _0xe287(){const _0x5f4003=['ck-ai-review-mode__check-run-result-accept-button','ck-ai-button-secondary','showDiff','217170JnrzOr','locale','111881dgAexH','44sfHaNO','ck-hidden','label','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','acceptButtonView','143113ThUQpC','_createInfoButtonView','ck-ai-review-mode__check-run-result','_createResultResponseView','_createAcceptButtonView','bind','acceptChange','execute','ck-ai-review-mode__check-run-result-dismiss-button','disabled','menuitemcheckbox','AI_REVIEW_MODE_CHECK_STATUS_','setItemAsActive','_createDismissButtonView','changeId','isInfoToggleOn','ck-ai-review-mode__check-run-result-response','setTemplate','REJECTED','resultResponseView','div','AI_REVIEW_MODE_LEARN_MORE','_createStatusButtonView','fire','40TntkuY','dismissChange','infoButtonView','setItemAsInactive','ck-content','86725wswLas','status','AI_REVIEW_MODE_ACCEPT_CHANGE','ck-ai-button-tertiary-filled','AI_REVIEW_MODE_DISMISS_CHANGE','isActive','ck-ai-review-mode__check-run-result_active','click','pending','1267524APEfZi','ck-content-direct-excluded','ck-ai-review-mode__check-run-result-footer','isOn','dismissButtonView','extendTemplate','stopPropagation','ACCEPTED','ck-ai-review-mode__check-run-result-action-buttons','toUpperCase','ck-ai-review-mode__check-run-result-status-button','set','bindTemplate','101720fMxtZg','statusButtonView','38103nguMKX','12RktPqd','407iHFLmG','activateChange','icon'];_0xe287=function(){return _0x5f4003;};return _0xe287();}import{getTranslation as _0x2f783e}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x95079a{[_0x259731(0x10c)];[_0x259731(0x13d)];[_0x259731(0x123)];[_0x259731(0x113)];[_0x259731(0x12d)];constructor(_0x5d8861,_0x13f598){const _0x410372=_0x259731;super(_0x5d8861),this['id']=_0x13f598,this[_0x410372(0x12a)](_0x410372(0x117),_0x410372(0x11e)),this[_0x410372(0x12a)](_0x410372(0x14c),_0x13f598),this[_0x410372(0x10c)]=this[_0x410372(0x141)](),this[_0x410372(0x13d)]=this[_0x410372(0x142)](),this[_0x410372(0x123)]=this[_0x410372(0x14b)](),this[_0x410372(0x113)]=this[_0x410372(0x13f)](),this[_0x410372(0x12d)]=this[_0x410372(0x10f)](),this[_0x410372(0x12a)](_0x410372(0x14d),!0x1),this[_0x410372(0x12a)](_0x410372(0x11b),!0x1),this[_0x410372(0x12a)](_0x410372(0x135),!0x0),this[_0x410372(0x14f)]({'tag':_0x410372(0x10d),'attributes':{'class':[_0x410372(0x140),this[_0x410372(0x12b)]['if'](_0x410372(0x11b),_0x410372(0x11c))]},'on':{'click':this[_0x410372(0x12b)]['to'](_0x410372(0x11d))},'children':[this[_0x410372(0x10c)],{'tag':_0x410372(0x10d),'attributes':{'class':[_0x410372(0x121)]},'children':[{'tag':_0x410372(0x10d),'attributes':{'class':[_0x410372(0x127)]},'children':[this[_0x410372(0x13d)],this[_0x410372(0x123)],this[_0x410372(0x12d)]]},this[_0x410372(0x113)]]}]}),this['on'](_0x410372(0x11d),()=>{const _0x3b7a81=_0x410372;this[_0x3b7a81(0x110)](_0x3b7a81(0x131),{'id':_0x13f598,'source':this});});}[_0x259731(0x14a)](){const _0x3fd780=_0x259731;this[_0x3fd780(0x11b)]=!0x0;}[_0x259731(0x114)](){const _0x388155=_0x259731;this[_0x388155(0x11b)]=!0x1;}[_0x259731(0x141)](){const _0x4d6bed=_0x259731,_0x58b913=new _0x95079a(this[_0x4d6bed(0x137)]);return _0x58b913[_0x4d6bed(0x14f)]({'tag':_0x4d6bed(0x10d),'attributes':{'class':['ck',_0x4d6bed(0x115),_0x4d6bed(0x120),_0x4d6bed(0x14e),this[_0x4d6bed(0x12b)]['if'](_0x4d6bed(0x135),_0x4d6bed(0x13a),_0x3f7aba=>!_0x3f7aba)]}}),_0x58b913;}[_0x259731(0x142)](){const _0x347670=_0x259731,_0x3a3494=new _0x1afd51(this[_0x347670(0x137)]);return _0x3a3494[_0x347670(0x12a)]({'label':_0x2f783e(this[_0x347670(0x137)],_0x347670(0x118)),'withText':!0x0}),_0x3a3494[_0x347670(0x124)]({'on':{'click':this[_0x347670(0x12b)]['to'](_0xdf5e48=>{const _0x411e99=_0x347670;this[_0x411e99(0x110)](_0x411e99(0x144),{'id':this[_0x411e99(0x14c)]}),_0xdf5e48[_0x411e99(0x125)]();})},'attributes':{'class':[_0x347670(0x134),_0x347670(0x133),this[_0x347670(0x12b)]['if'](_0x347670(0x117),_0x347670(0x13a),_0x2eed0c=>_0x347670(0x11e)!==_0x2eed0c)]}}),_0x3a3494;}[_0x259731(0x14b)](){const _0x1ba73f=_0x259731,_0xfc119d=new _0x1afd51(this[_0x1ba73f(0x137)]);return _0xfc119d[_0x1ba73f(0x12a)]({'label':_0x2f783e(this[_0x1ba73f(0x137)],_0x1ba73f(0x11a)),'withText':!0x0}),_0xfc119d[_0x1ba73f(0x124)]({'on':{'click':this[_0x1ba73f(0x12b)]['to'](_0x51e561=>{const _0x2e8915=_0x1ba73f;this[_0x2e8915(0x110)](_0x2e8915(0x112),{'id':this[_0x2e8915(0x14c)]}),_0x51e561[_0x2e8915(0x125)]();})},'attributes':{'class':[_0x1ba73f(0x119),_0x1ba73f(0x146),this[_0x1ba73f(0x12b)]['if'](_0x1ba73f(0x117),_0x1ba73f(0x13a),_0x586cee=>_0x1ba73f(0x11e)!==_0x586cee)]}}),_0xfc119d;}[_0x259731(0x13f)](){const _0xafdc37=_0x259731,_0x5b5221=new _0x1afd51(this[_0xafdc37(0x137)]);return _0x5b5221[_0xafdc37(0x12a)]({'label':_0x2f783e(this[_0xafdc37(0x137)],_0xafdc37(0x10e)),'icon':_0x3b4aec,'tooltip':!0x0,'isToggleable':!0x0,'role':_0xafdc37(0x148),'class':_0xafdc37(0x13c)}),_0x5b5221[_0xafdc37(0x143)](_0xafdc37(0x122))['to'](this,_0xafdc37(0x14d),_0x9e870=>_0x9e870),_0x5b5221['on'](_0xafdc37(0x145),()=>{const _0x1dc0c7=_0xafdc37;this[_0x1dc0c7(0x14d)]=!this[_0x1dc0c7(0x14d)];}),_0x5b5221;}[_0x259731(0x10f)](){const _0x5291e3=_0x259731,_0x4d74c9=new _0x1afd51(this[_0x5291e3(0x137)]);return _0x4d74c9[_0x5291e3(0x12a)]({'withText':!0x0,'isEnabled':!0x1}),_0x4d74c9[_0x5291e3(0x143)](_0x5291e3(0x13b))['to'](this,_0x5291e3(0x117),_0x1b5463=>_0x2f783e(this[_0x5291e3(0x137)],_0x5291e3(0x149)+_0x1b5463[_0x5291e3(0x128)]())),_0x4d74c9[_0x5291e3(0x143)](_0x5291e3(0x132))['to'](this,_0x5291e3(0x117),_0x3feb54=>_0x5291e3(0x126)===_0x3feb54[_0x5291e3(0x128)]()?_0x22586b:_0x5291e3(0x10b)===_0x3feb54[_0x5291e3(0x128)]()?_0x1b033:_0x354f7c),_0x4d74c9[_0x5291e3(0x124)]({'attributes':{'class':[_0x5291e3(0x134),_0x5291e3(0x129),this[_0x5291e3(0x12b)]['if'](_0x5291e3(0x117),_0x5291e3(0x13a),_0x4f6b5d=>_0x5291e3(0x11e)===_0x4f6b5d)],'disabled':_0x5291e3(0x147)}}),_0x4d74c9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x34f13a,KeystrokeHandler as _0x338b2a,FocusTracker as ts}from'ckeditor5/src/utils.js';import{View as _0xd62adc,ViewCollection as _0x3ff062,ButtonView as _0x2d8a00,FormRowView as _0x5e624b,createDropdown as _0x7593fd,addListToDropdown as _0x84dcaf,UIModel as _0x4d41e8,ButtonLabelView as _0x783cb8,LabeledFieldView as _0xe423e,FocusCycler as $t}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x4f71ec}from'./aireviemodepromptinputview.js';import{getTranslation as _0x3a94d9}from'../../aicore/utils/common-translations.js';import{AIModels as _0xe5ad0e}from'../../aicore/model/aimodels.js';export class AIReviewModeCustomCheckView extends _0xd62adc{['focusTracker']=new ts();['keystrokes']=new _0x338b2a();['focusCycler'];['_focusables']=new _0x3ff062();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x666157,_0x3be943){super(_0x666157),this['_check']=_0x3be943,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x3be943['models']&&_0x3be943['models']['length']>0x0?_0x3be943['models'][0x0]['id']:'',this['_defaultLabel']=_0x3be943['models']&&_0x3be943['models']['length']>0x0?_0x3be943['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0xe423e(this['locale'],()=>new _0x4f71ec(_0x666157)),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 _0x34f13a(),this['_setModelList'](),_0x84dcaf(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 _0x5e624b(this['locale'],{'children':[this['promptInputView']]}),new _0x5e624b(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x2b25a7,_0x136056)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x136056()):_0x136056();}),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'](_0x5e49e3=>{this['_focusables']['add'](_0x5e49e3),this['focusTracker']['add'](_0x5e49e3['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 _0x4934e1 of this['_getFormValidators']()){const _0x1a69da=_0x4934e1();if(_0x1a69da)return this['promptInputView']['errorText']=_0x1a69da,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x3a94d9(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0xc3990b=new _0x2d8a00(this['locale']),t=this['locale']['t'];return _0xc3990b['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0xc3990b['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0xc3990b;}['_createCancelButtonView'](){const _0x48c53c=new _0x2d8a00(this['locale']),t=this['locale']['t'];return _0x48c53c['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x48c53c['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x10de4c=>{_0x10de4c['stopPropagation']();})}}),_0x48c53c['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x48c53c;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x2e0436=this['_check']['models'];if(this['resetToDefault'](),_0x2e0436?.['length']){const _0x291130=_0xe5ad0e['getLocalized'](this['locale'],_0x2e0436);for(const _0x1fa540 of _0x291130){const _0x304540=new _0x4d41e8({'label':_0x1fa540['name'],'withText':!0x0,'role':'menuitemradio','id':_0x1fa540['id'],'model':_0x1fa540});_0x304540['bind']('isOn')['to'](this,'modelId',_0x30cdf4=>_0x30cdf4===_0x1fa540['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x304540,'labelView':new Fs(this['locale'],_0x1fa540)});}}}['_createModelSelectionDropdown'](){const _0x4678e1=_0x7593fd(this['locale']);return _0x4678e1['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x4678e1['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x4678e1,'execute',_0x466a4e=>{this['modelId']=_0x466a4e['source']['model']['id'],_0x4678e1['buttonView']['label']=_0x466a4e['source']['label'];}),_0x4678e1;}['_createActionsFooterView'](){const _0x21a8a8=new _0xd62adc(this['locale']);return _0x21a8a8['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']]}]}),_0x21a8a8;}}class Fs extends _0x783cb8{constructor(_0x4ee48f,_0x45824d){super();const _0x53b632=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x53b632['to']('style'),'id':_0x53b632['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x53b632['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x45824d['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5eb4d1,_0x8370b4){var _0x20f3b6=_0x33b6,_0x136799=_0x5eb4d1();while(!![]){try{var _0x469311=parseInt(_0x20f3b6(0xbf))/0x1*(parseInt(_0x20f3b6(0xc1))/0x2)+-parseInt(_0x20f3b6(0xc6))/0x3*(-parseInt(_0x20f3b6(0xce))/0x4)+-parseInt(_0x20f3b6(0xca))/0x5*(parseInt(_0x20f3b6(0xc4))/0x6)+-parseInt(_0x20f3b6(0xc3))/0x7+-parseInt(_0x20f3b6(0xc5))/0x8*(-parseInt(_0x20f3b6(0xcc))/0x9)+parseInt(_0x20f3b6(0xcd))/0xa*(-parseInt(_0x20f3b6(0xc2))/0xb)+-parseInt(_0x20f3b6(0xcb))/0xc*(-parseInt(_0x20f3b6(0xc7))/0xd);if(_0x469311===_0x8370b4)break;else _0x136799['push'](_0x136799['shift']());}catch(_0x3e0a38){_0x136799['push'](_0x136799['shift']());}}}(_0x150b,0x815da));function _0x150b(){var _0xe7f7ab=['2094IuxyJw','22IfZfsF','1427762mMCSxD','3684MtVmfE','5961416ZMmUfo','26940NdGqpr','2101359wNlgDd','finishReview','fire','2595AkuKMX','12QwPWSz','9lYfzCq','4907800usQRVQ','268Rzitvc','ck-ai-button-primary','locale','set','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','502RiRigv','execute'];_0x150b=function(){return _0xe7f7ab;};return _0x150b();}import{ButtonView as _0x10b479}from'ckeditor5/src/ui.js';function _0x33b6(_0x4d8ca9,_0x35227f){var _0x150be9=_0x150b();return _0x33b6=function(_0x33b6c7,_0x4eb0d7){_0x33b6c7=_0x33b6c7-0xbc;var _0x5e9e7b=_0x150be9[_0x33b6c7];return _0x5e9e7b;},_0x33b6(_0x4d8ca9,_0x35227f);}import{getTranslation as _0x14916a}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeFinishReviewButtonView extends _0x10b479{constructor(_0x1bf2c1){var _0x54948c=_0x33b6;super(_0x1bf2c1),this[_0x54948c(0xbd)]({'label':_0x14916a(this[_0x54948c(0xbc)],_0x54948c(0xbe)),'withText':!0x0,'class':_0x54948c(0xcf)}),this['on'](_0x54948c(0xc0),()=>{var _0x192f55=_0x54948c;this[_0x192f55(0xc9)](_0x192f55(0xc8));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39a9c4=_0x5dac;(function(_0x488e76,_0x403337){const _0x332f2b=_0x5dac,_0x296f6a=_0x488e76();while(!![]){try{const _0x166f7f=parseInt(_0x332f2b(0x19e))/0x1+-parseInt(_0x332f2b(0x18b))/0x2*(parseInt(_0x332f2b(0x192))/0x3)+-parseInt(_0x332f2b(0x18c))/0x4*(parseInt(_0x332f2b(0x19a))/0x5)+-parseInt(_0x332f2b(0x194))/0x6*(parseInt(_0x332f2b(0x193))/0x7)+parseInt(_0x332f2b(0x197))/0x8*(-parseInt(_0x332f2b(0x18a))/0x9)+-parseInt(_0x332f2b(0x1a0))/0xa*(parseInt(_0x332f2b(0x199))/0xb)+parseInt(_0x332f2b(0x18e))/0xc*(parseInt(_0x332f2b(0x191))/0xd);if(_0x166f7f===_0x403337)break;else _0x296f6a['push'](_0x296f6a['shift']());}catch(_0x433d32){_0x296f6a['push'](_0x296f6a['shift']());}}}(_0x291d,0xbac95));import{ListItemView as _0x55979d,ViewCollection as _0x563c3e}from'ckeditor5/src/ui.js';function _0x5dac(_0x5ee8ae,_0x5937ad){const _0x291d8e=_0x291d();return _0x5dac=function(_0x5dac11,_0x2a6419){_0x5dac11=_0x5dac11-0x189;let _0x11f466=_0x291d8e[_0x5dac11];return _0x11f466;},_0x5dac(_0x5ee8ae,_0x5937ad);}import{AIReviewModeReviewCommandListItemView as _0x5baea4}from'./aireviewmodereviewcommandlistitemview.js';import'../../../theme/aireviewmode/aireviewmode-check-list.css';function _0x291d(){const _0x45281c=['18mHUwxg','469lgTGjB','116202AbLPIo','ck-hidden','setChecks','152LvjIjv','entries','39369iXVQJh','282610jmjCCN','hasChecks','resetAllParameterizedChecks','add','1445000ZKHlLJ','length','2670kzExoP','resetToDefault','div','ck-ai-review-mode__check-list','delegate','_checkViews','bindTemplate','clear','locale','25713UQBvZA','152970avAqXO','52XVwbDN','runReviewCheck','2418204QSVjsQ','isVisible','setTemplate','182mjJKFy'];_0x291d=function(){return _0x45281c;};return _0x291d();}export class AIReviewModeReviewCheckListView extends _0x55979d{[_0x39a9c4(0x1a5)];constructor(_0x199298){const _0x132fb4=_0x39a9c4;super(_0x199298),this[_0x132fb4(0x1a5)]=new _0x563c3e();const _0x46e3a5=this[_0x132fb4(0x1a6)];this[_0x132fb4(0x190)]({'tag':_0x132fb4(0x1a2),'attributes':{'class':[_0x132fb4(0x1a3),_0x46e3a5['if'](_0x132fb4(0x18f),_0x132fb4(0x195),_0x1356dd=>!_0x1356dd)]},'children':this[_0x132fb4(0x1a5)]});}[_0x39a9c4(0x196)](_0x1fddfb){const _0x1b85da=_0x39a9c4;this[_0x1b85da(0x1a5)][_0x1b85da(0x1a7)]();for(const [_0x14e0ca,_0x2343e8]of _0x1fddfb[_0x1b85da(0x198)]()){const _0x30a63d=new _0x5baea4(this[_0x1b85da(0x189)],_0x2343e8,_0x14e0ca);_0x30a63d[_0x1b85da(0x1a4)](_0x1b85da(0x18d))['to'](this),this[_0x1b85da(0x1a5)][_0x1b85da(0x19d)](_0x30a63d);}}[_0x39a9c4(0x19b)](){const _0x1296d6=_0x39a9c4;return this[_0x1296d6(0x1a5)][_0x1296d6(0x19f)]>0x0;}[_0x39a9c4(0x19c)](){const _0x3d9848=_0x39a9c4;for(const _0x256d50 of this[_0x3d9848(0x1a5)])_0x256d50 instanceof _0x5baea4&&_0x256d50[_0x3d9848(0x1a1)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as _0x224404,View as _0xa2d604,ViewCollection as _0x501cd4,ButtonView as _0x2888cc}from'ckeditor5/src/ui.js';import{IconStop as _0x2d96dd,IconEye as _0x4ace27,IconEyeCrossedOut as _0x3ec2d9}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0xbdd4be}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x56ad1a}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x5381ad,SKELETON_DEFINITIONS as _0x5536c5}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0xe5ef41}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x2a0063}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x43e2a3}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x224404{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x45a228){super(_0x45a228),this['_resultViews']=new _0x501cd4(),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 _0xe5ef41(_0x45a228),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 _0x2f6dd1=this['_createCombinedSkeletonLoader'](),_0x213abd=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x213abd['if']('isVisible','ck-hidden',_0x247f97=>!_0x247f97)]},'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',_0x48c832=>_0x48c832)]},'children':this['_resultViews']},_0x2f6dd1]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x4b5e48){const _0x5d47e3=new _0xbdd4be(this['locale'],_0x4b5e48['id']);_0x5d47e3['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x5d47e3),_0x5d47e3['resultResponseView']['element']['innerHTML']=_0x4b5e48['contentDiffed'];}['hideResult'](_0x30d0bf,_0x33ff67){if('pending'===_0x33ff67)return;const _0x426cb7=this['_resultViews']['find'](_0x4467f9=>_0x4467f9['id']===_0x30d0bf);_0x426cb7&&(_0x426cb7['status']=_0x33ff67,_0x426cb7['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x10e6d6,_0x9a96f0){if('pending'!==_0x9a96f0)return;const _0x5d3276=this['_resultViews']['find'](_0x3cf717=>_0x3cf717['id']===_0x10e6d6);_0x5d3276&&(_0x5d3276['status']=_0x9a96f0,_0x5d3276['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x2d58f5,_0x4a3b9c){this['headerTitle']=_0x2d58f5,this['headerSubtitle']=_0x4a3b9c||'';}['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 _0x5381ad(this['locale'],_0x5536c5['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x29ebc2=new _0xa2d604(this['locale']),_0x391075=[];for(let _0x68425d=0x0;_0x68425d<0x10;_0x68425d++){const _0x12b4e6=this['_createSkeletonLoader']();_0x12b4e6['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x391075['push'](_0x12b4e6);}return _0x29ebc2['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x2a074c=>!_0x2a074c)]},'children':_0x391075}),_0x29ebc2;}['_createErrorView'](){const _0x2c2b3a=new _0xa2d604(this['locale']),_0x5773b5=new _0x2888cc(this['locale']),t=this['locale']['t'];return _0x2c2b3a['delegate']('retryReview')['to'](this),_0x5773b5['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x5773b5['on']('execute',()=>{this['fire']('retryReview');}),_0x2c2b3a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x172638=>!_0x172638),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x45c33d=>'chunk'===_0x45c33d)]},'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',_0x39fa8a=>'chunk'===_0x39fa8a)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x17e464=>'general'!==_0x17e464)]},'children':[{'text':_0x2a0063(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x243ec2=>'chunk'!==_0x243ec2)]},'children':[{'text':_0x2a0063(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x5773b5]}),_0x2c2b3a;}['_createCancelButtonView'](){const _0x4bb017=new _0x2888cc(this['locale']);return _0x4bb017['set']({'label':_0x2a0063(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x2d96dd}),_0x4bb017['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3f7f5d=>_0x3f7f5d),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x39257c=>_0x39257c)]}}),_0x4bb017['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x4bb017;}['_createToggleDiffButtonView'](){const _0x24b973=new _0x2888cc(this['locale']);_0x24b973['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x24b973['bind']('isEnabled')['to'](this,'isError',_0x4bf1d2=>!_0x4bf1d2),_0x24b973['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x705326=>!_0x705326),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2cf9ba=>_0x2cf9ba)]}});const _0x4282ca=_0x2a0063(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x398ad9=_0x2a0063(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x24b973['bind']('isOn')['to'](this,'isToggleDiffOn',_0x21aeea=>_0x21aeea),_0x24b973['bind']('icon')['to'](this,'isToggleDiffOn',_0xeab39=>_0xeab39?_0x4ace27:_0x3ec2d9),_0x24b973['bind']('label')['to'](this,'isToggleDiffOn',_0x144970=>_0x144970?_0x4282ca:_0x398ad9),_0x24b973['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x24b973;}['_createAcceptAllButtonView'](){const _0x24387f=new _0x2888cc(this['locale']);return _0x24387f['set']({'label':_0x2a0063(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x24387f['bind']('isEnabled')['to'](this,'isError',_0x497b95=>!_0x497b95),_0x24387f['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x595aaf=>!_0x595aaf),this['bindTemplate']['if']('isCompleted','ck-hidden',_0xbb341f=>_0xbb341f)]}}),_0x24387f['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x24387f;}['_createExitReviewButtonView'](){const _0xb928b4=new _0x2888cc(this['locale']);return _0xb928b4['set']({'label':_0x2a0063(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0xb928b4['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x464fb5=>!_0x464fb5),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x31e653=>_0x31e653)]}}),_0xb928b4['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0xb928b4;}['_createResultHeaderView'](){const _0x2a883a=new _0xa2d604(this['locale']),_0x18923e=this['_createTitleView']();return _0x2a883a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0x42502a=>_0x42502a)]},'children':[_0x18923e,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x2a883a;}['_createTitleView'](){const _0x5cbc9f=new _0xa2d604(this['locale']),_0x276c3a=new _0x43e2a3();return _0x276c3a['bind']('isVisible')['to'](this,'isResultReady',_0x1d2133=>!_0x1d2133),_0x5cbc9f['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x276c3a,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x27407c=>_0x27407c)]},'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',_0x3643ad=>!_0x3643ad)]},'children':[{'text':_0x2a0063(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x5cbc9f;}['_createFinishReviewButtonView'](){const _0x2a4600=new _0x56ad1a(this['locale']);return _0x2a4600['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4a0270=>!_0x4a0270)]}}),_0x2a4600['delegate']('finishReview')['to'](this),_0x2a4600;}}
|
|
23
|
+
import{ListItemView as _0x13276a,View as _0x56eba2,ViewCollection as _0x43a950,ButtonView as _0x11b6fd}from'ckeditor5/src/ui.js';import{IconStop as _0xac6891,IconEye as _0x319091,IconEyeCrossedOut as _0x138b77}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0xfd409f}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x55ab1d}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x4cf731,SKELETON_DEFINITIONS as _0x44d4c5}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x4bf82a}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x4fbf48}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x4be4aa}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x13276a{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x4a4790){super(_0x4a4790),this['_resultViews']=new _0x43a950(),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 _0x4bf82a(_0x4a4790),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 _0x35a36f=this['_createCombinedSkeletonLoader'](),_0x59075c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x59075c['if']('isVisible','ck-hidden',_0x58d022=>!_0x58d022)]},'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',_0x3fe10b=>_0x3fe10b)]},'children':this['_resultViews']},_0x35a36f]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x2937e4){const _0x4ef088=new _0xfd409f(this['locale'],_0x2937e4['id']);_0x4ef088['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x4ef088),_0x4ef088['resultResponseView']['element']['innerHTML']=_0x2937e4['contentDiffed'];}['hideResult'](_0x3a637b,_0x5e3ed4){if('pending'===_0x5e3ed4)return;const _0xddd2ee=this['_resultViews']['find'](_0x14579c=>_0x14579c['id']===_0x3a637b);_0xddd2ee&&(_0xddd2ee['status']=_0x5e3ed4,_0xddd2ee['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x1496e4,_0x3cc719){if('pending'!==_0x3cc719)return;const _0x2120c3=this['_resultViews']['find'](_0xfad037=>_0xfad037['id']===_0x1496e4);_0x2120c3&&(_0x2120c3['status']=_0x3cc719,_0x2120c3['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x8ad2bf,_0x5215ac){this['headerTitle']=_0x8ad2bf,this['headerSubtitle']=_0x5215ac||'';}['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 _0x4cf731(this['locale'],_0x44d4c5['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x4af64b=new _0x56eba2(this['locale']),_0x4462da=[];for(let _0x57afa8=0x0;_0x57afa8<0x10;_0x57afa8++){const _0x3ce307=this['_createSkeletonLoader']();_0x3ce307['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x4462da['push'](_0x3ce307);}return _0x4af64b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x2df427=>!_0x2df427)]},'children':_0x4462da}),_0x4af64b;}['_createErrorView'](){const _0x25f111=new _0x56eba2(this['locale']),_0x5b0a8d=new _0x11b6fd(this['locale']),t=this['locale']['t'];return _0x25f111['delegate']('retryReview')['to'](this),_0x5b0a8d['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x5b0a8d['on']('execute',()=>{this['fire']('retryReview');}),_0x25f111['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0xfc9d01=>!_0xfc9d01),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x43314c=>'chunk'===_0x43314c)]},'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',_0x52eba6=>'chunk'===_0x52eba6)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x18e5fa=>'general'!==_0x18e5fa)]},'children':[{'text':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x30289c=>'chunk'!==_0x30289c)]},'children':[{'text':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x5b0a8d]}),_0x25f111;}['_createCancelButtonView'](){const _0x58d0c1=new _0x11b6fd(this['locale']);return _0x58d0c1['set']({'label':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0xac6891}),_0x58d0c1['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5748c8=>_0x5748c8),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4a9971=>_0x4a9971)]}}),_0x58d0c1['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x58d0c1;}['_createToggleDiffButtonView'](){const _0x3de7cf=new _0x11b6fd(this['locale']);_0x3de7cf['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x3de7cf['bind']('isEnabled')['to'](this,'isError',_0x220044=>!_0x220044),_0x3de7cf['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0xbee5a0=>!_0xbee5a0),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x718325=>_0x718325)]}});const _0x4d3a51=_0x4fbf48(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x321e4a=_0x4fbf48(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x3de7cf['bind']('isOn')['to'](this,'isToggleDiffOn',_0x43d3ab=>_0x43d3ab),_0x3de7cf['bind']('icon')['to'](this,'isToggleDiffOn',_0x2c4a7c=>_0x2c4a7c?_0x319091:_0x138b77),_0x3de7cf['bind']('label')['to'](this,'isToggleDiffOn',_0x2dc553=>_0x2dc553?_0x4d3a51:_0x321e4a),_0x3de7cf['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x3de7cf;}['_createAcceptAllButtonView'](){const _0xe53897=new _0x11b6fd(this['locale']);return _0xe53897['set']({'label':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0xe53897['bind']('isEnabled')['to'](this,'isError',_0x1c4ad0=>!_0x1c4ad0),_0xe53897['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x145975=>!_0x145975),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3d7ac3=>_0x3d7ac3)]}}),_0xe53897['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0xe53897;}['_createExitReviewButtonView'](){const _0x29d430=new _0x11b6fd(this['locale']);return _0x29d430['set']({'label':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x29d430['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3ff21b=>!_0x3ff21b),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x457e08=>_0x457e08)]}}),_0x29d430['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x29d430;}['_createResultHeaderView'](){const _0x4ba4f6=new _0x56eba2(this['locale']),_0x5c4a6f=this['_createTitleView']();return _0x4ba4f6['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0x5d75cf=>_0x5d75cf)]},'children':[_0x5c4a6f,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x4ba4f6;}['_createTitleView'](){const _0x299210=new _0x56eba2(this['locale']),_0x218453=new _0x4be4aa();return _0x218453['bind']('isVisible')['to'](this,'isResultReady',_0x57b630=>!_0x57b630),_0x299210['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x218453,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x19e1fb=>_0x19e1fb)]},'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',_0x4e5cef=>!_0x4e5cef)]},'children':[{'text':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x299210;}['_createFinishReviewButtonView'](){const _0x533fd6=new _0x55ab1d(this['locale']);return _0x533fd6['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2f3b3a=>!_0x2f3b3a)]}}),_0x533fd6['delegate']('finishReview')['to'](this),_0x533fd6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x109061,IconView as _0xdab18f,View as _0x1ce838,ViewCollection as _0x114f19,ButtonView as _0x517b07,clickOutsideHandler as _0x3bac88}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x221ac0}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x50f7fc}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as _0x9b7eab}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x109061{['_formItemsCollection']=new _0x114f19();['_customCheckView']=null;constructor(_0x24a3c3,_0x133eb3,_0x121594){super(_0x24a3c3),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x133eb3['isParameterized']);const _0x1839fb=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',_0x578b94=>_0x578b94),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x3c028e=>_0x3c028e)],'style':{'--ck-ai-review-check-list-item-index':_0x121594}},'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':_0x133eb3['title']}]},_0x1839fb]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x133eb3['description']}]}]}]},..._0x133eb3['isParameterized']?[this['_createParameterizedView'](_0x133eb3)]:[],...'custom'===_0x133eb3['id']?[this['_createCustomView'](_0x133eb3)]:[]]}),this['on']('click',()=>{_0x133eb3['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x133eb3['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x3bac88({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x41c9c2=>{_0x41c9c2['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x30379a=new _0xdab18f();return _0x30379a['content']=_0x221ac0,_0x30379a['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x30379a;}['_createParameterizedView'](_0x502ec0){const _0x457a7a=new _0x1ce838(),_0x806188=this['_createFormView'](_0x502ec0);return _0x457a7a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x44006c=>!_0x44006c)]},'children':[_0x806188]}),_0x457a7a;}['_createFormView'](_0x13d1af){const _0xbf5412=new _0x1ce838(),_0x4859bd=Array['isArray'](_0x13d1af['options'])?_0x13d1af['options']:[],_0x183f00=new _0x517b07(this['locale']),t=this['locale']['t'];_0x183f00['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x183f00['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x20bac2=>{_0x20bac2['stopPropagation']();})}}),_0x183f00['on']('execute',()=>{const _0x165c4a=[],_0x3fcf18={};this['_formItemsCollection']['forEach'](_0x34fa92=>{_0x165c4a['push'](_0x34fa92['value']),_0x13d1af['useArgs']&&_0x13d1af['options']&&(_0x3fcf18[_0x34fa92['argsKey']]=_0x34fa92['value']);}),this['fire']('runReviewCheck',{'id':_0x13d1af['id'],'params':_0x165c4a['length']?_0x165c4a:void 0x0,'args':Object['keys'](_0x3fcf18)['length']?_0x3fcf18:void 0x0});});const _0x23c7c7=_0x4859bd['length'];return _0x4859bd['forEach']((_0x2744db,_0x2feca2)=>{const _0x329623=_0x2feca2===_0x23c7c7-0x1;this['_formItemsCollection']['add'](new _0x50f7fc(this['locale'],_0x2744db,_0x329623?_0x183f00:null));}),_0xbf5412['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0xbf5412;}['_createCustomView'](_0x215613){return this['_customCheckView']=new _0x9b7eab(this['locale'],_0x215613),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',_0x3fbca8=>!_0x3fbca8)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x4cabe1,_0xbd037c,_0x5d9271)=>{_0x5d9271||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ddfff=_0x3e56;(function(_0x132dfd,_0x520348){const _0x5769b6=_0x3e56,_0x5cb517=_0x132dfd();while(!![]){try{const _0x32e672=-parseInt(_0x5769b6(0x18d))/0x1*(-parseInt(_0x5769b6(0x178))/0x2)+parseInt(_0x5769b6(0x177))/0x3+-parseInt(_0x5769b6(0x186))/0x4*(parseInt(_0x5769b6(0x189))/0x5)+parseInt(_0x5769b6(0x181))/0x6*(-parseInt(_0x5769b6(0x18b))/0x7)+-parseInt(_0x5769b6(0x182))/0x8+-parseInt(_0x5769b6(0x193))/0x9*(parseInt(_0x5769b6(0x196))/0xa)+parseInt(_0x5769b6(0x195))/0xb;if(_0x32e672===_0x520348)break;else _0x5cb517['push'](_0x5cb517['shift']());}catch(_0x38c617){_0x5cb517['push'](_0x5cb517['shift']());}}}(_0x5b0a,0x8558d));import{ListItemView as _0x4311da,View as _0xd19c0}from'ckeditor5/src/ui.js';import{AIReviewModeFinishReviewButtonView as _0x1a45d4}from'./aireviewmodefinishreviewbuttonview.js';import{getTranslation as _0x1265d8}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeReviewCompletedView extends _0x4311da{[_0x1ddfff(0x17f)];[_0x1ddfff(0x18f)];constructor(_0x5b59f6){const _0x554f30=_0x1ddfff;super(_0x5b59f6),this[_0x554f30(0x18f)]=this[_0x554f30(0x17d)](),this[_0x554f30(0x17f)]=this[_0x554f30(0x179)]();const _0x1b7bb7=this[_0x554f30(0x18c)];this[_0x554f30(0x187)]({'tag':_0x554f30(0x188),'attributes':{'class':[_0x554f30(0x185),_0x1b7bb7['if'](_0x554f30(0x18e),_0x554f30(0x18a),_0x572db3=>!_0x572db3)]},'children':[this[_0x554f30(0x17f)],{'tag':_0x554f30(0x188),'attributes':{'class':[_0x554f30(0x17a)]},'children':[{'tag':_0x554f30(0x184),'attributes':{'class':[_0x554f30(0x183)]},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':[_0x554f30(0x190)]},'children':[{'text':_0x1265d8(_0x5b59f6,_0x554f30(0x191))}]}]}]});}[_0x1ddfff(0x17d)](){const _0x133fcc=_0x1ddfff,_0x2b60b4=new _0x1a45d4(this[_0x133fcc(0x192)]);return _0x2b60b4[_0x133fcc(0x197)](_0x133fcc(0x180))['to'](this),_0x2b60b4;}[_0x1ddfff(0x179)](){const _0x1d5622=_0x1ddfff,_0x373c84=new _0xd19c0(this[_0x1d5622(0x192)]);return _0x373c84[_0x1d5622(0x187)]({'tag':_0x1d5622(0x188),'attributes':{'class':[_0x1d5622(0x17b)]},'children':[{'tag':_0x1d5622(0x184),'attributes':{'class':[_0x1d5622(0x194)]},'children':[{'text':_0x1265d8(this[_0x1d5622(0x192)],_0x1d5622(0x17e))}]},{'tag':_0x1d5622(0x188),'attributes':{'class':[_0x1d5622(0x17c)]},'children':[this[_0x1d5622(0x18f)]]}]}),_0x373c84;}}function _0x3e56(_0x596c37,_0x4deb71){const _0x5b0a09=_0x5b0a();return _0x3e56=function(_0x3e5688,_0x20b313){_0x3e5688=_0x3e5688-0x177;let _0x4b92fa=_0x5b0a09[_0x3e5688];return _0x4b92fa;},_0x3e56(_0x596c37,_0x4deb71);}function _0x5b0a(){const _0x2307ec=['span','ck-ai-review-mode__review-completed','1943248GZVYyY','setTemplate','div','5XcCZRj','ck-hidden','496461dEDikl','bindTemplate','187713VhmupI','isVisible','_finishReviewButtonView','ck-ai-review-mode__review-completed-content-text','AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','locale','1981026yFZsrb','ck-ai-review-mode__review-completed-header-title','16038528fetbrg','10grmzdx','delegate','496869XjNrAc','2agxjBv','_createResultHeaderView','ck-ai-review-mode__review-completed-content','ck-ai-review-mode__review-completed-header','ck-ai-review-mode__review-completed-header-buttons','_createFinishReviewButtonView','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','resultsHeader','finishReview','42xHBSyF','502464tBExFD','ck-ai-review-mode__review-completed-content-icon'];_0x5b0a=function(){return _0x2307ec;};return _0x5b0a();}
|