@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x52abb6=_0x4bc6;(function(_0x348840,_0x29b34a){var _0x3e0f35=_0x4bc6,_0x1469a1=_0x348840();while(!![]){try{var _0x405fc0=-parseInt(_0x3e0f35(0x15a))/0x1*(-parseInt(_0x3e0f35(0x161))/0x2)+-parseInt(_0x3e0f35(0x160))/0x3*(-parseInt(_0x3e0f35(0x15e))/0x4)+-parseInt(_0x3e0f35(0x168))/0x5*(-parseInt(_0x3e0f35(0x163))/0x6)+-parseInt(_0x3e0f35(0x158))/0x7+parseInt(_0x3e0f35(0x166))/0x8+-parseInt(_0x3e0f35(0x155))/0x9+-parseInt(_0x3e0f35(0x15b))/0xa;if(_0x405fc0===_0x29b34a)break;else _0x1469a1['push'](_0x1469a1['shift']());}catch(_0x37aae2){_0x1469a1['push'](_0x1469a1['shift']());}}}(_0xc643,0xc95a3));function _0x4bc6(_0x41738e,_0x502d78){var _0xc643a2=_0xc643();return _0x4bc6=function(_0x4bc6d3,_0x8bb3a4){_0x4bc6d3=_0x4bc6d3-0x153;var _0xc8a289=_0xc643a2[_0x4bc6d3];return _0xc8a289;},_0x4bc6(_0x41738e,_0x502d78);}import{ObservableMixin as _0x2c99ad}from'ckeditor5/src/utils.js';export class AIReviewCheckResultChange extends _0x2c99ad(){['id'];[_0x52abb6(0x169)];[_0x52abb6(0x164)];[_0x52abb6(0x162)]=[];constructor(_0x480bdb,_0xdfa4e6,_0xb73a24){var _0x21ed7d=_0x52abb6;super(),this['id']=_0x480bdb,this[_0x21ed7d(0x169)]=_0xb73a24,this[_0x21ed7d(0x164)]=_0xdfa4e6,this[_0x21ed7d(0x157)](_0x21ed7d(0x15d),!0x1),this[_0x21ed7d(0x157)](_0x21ed7d(0x154),!0x1),this[_0x21ed7d(0x157)](_0x21ed7d(0x165),_0x21ed7d(0x167)),this['on'](_0x21ed7d(0x153),()=>{var _0xc226f1=_0x21ed7d;_0xc226f1(0x167)!==this[_0xc226f1(0x165)]&&this[_0xc226f1(0x15d)]&&(this[_0xc226f1(0x15d)]=!0x1);});}get[_0x52abb6(0x15c)](){var _0xd30b35=_0x52abb6;return this[_0xd30b35(0x164)][_0xd30b35(0x159)]();}get[_0x52abb6(0x156)](){var _0x4bde27=_0x52abb6;return this[_0x4bde27(0x164)][_0x4bde27(0x156)];}get[_0x52abb6(0x15f)](){var _0x45a50f=_0x52abb6;return this[_0x45a50f(0x164)][_0x45a50f(0x15f)];}}function _0xc643(){var _0x40f8c8=['9018472dxmQjh','pending','5084325AlCXmA','parent','change:status','isRated','1835082UHlfjC','operations','set','10561775KoSWBg','context','29527urVxRS','12571000unMgVn','contentDiffed','isActivated','4829932BwmvaU','operationsIsolated','3cfbiYW','30XrRkPn','_editorOperations','6qfeScd','_data','status'];_0xc643=function(){return _0x40f8c8;};return _0xc643();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x250f71=_0x5b40;(function(_0x53533a,_0x383f65){const _0x12390c=_0x5b40,_0x367169=_0x53533a();while(!![]){try{const _0x519cde=-parseInt(_0x12390c(0xc8))/0x1+-parseInt(_0x12390c(0xf9))/0x2+parseInt(_0x12390c(0xc1))/0x3*(parseInt(_0x12390c(0xfc))/0x4)+parseInt(_0x12390c(0xfa))/0x5+-parseInt(_0x12390c(0xba))/0x6+-parseInt(_0x12390c(0xb1))/0x7*(-parseInt(_0x12390c(0xe6))/0x8)+parseInt(_0x12390c(0xe5))/0x9;if(_0x519cde===_0x383f65)break;else _0x367169['push'](_0x367169['shift']());}catch(_0x344b59){_0x367169['push'](_0x367169['shift']());}}}(_0x361b,0x94431));import{ObservableMixin as _0x285213,uid as _0x6cb213}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x5f5224}from'./aireviewcheckresult.js';function _0x5b40(_0x1e9e47,_0x12ded2){const _0x361ba7=_0x361b();return _0x5b40=function(_0x5b406f,_0x3a85ea){_0x5b406f=_0x5b406f-0xa9;let _0x5bd08a=_0x361ba7[_0x5b406f];return _0x5bd08a;},_0x5b40(_0x1e9e47,_0x12ded2);}function _0x361b(){const _0x1f10ae=['subTitle','reviewCheckResultReady','forEach','status','push','event','change:isActivated','forceReadyState','callId','_changes','reviewCheckRunUpdated','4391451DhVYrq','144488bMpvSZ','addResultChanges','_currentError','isChangeActive','ai-request-aborted','getStream','abort','_reviewArgs','reviewCheckResultDeactivated','error','ready','_sendRatingRequest','_activeRequest','clear','dataId','operation','_createApiRequest','every','currentError','996058mVSUoA','1766560vDBDPf','sendRating','8RsOlUd','_aiConnector','deactivateChange','change:status','aborted','unmodified','get','processedResultsCount','markChangeAsRejected','message','set','accepted','length','data','restart','markChangeAsPending','isActivated','getActiveChanges','includes','_addReviewCheckResult','301tFjCMq','markChangeAsAccepted','_sourceCheck','_results','_checkIfFinished','elements','hasModifications','activateChange','error-chunk','232830lKdmox','size','outdated','start','_documentData','abortController','version','3069gTKrTW','find','isRated','fire','title','reviewCheckResultAdded','loading','475805BiECub','markAllChangesAsAccepted','error-general','parent','initialized','documentData','markChangeAsOutdated','_reviewParams','reviewCheckResultActivated','filter','finished','review-metadata','rejected','getContent','reviewCheckResultChangeStatusUpdated','reviewName','textDelta','pending'];_0x361b=function(){return _0x1f10ae;};return _0x361b();}import{AIReviewCheckResultChange as _0x11ae06}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x285213(){['id']=_0x6cb213();[_0x250f71(0xe2)];[_0x250f71(0xb4)]=new Map();[_0x250f71(0xe3)]=[];[_0x250f71(0xbe)];[_0x250f71(0xb3)];[_0x250f71(0xfd)];[_0x250f71(0xcf)];[_0x250f71(0xed)];[_0x250f71(0xf2)]=null;[_0x250f71(0xe8)];constructor(_0x3c61c1,_0x5d3e27,_0x11a3f3,_0x28403e,_0x3a64bb){const _0x1929b5=_0x250f71;super(),this[_0x1929b5(0xbe)]=_0x3c61c1,this[_0x1929b5(0xb3)]=_0x5d3e27,this[_0x1929b5(0xfd)]=_0x11a3f3,this[_0x1929b5(0xcf)]=_0x28403e,this[_0x1929b5(0xed)]=_0x3a64bb,this['on'](_0x1929b5(0xff),(_0x33831b,_0x52d9b4,_0xaf095)=>{const _0x3f5686=_0x1929b5;this[_0x3f5686(0xc4)](_0x3f5686(0xe4),{'status':_0xaf095,'run':this,'error':this[_0x3f5686(0xe8)]});}),this[_0x1929b5(0x106)](_0x1929b5(0xdd),_0x1929b5(0xcc));}get[_0x250f71(0xcd)](){const _0x1c013e=_0x250f71;return this[_0x1c013e(0xbe)];}get[_0x250f71(0x103)](){const _0x2b4737=_0x250f71;return this[_0x2b4737(0xb4)][_0x2b4737(0xbb)];}get[_0x250f71(0xc5)](){const _0x1d6bf8=_0x250f71;return this[_0x1d6bf8(0xb3)][_0x1d6bf8(0xc5)];}get[_0x250f71(0xda)](){return'';}get[_0x250f71(0xd7)](){const _0x2c958e=_0x250f71;return this[_0x2c958e(0xb3)]['id'];}get[_0x250f71(0xb7)](){const _0x199376=_0x250f71;return!this[_0x199376(0xe3)][_0x199376(0xf7)](_0x5e2c2d=>_0x199376(0xd9)===_0x5e2c2d[_0x199376(0xdd)]);}get[_0x250f71(0xf8)](){const _0x4be276=_0x250f71;return this[_0x4be276(0xe8)];}async[_0x250f71(0xbd)](){const _0x3a099f=_0x250f71;this[_0x3a099f(0xdd)]=_0x3a099f(0xc7),this[_0x3a099f(0xe8)]=void 0x0;try{this[_0x3a099f(0xf2)]=this[_0x3a099f(0xf6)]();const _0x3e4fa3=await this[_0x3a099f(0xf2)][_0x3a099f(0xeb)]();this[_0x3a099f(0xdd)]=_0x3a099f(0xaa);for await(const _0x13fe2c of _0x3e4fa3)_0x3a099f(0x101)!==_0x13fe2c[_0x3a099f(0xaa)][_0x3a099f(0xf5)]&&(_0x3a099f(0xef)!==_0x13fe2c[_0x3a099f(0xaa)][_0x3a099f(0xf5)]?_0x3a099f(0xd3)!==_0x13fe2c[_0x3a099f(0xdf)]?this[_0x3a099f(0xb0)](_0x13fe2c[_0x3a099f(0xaa)][_0x3a099f(0xf4)],_0x13fe2c[_0x3a099f(0xaa)][_0x3a099f(0xd8)]):this[_0x3a099f(0xe2)]=_0x13fe2c[_0x3a099f(0xaa)][_0x3a099f(0xe2)]:this[_0x3a099f(0xdd)]=_0x3a099f(0xb9));_0x3a099f(0xb9)!==this[_0x3a099f(0xdd)]&&(0x0===this[_0x3a099f(0xb4)][_0x3a099f(0xbb)]?this[_0x3a099f(0xdd)]=_0x3a099f(0x101):this[_0x3a099f(0xdd)]=_0x3a099f(0xf0));}catch(_0x113b5d){this[_0x3a099f(0xe8)]=_0x113b5d,_0x113b5d instanceof Error&&_0x113b5d[_0x3a099f(0x105)][_0x3a099f(0xaf)](_0x3a099f(0xea))?this[_0x3a099f(0xdd)]=_0x3a099f(0x100):this[_0x3a099f(0xdd)]=_0x3a099f(0xca);}finally{this[_0x3a099f(0xf2)]=null;}}async[_0x250f71(0xab)](){const _0x48a875=_0x250f71;this[_0x48a875(0xb4)][_0x48a875(0xf3)](),this[_0x48a875(0xe3)][_0x48a875(0xa9)]=0x0,this[_0x48a875(0xe8)]=void 0x0,await this[_0x48a875(0xbd)]();}[_0x250f71(0xe7)](_0x2751ee,_0x2df946){const _0x4201d1=_0x250f71,_0x467f49=this[_0x4201d1(0xb4)][_0x4201d1(0x102)](_0x2751ee);if(!_0x467f49)return;const _0x7f09d8=[];_0x2df946[_0x4201d1(0xdc)]((_0x1ef614,_0x1b180b)=>{const _0x588a80=_0x4201d1,_0x24383c=new _0x11ae06(_0x467f49['id']+'-'+_0x1b180b,_0x1ef614,_0x467f49);_0x24383c['on'](_0x588a80(0xff),()=>{const _0x491505=_0x588a80;this[_0x491505(0xc4)](_0x491505(0xd6),{'change':_0x24383c,'status':_0x24383c[_0x491505(0xdd)]});}),_0x24383c['on'](_0x588a80(0xe0),()=>{const _0x594fd0=_0x588a80;_0x24383c[_0x594fd0(0xad)]?this[_0x594fd0(0xc4)](_0x594fd0(0xd0),{'change':_0x24383c}):this[_0x594fd0(0xc4)](_0x594fd0(0xee),{'change':_0x24383c});}),this[_0x588a80(0xe3)][_0x588a80(0xde)](_0x24383c),_0x7f09d8[_0x588a80(0xde)](_0x24383c);}),this[_0x4201d1(0xc4)](_0x4201d1(0xdb),{'changes':_0x7f09d8,'result':_0x467f49,'source':this});}[_0x250f71(0xec)](){const _0x3004ed=_0x250f71;this[_0x3004ed(0xf2)]&&(this[_0x3004ed(0xf2)][_0x3004ed(0xbf)][_0x3004ed(0xec)](),this[_0x3004ed(0xf2)]=null,this[_0x3004ed(0xdd)]=_0x3004ed(0x100));}[_0x250f71(0xe9)](_0x34365){const _0xfcbea8=_0x250f71,_0x113821=this[_0xfcbea8(0xe3)][_0xfcbea8(0xc2)](_0x19eeff=>_0x19eeff['id']===_0x34365);return!(!_0x113821||_0xfcbea8(0xd9)!==_0x113821[_0xfcbea8(0xdd)]);}[_0x250f71(0xae)](){const _0x1e4c0e=_0x250f71;return this[_0x1e4c0e(0xe3)][_0x1e4c0e(0xd1)](_0x3819e1=>_0x1e4c0e(0xd9)===_0x3819e1[_0x1e4c0e(0xdd)]);}[_0x250f71(0xc9)](){const _0x22e06d=_0x250f71;for(const _0x2ac734 of this[_0x22e06d(0xe3)])_0x22e06d(0xd9)===_0x2ac734[_0x22e06d(0xdd)]&&(_0x2ac734[_0x22e06d(0xdd)]=_0x22e06d(0x107));this[_0x22e06d(0xb5)]();}[_0x250f71(0xb2)](_0x55113){const _0xda9bd9=_0x250f71,_0x161434=this[_0xda9bd9(0xe3)][_0xda9bd9(0xc2)](_0x1aeb72=>_0x1aeb72['id']===_0x55113);_0x161434&&_0xda9bd9(0xd9)===_0x161434[_0xda9bd9(0xdd)]&&(_0x161434[_0xda9bd9(0xdd)]=_0xda9bd9(0x107)),this[_0xda9bd9(0xb5)]();}[_0x250f71(0x104)](_0x2ec8ba){const _0x1f8d70=_0x250f71,_0xab8256=this[_0x1f8d70(0xe3)][_0x1f8d70(0xc2)](_0x2703be=>_0x2703be['id']===_0x2ec8ba);_0xab8256&&_0x1f8d70(0xd9)===_0xab8256[_0x1f8d70(0xdd)]&&(_0xab8256[_0x1f8d70(0xdd)]=_0x1f8d70(0xd4)),this[_0x1f8d70(0xb5)]();}[_0x250f71(0xce)](_0x3ca150){const _0x5574c9=_0x250f71,_0x28bba5=this[_0x5574c9(0xe3)][_0x5574c9(0xc2)](_0x3ba7d3=>_0x3ba7d3['id']===_0x3ca150);_0x28bba5&&_0x5574c9(0xd9)===_0x28bba5[_0x5574c9(0xdd)]&&(_0x28bba5[_0x5574c9(0xdd)]=_0x5574c9(0xbc)),this[_0x5574c9(0xb5)]();}[_0x250f71(0xac)](_0x19a3d6){const _0xb17fc8=_0x250f71,_0x3ec359=this[_0xb17fc8(0xe3)][_0xb17fc8(0xc2)](_0x9ac627=>_0x9ac627['id']===_0x19a3d6);_0x3ec359&&_0xb17fc8(0xbc)===_0x3ec359[_0xb17fc8(0xdd)]&&(_0x3ec359[_0xb17fc8(0xdd)]=_0xb17fc8(0xd9)),this[_0xb17fc8(0xb5)]();}[_0x250f71(0xb8)](_0x4c184e){const _0x430e62=_0x250f71;this[_0x430e62(0xe3)][_0x430e62(0xd1)](_0x1643de=>_0x1643de[_0x430e62(0xad)]&&_0x1643de['id']!==_0x4c184e)[_0x430e62(0xdc)](_0x2e7810=>{const _0x3dbca5=_0x430e62;_0x2e7810[_0x3dbca5(0xad)]=!0x1;});const _0x2578b0=this[_0x430e62(0xe3)][_0x430e62(0xc2)](_0x2c89f4=>_0x2c89f4['id']===_0x4c184e);_0x2578b0&&_0x430e62(0xd9)===_0x2578b0[_0x430e62(0xdd)]&&(_0x2578b0[_0x430e62(0xad)]=!0x0);}[_0x250f71(0xfe)](){const _0x100feb=_0x250f71;this[_0x100feb(0xe3)][_0x100feb(0xd1)](_0x496e4a=>_0x496e4a[_0x100feb(0xad)])[_0x100feb(0xdc)](_0x15119a=>{const _0xa9c4d4=_0x100feb;_0x15119a[_0xa9c4d4(0xad)]=!0x1;});}[_0x250f71(0xe1)](){const _0x4ef069=_0x250f71;this[_0x4ef069(0xdd)]=_0x4ef069(0xf0);}async[_0x250f71(0xfb)](_0x44109d){const _0x52ca73=_0x250f71;if(_0x52ca73(0xcc)===this[_0x52ca73(0xdd)]||_0x52ca73(0xc7)===this[_0x52ca73(0xdd)]||_0x52ca73(0xaa)===this[_0x52ca73(0xdd)])return;if(!this[_0x52ca73(0xe2)]||0x0===this[_0x52ca73(0xe3)][_0x52ca73(0xa9)])return;let _0x15e0cb;if(_0x44109d){const _0x2ce0bc=this[_0x52ca73(0xe3)][_0x52ca73(0xc2)](_0x40fbf7=>_0x40fbf7['id']===_0x44109d);if(_0x2ce0bc&&_0x2ce0bc[_0x52ca73(0xc3)])return;_0x2ce0bc&&(_0x15e0cb=_0x2ce0bc[_0x52ca73(0xcb)]['id'],_0x2ce0bc[_0x52ca73(0xc3)]=!0x0);}const _0x69578e={'positiveCount':this[_0x52ca73(0xe3)][_0x52ca73(0xd1)](_0x248191=>_0x52ca73(0x107)===_0x248191[_0x52ca73(0xdd)])[_0x52ca73(0xa9)],'totalCount':this[_0x52ca73(0xe3)][_0x52ca73(0xa9)]};this[_0x52ca73(0xf1)](_0x69578e,this[_0x52ca73(0xe2)],_0x15e0cb);}[_0x250f71(0xb0)](_0x30cf75,_0x2e74ea){const _0x32ebf8=_0x250f71,_0x431ba3=this[_0x32ebf8(0xbe)][_0x32ebf8(0xb6)][_0x32ebf8(0x102)](_0x30cf75);if(!_0x431ba3)return;const _0x392388=_0x431ba3[_0x32ebf8(0xd5)]();if(_0x392388===_0x2e74ea)return;const _0x22d6f4=new _0x5f5224({'id':_0x30cf75,'contentInitial':_0x392388,'contentNew':_0x2e74ea,'documentVersion':this[_0x32ebf8(0xbe)][_0x32ebf8(0xc0)]});this[_0x32ebf8(0xb4)][_0x32ebf8(0x106)](_0x22d6f4['id'],_0x22d6f4),this[_0x32ebf8(0xc4)](_0x32ebf8(0xc6),{'result':_0x22d6f4,'source':this});}[_0x250f71(0xb5)](){const _0xba2170=_0x250f71;_0xba2170(0xd2)===this[_0xba2170(0xdd)]&&(this[_0xba2170(0xe3)][_0xba2170(0xd1)](_0xc38dcc=>_0xba2170(0xd9)===_0xc38dcc[_0xba2170(0xdd)])[_0xba2170(0xa9)]>0x0&&(this[_0xba2170(0xdd)]=_0xba2170(0xf0))),_0xba2170(0xf0)===this[_0xba2170(0xdd)]&&(0x0===this[_0xba2170(0xe3)][_0xba2170(0xd1)](_0x3fd5bc=>_0xba2170(0xd9)===_0x3fd5bc[_0xba2170(0xdd)])[_0xba2170(0xa9)]&&(this[_0xba2170(0xdd)]=_0xba2170(0xd2)));}}
|
|
23
|
+
const _0x2a680e=_0x1f32;(function(_0xcba566,_0x3d1060){const _0x579825=_0x1f32,_0x269faf=_0xcba566();while(!![]){try{const _0x2f83bb=parseInt(_0x579825(0xee))/0x1*(-parseInt(_0x579825(0xf4))/0x2)+-parseInt(_0x579825(0xe2))/0x3+parseInt(_0x579825(0x100))/0x4*(-parseInt(_0x579825(0x113))/0x5)+parseInt(_0x579825(0xed))/0x6*(-parseInt(_0x579825(0x140))/0x7)+parseInt(_0x579825(0x10f))/0x8*(parseInt(_0x579825(0x12f))/0x9)+parseInt(_0x579825(0x125))/0xa*(parseInt(_0x579825(0xea))/0xb)+parseInt(_0x579825(0x102))/0xc;if(_0x2f83bb===_0x3d1060)break;else _0x269faf['push'](_0x269faf['shift']());}catch(_0x93e487){_0x269faf['push'](_0x269faf['shift']());}}}(_0x2fd0,0xee27b));import{ObservableMixin as _0x113a36,uid as _0x10601e}from'ckeditor5/src/utils.js';function _0x1f32(_0x55f253,_0x439d37){const _0x2fd0ec=_0x2fd0();return _0x1f32=function(_0x1f3219,_0x11c02a){_0x1f3219=_0x1f3219-0xdf;let _0x3a76c6=_0x2fd0ec[_0x1f3219];return _0x3a76c6;},_0x1f32(_0x55f253,_0x439d37);}import{AIReviewCheckResult as _0x7e8df0}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x1991c6}from'./aireviewcheckresultchange.js';function _0x2fd0(){const _0x455616=['isActivated','start','getActiveChanges','abort','subTitle','length','elements','_createApiRequest','pending','532ZIoCkT','markChangeAsOutdated','58437444OFLBwm','markChangeAsAccepted','message','reviewCheckResultReady','forceReadyState','loading','size','initialized','processedResultsCount','isChangeActive','push','accepted','reviewCheckResultAdded','21808RZEFdE','callId','title','status','47855JcGotn','operation','sendRating','outdated','get','_documentData','rejected','_aiConnector','_currentError','isRated','forEach','abortController','error','_changes','currentError','change:isActivated','ready','unmodified','190rYldkn','filter','error-general','getStream','every','reviewCheckResultDeactivated','find','markChangeAsRejected','data','version','2061aNetfU','_reviewParams','change:status','documentData','reviewCheckResultActivated','_addReviewCheckResult','markAllChangesAsAccepted','restart','getContent','deactivateChange','_checkIfFinished','review-metadata','set','event','_results','_reviewArgs','_sourceCheck','7CzghzL','reviewCheckRunUpdated','finished','fire','3331353bqJArx','dataId','markChangeAsPending','includes','textDelta','addResultChanges','_sendRatingRequest','hasModifications','754457WJzkky','reviewName','ai-request-aborted','11679852ivwJfY','75DWOwDo','aborted','_activeRequest','reviewCheckResultChangeStatusUpdated','clear','parent','39778NTKkAb','activateChange','error-chunk'];_0x2fd0=function(){return _0x455616;};return _0x2fd0();}export class AIReviewCheckRun extends _0x113a36(){['id']=_0x10601e();[_0x2a680e(0x110)];[_0x2a680e(0x13d)]=new Map();[_0x2a680e(0x120)]=[];[_0x2a680e(0x118)];[_0x2a680e(0x13f)];[_0x2a680e(0x11a)];[_0x2a680e(0x130)];[_0x2a680e(0x13e)];[_0x2a680e(0xf0)]=null;[_0x2a680e(0x11b)];constructor(_0x76d877,_0x3cb9d6,_0x539ac2,_0x30d8db,_0x59c8fb){const _0x306a31=_0x2a680e;super(),this[_0x306a31(0x118)]=_0x76d877,this[_0x306a31(0x13f)]=_0x3cb9d6,this[_0x306a31(0x11a)]=_0x539ac2,this[_0x306a31(0x130)]=_0x30d8db,this[_0x306a31(0x13e)]=_0x59c8fb,this['on'](_0x306a31(0x131),(_0x2838f9,_0x1a1422,_0x381e4f)=>{const _0x4be415=_0x306a31;this[_0x4be415(0xe1)](_0x4be415(0xdf),{'status':_0x381e4f,'run':this,'error':this[_0x4be415(0x11b)]});}),this[_0x306a31(0x13b)](_0x306a31(0x112),_0x306a31(0x109));}get[_0x2a680e(0x132)](){const _0x535d0c=_0x2a680e;return this[_0x535d0c(0x118)];}get[_0x2a680e(0x10a)](){const _0x1eb40c=_0x2a680e;return this[_0x1eb40c(0x13d)][_0x1eb40c(0x108)];}get[_0x2a680e(0x111)](){const _0x464619=_0x2a680e;return this[_0x464619(0x13f)][_0x464619(0x111)];}get[_0x2a680e(0xfb)](){return'';}get[_0x2a680e(0xeb)](){const _0x158ed3=_0x2a680e;return this[_0x158ed3(0x13f)]['id'];}get[_0x2a680e(0xe9)](){const _0x4d38da=_0x2a680e;return!this[_0x4d38da(0x120)][_0x4d38da(0x129)](_0x576540=>_0x4d38da(0xff)===_0x576540[_0x4d38da(0x112)]);}get[_0x2a680e(0x121)](){const _0x12d329=_0x2a680e;return this[_0x12d329(0x11b)];}async[_0x2a680e(0xf8)](){const _0x285b3a=_0x2a680e;this[_0x285b3a(0x112)]=_0x285b3a(0x107),this[_0x285b3a(0x11b)]=void 0x0;try{this[_0x285b3a(0xf0)]=this[_0x285b3a(0xfe)]();const _0xb4bf7b=await this[_0x285b3a(0xf0)][_0x285b3a(0x128)]();this[_0x285b3a(0x112)]=_0x285b3a(0x12d);for await(const _0x4e0291 of _0xb4bf7b)_0x285b3a(0x124)!==_0x4e0291[_0x285b3a(0x12d)][_0x285b3a(0x114)]&&(_0x285b3a(0x11f)!==_0x4e0291[_0x285b3a(0x12d)][_0x285b3a(0x114)]?_0x285b3a(0x13a)!==_0x4e0291[_0x285b3a(0x13c)]?this[_0x285b3a(0x134)](_0x4e0291[_0x285b3a(0x12d)][_0x285b3a(0xe3)],_0x4e0291[_0x285b3a(0x12d)][_0x285b3a(0xe6)]):this[_0x285b3a(0x110)]=_0x4e0291[_0x285b3a(0x12d)][_0x285b3a(0x110)]:this[_0x285b3a(0x112)]=_0x285b3a(0xf6));_0x285b3a(0xf6)!==this[_0x285b3a(0x112)]&&(0x0===this[_0x285b3a(0x13d)][_0x285b3a(0x108)]?this[_0x285b3a(0x112)]=_0x285b3a(0x124):this[_0x285b3a(0x112)]=_0x285b3a(0x123));}catch(_0x366664){this[_0x285b3a(0x11b)]=_0x366664,_0x366664 instanceof Error&&_0x366664[_0x285b3a(0x104)][_0x285b3a(0xe5)](_0x285b3a(0xec))?this[_0x285b3a(0x112)]=_0x285b3a(0xef):this[_0x285b3a(0x112)]=_0x285b3a(0x127);}finally{this[_0x285b3a(0xf0)]=null;}}async[_0x2a680e(0x136)](){const _0x5ae7a1=_0x2a680e;this[_0x5ae7a1(0x13d)][_0x5ae7a1(0xf2)](),this[_0x5ae7a1(0x120)][_0x5ae7a1(0xfc)]=0x0,this[_0x5ae7a1(0x11b)]=void 0x0,await this[_0x5ae7a1(0xf8)]();}[_0x2a680e(0xe7)](_0x584501,_0x22bef6){const _0x13b853=_0x2a680e,_0x408379=this[_0x13b853(0x13d)][_0x13b853(0x117)](_0x584501);if(!_0x408379)return;const _0x457746=[];_0x22bef6[_0x13b853(0x11d)]((_0x1aa4f1,_0xa0e188)=>{const _0x533aa0=_0x13b853,_0x4edc37=new _0x1991c6(_0x408379['id']+'-'+_0xa0e188,_0x1aa4f1,_0x408379);_0x4edc37['on'](_0x533aa0(0x131),()=>{const _0x150da7=_0x533aa0;this[_0x150da7(0xe1)](_0x150da7(0xf1),{'change':_0x4edc37,'status':_0x4edc37[_0x150da7(0x112)]});}),_0x4edc37['on'](_0x533aa0(0x122),()=>{const _0x14bfbf=_0x533aa0;_0x4edc37[_0x14bfbf(0xf7)]?this[_0x14bfbf(0xe1)](_0x14bfbf(0x133),{'change':_0x4edc37}):this[_0x14bfbf(0xe1)](_0x14bfbf(0x12a),{'change':_0x4edc37});}),this[_0x533aa0(0x120)][_0x533aa0(0x10c)](_0x4edc37),_0x457746[_0x533aa0(0x10c)](_0x4edc37);}),this[_0x13b853(0xe1)](_0x13b853(0x105),{'changes':_0x457746,'result':_0x408379,'source':this});}[_0x2a680e(0xfa)](){const _0x97d9a0=_0x2a680e;this[_0x97d9a0(0xf0)]&&(this[_0x97d9a0(0xf0)][_0x97d9a0(0x11e)][_0x97d9a0(0xfa)](),this[_0x97d9a0(0xf0)]=null,this[_0x97d9a0(0x112)]=_0x97d9a0(0xef));}[_0x2a680e(0x10b)](_0x16c332){const _0x3ff48d=_0x2a680e,_0x2e0c84=this[_0x3ff48d(0x120)][_0x3ff48d(0x12b)](_0xc6b190=>_0xc6b190['id']===_0x16c332);return!(!_0x2e0c84||_0x3ff48d(0xff)!==_0x2e0c84[_0x3ff48d(0x112)]);}[_0x2a680e(0xf9)](){const _0x48ffb4=_0x2a680e;return this[_0x48ffb4(0x120)][_0x48ffb4(0x126)](_0x95a800=>_0x48ffb4(0xff)===_0x95a800[_0x48ffb4(0x112)]);}[_0x2a680e(0x135)](){const _0x89e00=_0x2a680e;for(const _0x258b99 of this[_0x89e00(0x120)])_0x89e00(0xff)===_0x258b99[_0x89e00(0x112)]&&(_0x258b99[_0x89e00(0x112)]=_0x89e00(0x10d));this[_0x89e00(0x139)]();}[_0x2a680e(0x103)](_0x3f9ae0){const _0x13c2a4=_0x2a680e,_0x55a4a8=this[_0x13c2a4(0x120)][_0x13c2a4(0x12b)](_0x434125=>_0x434125['id']===_0x3f9ae0);_0x55a4a8&&_0x13c2a4(0xff)===_0x55a4a8[_0x13c2a4(0x112)]&&(_0x55a4a8[_0x13c2a4(0x112)]=_0x13c2a4(0x10d)),this[_0x13c2a4(0x139)]();}[_0x2a680e(0x12c)](_0x5891c5){const _0x1b6121=_0x2a680e,_0x12d1b9=this[_0x1b6121(0x120)][_0x1b6121(0x12b)](_0x2d482a=>_0x2d482a['id']===_0x5891c5);_0x12d1b9&&_0x1b6121(0xff)===_0x12d1b9[_0x1b6121(0x112)]&&(_0x12d1b9[_0x1b6121(0x112)]=_0x1b6121(0x119)),this[_0x1b6121(0x139)]();}[_0x2a680e(0x101)](_0x2083ae){const _0x18ecdc=_0x2a680e,_0x32c740=this[_0x18ecdc(0x120)][_0x18ecdc(0x12b)](_0x16ad7c=>_0x16ad7c['id']===_0x2083ae);_0x32c740&&_0x18ecdc(0xff)===_0x32c740[_0x18ecdc(0x112)]&&(_0x32c740[_0x18ecdc(0x112)]=_0x18ecdc(0x116)),this[_0x18ecdc(0x139)]();}[_0x2a680e(0xe4)](_0x5676b7){const _0x19b979=_0x2a680e,_0x2b8bf8=this[_0x19b979(0x120)][_0x19b979(0x12b)](_0x55f5ff=>_0x55f5ff['id']===_0x5676b7);_0x2b8bf8&&_0x19b979(0x116)===_0x2b8bf8[_0x19b979(0x112)]&&(_0x2b8bf8[_0x19b979(0x112)]=_0x19b979(0xff)),this[_0x19b979(0x139)]();}[_0x2a680e(0xf5)](_0x198d86){const _0x1b97db=_0x2a680e;this[_0x1b97db(0x120)][_0x1b97db(0x126)](_0x33774a=>_0x33774a[_0x1b97db(0xf7)]&&_0x33774a['id']!==_0x198d86)[_0x1b97db(0x11d)](_0x16a892=>{const _0x5190a2=_0x1b97db;_0x16a892[_0x5190a2(0xf7)]=!0x1;});const _0x1c8029=this[_0x1b97db(0x120)][_0x1b97db(0x12b)](_0x5a8d8e=>_0x5a8d8e['id']===_0x198d86);_0x1c8029&&_0x1b97db(0xff)===_0x1c8029[_0x1b97db(0x112)]&&(_0x1c8029[_0x1b97db(0xf7)]=!0x0);}[_0x2a680e(0x138)](){const _0x58406c=_0x2a680e;this[_0x58406c(0x120)][_0x58406c(0x126)](_0x1e19fc=>_0x1e19fc[_0x58406c(0xf7)])[_0x58406c(0x11d)](_0x33b904=>{const _0x350dd4=_0x58406c;_0x33b904[_0x350dd4(0xf7)]=!0x1;});}[_0x2a680e(0x106)](){const _0x4bbeb8=_0x2a680e;this[_0x4bbeb8(0x112)]=_0x4bbeb8(0x123);}async[_0x2a680e(0x115)](_0x40e209){const _0x4d00ac=_0x2a680e;if(_0x4d00ac(0x109)===this[_0x4d00ac(0x112)]||_0x4d00ac(0x107)===this[_0x4d00ac(0x112)]||_0x4d00ac(0x12d)===this[_0x4d00ac(0x112)])return;if(!this[_0x4d00ac(0x110)]||0x0===this[_0x4d00ac(0x120)][_0x4d00ac(0xfc)])return;let _0x13ba0b;if(_0x40e209){const _0x310be0=this[_0x4d00ac(0x120)][_0x4d00ac(0x12b)](_0x35ec02=>_0x35ec02['id']===_0x40e209);if(_0x310be0&&_0x310be0[_0x4d00ac(0x11c)])return;_0x310be0&&(_0x13ba0b=_0x310be0[_0x4d00ac(0xf3)]['id'],_0x310be0[_0x4d00ac(0x11c)]=!0x0);}const _0x28bdd5={'positiveCount':this[_0x4d00ac(0x120)][_0x4d00ac(0x126)](_0x1b5a59=>_0x4d00ac(0x10d)===_0x1b5a59[_0x4d00ac(0x112)])[_0x4d00ac(0xfc)],'totalCount':this[_0x4d00ac(0x120)][_0x4d00ac(0xfc)]};this[_0x4d00ac(0xe8)](_0x28bdd5,this[_0x4d00ac(0x110)],_0x13ba0b);}[_0x2a680e(0x134)](_0x1c3899,_0x3684d0){const _0x53849a=_0x2a680e,_0x3416fd=this[_0x53849a(0x118)][_0x53849a(0xfd)][_0x53849a(0x117)](_0x1c3899);if(!_0x3416fd)return;const _0x472f57=_0x3416fd[_0x53849a(0x137)]();if(_0x472f57===_0x3684d0)return;const _0x521aeb=new _0x7e8df0({'id':_0x1c3899,'contentInitial':_0x472f57,'contentNew':_0x3684d0,'documentVersion':this[_0x53849a(0x118)][_0x53849a(0x12e)]});this[_0x53849a(0x13d)][_0x53849a(0x13b)](_0x521aeb['id'],_0x521aeb),this[_0x53849a(0xe1)](_0x53849a(0x10e),{'result':_0x521aeb,'source':this});}[_0x2a680e(0x139)](){const _0x46b203=_0x2a680e;_0x46b203(0xe0)===this[_0x46b203(0x112)]&&(this[_0x46b203(0x120)][_0x46b203(0x126)](_0xc33c8b=>_0x46b203(0xff)===_0xc33c8b[_0x46b203(0x112)])[_0x46b203(0xfc)]>0x0&&(this[_0x46b203(0x112)]=_0x46b203(0x123))),_0x46b203(0x123)===this[_0x46b203(0x112)]&&(0x0===this[_0x46b203(0x120)][_0x46b203(0x126)](_0x3fbe87=>_0x46b203(0xff)===_0x3fbe87[_0x46b203(0x112)])[_0x46b203(0xfc)]&&(this[_0x46b203(0x112)]=_0x46b203(0xe0)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x126e(_0xbbdba3,_0x495518){var _0x18b108=_0x18b1();return _0x126e=function(_0x126e7d,_0x4c877a){_0x126e7d=_0x126e7d-0xd2;var _0x19cfef=_0x18b108[_0x126e7d];return _0x19cfef;},_0x126e(_0xbbdba3,_0x495518);}var _0xcb26d6=_0x126e;(function(_0x4c7175,_0x2a4ff6){var _0x4d536e=_0x126e,_0x2846cf=_0x4c7175();while(!![]){try{var _0x4234f2=-parseInt(_0x4d536e(0xe0))/0x1+-parseInt(_0x4d536e(0xd3))/0x2+parseInt(_0x4d536e(0xdb))/0x3+parseInt(_0x4d536e(0xd4))/0x4+parseInt(_0x4d536e(0xdf))/0x5*(-parseInt(_0x4d536e(0xd7))/0x6)+-parseInt(_0x4d536e(0xd8))/0x7+parseInt(_0x4d536e(0xe2))/0x8*(parseInt(_0x4d536e(0xd5))/0x9);if(_0x4234f2===_0x2a4ff6)break;else _0x2846cf['push'](_0x2846cf['shift']());}catch(_0x34fb29){_0x2846cf['push'](_0x2846cf['shift']());}}}(_0x18b1,0x235ac));import{AIReviewCheckRun as _0x170344}from'./aireviewcheckrun.js';function _0x18b1(){var _0x11204a=['callCustomReview','974992XWOToz','upsertCustomAIReviewRating','_aiConnector','_model','349200aaYRIW','256076CvjQVa','27STrlDG','subTitle','21606HyRKVR','1615425aEkGjA','_createApiRequest','_sendRatingRequest','506874yHokaV','_documentData','_prompt','content','5bhWldu','44811MSHJlu'];_0x18b1=function(){return _0x11204a;};return _0x18b1();}export class AIReviewCustomCheckRun extends _0x170344{[_0xcb26d6(0xdd)];[_0xcb26d6(0xd2)];constructor(_0x5753ae,_0x50e545,_0x132290,_0x16f828,_0x367b50){var _0x376ec1=_0xcb26d6;super(_0x132290,_0x16f828,_0x367b50),this[_0x376ec1(0xdd)]=_0x5753ae,this[_0x376ec1(0xd2)]=_0x50e545;}get[_0xcb26d6(0xd6)](){var _0x50469c=_0xcb26d6;return this[_0x50469c(0xdd)];}[_0xcb26d6(0xd9)](){var _0x3330c1=_0xcb26d6;return this[_0x3330c1(0xe4)][_0x3330c1(0xe1)]({'content':this[_0x3330c1(0xdc)][_0x3330c1(0xde)],'prompt':this[_0x3330c1(0xdd)],'model':this[_0x3330c1(0xd2)]});}[_0xcb26d6(0xda)](_0x178ff6,_0x33fd49,_0x47296a){var _0x11a119=_0xcb26d6;return this[_0x11a119(0xe4)][_0x11a119(0xe3)](_0x33fd49,_0x178ff6,_0x47296a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1f0c(_0x403ddf,_0x433394){const _0x2a65ea=_0x2a65();return _0x1f0c=function(_0x1f0c04,_0x16e4c7){_0x1f0c04=_0x1f0c04-0x1d2;let _0x32985e=_0x2a65ea[_0x1f0c04];return _0x32985e;},_0x1f0c(_0x403ddf,_0x433394);}const _0x457be4=_0x1f0c;(function(_0x1b6b66,_0x4e0af4){const _0xffe53d=_0x1f0c,_0x1cd161=_0x1b6b66();while(!![]){try{const _0x31b0b0=parseInt(_0xffe53d(0x1df))/0x1*(parseInt(_0xffe53d(0x1ed))/0x2)+-parseInt(_0xffe53d(0x1e7))/0x3*(-parseInt(_0xffe53d(0x1eb))/0x4)+parseInt(_0xffe53d(0x1e6))/0x5+parseInt(_0xffe53d(0x1e5))/0x6+parseInt(_0xffe53d(0x1e0))/0x7*(-parseInt(_0xffe53d(0x1e1))/0x8)+parseInt(_0xffe53d(0x1f1))/0x9+-parseInt(_0xffe53d(0x1de))/0xa*(-parseInt(_0xffe53d(0x1d9))/0xb);if(_0x31b0b0===_0x4e0af4)break;else _0x1cd161['push'](_0x1cd161['shift']());}catch(_0x35f676){_0x1cd161['push'](_0x1cd161['shift']());}}}(_0x2a65,0x91f4e));import{AIReviewCheckRun as _0x145c70}from'./aireviewcheckrun.js';function _0x2a65(){const _0x2866ed=['_createApiRequest','_reviewParams','join','10iZjEzy','11bpJJdW','71225wAvyDw','728TxmEJo','callSystemReview','_documentData','push','1668354SSbaKY','1186315AavuQw','3eTUJXF','_composeReviewName','useArgs','_aiConnector','281188fsFihH','length','86042hZZPvy','reviewName','upsertAIReviewRating','_sourceCheck','1086372GGdmdj','options','_sendRatingRequest','content','subTitle','_reviewArgs','label','find','3786255GNLusK','data'];_0x2a65=function(){return _0x2866ed;};return _0x2a65();}export class AIReviewSystemCheckRun extends _0x145c70{get[_0x457be4(0x1d5)](){const _0x31b454=_0x457be4;if(!this[_0x31b454(0x1dc)]||0x0===this[_0x31b454(0x1dc)][_0x31b454(0x1ec)])return'';const _0x5b1d6c=[];if(this[_0x31b454(0x1dc)][_0x31b454(0x1ec)]>0x0&&this[_0x31b454(0x1f0)][_0x31b454(0x1d2)])for(let _0x531f49=0x0;_0x531f49<this[_0x31b454(0x1dc)][_0x31b454(0x1ec)];_0x531f49++){if(!this[_0x31b454(0x1dc)][_0x531f49]||!this[_0x31b454(0x1f0)][_0x31b454(0x1d2)][_0x531f49])continue;const _0x38bd3c=this[_0x31b454(0x1f0)][_0x31b454(0x1d2)][_0x531f49],_0x27a317=_0x38bd3c[_0x31b454(0x1da)]?.[_0x31b454(0x1d8)](_0xdfa2b8=>_0xdfa2b8['id']===this[_0x31b454(0x1dc)][_0x531f49]);_0x27a317&&_0x5b1d6c[_0x31b454(0x1e4)](_0x27a317[_0x31b454(0x1d7)]);}return _0x5b1d6c[_0x31b454(0x1dd)](',\x20');}get[_0x457be4(0x1ee)](){const _0x18751c=_0x457be4;return this[_0x18751c(0x1e8)]();}[_0x457be4(0x1db)](){const _0xeaf9ae=_0x457be4;return this[_0xeaf9ae(0x1ea)][_0xeaf9ae(0x1e2)]({'reviewName':this[_0xeaf9ae(0x1e8)](),'content':this[_0xeaf9ae(0x1e3)][_0xeaf9ae(0x1d4)],'args':this[_0xeaf9ae(0x1d6)]});}[_0x457be4(0x1d3)](_0xad1f8d,_0x27014b,_0x1b787f){const _0x199ca0=_0x457be4;return this[_0x199ca0(0x1ea)][_0x199ca0(0x1ef)](this[_0x199ca0(0x1ee)],_0x27014b,_0xad1f8d,_0x1b787f);}[_0x457be4(0x1e8)](){const _0x3b0df4=_0x457be4;return!this[_0x3b0df4(0x1dc)]||0x0===this[_0x3b0df4(0x1dc)][_0x3b0df4(0x1ec)]||this[_0x3b0df4(0x1f0)][_0x3b0df4(0x1e9)]?this[_0x3b0df4(0x1f0)]['id']:[this[_0x3b0df4(0x1f0)]['id'],...this[_0x3b0df4(0x1dc)]][_0x3b0df4(0x1dd)]('-');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x57c9(_0x565a9e,_0x38b21c){var _0x58db4b=_0x58db();return _0x57c9=function(_0x57c9f3,_0x37d1ef){_0x57c9f3=_0x57c9f3-0x1ab;var _0xdc065d=_0x58db4b[_0x57c9f3];return _0xdc065d;},_0x57c9(_0x565a9e,_0x38b21c);}var _0x9eaf6a=_0x57c9;function _0x58db(){var _0x591a13=['extendTemplate','ck-review-mode__prompt-input','element','maxRows','trim','6123414akfeYZ','4szmCzg','set','isEmpty','10357718lXRwdF','5672Cjamtu','18657krlTFy','2xjUowp','8266690ubnOCi','render','ai-review-mode-prompt-input','MAX_ROWS','value','19068130aYMGHW','MIN_ROWS','update','minRows','1621429itcLqe','3381510IsDPNA','listenTo','keystrokes'];_0x58db=function(){return _0x591a13;};return _0x58db();}(function(_0x5dbf8b,_0x5c2907){var _0x4224f3=_0x57c9,_0x20311c=_0x5dbf8b();while(!![]){try{var _0x1ca343=-parseInt(_0x4224f3(0x1b3))/0x1*(-parseInt(_0x4224f3(0x1c3))/0x2)+-parseInt(_0x4224f3(0x1b4))/0x3+-parseInt(_0x4224f3(0x1bd))/0x4*(parseInt(_0x4224f3(0x1c4))/0x5)+parseInt(_0x4224f3(0x1bc))/0x6+parseInt(_0x4224f3(0x1c0))/0x7+parseInt(_0x4224f3(0x1c1))/0x8*(parseInt(_0x4224f3(0x1c2))/0x9)+-parseInt(_0x4224f3(0x1af))/0xa;if(_0x1ca343===_0x5c2907)break;else _0x20311c['push'](_0x20311c['shift']());}catch(_0x4e88a7){_0x20311c['push'](_0x20311c['shift']());}}}(_0x58db,0xdcbac));import{TextareaView as _0x36dfb5}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x4fed01}from'ckeditor5/src/utils.js';export class AIReviewModePromptInputView extends _0x36dfb5{[_0x9eaf6a(0x1b6)];static [_0x9eaf6a(0x1b0)]=0x1;static [_0x9eaf6a(0x1ad)]=0xc;constructor(_0x43fb2b){var _0x4eb1b0=_0x9eaf6a;super(_0x43fb2b),this[_0x4eb1b0(0x1be)](_0x4eb1b0(0x1bf),!0x0),this[_0x4eb1b0(0x1b6)]=new _0x4fed01(),this[_0x4eb1b0(0x1b2)]=AIReviewModePromptInputView[_0x4eb1b0(0x1b0)],this[_0x4eb1b0(0x1ba)]=AIReviewModePromptInputView[_0x4eb1b0(0x1ad)],this[_0x4eb1b0(0x1b7)]({'attributes':{'id':_0x4eb1b0(0x1ac),'class':['ck',_0x4eb1b0(0x1b8)]}});}[_0x9eaf6a(0x1ab)](){var _0x12b83f=_0x9eaf6a;super[_0x12b83f(0x1ab)](),this['on'](_0x12b83f(0x1b1),()=>{var _0x183739=_0x12b83f;this[_0x183739(0x1bf)]=''===this[_0x183739(0x1b9)][_0x183739(0x1ae)]?.[_0x183739(0x1bb)]();}),this[_0x12b83f(0x1b6)][_0x12b83f(0x1b5)](this[_0x12b83f(0x1b9)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1da43f=_0x3575;(function(_0x45a332,_0x53bfee){const _0x5b9f59=_0x3575,_0x13c5ee=_0x45a332();while(!![]){try{const _0x5a3ba7=parseInt(_0x5b9f59(0x1e4))/0x1*(-parseInt(_0x5b9f59(0x1cd))/0x2)+-parseInt(_0x5b9f59(0x1c3))/0x3+parseInt(_0x5b9f59(0x1d1))/0x4+-parseInt(_0x5b9f59(0x1bd))/0x5*(-parseInt(_0x5b9f59(0x1e0))/0x6)+-parseInt(_0x5b9f59(0x1dc))/0x7*(-parseInt(_0x5b9f59(0x1da))/0x8)+parseInt(_0x5b9f59(0x1e3))/0x9+parseInt(_0x5b9f59(0x1c1))/0xa*(-parseInt(_0x5b9f59(0x1d8))/0xb);if(_0x5a3ba7===_0x53bfee)break;else _0x13c5ee['push'](_0x13c5ee['shift']());}catch(_0x5eabc6){_0x13c5ee['push'](_0x13c5ee['shift']());}}}(_0x4b05,0x6244b));function _0x3575(_0xa3c851,_0x4ed874){const _0x4b051b=_0x4b05();return _0x3575=function(_0x35751d,_0x497ad3){_0x35751d=_0x35751d-0x1bd;let _0x237c60=_0x4b051b[_0x35751d];return _0x237c60;},_0x3575(_0xa3c851,_0x4ed874);}function _0x4b05(){const _0x20386d=['8nWnypM','extendTemplate','383509QOVIRO','from','_setupClickOutsideHandler','ck-content','95208hJTHSY','deactivateChange','pin','4873788JEWGDS','1zlOklA','show','div','dismissChange','ck-ai-review-mode__suggestion-text','contentDiffed','resultResponseView','set','hide','hideDiffInBalloon','innerHTML','find','updateContent','ck-ai-review-mode-balloon-panel-suggestion','110EvKtnf','_getBestRectPosition','acceptChange','locale','1385800azhVlt','getClientRects','570885AhnGBw','render','showDiffInBalloon','fire','content','ck-reset','showBalloon','unpin','hideBalloon','arrow_se','440602AoWYnZ','showDiff','add','setTemplate','2242352npLmGk','resultItemView','delegate','width','_createContentView','isVisible','element','55EkKZoK','changeId'];_0x4b05=function(){return _0x20386d;};return _0x4b05();}import{BalloonPanelView as _0x100d92,View as _0x6bdb63,clickOutsideHandler as _0x3bbeb3}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCheckListItemResultsView as _0x268747}from'./aireviewmodechecklistitemresultview.js';import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeBalloonSuggestionItemView extends _0x100d92{[_0x1da43f(0x1d2)];constructor(_0x5e7db2,_0x32dc0c){const _0x4ecbf0=_0x1da43f;super(_0x5e7db2),this[_0x4ecbf0(0x1eb)]({'isVisible':!0x1,'position':_0x4ecbf0(0x1cc),'class':null,'top':0x0,'left':0x0}),this[_0x4ecbf0(0x1db)]({'tag':_0x4ecbf0(0x1e6),'attributes':{'class':[_0x4ecbf0(0x1c8)],'tabindex':'-1'}}),this[_0x4ecbf0(0x1c7)][_0x4ecbf0(0x1cf)](this[_0x4ecbf0(0x1d5)]()),_0x32dc0c[_0x4ecbf0(0x1cf)](this);}[_0x1da43f(0x1c4)](){const _0x1474a3=_0x1da43f;super[_0x1474a3(0x1c4)](),this[_0x1474a3(0x1de)]();}[_0x1da43f(0x1f0)](_0x1116fc){const _0x4be5a4=_0x1da43f;this[_0x4be5a4(0x1d2)][_0x4be5a4(0x1d9)]=_0x1116fc['id'],this[_0x4be5a4(0x1d2)][_0x4be5a4(0x1ea)][_0x4be5a4(0x1d7)][_0x4be5a4(0x1ee)]=_0x1116fc[_0x4be5a4(0x1e9)];}[_0x1da43f(0x1c9)](_0x243be5,_0x3b285d){const _0x42c103=_0x1da43f;this[_0x42c103(0x1f0)](_0x243be5),this[_0x42c103(0x1e5)](),this[_0x42c103(0x1e2)]({'target':()=>this[_0x42c103(0x1be)](_0x3b285d)});}[_0x1da43f(0x1cb)](){const _0x39856e=_0x1da43f;this[_0x39856e(0x1ec)](),this[_0x39856e(0x1ca)]();}[_0x1da43f(0x1ed)](){const _0x50e0f7=_0x1da43f;this[_0x50e0f7(0x1d2)][_0x50e0f7(0x1ce)]=!0x1;}[_0x1da43f(0x1c5)](){const _0x776a91=_0x1da43f;this[_0x776a91(0x1d2)][_0x776a91(0x1ce)]=!0x0;}[_0x1da43f(0x1e1)](){const _0x5225b1=_0x1da43f;this[_0x5225b1(0x1c6)](_0x5225b1(0x1e1));}[_0x1da43f(0x1de)](){const _0x1325be=_0x1da43f;_0x3bbeb3({'emitter':this,'activator':()=>this[_0x1325be(0x1d6)],'contextElements':[this[_0x1325be(0x1d7)]],'callback':()=>{const _0x53e279=_0x1325be;this[_0x53e279(0x1cb)](),this[_0x53e279(0x1e1)]();}});}[_0x1da43f(0x1d5)](){const _0x1ef2cf=_0x1da43f,_0x21ad7d=new _0x6bdb63();return this[_0x1ef2cf(0x1d2)]=new _0x268747(this[_0x1ef2cf(0x1c0)],''),this[_0x1ef2cf(0x1d2)][_0x1ef2cf(0x1ea)][_0x1ef2cf(0x1db)]({'attributes':{'class':[_0x1ef2cf(0x1df)]}}),this[_0x1ef2cf(0x1d2)][_0x1ef2cf(0x1d3)](_0x1ef2cf(0x1bf),_0x1ef2cf(0x1e7))['to'](this),_0x21ad7d[_0x1ef2cf(0x1d0)]({'tag':_0x1ef2cf(0x1e6),'attributes':{'class':[_0x1ef2cf(0x1c8),_0x1ef2cf(0x1f1)]},'children':[{'tag':'p','attributes':{'class':[_0x1ef2cf(0x1e8)]},'children':[this[_0x1ef2cf(0x1d2)]]}]}),_0x21ad7d;}[_0x1da43f(0x1be)](_0x207f01){const _0xc43a2c=_0x1da43f,_0x5919d9=Array[_0xc43a2c(0x1dd)](_0x207f01[_0xc43a2c(0x1c2)]());return _0x5919d9[_0xc43a2c(0x1ef)](_0x23d0a1=>_0x23d0a1[_0xc43a2c(0x1d4)]>0x0)||_0x5919d9[0x0];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f6619=_0x4de0;(function(_0x2540e8,_0x2c8036){const _0x4681b2=_0x4de0,_0xa3c1aa=_0x2540e8();while(!![]){try{const _0x337a27=parseInt(_0x4681b2(0xe5))/0x1*(parseInt(_0x4681b2(0xba))/0x2)+parseInt(_0x4681b2(0xeb))/0x3+-parseInt(_0x4681b2(0xcc))/0x4+-parseInt(_0x4681b2(0xca))/0x5*(-parseInt(_0x4681b2(0xcd))/0x6)+parseInt(_0x4681b2(0xef))/0x7*(parseInt(_0x4681b2(0xfb))/0x8)+parseInt(_0x4681b2(0xee))/0x9*(parseInt(_0x4681b2(0xbf))/0xa)+parseInt(_0x4681b2(0xe1))/0xb*(-parseInt(_0x4681b2(0xe3))/0xc);if(_0x337a27===_0x2c8036)break;else _0xa3c1aa['push'](_0xa3c1aa['shift']());}catch(_0x23688a){_0xa3c1aa['push'](_0xa3c1aa['shift']());}}}(_0x502e,0x57f61));import{View as _0x46579c,ButtonView as _0x18335d}from'ckeditor5/src/ui.js';function _0x4de0(_0x441a3f,_0x40e086){const _0x502e7e=_0x502e();return _0x4de0=function(_0x4de072,_0x469e5a){_0x4de072=_0x4de072-0xb6;let _0x11dd2b=_0x502e7e[_0x4de072];return _0x11dd2b;},_0x4de0(_0x441a3f,_0x40e086);}function _0x502e(){const _0x18653b=['showDiff','ck-ai-review-mode__check-run-result-dismiss-button','AI_REVIEW_MODE_CHECK_STATUS_','AI_REVIEW_MODE_ACCEPT_CHANGE','bind','_createResultResponseView','ACCEPTED','pending','40288ofLSYw','ck-ai-review-mode__check-run-result-response','_createDismissButtonView','fire','acceptButtonView','2GVBtMW','ck-ai-review-mode__check-run-result','toUpperCase','ck-ai-review-mode__check-run-result_active','_createStatusButtonView','10MPKHwP','resultResponseView','ck-hidden','label','execute','isActive','AI_REVIEW_MODE_DISMISS_CHANGE','_createAcceptButtonView','locale','ck-ai-button-secondary','bindTemplate','1475EKPGsb','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','1286424DzGfDW','13902YSYbbj','icon','setItemAsActive','dismissButtonView','ck-ai-review-mode__check-run-result-action-buttons','ck-ai-review-mode__check-run-result-status-button','acceptChange','isInfoToggleOn','click','stopPropagation','AI_REVIEW_MODE_LEARN_MORE','ck-content','menuitemcheckbox','changeId','REJECTED','dismissChange','ck-ai-review-mode__check-run-result-accept-button','ck-ai-review-mode__check-run-result-footer','setTemplate','infoButtonView','99IXzTIV','ck-content-direct-excluded','1848684zBkGiD','_createInfoButtonView','597083goLzgN','isOn','div','statusButtonView','ck-ai-button-tertiary-filled','activateChange','791739bmOQsB','set','disabled','2675493CnbnPX','315qXQbWv','setItemAsInactive','status','extendTemplate'];_0x502e=function(){return _0x18653b;};return _0x502e();}import{IconInfo as _0x1231ed,IconCheck as _0x56654a,IconCancel as _0x429505,IconOutdated as _0x265685}from'ckeditor5/src/icons.js';import{getTranslation as _0x5628ad}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x46579c{[_0x4f6619(0xc0)];[_0x4f6619(0xb9)];[_0x4f6619(0xd0)];[_0x4f6619(0xe0)];[_0x4f6619(0xe8)];constructor(_0x577f5d,_0x485362){const _0x2d78f7=_0x4f6619;super(_0x577f5d),this['id']=_0x485362,this[_0x2d78f7(0xec)](_0x2d78f7(0xf1),_0x2d78f7(0xfa)),this[_0x2d78f7(0xec)](_0x2d78f7(0xda),_0x485362),this[_0x2d78f7(0xc0)]=this[_0x2d78f7(0xf8)](),this[_0x2d78f7(0xb9)]=this[_0x2d78f7(0xc6)](),this[_0x2d78f7(0xd0)]=this[_0x2d78f7(0xb7)](),this[_0x2d78f7(0xe0)]=this[_0x2d78f7(0xe4)](),this[_0x2d78f7(0xe8)]=this[_0x2d78f7(0xbe)](),this[_0x2d78f7(0xec)](_0x2d78f7(0xd4),!0x1),this[_0x2d78f7(0xec)](_0x2d78f7(0xc4),!0x1),this[_0x2d78f7(0xec)](_0x2d78f7(0xf3),!0x0),this[_0x2d78f7(0xdf)]({'tag':_0x2d78f7(0xe7),'attributes':{'class':[_0x2d78f7(0xbb),this[_0x2d78f7(0xc9)]['if'](_0x2d78f7(0xc4),_0x2d78f7(0xbd))]},'on':{'click':this[_0x2d78f7(0xc9)]['to'](_0x2d78f7(0xd5))},'children':[this[_0x2d78f7(0xc0)],{'tag':_0x2d78f7(0xe7),'attributes':{'class':[_0x2d78f7(0xde)]},'children':[{'tag':_0x2d78f7(0xe7),'attributes':{'class':[_0x2d78f7(0xd1)]},'children':[this[_0x2d78f7(0xb9)],this[_0x2d78f7(0xd0)],this[_0x2d78f7(0xe8)]]},this[_0x2d78f7(0xe0)]]}]}),this['on'](_0x2d78f7(0xd5),()=>{const _0x526fe8=_0x2d78f7;this[_0x526fe8(0xb8)](_0x526fe8(0xea),{'id':_0x485362,'source':this});});}[_0x4f6619(0xcf)](){const _0x2001ee=_0x4f6619;this[_0x2001ee(0xc4)]=!0x0;}[_0x4f6619(0xf0)](){const _0x4b931e=_0x4f6619;this[_0x4b931e(0xc4)]=!0x1;}[_0x4f6619(0xf8)](){const _0x17504b=_0x4f6619,_0x1c95b7=new _0x46579c(this[_0x17504b(0xc7)]);return _0x1c95b7[_0x17504b(0xdf)]({'tag':_0x17504b(0xe7),'attributes':{'class':['ck',_0x17504b(0xd8),_0x17504b(0xe2),_0x17504b(0xb6),this[_0x17504b(0xc9)]['if'](_0x17504b(0xf3),_0x17504b(0xc1),_0xb5571a=>!_0xb5571a)]}}),_0x1c95b7;}[_0x4f6619(0xc6)](){const _0x1b3b31=_0x4f6619,_0x41df3e=new _0x18335d(this[_0x1b3b31(0xc7)]);return _0x41df3e[_0x1b3b31(0xec)]({'label':_0x5628ad(this[_0x1b3b31(0xc7)],_0x1b3b31(0xf6)),'withText':!0x0}),_0x41df3e[_0x1b3b31(0xf2)]({'on':{'click':this[_0x1b3b31(0xc9)]['to'](_0x2804eb=>{const _0x557538=_0x1b3b31;this[_0x557538(0xb8)](_0x557538(0xd3),{'id':this[_0x557538(0xda)]}),_0x2804eb[_0x557538(0xd6)]();})},'attributes':{'class':[_0x1b3b31(0xc8),_0x1b3b31(0xdd),this[_0x1b3b31(0xc9)]['if'](_0x1b3b31(0xf1),_0x1b3b31(0xc1),_0x2aab0e=>_0x1b3b31(0xfa)!==_0x2aab0e)]}}),_0x41df3e;}[_0x4f6619(0xb7)](){const _0x416271=_0x4f6619,_0x14513e=new _0x18335d(this[_0x416271(0xc7)]);return _0x14513e[_0x416271(0xec)]({'label':_0x5628ad(this[_0x416271(0xc7)],_0x416271(0xc5)),'withText':!0x0}),_0x14513e[_0x416271(0xf2)]({'on':{'click':this[_0x416271(0xc9)]['to'](_0x579281=>{const _0x60e3c6=_0x416271;this[_0x60e3c6(0xb8)](_0x60e3c6(0xdc),{'id':this[_0x60e3c6(0xda)]}),_0x579281[_0x60e3c6(0xd6)]();})},'attributes':{'class':[_0x416271(0xe9),_0x416271(0xf4),this[_0x416271(0xc9)]['if'](_0x416271(0xf1),_0x416271(0xc1),_0x392d9a=>_0x416271(0xfa)!==_0x392d9a)]}}),_0x14513e;}[_0x4f6619(0xe4)](){const _0x4c257e=_0x4f6619,_0x1e228a=new _0x18335d(this[_0x4c257e(0xc7)]);return _0x1e228a[_0x4c257e(0xec)]({'label':_0x5628ad(this[_0x4c257e(0xc7)],_0x4c257e(0xd7)),'icon':_0x1231ed,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x4c257e(0xd9),'class':_0x4c257e(0xcb)}),_0x1e228a[_0x4c257e(0xf7)](_0x4c257e(0xe6))['to'](this,_0x4c257e(0xd4),_0x23150e=>_0x23150e),_0x1e228a['on'](_0x4c257e(0xc3),()=>{const _0x46a0a6=_0x4c257e;this[_0x46a0a6(0xd4)]=!this[_0x46a0a6(0xd4)];}),_0x1e228a;}[_0x4f6619(0xbe)](){const _0xf7b505=_0x4f6619,_0x23be51=new _0x18335d(this[_0xf7b505(0xc7)]);return _0x23be51[_0xf7b505(0xec)]({'withText':!0x0,'isEnabled':!0x1}),_0x23be51[_0xf7b505(0xf7)](_0xf7b505(0xc2))['to'](this,_0xf7b505(0xf1),_0x18e89d=>_0x5628ad(this[_0xf7b505(0xc7)],_0xf7b505(0xf5)+_0x18e89d[_0xf7b505(0xbc)]())),_0x23be51[_0xf7b505(0xf7)](_0xf7b505(0xce))['to'](this,_0xf7b505(0xf1),_0x26f846=>_0xf7b505(0xf9)===_0x26f846[_0xf7b505(0xbc)]()?_0x56654a:_0xf7b505(0xdb)===_0x26f846[_0xf7b505(0xbc)]()?_0x429505:_0x265685),_0x23be51[_0xf7b505(0xf2)]({'attributes':{'class':[_0xf7b505(0xc8),_0xf7b505(0xd2),this[_0xf7b505(0xc9)]['if'](_0xf7b505(0xf1),_0xf7b505(0xc1),_0x295796=>_0xf7b505(0xfa)===_0x295796)],'disabled':_0xf7b505(0xed)}}),_0x23be51;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0xc34dda,KeystrokeHandler as jt,FocusTracker as Bt}from'ckeditor5/src/utils.js';import{View as _0x5330de,ViewCollection as _0x48a24c,ButtonView as _0x20952e,FormRowView as _0x57c190,createDropdown as _0x162017,addListToDropdown as _0x3c23ff,UIModel as _0xb455a2,ButtonLabelView as _0x45c504,LabeledFieldView as _0x267c0a,FocusCycler as Vt}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0xfee59}from'./aireviemodepromptinputview.js';import{getTranslation as _0x795523}from'../../aicore/utils/common-translations.js';import{AIModels as _0x501cc2}from'../../aicore/model/aimodels.js';export class AIReviewModeCustomCheckView extends _0x5330de{['focusTracker']=new Bt();['keystrokes']=new jt();['focusCycler'];['_focusables']=new _0x48a24c();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x114e14,_0xc50bc2){super(_0x114e14),this['_check']=_0xc50bc2,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0xc50bc2['models']&&_0xc50bc2['models']['length']>0x0?_0xc50bc2['models'][0x0]['id']:'',this['_defaultLabel']=_0xc50bc2['models']&&_0xc50bc2['models']['length']>0x0?_0xc50bc2['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x267c0a(this['locale'],()=>new _0xfee59(_0x114e14)),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 _0xc34dda(),this['_setModelList'](),_0x3c23ff(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 _0x57c190(this['locale'],{'children':[this['promptInputView']]}),new _0x57c190(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x25b6e2,_0x51e420)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x51e420()):_0x51e420();}),this['focusCycler']=new Vt({'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'](_0x1cc306=>{this['_focusables']['add'](_0x1cc306),this['focusTracker']['add'](_0x1cc306['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 _0x52d3ff of this['_getFormValidators']()){const _0x47012a=_0x52d3ff();if(_0x47012a)return this['promptInputView']['errorText']=_0x47012a,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x795523(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x3c05ea=new _0x20952e(this['locale']),t=this['locale']['t'];return _0x3c05ea['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x3c05ea['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x3c05ea;}['_createCancelButtonView'](){const _0x15d2ad=new _0x20952e(this['locale']),t=this['locale']['t'];return _0x15d2ad['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x15d2ad['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x4bc2bc=>{_0x4bc2bc['stopPropagation']();})}}),_0x15d2ad['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x15d2ad;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x2ca085=this['_check']['models'];if(this['resetToDefault'](),_0x2ca085?.['length']){const _0x6b8d4c=_0x501cc2['getLocalized'](this['locale'],_0x2ca085);for(const _0x5d5f8f of _0x6b8d4c){const _0x4923ff=new _0xb455a2({'label':_0x5d5f8f['name'],'withText':!0x0,'role':'menuitemradio','id':_0x5d5f8f['id'],'model':_0x5d5f8f});_0x4923ff['bind']('isOn')['to'](this,'modelId',_0x5dcd08=>_0x5dcd08===_0x5d5f8f['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x4923ff,'labelView':new Ws(this['locale'],_0x5d5f8f)});}}}['_createModelSelectionDropdown'](){const _0x271c57=_0x162017(this['locale']);return _0x271c57['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x271c57['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x271c57,'execute',_0x5750b9=>{this['modelId']=_0x5750b9['source']['model']['id'],_0x271c57['buttonView']['label']=_0x5750b9['source']['label'];}),_0x271c57;}['_createActionsFooterView'](){const _0x22b3d6=new _0x5330de(this['locale']);return _0x22b3d6['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']]}]}),_0x22b3d6;}}class Ws extends _0x45c504{constructor(_0x139a1d,_0x2a0e2e){super();const _0x20c219=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x20c219['to']('style'),'id':_0x20c219['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x20c219['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x2a0e2e['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x52ecf7,_0x14ca31){var _0x3686b0=_0x320f,_0x3d1149=_0x52ecf7();while(!![]){try{var _0x160143=-parseInt(_0x3686b0(0xcd))/0x1*(parseInt(_0x3686b0(0xc3))/0x2)+-parseInt(_0x3686b0(0xcb))/0x3+-parseInt(_0x3686b0(0xc2))/0x4*(-parseInt(_0x3686b0(0xd0))/0x5)+-parseInt(_0x3686b0(0xce))/0x6+-parseInt(_0x3686b0(0xd1))/0x7*(-parseInt(_0x3686b0(0xc1))/0x8)+-parseInt(_0x3686b0(0xc9))/0x9+-parseInt(_0x3686b0(0xcc))/0xa*(-parseInt(_0x3686b0(0xc7))/0xb);if(_0x160143===_0x14ca31)break;else _0x3d1149['push'](_0x3d1149['shift']());}catch(_0x2076f6){_0x3d1149['push'](_0x3d1149['shift']());}}}(_0x5729,0xe0596));import{ButtonView as _0x3fa856}from'ckeditor5/src/ui.js';function _0x320f(_0x23d4c5,_0x10a633){var _0x572966=_0x5729();return _0x320f=function(_0x320f7d,_0x4da2c4){_0x320f7d=_0x320f7d-0xc1;var _0x56d59a=_0x572966[_0x320f7d];return _0x56d59a;},_0x320f(_0x23d4c5,_0x10a633);}function _0x5729(){var _0x329956=['33GXrIDD','execute','14030100OFeBAu','locale','4773051nfOYnp','10675940QBhyJN','4787EexYZM','1464612qKYXGT','fire','8501695NbPdQI','175RnOcTB','ck-ai-button-primary','253848BrCKQN','4MkquXQ','578LsWNfr','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','finishReview','set'];_0x5729=function(){return _0x329956;};return _0x5729();}import{getTranslation as _0x5e0fe3}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeFinishReviewButtonView extends _0x3fa856{constructor(_0x42df17){var _0x424ab1=_0x320f;super(_0x42df17),this[_0x424ab1(0xc6)]({'label':_0x5e0fe3(this[_0x424ab1(0xca)],_0x424ab1(0xc4)),'withText':!0x0,'class':_0x424ab1(0xd2)}),this['on'](_0x424ab1(0xc8),()=>{var _0x1d7400=_0x424ab1;this[_0x1d7400(0xcf)](_0x1d7400(0xc5));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c1a83=_0x825b;(function(_0x53592a,_0x4a128f){const _0x42f482=_0x825b,_0x126c03=_0x53592a();while(!![]){try{const _0x59b636=-parseInt(_0x42f482(0x169))/0x1*(parseInt(_0x42f482(0x151))/0x2)+parseInt(_0x42f482(0x153))/0x3+parseInt(_0x42f482(0x161))/0x4*(parseInt(_0x42f482(0x164))/0x5)+-parseInt(_0x42f482(0x163))/0x6*(-parseInt(_0x42f482(0x15e))/0x7)+-parseInt(_0x42f482(0x15b))/0x8*(parseInt(_0x42f482(0x167))/0x9)+-parseInt(_0x42f482(0x166))/0xa+-parseInt(_0x42f482(0x15a))/0xb*(-parseInt(_0x42f482(0x154))/0xc);if(_0x59b636===_0x4a128f)break;else _0x126c03['push'](_0x126c03['shift']());}catch(_0xfed442){_0x126c03['push'](_0x126c03['shift']());}}}(_0x3049,0xbd4a6));import{ListItemView as _0x2e8381,ViewCollection as _0x40e784}from'ckeditor5/src/ui.js';function _0x3049(){const _0x3b0eec=['setTemplate','clear','1325070LhTrYz','div','765150RpXtJg','12gvuAWc','runReviewCheck','resetAllParameterizedChecks','add','delegate','length','3316434iFUZgw','16shRzVz','locale','isVisible','893081rwQgIJ','ck-hidden','ck-ai-review-mode__check-list','8644HTcJln','setChecks','66bpxbtr','3035kVCuhI','entries','11345910FTnyve','3146508iEnpZy','_checkViews','1FUxGjX','resetToDefault','bindTemplate','hasChecks'];_0x3049=function(){return _0x3b0eec;};return _0x3049();}import{AIReviewModeReviewCommandListItemView as _0x555a80}from'./aireviewmodereviewcommandlistitemview.js';import'../../../theme/aireviewmode/aireviewmode-check-list.css';function _0x825b(_0x319ac7,_0x19b489){const _0x304979=_0x3049();return _0x825b=function(_0x825be0,_0x440b44){_0x825be0=_0x825be0-0x151;let _0x5a89ac=_0x304979[_0x825be0];return _0x5a89ac;},_0x825b(_0x319ac7,_0x19b489);}export class AIReviewModeReviewCheckListView extends _0x2e8381{[_0x2c1a83(0x168)];constructor(_0xd7004f){const _0x139f72=_0x2c1a83;super(_0xd7004f),this[_0x139f72(0x168)]=new _0x40e784();const _0x187774=this[_0x139f72(0x16b)];this[_0x139f72(0x16d)]({'tag':_0x139f72(0x152),'attributes':{'class':[_0x139f72(0x160),_0x187774['if'](_0x139f72(0x15d),_0x139f72(0x15f),_0xd29ec3=>!_0xd29ec3)]},'children':this[_0x139f72(0x168)]});}[_0x2c1a83(0x162)](_0xba66ac){const _0x530b1a=_0x2c1a83;this[_0x530b1a(0x168)][_0x530b1a(0x16e)]();for(const [_0x11f19e,_0x1550b5]of _0xba66ac[_0x530b1a(0x165)]()){const _0x187326=new _0x555a80(this[_0x530b1a(0x15c)],_0x1550b5,_0x11f19e);_0x187326[_0x530b1a(0x158)](_0x530b1a(0x155))['to'](this),this[_0x530b1a(0x168)][_0x530b1a(0x157)](_0x187326);}}[_0x2c1a83(0x16c)](){const _0x4e6ee2=_0x2c1a83;return this[_0x4e6ee2(0x168)][_0x4e6ee2(0x159)]>0x0;}[_0x2c1a83(0x156)](){const _0xba5630=_0x2c1a83;for(const _0x3a5479 of this[_0xba5630(0x168)])_0x3a5479 instanceof _0x555a80&&_0x3a5479[_0xba5630(0x16a)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as _0x3bd611,View as st,ViewCollection as it,ButtonView as tt}from'ckeditor5/src/ui.js';import{IconStop as _0x185f98,IconEye as _0x4fe080,IconEyeCrossedOut as _0xaf21e9}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x5161bf}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x567350}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x5601ac,SKELETON_DEFINITIONS as _0x6f3d03}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x164499}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x1b5ad1}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x271c7d}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x3bd611{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x533722){super(_0x533722),this['_resultViews']=new it(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x164499(_0x533722),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1);const _0x52fd82=this['_createCombinedSkeletonLoader'](),_0x3204d2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x3204d2['if']('isVisible','ck-hidden',_0x3b4c24=>!_0x3b4c24)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x1908f9=>_0x1908f9)]},'children':this['_resultViews']},_0x52fd82]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x47074a){const _0x111dd3=new _0x5161bf(this['locale'],_0x47074a['id']);_0x111dd3['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x111dd3),_0x111dd3['resultResponseView']['element']['innerHTML']=_0x47074a['contentDiffed'];}['hideResult'](_0xbad207,_0x410850){if('pending'===_0x410850)return;const _0x4137a9=this['_resultViews']['find'](_0x1e8c38=>_0x1e8c38['id']===_0xbad207);_0x4137a9&&(_0x4137a9['status']=_0x410850,_0x4137a9['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x5d8dde,_0x5b2968){if('pending'!==_0x5b2968)return;const _0x2c7633=this['_resultViews']['find'](_0x16d947=>_0x16d947['id']===_0x5d8dde);_0x2c7633&&(_0x2c7633['status']=_0x5b2968,_0x2c7633['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x3e9975,_0x59bd7d){this['headerTitle']=_0x3e9975,this['headerSubtitle']=_0x59bd7d||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x5601ac(this['locale'],_0x6f3d03['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0xc39520=new st(this['locale']),_0x32117a=[];for(let _0x5f2323=0x0;_0x5f2323<0x10;_0x5f2323++){const _0x4d25d0=this['_createSkeletonLoader']();_0x4d25d0['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x32117a['push'](_0x4d25d0);}return _0xc39520['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x37dd3b=>!_0x37dd3b)]},'children':_0x32117a}),_0xc39520;}['_createErrorView'](){const _0x14b989=new st(this['locale']),_0x4c4e25=new tt(this['locale']),t=this['locale']['t'];return _0x14b989['delegate']('retryReview')['to'](this),_0x4c4e25['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x4c4e25['on']('execute',()=>{this['fire']('retryReview');}),_0x14b989['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0xdc4af9=>!_0xdc4af9),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x25c8de=>'chunk'===_0x25c8de)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-chat-error','ck-ai-chat-error_full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-chat-error_warning',_0x17c547=>'chunk'===_0x17c547)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x4a2f61=>'general'!==_0x4a2f61)]},'children':[{'text':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x52928c=>'chunk'!==_0x52928c)]},'children':[{'text':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x4c4e25]}),_0x14b989;}['_createCancelButtonView'](){const _0x5693d0=new tt(this['locale']);return _0x5693d0['set']({'label':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x185f98}),_0x5693d0['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4949ce=>_0x4949ce),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x550ab9=>_0x550ab9)]}}),_0x5693d0['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x5693d0;}['_createToggleDiffButtonView'](){const _0x5cf27d=new tt(this['locale']);_0x5cf27d['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x5cf27d['bind']('isEnabled')['to'](this,'isError',_0xeb9ed1=>!_0xeb9ed1),_0x5cf27d['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3ab2df=>!_0x3ab2df),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x405f42=>_0x405f42)]}});const _0x33ebd3=_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x1ed706=_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x5cf27d['bind']('isOn')['to'](this,'isToggleDiffOn',_0x1d22f2=>_0x1d22f2),_0x5cf27d['bind']('icon')['to'](this,'isToggleDiffOn',_0x4110cc=>_0x4110cc?_0x4fe080:_0xaf21e9),_0x5cf27d['bind']('label')['to'](this,'isToggleDiffOn',_0x4d4b46=>_0x4d4b46?_0x33ebd3:_0x1ed706),_0x5cf27d['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x5cf27d;}['_createAcceptAllButtonView'](){const _0x177e60=new tt(this['locale']);return _0x177e60['set']({'label':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x177e60['bind']('isEnabled')['to'](this,'isError',_0x36312e=>!_0x36312e),_0x177e60['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x2164f3=>!_0x2164f3),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x20cfd9=>_0x20cfd9)]}}),_0x177e60['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x177e60;}['_createExitReviewButtonView'](){const _0x126b3f=new tt(this['locale']);return _0x126b3f['set']({'label':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x126b3f['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x17c990=>!_0x17c990),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x217cad=>_0x217cad)]}}),_0x126b3f['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x126b3f;}['_createResultHeaderView'](){const _0x1e1508=new st(this['locale']),_0x14a995=this['_createTitleView']();return _0x1e1508['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0x273b69=>_0x273b69)]},'children':[_0x14a995,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x1e1508;}['_createTitleView'](){const _0x2da6fd=new st(this['locale']),_0x2c882d=new _0x271c7d();return _0x2c882d['bind']('isVisible')['to'](this,'isResultReady',_0xbfbdcc=>!_0xbfbdcc),_0x2da6fd['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x2c882d,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3a7773=>_0x3a7773)]},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4c7014=>!_0x4c7014)]},'children':[{'text':_0x1b5ad1(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x2da6fd;}['_createFinishReviewButtonView'](){const _0x10579b=new _0x567350(this['locale']);return _0x10579b['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x912dda=>!_0x912dda)]}}),_0x10579b['delegate']('finishReview')['to'](this),_0x10579b;}}
|
|
23
|
+
import{ListItemView as _0x32217,View as _0x2bc1ea,ViewCollection as _0x4d8d72,ButtonView as _0x151610}from'ckeditor5/src/ui.js';import{IconStop as _0x98c4d3,IconEye as _0x1aa054,IconEyeCrossedOut as _0x5719fa}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x54069e}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x239684}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x2e83af,SKELETON_DEFINITIONS as _0x5a07bd}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x582e4a}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x4ea206}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0xd46c7f}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x32217{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x4bad21){super(_0x4bad21),this['_resultViews']=new _0x4d8d72(),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 _0x582e4a(_0x4bad21),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 _0x167245=this['_createCombinedSkeletonLoader'](),_0x494521=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x494521['if']('isVisible','ck-hidden',_0x5ec6f2=>!_0x5ec6f2)]},'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',_0x5d4b64=>_0x5d4b64)]},'children':this['_resultViews']},_0x167245]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x4be160){const _0x4c640a=new _0x54069e(this['locale'],_0x4be160['id']);_0x4c640a['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x4c640a),_0x4c640a['resultResponseView']['element']['innerHTML']=_0x4be160['contentDiffed'];}['hideResult'](_0x2580fa,_0x4fc924){if('pending'===_0x4fc924)return;const _0x1b63a9=this['_resultViews']['find'](_0x5a614f=>_0x5a614f['id']===_0x2580fa);_0x1b63a9&&(_0x1b63a9['status']=_0x4fc924,_0x1b63a9['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x2722b8,_0xaa5a4d){if('pending'!==_0xaa5a4d)return;const _0x2ef77b=this['_resultViews']['find'](_0x53302b=>_0x53302b['id']===_0x2722b8);_0x2ef77b&&(_0x2ef77b['status']=_0xaa5a4d,_0x2ef77b['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x3915a1,_0x233685){this['headerTitle']=_0x3915a1,this['headerSubtitle']=_0x233685||'';}['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 _0x2e83af(this['locale'],_0x5a07bd['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x3e4904=new _0x2bc1ea(this['locale']),_0x4e9810=[];for(let _0x4d2036=0x0;_0x4d2036<0x10;_0x4d2036++){const _0x1fa0ab=this['_createSkeletonLoader']();_0x1fa0ab['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x4e9810['push'](_0x1fa0ab);}return _0x3e4904['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x4f5509=>!_0x4f5509)]},'children':_0x4e9810}),_0x3e4904;}['_createErrorView'](){const _0x46efcd=new _0x2bc1ea(this['locale']),_0x4e43e1=new _0x151610(this['locale']),t=this['locale']['t'];return _0x46efcd['delegate']('retryReview')['to'](this),_0x4e43e1['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x4e43e1['on']('execute',()=>{this['fire']('retryReview');}),_0x46efcd['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x32acf7=>!_0x32acf7),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x4225ad=>'chunk'===_0x4225ad)]},'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',_0x5bc336=>'chunk'===_0x5bc336)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x47f5d4=>'general'!==_0x47f5d4)]},'children':[{'text':_0x4ea206(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x3f04e1=>'chunk'!==_0x3f04e1)]},'children':[{'text':_0x4ea206(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x4e43e1]}),_0x46efcd;}['_createCancelButtonView'](){const _0x1b9544=new _0x151610(this['locale']);return _0x1b9544['set']({'label':_0x4ea206(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x98c4d3}),_0x1b9544['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x39eda9=>_0x39eda9),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2d8570=>_0x2d8570)]}}),_0x1b9544['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x1b9544;}['_createToggleDiffButtonView'](){const _0x1295c4=new _0x151610(this['locale']);_0x1295c4['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x1295c4['bind']('isEnabled')['to'](this,'isError',_0x4060ae=>!_0x4060ae),_0x1295c4['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x2bccac=>!_0x2bccac),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x49a6c5=>_0x49a6c5)]}});const _0x485bea=_0x4ea206(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x384fb2=_0x4ea206(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x1295c4['bind']('isOn')['to'](this,'isToggleDiffOn',_0x494b9e=>_0x494b9e),_0x1295c4['bind']('icon')['to'](this,'isToggleDiffOn',_0x50b4d6=>_0x50b4d6?_0x1aa054:_0x5719fa),_0x1295c4['bind']('label')['to'](this,'isToggleDiffOn',_0x4700ac=>_0x4700ac?_0x485bea:_0x384fb2),_0x1295c4['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x1295c4;}['_createAcceptAllButtonView'](){const _0x33c8c2=new _0x151610(this['locale']);return _0x33c8c2['set']({'label':_0x4ea206(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x33c8c2['bind']('isEnabled')['to'](this,'isError',_0x4631d3=>!_0x4631d3),_0x33c8c2['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x48e1b3=>!_0x48e1b3),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5f3b52=>_0x5f3b52)]}}),_0x33c8c2['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x33c8c2;}['_createExitReviewButtonView'](){const _0x59cdf7=new _0x151610(this['locale']);return _0x59cdf7['set']({'label':_0x4ea206(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x59cdf7['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4b120f=>!_0x4b120f),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x57336d=>_0x57336d)]}}),_0x59cdf7['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x59cdf7;}['_createResultHeaderView'](){const _0x27515a=new _0x2bc1ea(this['locale']),_0x328822=this['_createTitleView']();return _0x27515a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0xc6a750=>_0xc6a750)]},'children':[_0x328822,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x27515a;}['_createTitleView'](){const _0x11ac7a=new _0x2bc1ea(this['locale']),_0x3003a7=new _0xd46c7f();return _0x3003a7['bind']('isVisible')['to'](this,'isResultReady',_0x11fda4=>!_0x11fda4),_0x11ac7a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x3003a7,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x9ba56d=>_0x9ba56d)]},'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',_0x593828=>!_0x593828)]},'children':[{'text':_0x4ea206(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x11ac7a;}['_createFinishReviewButtonView'](){const _0x36524e=new _0x239684(this['locale']);return _0x36524e['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5a7d20=>!_0x5a7d20)]}}),_0x36524e['delegate']('finishReview')['to'](this),_0x36524e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x52b1ff,IconView as _0xb0c067,View as _0x138526,ViewCollection as _0x48440d,ButtonView as _0x188aa5,clickOutsideHandler as ts}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x565c2f}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x256590}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as _0x26c5f5}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x52b1ff{['_formItemsCollection']=new _0x48440d();['_customCheckView']=null;constructor(_0x7463cb,_0x20cc51,_0x43fd4c){super(_0x7463cb),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x20cc51['isParameterized']);const _0x3082d7=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',_0xb30e16=>_0xb30e16),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x4e0ece=>_0x4e0ece)],'style':{'--ck-ai-review-check-list-item-index':_0x43fd4c}},'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':_0x20cc51['title']}]},_0x3082d7]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x20cc51['description']}]}]}]},..._0x20cc51['isParameterized']?[this['_createParameterizedView'](_0x20cc51)]:[],...'custom'===_0x20cc51['id']?[this['_createCustomView'](_0x20cc51)]:[]]}),this['on']('click',()=>{_0x20cc51['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x20cc51['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&ts({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x407211=>{_0x407211['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0xc18524=new _0xb0c067();return _0xc18524['content']=_0x565c2f,_0xc18524['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0xc18524;}['_createParameterizedView'](_0x4fb3d3){const _0x559bea=new _0x138526(),_0x327bd9=this['_createFormView'](_0x4fb3d3);return _0x559bea['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x56b021=>!_0x56b021)]},'children':[_0x327bd9]}),_0x559bea;}['_createFormView'](_0x29ed9a){const _0x4ad2a4=new _0x138526(),_0x9871a0=Array['isArray'](_0x29ed9a['options'])?_0x29ed9a['options']:[],_0x57fee5=new _0x188aa5(this['locale']),t=this['locale']['t'];_0x57fee5['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x57fee5['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x1a7442=>{_0x1a7442['stopPropagation']();})}}),_0x57fee5['on']('execute',()=>{const _0x513ae2=[],_0x162648={};this['_formItemsCollection']['forEach'](_0x17ae8a=>{_0x513ae2['push'](_0x17ae8a['value']),_0x29ed9a['useArgs']&&_0x29ed9a['options']&&(_0x162648[_0x17ae8a['argsKey']]=_0x17ae8a['value']);}),this['fire']('runReviewCheck',{'id':_0x29ed9a['id'],'params':_0x513ae2['length']?_0x513ae2:void 0x0,'args':Object['keys'](_0x162648)['length']?_0x162648:void 0x0});});const _0x4159eb=_0x9871a0['length'];return _0x9871a0['forEach']((_0x3f7d75,_0x341e98)=>{const _0xd40afe=_0x341e98===_0x4159eb-0x1;this['_formItemsCollection']['add'](new _0x256590(this['locale'],_0x3f7d75,_0xd40afe?_0x57fee5:null));}),_0x4ad2a4['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x4ad2a4;}['_createCustomView'](_0x2659b0){return this['_customCheckView']=new _0x26c5f5(this['locale'],_0x2659b0),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',_0x3acbac=>!_0x3acbac)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x3f2b17,_0xe13168,_0x612aa4)=>{_0x612aa4||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3559(_0x20e348,_0x3d1cbb){const _0x3f93cd=_0x3f93();return _0x3559=function(_0x3559f5,_0x19d959){_0x3559f5=_0x3559f5-0x13f;let _0x797d08=_0x3f93cd[_0x3559f5];return _0x797d08;},_0x3559(_0x20e348,_0x3d1cbb);}function _0x3f93(){const _0x48ef3f=['bindTemplate','8cFzUmR','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','_createFinishReviewButtonView','_finishReviewButtonView','1430164hmgNZG','setTemplate','isVisible','12VgojZI','ck-ai-review-mode__review-completed-header','ck-ai-review-mode__review-completed-header-buttons','ck-ai-review-mode__review-completed-content-icon','1905185LiWSIU','_createResultHeaderView','resultsHeader','ck-ai-review-mode__review-completed-header-title','locale','delegate','AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','ck-ai-review-mode__review-completed-content','span','ck-ai-review-mode__review-completed','ck-ai-review-mode__review-completed-content-text','3800853LoNRHP','finishReview','5216130fzWDyt','ck-hidden','450084KNviLY','div','44kkczny','24404hGykLT','7121471bZFXld'];_0x3f93=function(){return _0x48ef3f;};return _0x3f93();}const _0x886e92=_0x3559;(function(_0x51828a,_0x4689be){const _0x31b2bc=_0x3559,_0x2623c9=_0x51828a();while(!![]){try{const _0x29774e=parseInt(_0x31b2bc(0x15a))/0x1*(-parseInt(_0x31b2bc(0x15b))/0x2)+-parseInt(_0x31b2bc(0x158))/0x3+-parseInt(_0x31b2bc(0x142))/0x4+parseInt(_0x31b2bc(0x149))/0x5*(parseInt(_0x31b2bc(0x145))/0x6)+parseInt(_0x31b2bc(0x15c))/0x7+parseInt(_0x31b2bc(0x15e))/0x8*(parseInt(_0x31b2bc(0x154))/0x9)+-parseInt(_0x31b2bc(0x156))/0xa;if(_0x29774e===_0x4689be)break;else _0x2623c9['push'](_0x2623c9['shift']());}catch(_0x49244d){_0x2623c9['push'](_0x2623c9['shift']());}}}(_0x3f93,0x9b31a));import{ListItemView as _0x271972,View as _0x2a9adc}from'ckeditor5/src/ui.js';import{AIReviewModeFinishReviewButtonView as _0x1523b8}from'./aireviewmodefinishreviewbuttonview.js';import{getTranslation as _0x22a71a}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeReviewCompletedView extends _0x271972{[_0x886e92(0x14b)];[_0x886e92(0x141)];constructor(_0x464ec8){const _0x526b8e=_0x886e92;super(_0x464ec8),this[_0x526b8e(0x141)]=this[_0x526b8e(0x140)](),this[_0x526b8e(0x14b)]=this[_0x526b8e(0x14a)]();const _0x9afe82=this[_0x526b8e(0x15d)];this[_0x526b8e(0x143)]({'tag':_0x526b8e(0x159),'attributes':{'class':[_0x526b8e(0x152),_0x9afe82['if'](_0x526b8e(0x144),_0x526b8e(0x157),_0x16200b=>!_0x16200b)]},'children':[this[_0x526b8e(0x14b)],{'tag':_0x526b8e(0x159),'attributes':{'class':[_0x526b8e(0x150)]},'children':[{'tag':_0x526b8e(0x151),'attributes':{'class':[_0x526b8e(0x148)]},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':[_0x526b8e(0x153)]},'children':[{'text':_0x22a71a(_0x464ec8,_0x526b8e(0x14f))}]}]}]});}[_0x886e92(0x140)](){const _0x146d87=_0x886e92,_0x38c17b=new _0x1523b8(this[_0x146d87(0x14d)]);return _0x38c17b[_0x146d87(0x14e)](_0x146d87(0x155))['to'](this),_0x38c17b;}[_0x886e92(0x14a)](){const _0x2ecb1c=_0x886e92,_0x57973a=new _0x2a9adc(this[_0x2ecb1c(0x14d)]);return _0x57973a[_0x2ecb1c(0x143)]({'tag':_0x2ecb1c(0x159),'attributes':{'class':[_0x2ecb1c(0x146)]},'children':[{'tag':_0x2ecb1c(0x151),'attributes':{'class':[_0x2ecb1c(0x14c)]},'children':[{'text':_0x22a71a(this[_0x2ecb1c(0x14d)],_0x2ecb1c(0x13f))}]},{'tag':_0x2ecb1c(0x159),'attributes':{'class':[_0x2ecb1c(0x147)]},'children':[this[_0x2ecb1c(0x141)]]}]}),_0x57973a;}}
|