@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.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/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/aicore/utils/scrollmanager.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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/aireviewmodegeneralerrorview.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/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x2335c9=_0x3c19;function _0x37c9(){var _0x563e33=['contentNew','18312bIlUKU','2TrRhAY','2454268TJbVJN','2362995nykSNW','documentVersion','126aWJkoe','25487HFALye','contentInitial','4159735CwZxfg','31187510HKobLK','765lOzvoQ','552178MTswXI'];_0x37c9=function(){return _0x563e33;};return _0x37c9();}function _0x3c19(_0x5ab059,_0x1e5f39){var _0x37c9bf=_0x37c9();return _0x3c19=function(_0x3c1955,_0x1c9541){_0x3c1955=_0x3c1955-0x1d1;var _0x359850=_0x37c9bf[_0x3c1955];return _0x359850;},_0x3c19(_0x5ab059,_0x1e5f39);}(function(_0x5ba8b1,_0x5ba846){var _0x446a02=_0x3c19,_0x3d44ff=_0x5ba8b1();while(!![]){try{var _0x55f599=-parseInt(_0x446a02(0x1d5))/0x1+parseInt(_0x446a02(0x1d8))/0x2*(-parseInt(_0x446a02(0x1da))/0x3)+-parseInt(_0x446a02(0x1d9))/0x4+-parseInt(_0x446a02(0x1d2))/0x5+-parseInt(_0x446a02(0x1dc))/0x6*(parseInt(_0x446a02(0x1dd))/0x7)+parseInt(_0x446a02(0x1d7))/0x8*(parseInt(_0x446a02(0x1d4))/0x9)+parseInt(_0x446a02(0x1d3))/0xa;if(_0x55f599===_0x5ba846)break;else _0x3d44ff['push'](_0x3d44ff['shift']());}catch(_0x4f2edf){_0x3d44ff['push'](_0x3d44ff['shift']());}}}(_0x37c9,0x6e3aa));import{EmitterMixin as _0x4bf3c1}from'ckeditor5/src/utils.js';export class AIReviewCheckResult extends _0x4bf3c1(){['id'];[_0x2335c9(0x1d6)];[_0x2335c9(0x1d1)];[_0x2335c9(0x1db)];constructor({id:_0x525a91,contentNew:_0xc193dc,contentInitial:_0x4baee7,documentVersion:_0x568676}){var _0x2fb072=_0x2335c9;super(),this['id']=_0x525a91,this[_0x2fb072(0x1d6)]=_0xc193dc,this[_0x2fb072(0x1d1)]=_0x4baee7,this[_0x2fb072(0x1db)]=_0x568676;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2fa331=_0x56dd;(function(_0x10b8ed,_0x3daf05){var _0x3c1909=_0x56dd,_0x4de03a=_0x10b8ed();while(!![]){try{var _0x540397=-parseInt(_0x3c1909(0x1b5))/0x1*(-parseInt(_0x3c1909(0x1bf))/0x2)+parseInt(_0x3c1909(0x1b9))/0x3+-parseInt(_0x3c1909(0x1ba))/0x4*(parseInt(_0x3c1909(0x1c4))/0x5)+parseInt(_0x3c1909(0x1be))/0x6*(-parseInt(_0x3c1909(0x1b0))/0x7)+parseInt(_0x3c1909(0x1b6))/0x8+-parseInt(_0x3c1909(0x1b1))/0x9*(-parseInt(_0x3c1909(0x1ae))/0xa)+-parseInt(_0x3c1909(0x1bd))/0xb;if(_0x540397===_0x3daf05)break;else _0x4de03a['push'](_0x4de03a['shift']());}catch(_0x506451){_0x4de03a['push'](_0x4de03a['shift']());}}}(_0x534c,0x649ba));import{ObservableMixin as _0x2a539c}from'ckeditor5/src/utils.js';function _0x534c(){var _0x325532=['580350eqOkJS','1460632XkrgwX','change:status','operations','4116167gcchWF','258HqAmSI','2ckzkTD','pending','parent','_editorOperations','isActivated','5orXEdV','_data','1570Gqnhbp','set','51037AqsMTQ','39051HLSsaM','context','isRated','status','137356AwqQKy','3623432dCTwlw','operationsIsolated','contentDiffed'];_0x534c=function(){return _0x325532;};return _0x534c();}function _0x56dd(_0x5679f9,_0x2a9cf5){var _0x534c3d=_0x534c();return _0x56dd=function(_0x56dd87,_0x47ac83){_0x56dd87=_0x56dd87-0x1ae;var _0x42c27e=_0x534c3d[_0x56dd87];return _0x42c27e;},_0x56dd(_0x5679f9,_0x2a9cf5);}export class AIReviewCheckResultChange extends _0x2a539c(){['id'];[_0x2fa331(0x1c1)];[_0x2fa331(0x1c5)];[_0x2fa331(0x1c2)]=[];constructor(_0x2c0601,_0x60e541,_0x349a78){var _0x4c6163=_0x2fa331;super(),this['id']=_0x2c0601,this[_0x4c6163(0x1c1)]=_0x349a78,this[_0x4c6163(0x1c5)]=_0x60e541,this[_0x4c6163(0x1af)](_0x4c6163(0x1c3),!0x1),this[_0x4c6163(0x1af)](_0x4c6163(0x1b3),!0x1),this[_0x4c6163(0x1af)](_0x4c6163(0x1b4),_0x4c6163(0x1c0)),this['on'](_0x4c6163(0x1bb),()=>{var _0x254fbd=_0x4c6163;_0x254fbd(0x1c0)!==this[_0x254fbd(0x1b4)]&&this[_0x254fbd(0x1c3)]&&(this[_0x254fbd(0x1c3)]=!0x1);});}get[_0x2fa331(0x1b8)](){var _0x158ba7=_0x2fa331;return this[_0x158ba7(0x1c5)][_0x158ba7(0x1b2)]();}get[_0x2fa331(0x1bc)](){var _0x28a2b7=_0x2fa331;return this[_0x28a2b7(0x1c5)][_0x28a2b7(0x1bc)];}get[_0x2fa331(0x1b7)](){var _0x29b7f9=_0x2fa331;return this[_0x29b7f9(0x1c5)][_0x29b7f9(0x1b7)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5548(){const _0xf8d442=['version','error-chunk','reviewCheckResultChangeStatusUpdated','callId','change:status','_aiConnector','accepted','some','parent','markChangeAsAccepted','activateChange','_activeRequest','filter','16680120fzcpFK','error-general','reviewCheckResultReady','_results','event','markChangeAsPending','get','markAllChangesAsAccepted','message','reviewCheckRunUpdated','processedResultsCount','forEach','reviewName','forceReadyState','getContent','sendRating','_reviewArgs','_reviewParams','36qEGAEj','deactivateChange','initialized','_documentData','documentData','273049HfqfwI','2220048rLEIhE','restart','getActiveChanges','isActivated','markChangeAsOutdated','loading','error','subTitle','set','elements','operation','getStream','2hfneYh','fire','isRated','updateDocumentData','markChangeAsRejected','abort','title','addResultChanges','find','isAnyChangeActivated','_currentError','hasModifications','start','2936905mXHNvJ','aborted','dataId','currentError','getChangeById','rejected','unmodified','isChangeActive','ai-request-aborted','abortController','_checkIfFinished','4NiwBjT','review-metadata','length','_createApiRequest','size','reviewCheckResultDeactivated','finished','_changes','clear','status','textDelta','ready','data','reviewCheckResultAdded','1584486JJSyiT','every','includes','_sourceCheck','push','781511KQAbYA','outdated','_addReviewCheckResult','6803703VaPVAt','pending','_sendRatingRequest','change:isActivated','reviewCheckResultActivated'];_0x5548=function(){return _0xf8d442;};return _0x5548();}function _0x57a8(_0x4f9357,_0x1d0d66){const _0x5548a6=_0x5548();return _0x57a8=function(_0x57a886,_0x446fca){_0x57a886=_0x57a886-0xc6;let _0x1c9912=_0x5548a6[_0x57a886];return _0x1c9912;},_0x57a8(_0x4f9357,_0x1d0d66);}const _0x16c80b=_0x57a8;(function(_0x3d0e7d,_0x4be248){const _0x16a274=_0x57a8,_0x3b0cd4=_0x3d0e7d();while(!![]){try{const _0x22d3b0=-parseInt(_0x16a274(0x10c))/0x1*(-parseInt(_0x16a274(0xe1))/0x2)+-parseInt(_0x16a274(0x107))/0x3+-parseInt(_0x16a274(0xf9))/0x4*(-parseInt(_0x16a274(0xee))/0x5)+parseInt(_0x16a274(0xcf))/0x6*(parseInt(_0x16a274(0xd4))/0x7)+parseInt(_0x16a274(0xd5))/0x8+parseInt(_0x16a274(0x10f))/0x9+-parseInt(_0x16a274(0x121))/0xa;if(_0x22d3b0===_0x4be248)break;else _0x3b0cd4['push'](_0x3b0cd4['shift']());}catch(_0x292a0d){_0x3b0cd4['push'](_0x3b0cd4['shift']());}}}(_0x5548,0x6b7a9));import{ObservableMixin as _0x42ccc2,uid as _0x4d99ca}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x8c5024}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x122b69}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x42ccc2(){['id']=_0x4d99ca();[_0x16c80b(0x117)];[_0x16c80b(0x124)]=new Map();[_0x16c80b(0x100)]=[];[_0x16c80b(0x10a)];[_0x16c80b(0xd2)];[_0x16c80b(0x119)];[_0x16c80b(0xce)];[_0x16c80b(0xcd)];[_0x16c80b(0x11f)]=null;[_0x16c80b(0xeb)];constructor(_0x162605,_0x472457,_0xd3e556,_0x4fdd44,_0x341bd8){const _0x30622d=_0x16c80b;super(),this[_0x30622d(0x10a)]=_0x472457,this[_0x30622d(0xd2)]=_0x162605,this[_0x30622d(0x119)]=_0xd3e556,this[_0x30622d(0xce)]=_0x4fdd44,this[_0x30622d(0xcd)]=_0x341bd8,this['on'](_0x30622d(0x118),(_0x545a97,_0x5affbb,_0x4f1921)=>{const _0x2aac17=_0x30622d;this[_0x2aac17(0xe2)](_0x2aac17(0xc6),{'status':_0x4f1921,'run':this,'error':this[_0x2aac17(0xeb)]});}),this[_0x30622d(0xdd)](_0x30622d(0x102),_0x30622d(0xd1));}get[_0x16c80b(0xd3)](){const _0x487c05=_0x16c80b;return this[_0x487c05(0xd2)];}get[_0x16c80b(0xc7)](){const _0x20ee5c=_0x16c80b;return this[_0x20ee5c(0x124)][_0x20ee5c(0xfd)];}get[_0x16c80b(0xe7)](){const _0x5d169f=_0x16c80b;return this[_0x5d169f(0x10a)][_0x5d169f(0xe7)];}get[_0x16c80b(0xdc)](){return'';}get[_0x16c80b(0xc9)](){const _0x433205=_0x16c80b;return this[_0x433205(0x10a)]['id'];}get[_0x16c80b(0xec)](){const _0x291aa1=_0x16c80b;return!this[_0x291aa1(0x100)][_0x291aa1(0x108)](_0x24fc1a=>_0x291aa1(0x110)===_0x24fc1a[_0x291aa1(0x102)]);}get[_0x16c80b(0xf1)](){const _0x288d3f=_0x16c80b;return this[_0x288d3f(0xeb)];}[_0x16c80b(0xe4)](_0x4983c8){const _0xf6aca6=_0x16c80b;this[_0xf6aca6(0xd2)]=_0x4983c8;}async[_0x16c80b(0xed)](){const _0x4308f6=_0x16c80b;this[_0x4308f6(0x102)]=_0x4308f6(0xda),this[_0x4308f6(0xeb)]=void 0x0;try{this[_0x4308f6(0x11f)]=this[_0x4308f6(0xfc)]();const _0x4b1d65=await this[_0x4308f6(0x11f)][_0x4308f6(0xe0)]();this[_0x4308f6(0x102)]=_0x4308f6(0x105);for await(const _0x1b3209 of _0x4b1d65)_0x4308f6(0xf4)!==_0x1b3209[_0x4308f6(0x105)][_0x4308f6(0xdf)]&&(_0x4308f6(0xdb)!==_0x1b3209[_0x4308f6(0x105)][_0x4308f6(0xdf)]?_0x4308f6(0xfa)!==_0x1b3209[_0x4308f6(0x125)]?this[_0x4308f6(0x10e)](_0x1b3209[_0x4308f6(0x105)][_0x4308f6(0xf0)],_0x1b3209[_0x4308f6(0x105)][_0x4308f6(0x103)]):this[_0x4308f6(0x117)]=_0x1b3209[_0x4308f6(0x105)][_0x4308f6(0x117)]:this[_0x4308f6(0x102)]=_0x4308f6(0x115));_0x4308f6(0x115)!==this[_0x4308f6(0x102)]&&(0x0===this[_0x4308f6(0x124)][_0x4308f6(0xfd)]?this[_0x4308f6(0x102)]=_0x4308f6(0xf4):this[_0x4308f6(0x102)]=_0x4308f6(0x104));}catch(_0x5c07d0){this[_0x4308f6(0xeb)]=_0x5c07d0,_0x5c07d0 instanceof Error&&_0x5c07d0[_0x4308f6(0x129)][_0x4308f6(0x109)](_0x4308f6(0xf6))?this[_0x4308f6(0x102)]=_0x4308f6(0xef):this[_0x4308f6(0x102)]=_0x4308f6(0x122);}finally{this[_0x4308f6(0x11f)]=null;}}async[_0x16c80b(0xd6)](){const _0x34a755=_0x16c80b;this[_0x34a755(0x124)][_0x34a755(0x101)](),this[_0x34a755(0x100)][_0x34a755(0xfb)]=0x0,this[_0x34a755(0xeb)]=void 0x0,await this[_0x34a755(0xed)]();}[_0x16c80b(0xe8)](_0x543b58,_0x539837){const _0x4c1786=_0x16c80b,_0x1063c3=this[_0x4c1786(0x124)][_0x4c1786(0x127)](_0x543b58);if(!_0x1063c3)return;const _0x3ed81f=[];_0x539837[_0x4c1786(0xc8)]((_0x141491,_0x9a78d4)=>{const _0x4c78d0=_0x4c1786,_0x9f4939=new _0x122b69(_0x1063c3['id']+'-'+_0x9a78d4,_0x141491,_0x1063c3);_0x9f4939['on'](_0x4c78d0(0x118),()=>{const _0x15dd56=_0x4c78d0;this[_0x15dd56(0xe2)](_0x15dd56(0x116),{'change':_0x9f4939,'status':_0x9f4939[_0x15dd56(0x102)]});}),_0x9f4939['on'](_0x4c78d0(0x112),()=>{const _0x1c5c5f=_0x4c78d0;_0x9f4939[_0x1c5c5f(0xd8)]?this[_0x1c5c5f(0xe2)](_0x1c5c5f(0x113),{'change':_0x9f4939}):this[_0x1c5c5f(0xe2)](_0x1c5c5f(0xfe),{'change':_0x9f4939});}),this[_0x4c78d0(0x100)][_0x4c78d0(0x10b)](_0x9f4939),_0x3ed81f[_0x4c78d0(0x10b)](_0x9f4939);}),this[_0x4c1786(0xe2)](_0x4c1786(0x123),{'changes':_0x3ed81f,'result':_0x1063c3,'source':this});}[_0x16c80b(0xe6)](){const _0x436c89=_0x16c80b;this[_0x436c89(0x11f)]&&(this[_0x436c89(0x11f)][_0x436c89(0xf7)][_0x436c89(0xe6)](),this[_0x436c89(0x11f)]=null,this[_0x436c89(0x102)]=_0x436c89(0xef));}[_0x16c80b(0xf5)](_0x1a3d73){const _0x294e97=_0x16c80b,_0x2f4589=this[_0x294e97(0x100)][_0x294e97(0xe9)](_0x3bdae0=>_0x3bdae0['id']===_0x1a3d73);return!(!_0x2f4589||_0x294e97(0x110)!==_0x2f4589[_0x294e97(0x102)]);}[_0x16c80b(0xea)](){const _0x505ec4=_0x16c80b;return this[_0x505ec4(0x100)][_0x505ec4(0x11b)](_0x3b2abb=>!0x0===_0x3b2abb[_0x505ec4(0xd8)]);}[_0x16c80b(0xd7)](){const _0x31fad2=_0x16c80b;return this[_0x31fad2(0x100)][_0x31fad2(0x120)](_0xb3f004=>_0x31fad2(0x110)===_0xb3f004[_0x31fad2(0x102)]);}[_0x16c80b(0xf2)](_0x4590e6){const _0x34de57=_0x16c80b;return this[_0x34de57(0x100)][_0x34de57(0xe9)](_0x106736=>_0x106736['id']===_0x4590e6);}[_0x16c80b(0x128)](){const _0x159d9b=_0x16c80b;for(const _0x4b3c81 of this[_0x159d9b(0x100)])_0x159d9b(0x110)===_0x4b3c81[_0x159d9b(0x102)]&&(_0x4b3c81[_0x159d9b(0x102)]=_0x159d9b(0x11a));this[_0x159d9b(0xf8)]();}[_0x16c80b(0x11d)](_0x4ae462){const _0x4760de=_0x16c80b,_0x3c887f=this[_0x4760de(0x100)][_0x4760de(0xe9)](_0x58ab86=>_0x58ab86['id']===_0x4ae462);_0x3c887f&&_0x4760de(0x110)===_0x3c887f[_0x4760de(0x102)]&&(_0x3c887f[_0x4760de(0x102)]=_0x4760de(0x11a)),this[_0x4760de(0xf8)]();}[_0x16c80b(0xe5)](_0x241994){const _0x389704=_0x16c80b,_0x2df32d=this[_0x389704(0x100)][_0x389704(0xe9)](_0x4d10a7=>_0x4d10a7['id']===_0x241994);_0x2df32d&&_0x389704(0x110)===_0x2df32d[_0x389704(0x102)]&&(_0x2df32d[_0x389704(0x102)]=_0x389704(0xf3)),this[_0x389704(0xf8)]();}[_0x16c80b(0xd9)](_0x26ae8e){const _0xd50f77=_0x16c80b,_0x59842e=this[_0xd50f77(0x100)][_0xd50f77(0xe9)](_0x585cf6=>_0x585cf6['id']===_0x26ae8e);_0x59842e&&_0xd50f77(0x110)===_0x59842e[_0xd50f77(0x102)]&&(_0x59842e[_0xd50f77(0x102)]=_0xd50f77(0x10d)),this[_0xd50f77(0xf8)]();}[_0x16c80b(0x126)](_0x29ed03){const _0x459f23=_0x16c80b,_0x193b32=this[_0x459f23(0x100)][_0x459f23(0xe9)](_0x2339e6=>_0x2339e6['id']===_0x29ed03);_0x193b32&&_0x459f23(0x10d)===_0x193b32[_0x459f23(0x102)]&&(_0x193b32[_0x459f23(0x102)]=_0x459f23(0x110)),this[_0x459f23(0xf8)]();}[_0x16c80b(0x11e)](_0x471e3a){const _0x1539b8=_0x16c80b;this[_0x1539b8(0x100)][_0x1539b8(0x120)](_0x18c54d=>_0x18c54d[_0x1539b8(0xd8)]&&_0x18c54d['id']!==_0x471e3a)[_0x1539b8(0xc8)](_0x2c1f7b=>{const _0x404c52=_0x1539b8;_0x2c1f7b[_0x404c52(0xd8)]=!0x1;});const _0x177a68=this[_0x1539b8(0x100)][_0x1539b8(0xe9)](_0x433272=>_0x433272['id']===_0x471e3a);_0x177a68&&_0x1539b8(0x110)===_0x177a68[_0x1539b8(0x102)]&&(_0x177a68[_0x1539b8(0xd8)]=!0x0);}[_0x16c80b(0xd0)](){const _0x551caf=_0x16c80b;this[_0x551caf(0x100)][_0x551caf(0x120)](_0x57b345=>_0x57b345[_0x551caf(0xd8)])[_0x551caf(0xc8)](_0x5af25c=>{const _0x3d6e5a=_0x551caf;_0x5af25c[_0x3d6e5a(0xd8)]=!0x1;});}[_0x16c80b(0xca)](){const _0x4a5d03=_0x16c80b;this[_0x4a5d03(0x102)]=_0x4a5d03(0x104);}async[_0x16c80b(0xcc)](_0x521808){const _0x3efa25=_0x16c80b;if(_0x3efa25(0xd1)===this[_0x3efa25(0x102)]||_0x3efa25(0xda)===this[_0x3efa25(0x102)]||_0x3efa25(0x105)===this[_0x3efa25(0x102)])return;if(!this[_0x3efa25(0x117)]||0x0===this[_0x3efa25(0x100)][_0x3efa25(0xfb)])return;let _0x191ff1;if(_0x521808){const _0x4f8f05=this[_0x3efa25(0x100)][_0x3efa25(0xe9)](_0x35d111=>_0x35d111['id']===_0x521808);if(_0x4f8f05&&_0x4f8f05[_0x3efa25(0xe3)])return;_0x4f8f05&&(_0x191ff1=_0x4f8f05[_0x3efa25(0x11c)]['id'],_0x4f8f05[_0x3efa25(0xe3)]=!0x0);}const _0x272ed3={'positiveCount':this[_0x3efa25(0x100)][_0x3efa25(0x120)](_0x24f3ce=>_0x3efa25(0x11a)===_0x24f3ce[_0x3efa25(0x102)])[_0x3efa25(0xfb)],'totalCount':this[_0x3efa25(0x100)][_0x3efa25(0xfb)]};this[_0x3efa25(0x111)](_0x272ed3,this[_0x3efa25(0x117)],_0x191ff1);}[_0x16c80b(0x10e)](_0x2d3cce,_0x15ca30){const _0x3c58ee=_0x16c80b,_0x394a57=this[_0x3c58ee(0xd2)][_0x3c58ee(0xde)][_0x3c58ee(0x127)](_0x2d3cce);if(!_0x394a57)return;const _0xe49593=_0x394a57[_0x3c58ee(0xcb)]();if(_0xe49593===_0x15ca30)return;const _0x4017ec=new _0x8c5024({'id':_0x2d3cce,'contentInitial':_0xe49593,'contentNew':_0x15ca30,'documentVersion':this[_0x3c58ee(0xd2)][_0x3c58ee(0x114)]});this[_0x3c58ee(0x124)][_0x3c58ee(0xdd)](_0x4017ec['id'],_0x4017ec),this[_0x3c58ee(0xe2)](_0x3c58ee(0x106),{'result':_0x4017ec,'source':this});}[_0x16c80b(0xf8)](){const _0x54e6e4=_0x16c80b;_0x54e6e4(0xff)===this[_0x54e6e4(0x102)]&&(this[_0x54e6e4(0x100)][_0x54e6e4(0x120)](_0x10137c=>_0x54e6e4(0x110)===_0x10137c[_0x54e6e4(0x102)])[_0x54e6e4(0xfb)]>0x0&&(this[_0x54e6e4(0x102)]=_0x54e6e4(0x104))),_0x54e6e4(0x104)===this[_0x54e6e4(0x102)]&&(0x0===this[_0x54e6e4(0x100)][_0x54e6e4(0x120)](_0xe4759a=>_0x54e6e4(0x110)===_0xe4759a[_0x54e6e4(0x102)])[_0x54e6e4(0xfb)]&&(this[_0x54e6e4(0x102)]=_0x54e6e4(0xff)));}}
|
|
23
|
+
function _0x2ea4(){const _0x4f5aed=['getStream','isAnyChangeActivated','error','977481TOHJdD','rejected','unmodified','getActiveChanges','reviewCheckResultReady','ai-request-aborted','error-general','reviewCheckResultAdded','status','hasModifications','get','_reviewParams','every','elements','activateChange','includes','updateDocumentData','finished','5302804mxKktZ','markChangeAsRejected','initialized','textDelta','sendRating','3ESCzoF','processedResultsCount','message','_documentData','reviewName','review-metadata','reviewCheckResultChangeStatusUpdated','isChangeActive','isActivated','currentError','fire','callId','1777794XCjotI','isRated','push','markChangeAsOutdated','filter','reviewCheckRunUpdated','abort','_activeRequest','parent','markChangeAsAccepted','392386yJJGJv','reviewCheckResultDeactivated','deactivateChange','forEach','ready','_sendRatingRequest','restart','_currentError','change:status','some','_createApiRequest','subTitle','forceReadyState','24vUEHqo','_changes','abortController','_sourceCheck','reviewCheckResultActivated','markAllChangesAsAccepted','getChangeById','set','accepted','_reviewArgs','change:isActivated','version','length','event','1726254wjYsal','_aiConnector','outdated','dataId','clear','size','aborted','2387000nckHwz','error-chunk','7GCagET','pending','_addReviewCheckResult','markChangeAsPending','16135290RyoJID','addResultChanges','_checkIfFinished','data','documentData','title','operation','start','_results','find','getContent','loading'];_0x2ea4=function(){return _0x4f5aed;};return _0x2ea4();}const _0x17351f=_0x5cc9;function _0x5cc9(_0x56b132,_0x269f76){const _0x2ea44b=_0x2ea4();return _0x5cc9=function(_0x5cc9d4,_0xd7e8ea){_0x5cc9d4=_0x5cc9d4-0x129;let _0x277296=_0x2ea44b[_0x5cc9d4];return _0x277296;},_0x5cc9(_0x56b132,_0x269f76);}(function(_0x16ca47,_0x3b87e5){const _0x2c5075=_0x5cc9,_0x20ae6d=_0x16ca47();while(!![]){try{const _0x5bbb61=parseInt(_0x2c5075(0x12d))/0x1+parseInt(_0x2c5075(0x15a))/0x2+parseInt(_0x2c5075(0x144))/0x3*(-parseInt(_0x2c5075(0x13f))/0x4)+-parseInt(_0x2c5075(0x17c))/0x5+parseInt(_0x2c5075(0x150))/0x6*(parseInt(_0x2c5075(0x17e))/0x7)+-parseInt(_0x2c5075(0x167))/0x8*(parseInt(_0x2c5075(0x175))/0x9)+parseInt(_0x2c5075(0x182))/0xa;if(_0x5bbb61===_0x3b87e5)break;else _0x20ae6d['push'](_0x20ae6d['shift']());}catch(_0x2f589a){_0x20ae6d['push'](_0x20ae6d['shift']());}}}(_0x2ea4,0xac1d7));import{ObservableMixin as _0x2981ff,uid as _0x2c6c0c}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x108c41}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x5dd063}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x2981ff(){['id']=_0x2c6c0c();[_0x17351f(0x14f)];[_0x17351f(0x18a)]=new Map();[_0x17351f(0x168)]=[];[_0x17351f(0x16a)];[_0x17351f(0x147)];[_0x17351f(0x176)];[_0x17351f(0x138)];[_0x17351f(0x170)];[_0x17351f(0x157)]=null;[_0x17351f(0x161)];constructor(_0x19e415,_0x139684,_0xcc4283,_0x3bf679,_0x2b96b1){const _0x2157cc=_0x17351f;super(),this[_0x2157cc(0x16a)]=_0x139684,this[_0x2157cc(0x147)]=_0x19e415,this[_0x2157cc(0x176)]=_0xcc4283,this[_0x2157cc(0x138)]=_0x3bf679,this[_0x2157cc(0x170)]=_0x2b96b1,this['on'](_0x2157cc(0x162),(_0x407efd,_0xb50d15,_0x177a95)=>{const _0x2bf2e7=_0x2157cc;this[_0x2bf2e7(0x14e)](_0x2bf2e7(0x155),{'status':_0x177a95,'run':this,'error':this[_0x2bf2e7(0x161)]});}),this[_0x2157cc(0x16e)](_0x2157cc(0x135),_0x2157cc(0x141));}get[_0x17351f(0x186)](){const _0x4dffc5=_0x17351f;return this[_0x4dffc5(0x147)];}get[_0x17351f(0x145)](){const _0x51189f=_0x17351f;return this[_0x51189f(0x18a)][_0x51189f(0x17a)];}get[_0x17351f(0x187)](){const _0x57cb7d=_0x17351f;return this[_0x57cb7d(0x16a)][_0x57cb7d(0x187)];}get[_0x17351f(0x165)](){return'';}get[_0x17351f(0x148)](){const _0x1c084e=_0x17351f;return this[_0x1c084e(0x16a)]['id'];}get[_0x17351f(0x136)](){const _0xe03703=_0x17351f;return!this[_0xe03703(0x168)][_0xe03703(0x139)](_0x5855ea=>_0xe03703(0x17f)===_0x5855ea[_0xe03703(0x135)]);}get[_0x17351f(0x14d)](){const _0x1dc6df=_0x17351f;return this[_0x1dc6df(0x161)];}[_0x17351f(0x13d)](_0x5ae14d){const _0x38a014=_0x17351f;this[_0x38a014(0x147)]=_0x5ae14d;}async[_0x17351f(0x189)](){const _0x53b664=_0x17351f;this[_0x53b664(0x135)]=_0x53b664(0x129),this[_0x53b664(0x161)]=void 0x0;try{this[_0x53b664(0x157)]=this[_0x53b664(0x164)]();const _0x5158b2=await this[_0x53b664(0x157)][_0x53b664(0x12a)]();this[_0x53b664(0x135)]=_0x53b664(0x185);for await(const _0x166057 of _0x5158b2)_0x53b664(0x12f)!==_0x166057[_0x53b664(0x185)][_0x53b664(0x188)]&&(_0x53b664(0x12c)!==_0x166057[_0x53b664(0x185)][_0x53b664(0x188)]?_0x53b664(0x149)!==_0x166057[_0x53b664(0x174)]?this[_0x53b664(0x180)](_0x166057[_0x53b664(0x185)][_0x53b664(0x178)],_0x166057[_0x53b664(0x185)][_0x53b664(0x142)]):this[_0x53b664(0x14f)]=_0x166057[_0x53b664(0x185)][_0x53b664(0x14f)]:this[_0x53b664(0x135)]=_0x53b664(0x17d));_0x53b664(0x17d)!==this[_0x53b664(0x135)]&&(0x0===this[_0x53b664(0x18a)][_0x53b664(0x17a)]?this[_0x53b664(0x135)]=_0x53b664(0x12f):this[_0x53b664(0x135)]=_0x53b664(0x15e));}catch(_0x445ed9){this[_0x53b664(0x161)]=_0x445ed9,_0x445ed9 instanceof Error&&_0x445ed9[_0x53b664(0x146)][_0x53b664(0x13c)](_0x53b664(0x132))?this[_0x53b664(0x135)]=_0x53b664(0x17b):this[_0x53b664(0x135)]=_0x53b664(0x133);}finally{this[_0x53b664(0x157)]=null;}}async[_0x17351f(0x160)](){const _0x387940=_0x17351f;this[_0x387940(0x18a)][_0x387940(0x179)](),this[_0x387940(0x168)][_0x387940(0x173)]=0x0,this[_0x387940(0x161)]=void 0x0,await this[_0x387940(0x189)]();}[_0x17351f(0x183)](_0xca3820,_0x463e0b){const _0x40d845=_0x17351f,_0x3c8f07=this[_0x40d845(0x18a)][_0x40d845(0x137)](_0xca3820);if(!_0x3c8f07)return;const _0xc7ca20=[];_0x463e0b[_0x40d845(0x15d)]((_0x2d704b,_0x460704)=>{const _0x3ece01=_0x40d845,_0x3e2d45=new _0x5dd063(_0x3c8f07['id']+'-'+_0x460704,_0x2d704b,_0x3c8f07);_0x3e2d45['on'](_0x3ece01(0x162),()=>{const _0x27043e=_0x3ece01;this[_0x27043e(0x14e)](_0x27043e(0x14a),{'change':_0x3e2d45,'status':_0x3e2d45[_0x27043e(0x135)]});}),_0x3e2d45['on'](_0x3ece01(0x171),()=>{const _0x5f0815=_0x3ece01;_0x3e2d45[_0x5f0815(0x14c)]?this[_0x5f0815(0x14e)](_0x5f0815(0x16b),{'change':_0x3e2d45}):this[_0x5f0815(0x14e)](_0x5f0815(0x15b),{'change':_0x3e2d45});}),this[_0x3ece01(0x168)][_0x3ece01(0x152)](_0x3e2d45),_0xc7ca20[_0x3ece01(0x152)](_0x3e2d45);}),this[_0x40d845(0x14e)](_0x40d845(0x131),{'changes':_0xc7ca20,'result':_0x3c8f07,'source':this});}[_0x17351f(0x156)](){const _0x5f560c=_0x17351f;this[_0x5f560c(0x157)]&&(this[_0x5f560c(0x157)][_0x5f560c(0x169)][_0x5f560c(0x156)](),this[_0x5f560c(0x157)]=null,this[_0x5f560c(0x135)]=_0x5f560c(0x17b));}[_0x17351f(0x14b)](_0x16fc39){const _0x4b37b3=_0x17351f,_0x107abe=this[_0x4b37b3(0x168)][_0x4b37b3(0x18b)](_0xdc86de=>_0xdc86de['id']===_0x16fc39);return!(!_0x107abe||_0x4b37b3(0x17f)!==_0x107abe[_0x4b37b3(0x135)]);}[_0x17351f(0x12b)](){const _0x165859=_0x17351f;return this[_0x165859(0x168)][_0x165859(0x163)](_0x1d19f4=>!0x0===_0x1d19f4[_0x165859(0x14c)]);}[_0x17351f(0x130)](){const _0x1c0e1b=_0x17351f;return this[_0x1c0e1b(0x168)][_0x1c0e1b(0x154)](_0x38b551=>_0x1c0e1b(0x17f)===_0x38b551[_0x1c0e1b(0x135)]);}[_0x17351f(0x16d)](_0x12b7bb){const _0x1e5a39=_0x17351f;return this[_0x1e5a39(0x168)][_0x1e5a39(0x18b)](_0x3d56d8=>_0x3d56d8['id']===_0x12b7bb);}[_0x17351f(0x16c)](){const _0x278bf8=_0x17351f;for(const _0x5c653b of this[_0x278bf8(0x168)])_0x278bf8(0x17f)===_0x5c653b[_0x278bf8(0x135)]&&(_0x5c653b[_0x278bf8(0x135)]=_0x278bf8(0x16f));this[_0x278bf8(0x184)]();}[_0x17351f(0x159)](_0x36ea90){const _0x10b46e=_0x17351f,_0x374de3=this[_0x10b46e(0x168)][_0x10b46e(0x18b)](_0x145f17=>_0x145f17['id']===_0x36ea90);_0x374de3&&_0x10b46e(0x17f)===_0x374de3[_0x10b46e(0x135)]&&(_0x374de3[_0x10b46e(0x135)]=_0x10b46e(0x16f)),this[_0x10b46e(0x184)]();}[_0x17351f(0x140)](_0x1b85b6){const _0xdc398d=_0x17351f,_0x3f746f=this[_0xdc398d(0x168)][_0xdc398d(0x18b)](_0x4ae857=>_0x4ae857['id']===_0x1b85b6);_0x3f746f&&_0xdc398d(0x17f)===_0x3f746f[_0xdc398d(0x135)]&&(_0x3f746f[_0xdc398d(0x135)]=_0xdc398d(0x12e)),this[_0xdc398d(0x184)]();}[_0x17351f(0x153)](_0x397901){const _0x3f00b6=_0x17351f,_0x16be45=this[_0x3f00b6(0x168)][_0x3f00b6(0x18b)](_0x3c5069=>_0x3c5069['id']===_0x397901);_0x16be45&&_0x3f00b6(0x17f)===_0x16be45[_0x3f00b6(0x135)]&&(_0x16be45[_0x3f00b6(0x135)]=_0x3f00b6(0x177)),this[_0x3f00b6(0x184)]();}[_0x17351f(0x181)](_0x5d5cbe){const _0x2be5a6=_0x17351f,_0x3601c7=this[_0x2be5a6(0x168)][_0x2be5a6(0x18b)](_0x58f41f=>_0x58f41f['id']===_0x5d5cbe);_0x3601c7&&_0x2be5a6(0x177)===_0x3601c7[_0x2be5a6(0x135)]&&(_0x3601c7[_0x2be5a6(0x135)]=_0x2be5a6(0x17f)),this[_0x2be5a6(0x184)]();}[_0x17351f(0x13b)](_0x3bdf19){const _0x52061b=_0x17351f;this[_0x52061b(0x168)][_0x52061b(0x154)](_0x44bb75=>_0x44bb75[_0x52061b(0x14c)]&&_0x44bb75['id']!==_0x3bdf19)[_0x52061b(0x15d)](_0x536282=>{const _0x24fa25=_0x52061b;_0x536282[_0x24fa25(0x14c)]=!0x1;});const _0x696b2=this[_0x52061b(0x168)][_0x52061b(0x18b)](_0x2f39a1=>_0x2f39a1['id']===_0x3bdf19);_0x696b2&&_0x52061b(0x17f)===_0x696b2[_0x52061b(0x135)]&&(_0x696b2[_0x52061b(0x14c)]=!0x0);}[_0x17351f(0x15c)](){const _0x5a72c6=_0x17351f;this[_0x5a72c6(0x168)][_0x5a72c6(0x154)](_0x386063=>_0x386063[_0x5a72c6(0x14c)])[_0x5a72c6(0x15d)](_0x14c195=>{const _0x5a2fc2=_0x5a72c6;_0x14c195[_0x5a2fc2(0x14c)]=!0x1;});}[_0x17351f(0x166)](){const _0x4f03f4=_0x17351f;this[_0x4f03f4(0x135)]=_0x4f03f4(0x15e);}async[_0x17351f(0x143)](_0x591215){const _0x2720de=_0x17351f;if(_0x2720de(0x141)===this[_0x2720de(0x135)]||_0x2720de(0x129)===this[_0x2720de(0x135)]||_0x2720de(0x185)===this[_0x2720de(0x135)])return;if(!this[_0x2720de(0x14f)]||0x0===this[_0x2720de(0x168)][_0x2720de(0x173)])return;let _0x15bc70;if(_0x591215){const _0x1c1de4=this[_0x2720de(0x168)][_0x2720de(0x18b)](_0x17c286=>_0x17c286['id']===_0x591215);if(_0x1c1de4&&_0x1c1de4[_0x2720de(0x151)])return;_0x1c1de4&&(_0x15bc70=_0x1c1de4[_0x2720de(0x158)]['id'],_0x1c1de4[_0x2720de(0x151)]=!0x0);}const _0x51e55c={'positiveCount':this[_0x2720de(0x168)][_0x2720de(0x154)](_0x4b8f5b=>_0x2720de(0x16f)===_0x4b8f5b[_0x2720de(0x135)])[_0x2720de(0x173)],'totalCount':this[_0x2720de(0x168)][_0x2720de(0x173)]};this[_0x2720de(0x15f)](_0x51e55c,this[_0x2720de(0x14f)],_0x15bc70);}[_0x17351f(0x180)](_0x291fb6,_0x26a77e){const _0x43063f=_0x17351f,_0x2dc24e=this[_0x43063f(0x147)][_0x43063f(0x13a)][_0x43063f(0x137)](_0x291fb6);if(!_0x2dc24e)return;const _0x409833=_0x2dc24e[_0x43063f(0x18c)]();if(_0x409833===_0x26a77e)return;const _0x590125=new _0x108c41({'id':_0x291fb6,'contentInitial':_0x409833,'contentNew':_0x26a77e,'documentVersion':this[_0x43063f(0x147)][_0x43063f(0x172)]});this[_0x43063f(0x18a)][_0x43063f(0x16e)](_0x590125['id'],_0x590125),this[_0x43063f(0x14e)](_0x43063f(0x134),{'result':_0x590125,'source':this});}[_0x17351f(0x184)](){const _0x110046=_0x17351f;_0x110046(0x13e)===this[_0x110046(0x135)]&&(this[_0x110046(0x168)][_0x110046(0x154)](_0x31d9c7=>_0x110046(0x17f)===_0x31d9c7[_0x110046(0x135)])[_0x110046(0x173)]>0x0&&(this[_0x110046(0x135)]=_0x110046(0x15e))),_0x110046(0x15e)===this[_0x110046(0x135)]&&(0x0===this[_0x110046(0x168)][_0x110046(0x154)](_0x11ea21=>_0x110046(0x17f)===_0x11ea21[_0x110046(0x135)])[_0x110046(0x173)]&&(this[_0x110046(0x135)]=_0x110046(0x13e)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x20e0(_0x4e98dd,_0x203a5e){var _0x4f6e96=_0x4f6e();return _0x20e0=function(_0x20e0f7,_0x361906){_0x20e0f7=_0x20e0f7-0x136;var _0x19eaa8=_0x4f6e96[_0x20e0f7];return _0x19eaa8;},_0x20e0(_0x4e98dd,_0x203a5e);}var _0x4185c0=_0x20e0;(function(_0xa7a9d6,_0x10e8d2){var _0x205258=_0x20e0,_0x598a15=_0xa7a9d6();while(!![]){try{var _0x1436ec=parseInt(_0x205258(0x141))/0x1+parseInt(_0x205258(0x136))/0x2+parseInt(_0x205258(0x143))/0x3*(parseInt(_0x205258(0x147))/0x4)+parseInt(_0x205258(0x142))/0x5*(parseInt(_0x205258(0x13c))/0x6)+-parseInt(_0x205258(0x148))/0x7*(-parseInt(_0x205258(0x13f))/0x8)+-parseInt(_0x205258(0x146))/0x9*(parseInt(_0x205258(0x13d))/0xa)+parseInt(_0x205258(0x139))/0xb*(-parseInt(_0x205258(0x14a))/0xc);if(_0x1436ec===_0x10e8d2)break;else _0x598a15['push'](_0x598a15['shift']());}catch(_0x3e318d){_0x598a15['push'](_0x598a15['shift']());}}}(_0x4f6e,0x309f0));import{AIReviewCheckRun as _0x3c5f80}from'./aireviewcheckrun.js';export class AIReviewCustomCheckRun extends _0x3c5f80{[_0x4185c0(0x140)];[_0x4185c0(0x137)];constructor(_0x3e6010,_0x57b905,_0x2ea5a4,_0x2df5a3,_0x3f8a27){var _0x26d498=_0x4185c0;super(_0x2ea5a4,_0x2df5a3,_0x3f8a27),this[_0x26d498(0x140)]=_0x3e6010,this[_0x26d498(0x137)]=_0x57b905;}get[_0x4185c0(0x13b)](){var _0x4b6dfd=_0x4185c0;return this[_0x4b6dfd(0x140)];}[_0x4185c0(0x14b)](){var _0x342a85=_0x4185c0;return this[_0x342a85(0x144)][_0x342a85(0x149)]({'content':this[_0x342a85(0x13e)][_0x342a85(0x13a)],'prompt':this[_0x342a85(0x140)],'model':this[_0x342a85(0x137)]});}[_0x4185c0(0x145)](_0x48df2c,_0x3221fd,_0x21ff97){var _0x13b764=_0x4185c0;return this[_0x13b764(0x144)][_0x13b764(0x138)](_0x3221fd,_0x48df2c,_0x21ff97);}}function _0x4f6e(){var _0x336be2=['333244fawJhA','20525jiqvIy','374433SxXNyw','_aiConnector','_sendRatingRequest','32337GzzPtE','8OCPwLR','7CfYnUu','callCustomReview','24DNTTZf','_createApiRequest','14814PGYIuU','_model','upsertCustomAIReviewRating','2575771DkksBc','content','subTitle','276GgPJTj','600GsYtQF','_documentData','831608vkdZOk','_prompt'];_0x4f6e=function(){return _0x336be2;};return _0x4f6e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2019(_0x5df9bf,_0x5f4aad){const _0x4f85c7=_0x4f85();return _0x2019=function(_0x201934,_0x2ef1af){_0x201934=_0x201934-0x92;let _0x28cefd=_0x4f85c7[_0x201934];return _0x28cefd;},_0x2019(_0x5df9bf,_0x5f4aad);}const _0x5ce915=_0x2019;(function(_0x21b819,_0x2aaf5c){const _0x671a20=_0x2019,_0x25fb4d=_0x21b819();while(!![]){try{const _0x6668a5=-parseInt(_0x671a20(0x94))/0x1+parseInt(_0x671a20(0xaa))/0x2+-parseInt(_0x671a20(0x9b))/0x3*(-parseInt(_0x671a20(0x9c))/0x4)+-parseInt(_0x671a20(0x9d))/0x5+-parseInt(_0x671a20(0xa1))/0x6+parseInt(_0x671a20(0xa7))/0x7*(parseInt(_0x671a20(0x9a))/0x8)+parseInt(_0x671a20(0xa0))/0x9*(-parseInt(_0x671a20(0x92))/0xa);if(_0x6668a5===_0x2aaf5c)break;else _0x25fb4d['push'](_0x25fb4d['shift']());}catch(_0x464098){_0x25fb4d['push'](_0x25fb4d['shift']());}}}(_0x4f85,0xbb8e9));import{AIReviewCheckRun as _0x2481d8}from'./aireviewcheckrun.js';export class AIReviewSystemCheckRun extends _0x2481d8{get[_0x5ce915(0xad)](){const _0x37f1be=_0x5ce915;if(!this[_0x37f1be(0x97)]||0x0===this[_0x37f1be(0x97)][_0x37f1be(0x9f)])return'';const _0xf1b0a=[];if(this[_0x37f1be(0x97)][_0x37f1be(0x9f)]>0x0&&this[_0x37f1be(0xa6)][_0x37f1be(0xae)])for(let _0x16bfe8=0x0;_0x16bfe8<this[_0x37f1be(0x97)][_0x37f1be(0x9f)];_0x16bfe8++){if(!this[_0x37f1be(0x97)][_0x16bfe8]||!this[_0x37f1be(0xa6)][_0x37f1be(0xae)][_0x16bfe8])continue;const _0x1f326c=this[_0x37f1be(0xa6)][_0x37f1be(0xae)][_0x16bfe8],_0x13be5c=_0x1f326c[_0x37f1be(0xaf)]?.[_0x37f1be(0xa2)](_0x4be273=>_0x4be273['id']===this[_0x37f1be(0x97)][_0x16bfe8]);_0x13be5c&&_0xf1b0a[_0x37f1be(0xa3)](_0x13be5c[_0x37f1be(0xb0)]);}return _0xf1b0a[_0x37f1be(0x93)](',\x20');}get[_0x5ce915(0x9e)](){const _0x1f399d=_0x5ce915;return this[_0x1f399d(0x99)]();}[_0x5ce915(0xa9)](){const _0x4b29da=_0x5ce915;return this[_0x4b29da(0x98)][_0x4b29da(0xa4)]({'reviewName':this[_0x4b29da(0x99)](),'content':this[_0x4b29da(0xac)][_0x4b29da(0xa5)],'args':this[_0x4b29da(0xab)]});}[_0x5ce915(0x95)](_0x569d28,_0x84e444,_0x26611f){const _0x2150bc=_0x5ce915;return this[_0x2150bc(0x98)][_0x2150bc(0x96)](this[_0x2150bc(0x9e)],_0x84e444,_0x569d28,_0x26611f);}[_0x5ce915(0x99)](){const _0x16e36a=_0x5ce915;return!this[_0x16e36a(0x97)]||0x0===this[_0x16e36a(0x97)][_0x16e36a(0x9f)]||this[_0x16e36a(0xa6)][_0x16e36a(0xa8)]?this[_0x16e36a(0xa6)]['id']:[this[_0x16e36a(0xa6)]['id'],...this[_0x16e36a(0x97)]][_0x16e36a(0x93)]('-');}}function _0x4f85(){const _0x125173=['upsertAIReviewRating','_reviewParams','_aiConnector','_composeReviewName','536EmBIKU','75zxHLUd','36168PZTCxC','1864855TiBRow','reviewName','length','2748114hoGoYh','1973496kjnWfs','find','push','callSystemReview','content','_sourceCheck','117593jCsTjj','useArgs','_createApiRequest','2467816LDVeZY','_reviewArgs','_documentData','subTitle','options','data','label','10MGFVlf','join','810025ZTzeKW','_sendRatingRequest'];_0x4f85=function(){return _0x125173;};return _0x4f85();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2745(_0x2dea86,_0x366163){var _0x297646=_0x2976();return _0x2745=function(_0x2745e5,_0x55b79c){_0x2745e5=_0x2745e5-0x7a;var _0x4bc58e=_0x297646[_0x2745e5];return _0x4bc58e;},_0x2745(_0x2dea86,_0x366163);}var _0x1ca135=_0x2745;(function(_0x444a14,_0x439eba){var _0xf87e42=_0x2745,_0x280e37=_0x444a14();while(!![]){try{var _0x5b803a=-parseInt(_0xf87e42(0x7b))/0x1+parseInt(_0xf87e42(0x81))/0x2+-parseInt(_0xf87e42(0x88))/0x3*(-parseInt(_0xf87e42(0x8c))/0x4)+parseInt(_0xf87e42(0x8f))/0x5*(-parseInt(_0xf87e42(0x7a))/0x6)+parseInt(_0xf87e42(0x90))/0x7+-parseInt(_0xf87e42(0x7e))/0x8+parseInt(_0xf87e42(0x8d))/0x9;if(_0x5b803a===_0x439eba)break;else _0x280e37['push'](_0x280e37['shift']());}catch(_0x3737b8){_0x280e37['push'](_0x280e37['shift']());}}}(_0x2976,0x335be));import{TextareaView as _0x521fbc}from'ckeditor5/src/ui.js';function _0x2976(){var _0x35a94f=['1005840wfjekz','maxRows','value','277920HsYYwy','trim','render','set','ai-review-mode-prompt-input','isEmpty','minRows','75Nxhfie','element','keystrokes','MAX_ROWS','23752yTANey','5578560tnjFAM','listenTo','1885CtFqUp','289604ACoWBE','MIN_ROWS','update','4152jixtUM','351642OauRKg','ck-review-mode__prompt-input','extendTemplate'];_0x2976=function(){return _0x35a94f;};return _0x2976();}import{KeystrokeHandler as _0x47ff04}from'ckeditor5/src/utils.js';export class AIReviewModePromptInputView extends _0x521fbc{[_0x1ca135(0x8a)];static [_0x1ca135(0x91)]=0x1;static [_0x1ca135(0x8b)]=0xc;constructor(_0x475dfa){var _0x1d8302=_0x1ca135;super(_0x475dfa),this[_0x1d8302(0x84)](_0x1d8302(0x86),!0x0),this[_0x1d8302(0x8a)]=new _0x47ff04(),this[_0x1d8302(0x87)]=AIReviewModePromptInputView[_0x1d8302(0x91)],this[_0x1d8302(0x7f)]=AIReviewModePromptInputView[_0x1d8302(0x8b)],this[_0x1d8302(0x7d)]({'attributes':{'id':_0x1d8302(0x85),'class':['ck',_0x1d8302(0x7c)]}});}[_0x1ca135(0x83)](){var _0x179059=_0x1ca135;super[_0x179059(0x83)](),this['on'](_0x179059(0x92),()=>{var _0x5b7c18=_0x179059;this[_0x5b7c18(0x86)]=''===this[_0x5b7c18(0x89)][_0x5b7c18(0x80)]?.[_0x5b7c18(0x82)]();}),this[_0x179059(0x8a)][_0x179059(0x8e)](this[_0x179059(0x89)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x267e3f=_0x1bde;(function(_0x47a7e1,_0x1e2347){const _0x4654d6=_0x1bde,_0x4e5854=_0x47a7e1();while(!![]){try{const _0x2b3122=-parseInt(_0x4654d6(0x13a))/0x1+-parseInt(_0x4654d6(0x10f))/0x2+parseInt(_0x4654d6(0x12c))/0x3*(parseInt(_0x4654d6(0x129))/0x4)+parseInt(_0x4654d6(0x123))/0x5*(parseInt(_0x4654d6(0x14d))/0x6)+-parseInt(_0x4654d6(0x10c))/0x7*(-parseInt(_0x4654d6(0x145))/0x8)+parseInt(_0x4654d6(0x146))/0x9+parseInt(_0x4654d6(0x12b))/0xa*(-parseInt(_0x4654d6(0xff))/0xb);if(_0x2b3122===_0x1e2347)break;else _0x4e5854['push'](_0x4e5854['shift']());}catch(_0x503141){_0x4e5854['push'](_0x4e5854['shift']());}}}(_0x5e7a,0xcba79));import{Rect as _0x3f5ec3,getConstrainedViewportRect as _0x3f4325,global as _0x26813c}from'ckeditor5/src/utils.js';function _0x5e7a(){const _0x51104d=['span[data-marker-id*=\x22','isDiffActive','21sRzmZw','locale','hide','1861446PDjpNj','_removeActiveClassFromMarkers','resultResponseView','showDiff','render','ck-reset','deactivateChange','_setupClickOutsideHandler','add','div','document','_getPointedRectIndexFromEvent','content','unpin','position','click','width','hover','_pinnedTargetChangeId','getClientRects','90KQvUmy','documentElement','ck-ai-review-mode-balloon-panel-suggestion_diff-active','ck-content','length','pin','860GMidak','left','1880bjMdMm','2874vhopLH','_isPinnedRectVisible','isVisible','element','bottom','dismissChange','top','from','set','reverse','hideBalloon','extendTemplate','showDiffInBalloon','innerHTML','661439cUqVpf','fire','updateContent','replace','.ck-ai-review-mode__change_active','ck-ai-review-mode__change_active','clientX','resultItemView','bindTemplate','ck-ai-review-mode__suggestion-text','_getBestRectPositionOnHover','1905576KnGekV','3664764nSnrbV','classList','getBoundingClientRect','forEach','_getBestRectPositionOnClick','getIntersection','_pinnedRectIndex','476610peEURj','right','contentDiffed','push','remove','_pinnedTargetElement','hideDiffInBalloon','acceptChange','changeId','setTemplate','19382nZtZXu','ck-ai-review-mode-balloon-panel-suggestion','_createContentView','delegate','arrow_se','_setActiveClassOnMarker','showBalloon','clientY','arrow_','show','querySelectorAll'];_0x5e7a=function(){return _0x51104d;};return _0x5e7a();}import{BalloonPanelView as _0x2848aa,View as _0x30ff41,clickOutsideHandler as _0x2b25e4}from'ckeditor5/src/ui.js';function _0x1bde(_0x559f91,_0xe722a8){const _0x5e7a63=_0x5e7a();return _0x1bde=function(_0x1bde7f,_0x253412){_0x1bde7f=_0x1bde7f-0xfb;let _0x5e01f4=_0x5e7a63[_0x1bde7f];return _0x5e01f4;},_0x1bde(_0x559f91,_0xe722a8);}import{AIReviewModeReviewCheckListItemResultsView as _0x242f3f}from'./aireviewmodechecklistitemresultview.js';import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeBalloonSuggestionItemView extends _0x2848aa{[_0x267e3f(0x141)];[_0x267e3f(0x14c)]=void 0x0;[_0x267e3f(0x152)]=void 0x0;[_0x267e3f(0x121)]=void 0x0;constructor(_0x3986c2,_0x754189){const _0x39bc33=_0x267e3f;super(_0x3986c2),this[_0x39bc33(0x134)]({'isVisible':!0x1,'position':_0x39bc33(0x103),'class':null,'top':0x0,'left':0x0}),this[_0x39bc33(0x137)]({'tag':_0x39bc33(0x118),'attributes':{'class':[_0x39bc33(0x114)],'tabindex':'-1'}}),this[_0x39bc33(0x134)](_0x39bc33(0x10b),!0x1),this[_0x39bc33(0x11b)][_0x39bc33(0x117)](this[_0x39bc33(0x101)]()),_0x754189[_0x39bc33(0x117)](this);}[_0x267e3f(0x113)](){const _0x2d995b=_0x267e3f;super[_0x2d995b(0x113)](),this[_0x2d995b(0x116)]();}[_0x267e3f(0x13c)](_0x512316){const _0x561bc0=_0x267e3f;this[_0x561bc0(0x141)][_0x561bc0(0xfd)]=_0x512316['id'],this[_0x561bc0(0x141)][_0x561bc0(0x111)][_0x561bc0(0x12f)][_0x561bc0(0x139)]=_0x512316[_0x561bc0(0x14f)];}[_0x267e3f(0x105)](_0x5db95b,_0x45261d,_0x2c966e,_0x35aa72,_0x22cd08,_0x3e0a11){const _0x59324d=_0x267e3f;this[_0x59324d(0x110)](),this[_0x59324d(0x13c)](_0x5db95b),this[_0x59324d(0x108)]();const _0x5cdc00=Array[_0x59324d(0x133)](_0x45261d[_0x59324d(0x122)]())[_0x59324d(0x135)](),_0x2dc3c2=this[_0x59324d(0x11a)](_0x2c966e,_0x5cdc00);_0x59324d(0x11e)===_0x35aa72?(this[_0x59324d(0x10b)]=!0x0,this[_0x59324d(0x104)](_0x5db95b['id']),this[_0x59324d(0x128)]({'target':()=>this[_0x59324d(0x14a)](_0x45261d,_0x2dc3c2,_0x5db95b['id'],_0x22cd08,_0x3e0a11)})):_0x59324d(0x120)===_0x35aa72&&(this[_0x59324d(0x10b)]=!0x1,this[_0x59324d(0x128)]({'target':()=>this[_0x59324d(0x144)](_0x45261d,_0x2dc3c2,_0x5db95b['id'])}));}[_0x267e3f(0x136)](){const _0x521683=_0x267e3f;this[_0x521683(0x10e)](),this[_0x521683(0x11c)](),this[_0x521683(0x110)](),this[_0x521683(0x14c)]=void 0x0,this[_0x521683(0x152)]=void 0x0,this[_0x521683(0x121)]=void 0x0;}[_0x267e3f(0xfb)](){const _0x27298f=_0x267e3f;this[_0x27298f(0x141)][_0x27298f(0x112)]=!0x1;}[_0x267e3f(0x138)](){const _0xd336bc=_0x267e3f;this[_0xd336bc(0x141)][_0xd336bc(0x112)]=!0x0;}[_0x267e3f(0x115)](){const _0x59d452=_0x267e3f;this[_0x59d452(0x13b)](_0x59d452(0x115));}[_0x267e3f(0x110)](){const _0xfae136=_0x267e3f;_0x26813c[_0xfae136(0x119)][_0xfae136(0x109)](_0xfae136(0x13e))[_0xfae136(0x149)](_0x2548d7=>{const _0x4c3f8d=_0xfae136;_0x2548d7[_0x4c3f8d(0x147)][_0x4c3f8d(0x151)](_0x4c3f8d(0x13f));});}[_0x267e3f(0x104)](_0x460c04){const _0x4f4c6f=_0x267e3f;_0x26813c[_0x4f4c6f(0x119)][_0x4f4c6f(0x109)](_0x4f4c6f(0x10a)+_0x460c04+'\x22]')[_0x4f4c6f(0x149)](_0x51c299=>{const _0x10770e=_0x4f4c6f;_0x51c299[_0x10770e(0x147)][_0x10770e(0x117)](_0x10770e(0x13f));});}[_0x267e3f(0x116)](){const _0x9dbce6=_0x267e3f;_0x2b25e4({'emitter':this,'activator':()=>this[_0x9dbce6(0x12e)],'contextElements':()=>{const _0x37c5c6=_0x9dbce6,_0x1e3b6b=[this[_0x37c5c6(0x12f)]];return this[_0x37c5c6(0x152)]&&_0x1e3b6b[_0x37c5c6(0x150)](this[_0x37c5c6(0x152)]),_0x1e3b6b;},'callback':()=>{const _0xd23f8d=_0x9dbce6;this[_0xd23f8d(0x10e)](),this[_0xd23f8d(0x11c)](),this[_0xd23f8d(0x110)](),this[_0xd23f8d(0x115)](),this[_0xd23f8d(0x152)]=void 0x0,this[_0xd23f8d(0x14c)]=void 0x0,this[_0xd23f8d(0x121)]=void 0x0;}});}[_0x267e3f(0x101)](){const _0x394af0=_0x267e3f,_0x17e24f=new _0x30ff41();return this[_0x394af0(0x141)]=new _0x242f3f(this[_0x394af0(0x10d)],''),this[_0x394af0(0x141)][_0x394af0(0x111)][_0x394af0(0x137)]({'attributes':{'class':[_0x394af0(0x126)]}}),this[_0x394af0(0x141)][_0x394af0(0x102)](_0x394af0(0xfc),_0x394af0(0x131))['to'](this),_0x17e24f[_0x394af0(0xfe)]({'tag':_0x394af0(0x118),'attributes':{'class':[_0x394af0(0x114),_0x394af0(0x100),this[_0x394af0(0x142)]['if'](_0x394af0(0x10b),_0x394af0(0x125))]},'children':[{'tag':'p','attributes':{'class':[_0x394af0(0x143)]},'children':[this[_0x394af0(0x141)]]}]}),_0x17e24f;}[_0x267e3f(0x14a)](_0x45c26c,_0x164a82,_0x36bbea,_0x170bd1,_0x578b72){const _0x3fab63=_0x267e3f,_0x58919a=this[_0x3fab63(0x11d)][_0x3fab63(0x13d)](_0x3fab63(0x107),''),_0x2d5b02=Array[_0x3fab63(0x133)](_0x45c26c[_0x3fab63(0x122)]());let _0x30f2eb,_0x4cb986=_0x2d5b02[_0x3fab63(0x135)]();return void 0x0!==_0x164a82&&this[_0x3fab63(0x12d)](_0x4cb986[_0x164a82],_0x170bd1,_0x578b72)?(_0x30f2eb=_0x4cb986[_0x164a82],this[_0x3fab63(0x14c)]=_0x164a82):this[_0x3fab63(0x12d)](_0x4cb986[0x0],_0x170bd1,_0x578b72)&&void 0x0===_0x164a82?_0x30f2eb=_0x4cb986[0x0]:(_0x4cb986='s'==_0x58919a[0x0]?[..._0x2d5b02][_0x3fab63(0x135)]():_0x2d5b02,_0x4cb986[_0x3fab63(0x149)](_0x17a3da=>{const _0xa24ae0=_0x3fab63;this[_0xa24ae0(0x12d)](_0x17a3da,_0x170bd1,_0x578b72)&&(_0x30f2eb=_0x17a3da);})),this[_0x3fab63(0x121)]=_0x36bbea,this[_0x3fab63(0x152)]=_0x45c26c,_0x30f2eb||_0x45c26c[_0x3fab63(0x148)]();}[_0x267e3f(0x144)](_0x10a81a,_0x3162a1,_0x13c439){const _0x36e597=_0x267e3f,_0x333d3b=Array[_0x36e597(0x133)](_0x10a81a[_0x36e597(0x122)]())[_0x36e597(0x135)]();if(void 0x0===this[_0x36e597(0x14c)]&&void 0x0!==_0x3162a1&&this[_0x36e597(0x121)]!==_0x13c439)return this[_0x36e597(0x14c)]=_0x3162a1,this[_0x36e597(0x152)]=_0x10a81a,this[_0x36e597(0x121)]=_0x13c439,_0x333d3b[_0x3162a1];if(void 0x0!==this[_0x36e597(0x14c)]&&this[_0x36e597(0x121)]===_0x13c439){if(_0x10a81a!==this[_0x36e597(0x152)])return Array[_0x36e597(0x133)](this[_0x36e597(0x152)][_0x36e597(0x122)]())[_0x36e597(0x135)]()[this[_0x36e597(0x14c)]];return _0x333d3b[this[_0x36e597(0x14c)]];}return void 0x0!==_0x3162a1&&this[_0x36e597(0x121)]!==_0x13c439?(this[_0x36e597(0x14c)]=_0x3162a1,this[_0x36e597(0x152)]=_0x10a81a,this[_0x36e597(0x121)]=_0x13c439,_0x333d3b[_0x3162a1]):_0x10a81a[_0x36e597(0x148)]();}[_0x267e3f(0x11a)](_0x415e17,_0x150f8e){const _0x4090ac=_0x267e3f;if(_0x415e17)for(let _0x1b8401=0x0;_0x1b8401<_0x150f8e[_0x4090ac(0x127)];_0x1b8401++){const _0x3542e9=_0x150f8e[_0x1b8401];if(_0x415e17[_0x4090ac(0x140)]>=_0x3542e9[_0x4090ac(0x12a)]-0x3&&_0x415e17[_0x4090ac(0x140)]<=_0x3542e9[_0x4090ac(0x14e)]+0x3&&_0x415e17[_0x4090ac(0x106)]>=_0x3542e9[_0x4090ac(0x132)]-0x3&&_0x415e17[_0x4090ac(0x106)]<=_0x3542e9[_0x4090ac(0x130)]+0x3)return _0x1b8401;}}[_0x267e3f(0x12d)](_0x31a21a,_0x3acca7,_0x12e289){const _0x4e83f0=_0x267e3f,_0x46a387=new _0x3f5ec3(_0x31a21a),_0x9b9613=_0x3acca7||document[_0x4e83f0(0x124)],_0x1b0370=_0x46a387[_0x4e83f0(0x14b)](_0x3f4325(_0x12e289)),_0x122ac7=new _0x3f5ec3(_0x9b9613)[_0x4e83f0(0x14b)](_0x46a387);return!!(_0x1b0370&&_0x122ac7&&_0x46a387[_0x4e83f0(0x11f)]>0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x92456e=_0xe221;(function(_0x2fb530,_0x524a82){const _0x5b2925=_0xe221,_0x37830b=_0x2fb530();while(!![]){try{const _0x4056be=parseInt(_0x5b2925(0x1bb))/0x1*(parseInt(_0x5b2925(0x1c1))/0x2)+parseInt(_0x5b2925(0x1c6))/0x3*(parseInt(_0x5b2925(0x19a))/0x4)+parseInt(_0x5b2925(0x199))/0x5+parseInt(_0x5b2925(0x191))/0x6+parseInt(_0x5b2925(0x18b))/0x7*(parseInt(_0x5b2925(0x1b2))/0x8)+-parseInt(_0x5b2925(0x1b1))/0x9+parseInt(_0x5b2925(0x192))/0xa*(-parseInt(_0x5b2925(0x1a8))/0xb);if(_0x4056be===_0x524a82)break;else _0x37830b['push'](_0x37830b['shift']());}catch(_0x51745a){_0x37830b['push'](_0x37830b['shift']());}}}(_0xe73e,0xda5cd));import{View as _0x1ede22,ButtonView as _0x76e8ad}from'ckeditor5/src/ui.js';function _0xe221(_0x1c5477,_0x5547f1){const _0xe73ed5=_0xe73e();return _0xe221=function(_0xe2217f,_0x2f33d4){_0xe2217f=_0xe2217f-0x187;let _0x393c1a=_0xe73ed5[_0xe2217f];return _0x393c1a;},_0xe221(_0x1c5477,_0x5547f1);}import{IconInfo as _0x891c56,IconCheck as _0x1b02c3,IconCancel as _0x47fa20,IconOutdated as _0xbca745}from'ckeditor5/src/icons.js';import{getTranslation as _0x4f872b}from'../../aicore/utils/common-translations.js';function _0xe73e(){const _0x30b129=['33781FdAYZi','stopPropagation','dismissButtonView','_createStatusButtonView','infoButtonView','changeId','REJECTED','AI_REVIEW_MODE_LEARN_MORE','_createInfoButtonView','13229118gjguqd','460896QNqUXl','ck-content-direct-excluded','extendTemplate','isActive','ck-ai-review-mode__check-run-result','ck-ai-button-secondary','ck-ai-review-mode__check-run-result-status-button','resultResponseView','menuitemcheckbox','3cKNhCg','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','setTemplate','statusButtonView','ck-ai-review-mode__check-run-result-dismiss-button','set','1182290SJxNsj','_createDismissButtonView','ck-ai-review-mode__check-run-result_active','AI_REVIEW_MODE_ACCEPT_CHANGE','label','6mbOBlc','ck-ai-review-mode__check-run-result-footer','setItemAsInactive','ck-hidden','isOn','dismissChange','_createResultResponseView','pending','ck-ai-button-tertiary-filled','setItemAsActive','161MlGyEp','div','AI_REVIEW_MODE_CHECK_STATUS_','isInfoToggleOn','activateChange','disabled','4377750CXADfk','15430ImEpIk','click','status','ACCEPTED','ck-ai-review-mode__check-run-result-response','ck-ai-review-mode__check-run-result-accept-button','ck-ai-review-mode__check-run-result-action-buttons','7450180zsTHVf','3569392qWKWpR','bindTemplate','toUpperCase','acceptButtonView','locale','showDiff','bind','execute','ck-content','fire','acceptChange','icon','_createAcceptButtonView','AI_REVIEW_MODE_DISMISS_CHANGE'];_0xe73e=function(){return _0x30b129;};return _0xe73e();}export class AIReviewModeReviewCheckListItemResultsView extends _0x1ede22{[_0x92456e(0x1b9)];[_0x92456e(0x19d)];[_0x92456e(0x1aa)];[_0x92456e(0x1ac)];[_0x92456e(0x1be)];constructor(_0x1bcc29,_0x1ec95e){const _0x3cd1e4=_0x92456e;super(_0x1bcc29),this['id']=_0x1ec95e,this[_0x3cd1e4(0x1c0)](_0x3cd1e4(0x194),_0x3cd1e4(0x188)),this[_0x3cd1e4(0x1c0)](_0x3cd1e4(0x1ad),_0x1ec95e),this[_0x3cd1e4(0x1b9)]=this[_0x3cd1e4(0x187)](),this[_0x3cd1e4(0x19d)]=this[_0x3cd1e4(0x1a6)](),this[_0x3cd1e4(0x1aa)]=this[_0x3cd1e4(0x1c2)](),this[_0x3cd1e4(0x1ac)]=this[_0x3cd1e4(0x1b0)](),this[_0x3cd1e4(0x1be)]=this[_0x3cd1e4(0x1ab)](),this[_0x3cd1e4(0x1c0)](_0x3cd1e4(0x18e),!0x1),this[_0x3cd1e4(0x1c0)](_0x3cd1e4(0x1b5),!0x1),this[_0x3cd1e4(0x1c0)](_0x3cd1e4(0x19f),!0x0),this[_0x3cd1e4(0x1bd)]({'tag':_0x3cd1e4(0x18c),'attributes':{'class':[_0x3cd1e4(0x1b6),this[_0x3cd1e4(0x19b)]['if'](_0x3cd1e4(0x1b5),_0x3cd1e4(0x1c3))]},'on':{'click':this[_0x3cd1e4(0x19b)]['to'](_0x3cd1e4(0x193))},'children':[this[_0x3cd1e4(0x1b9)],{'tag':_0x3cd1e4(0x18c),'attributes':{'class':[_0x3cd1e4(0x1c7)]},'children':[{'tag':_0x3cd1e4(0x18c),'attributes':{'class':[_0x3cd1e4(0x198)]},'children':[this[_0x3cd1e4(0x19d)],this[_0x3cd1e4(0x1aa)],this[_0x3cd1e4(0x1be)]]},this[_0x3cd1e4(0x1ac)]]}]}),this['on'](_0x3cd1e4(0x193),()=>{const _0x1f4335=_0x3cd1e4;this[_0x1f4335(0x1a3)](_0x1f4335(0x18f),{'id':_0x1ec95e,'source':this});});}[_0x92456e(0x18a)](){const _0x54601b=_0x92456e;this[_0x54601b(0x1b5)]=!0x0;}[_0x92456e(0x1c8)](){const _0x5bf33b=_0x92456e;this[_0x5bf33b(0x1b5)]=!0x1;}[_0x92456e(0x187)](){const _0xd4101e=_0x92456e,_0x4e2a10=new _0x1ede22(this[_0xd4101e(0x19e)]);return _0x4e2a10[_0xd4101e(0x1bd)]({'tag':_0xd4101e(0x18c),'attributes':{'class':['ck',_0xd4101e(0x1a2),_0xd4101e(0x1b3),_0xd4101e(0x196),this[_0xd4101e(0x19b)]['if'](_0xd4101e(0x19f),_0xd4101e(0x1c9),_0x1395f7=>!_0x1395f7)]}}),_0x4e2a10;}[_0x92456e(0x1a6)](){const _0xc9663=_0x92456e,_0x2b5be1=new _0x76e8ad(this[_0xc9663(0x19e)]);return _0x2b5be1[_0xc9663(0x1c0)]({'label':_0x4f872b(this[_0xc9663(0x19e)],_0xc9663(0x1c4)),'withText':!0x0}),_0x2b5be1[_0xc9663(0x1b4)]({'on':{'click':this[_0xc9663(0x19b)]['to'](_0x5ae24f=>{const _0xa3a04a=_0xc9663;this[_0xa3a04a(0x1a3)](_0xa3a04a(0x1a4),{'id':this[_0xa3a04a(0x1ad)]}),_0x5ae24f[_0xa3a04a(0x1a9)]();})},'attributes':{'class':[_0xc9663(0x1b7),_0xc9663(0x197),this[_0xc9663(0x19b)]['if'](_0xc9663(0x194),_0xc9663(0x1c9),_0x268f18=>_0xc9663(0x188)!==_0x268f18)]}}),_0x2b5be1;}[_0x92456e(0x1c2)](){const _0x28b612=_0x92456e,_0x304131=new _0x76e8ad(this[_0x28b612(0x19e)]);return _0x304131[_0x28b612(0x1c0)]({'label':_0x4f872b(this[_0x28b612(0x19e)],_0x28b612(0x1a7)),'withText':!0x0}),_0x304131[_0x28b612(0x1b4)]({'on':{'click':this[_0x28b612(0x19b)]['to'](_0x1d2616=>{const _0xc274d4=_0x28b612;this[_0xc274d4(0x1a3)](_0xc274d4(0x1cb),{'id':this[_0xc274d4(0x1ad)]}),_0x1d2616[_0xc274d4(0x1a9)]();})},'attributes':{'class':[_0x28b612(0x189),_0x28b612(0x1bf),this[_0x28b612(0x19b)]['if'](_0x28b612(0x194),_0x28b612(0x1c9),_0x365c2b=>_0x28b612(0x188)!==_0x365c2b)]}}),_0x304131;}[_0x92456e(0x1b0)](){const _0x580579=_0x92456e,_0x5c8bd5=new _0x76e8ad(this[_0x580579(0x19e)]);return _0x5c8bd5[_0x580579(0x1c0)]({'label':_0x4f872b(this[_0x580579(0x19e)],_0x580579(0x1af)),'icon':_0x891c56,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x580579(0x1ba),'class':_0x580579(0x1bc)}),_0x5c8bd5[_0x580579(0x1a0)](_0x580579(0x1ca))['to'](this,_0x580579(0x18e),_0x3ce5f0=>_0x3ce5f0),_0x5c8bd5['on'](_0x580579(0x1a1),()=>{const _0x2a35fd=_0x580579;this[_0x2a35fd(0x18e)]=!this[_0x2a35fd(0x18e)];}),_0x5c8bd5;}[_0x92456e(0x1ab)](){const _0x1920ab=_0x92456e,_0x21bf63=new _0x76e8ad(this[_0x1920ab(0x19e)]);return _0x21bf63[_0x1920ab(0x1c0)]({'withText':!0x0,'isEnabled':!0x1}),_0x21bf63[_0x1920ab(0x1a0)](_0x1920ab(0x1c5))['to'](this,_0x1920ab(0x194),_0x115e70=>_0x4f872b(this[_0x1920ab(0x19e)],_0x1920ab(0x18d)+_0x115e70[_0x1920ab(0x19c)]())),_0x21bf63[_0x1920ab(0x1a0)](_0x1920ab(0x1a5))['to'](this,_0x1920ab(0x194),_0xb968e8=>_0x1920ab(0x195)===_0xb968e8[_0x1920ab(0x19c)]()?_0x1b02c3:_0x1920ab(0x1ae)===_0xb968e8[_0x1920ab(0x19c)]()?_0x47fa20:_0xbca745),_0x21bf63[_0x1920ab(0x1b4)]({'attributes':{'class':[_0x1920ab(0x1b7),_0x1920ab(0x1b8),this[_0x1920ab(0x19b)]['if'](_0x1920ab(0x194),_0x1920ab(0x1c9),_0x23f88d=>_0x1920ab(0x188)===_0x23f88d)],'disabled':_0x1920ab(0x190)}}),_0x21bf63;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x4299eb,KeystrokeHandler as _0x34afe0,FocusTracker as _0x58aec5}from'ckeditor5/src/utils.js';import{View as _0x3e12b2,ViewCollection as _0x1d47f2,ButtonView as _0x4743cd,FormRowView as _0x210178,createDropdown as _0x284bad,addListToDropdown as _0x2bb0bd,UIModel as _0xc42458,ButtonLabelView as _0xd7581c,LabeledFieldView as _0x27f144,FocusCycler as ts}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x537273}from'./aireviemodepromptinputview.js';import{getTranslation as _0x1a9b80}from'../../aicore/utils/common-translations.js';import{AIModels as Ft}from'../../aicore/model/aimodels.js';export class AIReviewModeCustomCheckView extends _0x3e12b2{['focusTracker']=new _0x58aec5();['keystrokes']=new _0x34afe0();['focusCycler'];['_focusables']=new _0x1d47f2();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x5cd764,_0x3948b2){super(_0x5cd764),this['_check']=_0x3948b2,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x3948b2['models']&&_0x3948b2['models']['length']>0x0?_0x3948b2['models'][0x0]['id']:'',this['_defaultLabel']=_0x3948b2['models']&&_0x3948b2['models']['length']>0x0?_0x3948b2['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x27f144(this['locale'],()=>new _0x537273(_0x5cd764)),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 _0x4299eb(),this['_setModelList'](),_0x2bb0bd(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 _0x210178(this['locale'],{'children':[this['promptInputView']]}),new _0x210178(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x56a2a4,_0x606726)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x606726()):_0x606726();}),this['focusCycler']=new ts({'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'](_0x2cad61=>{this['_focusables']['add'](_0x2cad61),this['focusTracker']['add'](_0x2cad61['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 _0x585c7e of this['_getFormValidators']()){const _0x365710=_0x585c7e();if(_0x365710)return this['promptInputView']['errorText']=_0x365710,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x1a9b80(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x28beed=new _0x4743cd(this['locale']),t=this['locale']['t'];return _0x28beed['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x28beed['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x28beed;}['_createCancelButtonView'](){const _0x54b61c=new _0x4743cd(this['locale']),t=this['locale']['t'];return _0x54b61c['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x54b61c['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x26bb9c=>{_0x26bb9c['stopPropagation']();})}}),_0x54b61c['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x54b61c;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x27a95b=this['_check']['models'];if(this['resetToDefault'](),_0x27a95b?.['length']){const _0xb1572a=Ft['getLocalized'](this['locale'],_0x27a95b);for(const _0x1bb077 of _0xb1572a){const _0x5e0608=new _0xc42458({'label':_0x1bb077['name'],'withText':!0x0,'role':'menuitemradio','id':_0x1bb077['id'],'model':_0x1bb077});_0x5e0608['bind']('isOn')['to'](this,'modelId',_0x3d9b46=>_0x3d9b46===_0x1bb077['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x5e0608,'labelView':new Xs(this['locale'],_0x1bb077)});}}}['_createModelSelectionDropdown'](){const _0x7555fe=_0x284bad(this['locale']);return _0x7555fe['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x7555fe['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x7555fe,'execute',_0x3d3b25=>{this['modelId']=_0x3d3b25['source']['model']['id'],_0x7555fe['buttonView']['label']=_0x3d3b25['source']['label'];}),_0x7555fe;}['_createActionsFooterView'](){const _0x3c694e=new _0x3e12b2(this['locale']);return _0x3c694e['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']]}]}),_0x3c694e;}}class Xs extends _0xd7581c{constructor(_0x39fb18,_0x63af11){super();const _0x49d24b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x49d24b['to']('style'),'id':_0x49d24b['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x49d24b['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x63af11['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x463316,_0x31b29f){var _0x525787=_0x12aa,_0x431256=_0x463316();while(!![]){try{var _0x4627e3=parseInt(_0x525787(0xc6))/0x1*(-parseInt(_0x525787(0xca))/0x2)+parseInt(_0x525787(0xc0))/0x3*(parseInt(_0x525787(0xc7))/0x4)+parseInt(_0x525787(0xcb))/0x5+parseInt(_0x525787(0xce))/0x6*(-parseInt(_0x525787(0xc2))/0x7)+-parseInt(_0x525787(0xc8))/0x8+parseInt(_0x525787(0xbf))/0x9*(-parseInt(_0x525787(0xc9))/0xa)+parseInt(_0x525787(0xcd))/0xb*(parseInt(_0x525787(0xbd))/0xc);if(_0x4627e3===_0x31b29f)break;else _0x431256['push'](_0x431256['shift']());}catch(_0x154f67){_0x431256['push'](_0x431256['shift']());}}}(_0x9248,0xc0287));import{ButtonView as _0x382216}from'ckeditor5/src/ui.js';import{getTranslation as _0x21bac7}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeFinishReviewButtonView extends _0x382216{constructor(_0x5a4ceb){var _0x318844=_0x12aa;super(_0x5a4ceb),this[_0x318844(0xc5)]({'label':_0x21bac7(this[_0x318844(0xc4)],_0x318844(0xcc)),'withText':!0x0,'class':_0x318844(0xc3)}),this['on'](_0x318844(0xbc),()=>{var _0x39636a=_0x318844;this[_0x39636a(0xc1)](_0x39636a(0xbe));});}}function _0x12aa(_0xe7ce1b,_0x3fa2ba){var _0x92485b=_0x9248();return _0x12aa=function(_0x12aa79,_0x512fa2){_0x12aa79=_0x12aa79-0xbc;var _0x4a64fe=_0x92485b[_0x12aa79];return _0x4a64fe;},_0x12aa(_0xe7ce1b,_0x3fa2ba);}function _0x9248(){var _0x21cbe0=['34fNUBmH','28ZmSkoT','9709784HHCxqi','430LemTci','1804iQytQV','524695EQumHf','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','11CLEZDa','221658FetqYs','execute','24426492CsZVJY','finishReview','23913WAcBqa','176406ZVdtmu','fire','77vdaFDK','ck-ai-button-primary','locale','set'];_0x9248=function(){return _0x21cbe0;};return _0x9248();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x45d79c,_0x4f4903){const _0x17b967=_0x1b10,_0x3bb61a=_0x45d79c();while(!![]){try{const _0x669944=-parseInt(_0x17b967(0x1f8))/0x1*(-parseInt(_0x17b967(0x1fd))/0x2)+parseInt(_0x17b967(0x1fe))/0x3*(parseInt(_0x17b967(0x1f3))/0x4)+-parseInt(_0x17b967(0x1f5))/0x5*(-parseInt(_0x17b967(0x1f9))/0x6)+-parseInt(_0x17b967(0x1eb))/0x7*(parseInt(_0x17b967(0x1ef))/0x8)+-parseInt(_0x17b967(0x1e9))/0x9+parseInt(_0x17b967(0x1fb))/0xa*(-parseInt(_0x17b967(0x1f1))/0xb)+parseInt(_0x17b967(0x1f0))/0xc*(-parseInt(_0x17b967(0x1fa))/0xd);if(_0x669944===_0x4f4903)break;else _0x3bb61a['push'](_0x3bb61a['shift']());}catch(_0x2d534e){_0x3bb61a['push'](_0x3bb61a['shift']());}}}(_0x5d32,0xd96ce));import{View as _0x56cc3f}from'ckeditor5/src/ui.js';export class AIReviewModeGeneralErrorView extends _0x56cc3f{constructor(_0xab4ca5){const _0x1c4945=_0x1b10;super(_0xab4ca5),this[_0x1c4945(0x1ed)](_0x1c4945(0x1f7),!0x1),this[_0x1c4945(0x1ed)](_0x1c4945(0x1ee),'');const _0x37d12=this[_0x1c4945(0x1ea)];this[_0x1c4945(0x1f4)]({'tag':_0x1c4945(0x1f2),'attributes':{'class':['ck',_0x1c4945(0x1ec),_0x37d12['if'](_0x1c4945(0x1f7),_0x1c4945(0x1f6),_0x45f7b8=>!_0x45f7b8)]},'children':[{'tag':'p','attributes':{'class':_0x1c4945(0x1fc)},'children':[{'text':_0x37d12['to'](_0x1c4945(0x1ee))}]}]});}}function _0x1b10(_0x59b6f8,_0x1f0376){const _0x5d320a=_0x5d32();return _0x1b10=function(_0x1b10f8,_0x13f17e){_0x1b10f8=_0x1b10f8-0x1e9;let _0x4bc85f=_0x5d320a[_0x1b10f8];return _0x4bc85f;},_0x1b10(_0x59b6f8,_0x1f0376);}function _0x5d32(){const _0xe4fc=['2464NMYCFL','div','8KZFqjR','setTemplate','4154945vCOXnT','ck-hidden','isVisible','1141951cydXAS','6bSuHmN','52qwXdTa','20650KyUbuz','ck\x20ck-ai-notification\x20ck-ai-notification_error','2PpdNeJ','1470801tmhTRU','6725916gXVHgI','bindTemplate','1282904idGhQY','ck-ai-review-mode__general-error-container','set','errorMessage','8WcCXnm','2009232oIvVRc'];_0x5d32=function(){return _0xe4fc;};return _0x5d32();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d69e0=_0x2602;(function(_0x2462e5,_0x209b2a){const _0x31c6f6=_0x2602,_0x7dfd2a=_0x2462e5();while(!![]){try{const _0x3ff66d=-parseInt(_0x31c6f6(0xd8))/0x1*(-parseInt(_0x31c6f6(0xc6))/0x2)+-parseInt(_0x31c6f6(0xc4))/0x3*(-parseInt(_0x31c6f6(0xd6))/0x4)+parseInt(_0x31c6f6(0xd5))/0x5*(parseInt(_0x31c6f6(0xd7))/0x6)+-parseInt(_0x31c6f6(0xd4))/0x7+parseInt(_0x31c6f6(0xde))/0x8*(parseInt(_0x31c6f6(0xcf))/0x9)+-parseInt(_0x31c6f6(0xc9))/0xa*(parseInt(_0x31c6f6(0xcb))/0xb)+parseInt(_0x31c6f6(0xd9))/0xc*(-parseInt(_0x31c6f6(0xd0))/0xd);if(_0x3ff66d===_0x209b2a)break;else _0x7dfd2a['push'](_0x7dfd2a['shift']());}catch(_0x4b9936){_0x7dfd2a['push'](_0x7dfd2a['shift']());}}}(_0x457d,0x470fd));import{ListItemView as _0x58a82a,ViewCollection as _0x1fcc19}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCommandListItemView as _0x25fc03}from'./aireviewmodereviewcommandlistitemview.js';import'../../../theme/aireviewmode/aireviewmode-check-list.css';function _0x2602(_0x5f24d2,_0x1743d5){const _0x457dc3=_0x457d();return _0x2602=function(_0x2602bf,_0x41660a){_0x2602bf=_0x2602bf-0xc4;let _0x1c9a1d=_0x457dc3[_0x2602bf];return _0x1c9a1d;},_0x2602(_0x5f24d2,_0x1743d5);}function _0x457d(){const _0x1d9752=['bindTemplate','locale','setTemplate','div','1093584EOvqpV','hasChecks','ck-ai-review-mode__check-list','_checkViews','setChecks','6eCxwVM','runReviewCheck','212244PbrLOO','entries','resetAllParameterizedChecks','310hvAtqB','length','34210sfqfYS','ck-hidden','add','resetToDefault','36dSUlaG','78qaFJeA','delegate','isVisible','clear','2042481gEqkaR','20wtnmpo','668676CtYcMT','522858xyAiUt','1tkLUUS','1313124Kvmcqz'];_0x457d=function(){return _0x1d9752;};return _0x457d();}export class AIReviewModeReviewCheckListView extends _0x58a82a{[_0x2d69e0(0xe1)];constructor(_0x32fcfb){const _0x45bc01=_0x2d69e0;super(_0x32fcfb),this[_0x45bc01(0xe1)]=new _0x1fcc19();const _0x6bbb1=this[_0x45bc01(0xda)];this[_0x45bc01(0xdc)]({'tag':_0x45bc01(0xdd),'attributes':{'class':[_0x45bc01(0xe0),_0x6bbb1['if'](_0x45bc01(0xd2),_0x45bc01(0xcc),_0x1b37ad=>!_0x1b37ad)]},'children':this[_0x45bc01(0xe1)]});}[_0x2d69e0(0xe2)](_0x1be139){const _0x1b23ef=_0x2d69e0;this[_0x1b23ef(0xe1)][_0x1b23ef(0xd3)]();for(const [_0x3b934b,_0x84ee47]of _0x1be139[_0x1b23ef(0xc7)]()){const _0xa393ba=new _0x25fc03(this[_0x1b23ef(0xdb)],_0x84ee47,_0x3b934b);_0xa393ba[_0x1b23ef(0xd1)](_0x1b23ef(0xc5))['to'](this),this[_0x1b23ef(0xe1)][_0x1b23ef(0xcd)](_0xa393ba);}}[_0x2d69e0(0xdf)](){const _0x3a42d2=_0x2d69e0;return this[_0x3a42d2(0xe1)][_0x3a42d2(0xca)]>0x0;}[_0x2d69e0(0xc8)](){const _0x310739=_0x2d69e0;for(const _0xca5d0e of this[_0x310739(0xe1)])_0xca5d0e instanceof _0x25fc03&&_0xca5d0e[_0x310739(0xce)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as _0x210b4c,View as st,ViewCollection as it,ButtonView as tt}from'ckeditor5/src/ui.js';import{IconStop as _0x29b977,IconEye as _0x5e09a9,IconEyeCrossedOut as _0x5f074f}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0xb5750}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x3d1a1a}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x31595e,SKELETON_DEFINITIONS as _0x3185af}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x4a79c4}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x4fcdf1}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x26d435}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x210b4c{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x268db8){super(_0x268db8),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 _0x4a79c4(_0x268db8),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 _0x1543c2=this['_createCombinedSkeletonLoader'](),_0x3d19f6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x3d19f6['if']('isVisible','ck-hidden',_0x2e2905=>!_0x2e2905)]},'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',_0x28b814=>_0x28b814)]},'children':this['_resultViews']},_0x1543c2]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x5c46d6){const _0x321f1c=new _0xb5750(this['locale'],_0x5c46d6['id']);_0x321f1c['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x321f1c),_0x321f1c['resultResponseView']['element']['innerHTML']=_0x5c46d6['contentDiffed'];}['hideResult'](_0x1dcc7c,_0x3ec8a9){if('pending'===_0x3ec8a9)return;const _0x5e47d4=this['_resultViews']['find'](_0x3b608a=>_0x3b608a['id']===_0x1dcc7c);_0x5e47d4&&(_0x5e47d4['status']=_0x3ec8a9,_0x5e47d4['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x2e19ea,_0x499b4e){if('pending'!==_0x499b4e)return;const _0x5c6360=this['_resultViews']['find'](_0x1c17a7=>_0x1c17a7['id']===_0x2e19ea);_0x5c6360&&(_0x5c6360['status']=_0x499b4e,_0x5c6360['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x3c4ee3,_0x1633e7){this['headerTitle']=_0x3c4ee3,this['headerSubtitle']=_0x1633e7||'';}['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 _0x31595e(this['locale'],_0x3185af['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x3b9c7b=new st(this['locale']),_0x15802d=[];for(let _0x79454c=0x0;_0x79454c<0x10;_0x79454c++){const _0x532e71=this['_createSkeletonLoader']();_0x532e71['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x15802d['push'](_0x532e71);}return _0x3b9c7b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0xe4c975=>!_0xe4c975)]},'children':_0x15802d}),_0x3b9c7b;}['_createErrorView'](){const _0xae735e=new st(this['locale']),_0x1c3261=new tt(this['locale']),t=this['locale']['t'];return _0xae735e['delegate']('retryReview')['to'](this),_0x1c3261['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x1c3261['on']('execute',()=>{this['fire']('retryReview');}),_0xae735e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x40bcac=>!_0x40bcac),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x3e69b9=>'chunk'===_0x3e69b9)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x1d12ff=>'chunk'===_0x1d12ff)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x334d24=>'general'!==_0x334d24)]},'children':[{'text':_0x4fcdf1(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x5cebee=>'chunk'!==_0x5cebee)]},'children':[{'text':_0x4fcdf1(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x1c3261]}),_0xae735e;}['_createCancelButtonView'](){const _0x2e30ae=new tt(this['locale']);return _0x2e30ae['set']({'label':_0x4fcdf1(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x29b977}),_0x2e30ae['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0xb13c15=>_0xb13c15),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x37d4b6=>_0x37d4b6)]}}),_0x2e30ae['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x2e30ae;}['_createToggleDiffButtonView'](){const _0x1811ae=new tt(this['locale']);_0x1811ae['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x1811ae['bind']('isEnabled')['to'](this,'isError',_0x39764d=>!_0x39764d),_0x1811ae['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x410b00=>!_0x410b00),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x160924=>_0x160924)]}});const _0x17d072=_0x4fcdf1(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x4b50e3=_0x4fcdf1(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x1811ae['bind']('isOn')['to'](this,'isToggleDiffOn',_0x731b87=>_0x731b87),_0x1811ae['bind']('icon')['to'](this,'isToggleDiffOn',_0x4cea55=>_0x4cea55?_0x5e09a9:_0x5f074f),_0x1811ae['bind']('label')['to'](this,'isToggleDiffOn',_0x21ec31=>_0x21ec31?_0x17d072:_0x4b50e3),_0x1811ae['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x1811ae;}['_createAcceptAllButtonView'](){const _0x91319b=new tt(this['locale']);return _0x91319b['set']({'label':_0x4fcdf1(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x91319b['bind']('isEnabled')['to'](this,'isError',_0x41b739=>!_0x41b739),_0x91319b['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x6b388c=>!_0x6b388c),this['bindTemplate']['if']('isCompleted','ck-hidden',_0xabadf3=>_0xabadf3)]}}),_0x91319b['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x91319b;}['_createExitReviewButtonView'](){const _0x398e0d=new tt(this['locale']);return _0x398e0d['set']({'label':_0x4fcdf1(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x398e0d['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x36c2bb=>!_0x36c2bb),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x16bcf7=>_0x16bcf7)]}}),_0x398e0d['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x398e0d;}['_createResultHeaderView'](){const _0x46adc9=new st(this['locale']),_0x1c7fd=this['_createTitleView']();return _0x46adc9['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0x59c26c=>_0x59c26c)]},'children':[_0x1c7fd,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x46adc9;}['_createTitleView'](){const _0x5ac580=new st(this['locale']),_0x22c195=new _0x26d435();return _0x22c195['bind']('isVisible')['to'](this,'isResultReady',_0x5f2f96=>!_0x5f2f96),_0x5ac580['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x22c195,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3268cb=>_0x3268cb)]},'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',_0x391354=>!_0x391354)]},'children':[{'text':_0x4fcdf1(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x5ac580;}['_createFinishReviewButtonView'](){const _0x35fde2=new _0x3d1a1a(this['locale']);return _0x35fde2['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2ceafa=>!_0x2ceafa)]}}),_0x35fde2['delegate']('finishReview')['to'](this),_0x35fde2;}}
|
|
23
|
+
import{ListItemView as _0x34d0e0,View as _0x1a7070,ViewCollection as _0x4fcd69,ButtonView as _0x4720db}from'ckeditor5/src/ui.js';import{IconStop as _0x128b7e,IconEye as _0x3ae996,IconEyeCrossedOut as _0x153513}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x5ccfa4}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x2a3ccd}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x1a1fdd,SKELETON_DEFINITIONS as _0x51418b}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x22ebd9}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x58f418}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x12fb83}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x34d0e0{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x1c5022){super(_0x1c5022),this['_resultViews']=new _0x4fcd69(),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 _0x22ebd9(_0x1c5022),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 _0x5a825f=this['_createCombinedSkeletonLoader'](),_0x50ffa8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x50ffa8['if']('isVisible','ck-hidden',_0x3e92fc=>!_0x3e92fc)]},'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',_0x1bead8=>_0x1bead8)]},'children':this['_resultViews']},_0x5a825f]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x1d2c59){const _0x528239=new _0x5ccfa4(this['locale'],_0x1d2c59['id']);_0x528239['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x528239),_0x528239['resultResponseView']['element']['innerHTML']=_0x1d2c59['contentDiffed'];}['hideResult'](_0x5093ea,_0x27155d){if('pending'===_0x27155d)return;const _0x3e18c4=this['_resultViews']['find'](_0x3a6ae9=>_0x3a6ae9['id']===_0x5093ea);_0x3e18c4&&(_0x3e18c4['status']=_0x27155d,_0x3e18c4['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x1b4d75,_0x25e44d){if('pending'!==_0x25e44d)return;const _0x375315=this['_resultViews']['find'](_0x46808b=>_0x46808b['id']===_0x1b4d75);_0x375315&&(_0x375315['status']=_0x25e44d,_0x375315['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x4fb9f6,_0x4fe5e9){this['headerTitle']=_0x4fb9f6,this['headerSubtitle']=_0x4fe5e9||'';}['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 _0x1a1fdd(this['locale'],_0x51418b['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x4bbe2f=new _0x1a7070(this['locale']),_0x31808a=[];for(let _0x2a029d=0x0;_0x2a029d<0x10;_0x2a029d++){const _0x576234=this['_createSkeletonLoader']();_0x576234['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x31808a['push'](_0x576234);}return _0x4bbe2f['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x317b=>!_0x317b)]},'children':_0x31808a}),_0x4bbe2f;}['_createErrorView'](){const _0x11169c=new _0x1a7070(this['locale']),_0x420bd7=new _0x4720db(this['locale']),t=this['locale']['t'];return _0x11169c['delegate']('retryReview')['to'](this),_0x420bd7['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x420bd7['on']('execute',()=>{this['fire']('retryReview');}),_0x11169c['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x52d0b3=>!_0x52d0b3),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x129fe8=>'chunk'===_0x129fe8)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x38d0f0=>'chunk'===_0x38d0f0)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x30eed8=>'general'!==_0x30eed8)]},'children':[{'text':_0x58f418(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x27d01c=>'chunk'!==_0x27d01c)]},'children':[{'text':_0x58f418(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x420bd7]}),_0x11169c;}['_createCancelButtonView'](){const _0x254724=new _0x4720db(this['locale']);return _0x254724['set']({'label':_0x58f418(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x128b7e}),_0x254724['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x2c2981=>_0x2c2981),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4d348a=>_0x4d348a)]}}),_0x254724['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x254724;}['_createToggleDiffButtonView'](){const _0xbd87b=new _0x4720db(this['locale']);_0xbd87b['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0xbd87b['bind']('isEnabled')['to'](this,'isError',_0x2046f1=>!_0x2046f1),_0xbd87b['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4d5f56=>!_0x4d5f56),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2695c0=>_0x2695c0)]}});const _0x26a4e7=_0x58f418(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x54c811=_0x58f418(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0xbd87b['bind']('isOn')['to'](this,'isToggleDiffOn',_0x4f3779=>_0x4f3779),_0xbd87b['bind']('icon')['to'](this,'isToggleDiffOn',_0x43d38a=>_0x43d38a?_0x3ae996:_0x153513),_0xbd87b['bind']('label')['to'](this,'isToggleDiffOn',_0x36c3fc=>_0x36c3fc?_0x26a4e7:_0x54c811),_0xbd87b['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0xbd87b;}['_createAcceptAllButtonView'](){const _0x34b449=new _0x4720db(this['locale']);return _0x34b449['set']({'label':_0x58f418(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x34b449['bind']('isEnabled')['to'](this,'isError',_0x184c9e=>!_0x184c9e),_0x34b449['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x33acdf=>!_0x33acdf),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x378216=>_0x378216)]}}),_0x34b449['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x34b449;}['_createExitReviewButtonView'](){const _0x235481=new _0x4720db(this['locale']);return _0x235481['set']({'label':_0x58f418(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x235481['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4b2c89=>!_0x4b2c89),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4fd3a1=>_0x4fd3a1)]}}),_0x235481['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x235481;}['_createResultHeaderView'](){const _0x5329a4=new _0x1a7070(this['locale']),_0x23b2e8=this['_createTitleView']();return _0x5329a4['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0xc5b426=>_0xc5b426)]},'children':[_0x23b2e8,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x5329a4;}['_createTitleView'](){const _0x2e927f=new _0x1a7070(this['locale']),_0x57712d=new _0x12fb83();return _0x57712d['bind']('isVisible')['to'](this,'isResultReady',_0x3f37b6=>!_0x3f37b6),_0x2e927f['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x57712d,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x28dcc4=>_0x28dcc4)]},'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',_0x4ced51=>!_0x4ced51)]},'children':[{'text':_0x58f418(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x2e927f;}['_createFinishReviewButtonView'](){const _0x4e09da=new _0x2a3ccd(this['locale']);return _0x4e09da['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2b2616=>!_0x2b2616)]}}),_0x4e09da['delegate']('finishReview')['to'](this),_0x4e09da;}}
|