@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- 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/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/showaiassistantcommand.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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- 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/aiinteraction.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/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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/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/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.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/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/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2d4d(_0x5a980e,_0x1d4d74){const _0x35b7c0=_0x35b7();return _0x2d4d=function(_0x2d4d80,_0xbb764a){_0x2d4d80=_0x2d4d80-0x12b;let _0x530891=_0x35b7c0[_0x2d4d80];return _0x530891;},_0x2d4d(_0x5a980e,_0x1d4d74);}const _0x10c537=_0x2d4d;(function(_0x3a1e62,_0x563e13){const _0x33a9b5=_0x2d4d,_0x5c31db=_0x3a1e62();while(!![]){try{const _0x2d93d8=-parseInt(_0x33a9b5(0x16f))/0x1*(parseInt(_0x33a9b5(0x13f))/0x2)+-parseInt(_0x33a9b5(0x17f))/0x3+-parseInt(_0x33a9b5(0x131))/0x4+parseInt(_0x33a9b5(0x16a))/0x5*(-parseInt(_0x33a9b5(0x141))/0x6)+-parseInt(_0x33a9b5(0x183))/0x7*(parseInt(_0x33a9b5(0x136))/0x8)+parseInt(_0x33a9b5(0x17c))/0x9+parseInt(_0x33a9b5(0x134))/0xa;if(_0x2d93d8===_0x563e13)break;else _0x5c31db['push'](_0x5c31db['shift']());}catch(_0xbd7228){_0x5c31db['push'](_0x5c31db['shift']());}}}(_0x35b7,0x605c3));import{ContextPlugin as _0x4026c6}from'ckeditor5/src/core.js';import{IconAIReview as _0x158efd}from'ckeditor5/src/icons.js';import{BodyCollection as _0x1b4550}from'ckeditor5/src/ui.js';import{AITabs as _0x254bc0}from'../aitabs/aitabs.js';import{AIReviewModeView as _0x28eeed}from'./ui/aireviewmodeview.js';import{getTranslation as _0x4c0a16}from'../aicore/utils/common-translations.js';import{AIReviewModeBalloonSuggestionItemView as _0x2260c2}from'./ui/aireviewmodeballoonsuggestionview.js';import'../../theme/aireviewmode/aireviewmode.css';function _0x35b7(){const _0x355707=['error-general','fire','setAvailableChecks','element','accepted','hideResult','context','resetActiveStateInResults','pluginName','status','attachToDom','abortReviewStream','requires','leaveReviewModeResultList','updateChangeState','view','showReviewCheckResultsView','detachFromDom','activateChange','AITabs','showActionsWhenResultIsReady','_reviewModeBalloonSuggestionItemView','5dzphOF','hideBalloon','retryReview','leaveReviewMode','setActiveStateInResults','677828CgsZns','activateTab','get','runReviewCheck','showReviewCheckListView','setTitle','hideActionsWhenResultIsReady','forEach','_reviewModeView','showChangeBalloon','delegate','hideDiffInBalloon','showNoChangesView','4963968nJyovP','locale','showChunkErrorView','2126664bvFdkW','toggleDiff','destroy','addTab','967666CHCdpd','learnMore','showReviewCompletedView','getResults','showCheckRunResult','setCheckResultTitle','deactivateChange','1118204OuhOKE','isOfficialPlugin','addCheckRunResult','24366120gpePqQ','AI_REVIEW_MODE','32ntyZtg','showCheckRunResults','showGeneralErrorView','plugins','rejected','showBalloon','finishReview','isPremiumPlugin','hasChecks','2DZsMjw','getReviewCheckList','2245524uAUakv','init','setItemAsActive','getChangeElement','reviewCheckResultsView','error-chunk','dismissChange','setItemAsInactive','AIReviewModeUI','_bodyCollection','setChecks','find','reviewMode','showDiffInBalloon','acceptAllChanges','hideChangeBalloon','acceptChange','showReviewCheckList','reviewCheckListView'];_0x35b7=function(){return _0x355707;};return _0x35b7();}export const AI_REVIEW_MODE_UI_EVENT_NAMES=[_0x10c537(0x140),_0x10c537(0x172),_0x10c537(0x15f),_0x10c537(0x180),_0x10c537(0x14f),_0x10c537(0x161),_0x10c537(0x166),_0x10c537(0x151),_0x10c537(0x147),_0x10c537(0x12b),_0x10c537(0x13c),_0x10c537(0x16c)];export class AIReviewModeUI extends _0x4026c6{[_0x10c537(0x177)];[_0x10c537(0x169)];[_0x10c537(0x14a)];static get[_0x10c537(0x160)](){return[_0x254bc0];}static get[_0x10c537(0x15c)](){const _0x210147=_0x10c537;return _0x210147(0x149);}static get[_0x10c537(0x132)](){return!0x0;}static get[_0x10c537(0x13d)](){return!0x0;}constructor(_0x5e2995){const _0x101557=_0x10c537;super(_0x5e2995),this[_0x101557(0x14a)]=new _0x1b4550(this[_0x101557(0x15a)][_0x101557(0x17d)]),this[_0x101557(0x14a)][_0x101557(0x15e)](),this[_0x101557(0x177)]=new _0x28eeed(this[_0x101557(0x15a)][_0x101557(0x17d)]),this[_0x101557(0x177)][_0x101557(0x179)](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this[_0x101557(0x169)]=new _0x2260c2(this[_0x101557(0x15a)][_0x101557(0x17d)],this[_0x101557(0x14a)]),this[_0x101557(0x169)][_0x101557(0x179)](_0x101557(0x151),_0x101557(0x147),_0x101557(0x130))['to'](this);}[_0x10c537(0x142)](){const _0x12b406=_0x10c537,_0x41c6ea=this[_0x12b406(0x15a)][_0x12b406(0x139)][_0x12b406(0x171)](_0x12b406(0x167));_0x41c6ea[_0x12b406(0x163)]['on'](_0x12b406(0x170),(_0xeb5717,_0x18558e)=>{const _0x1c5423=_0x12b406;_0x1c5423(0x14d)===_0x18558e?this[_0x1c5423(0x155)](_0x1c5423(0x140)):this[_0x1c5423(0x155)](_0x1c5423(0x16d));}),_0x41c6ea[_0x12b406(0x163)][_0x12b406(0x182)]({'id':_0x12b406(0x14d),'buttonLabel':_0x4c0a16(this[_0x12b406(0x15a)][_0x12b406(0x17d)],_0x12b406(0x135)),'buttonIcon':_0x158efd,'order':0x0,'content':this[_0x12b406(0x177)]});}[_0x10c537(0x181)](){const _0x11fcc9=_0x10c537;this[_0x11fcc9(0x14a)][_0x11fcc9(0x165)](),super[_0x11fcc9(0x181)]();}[_0x10c537(0x156)](_0x4a7007){const _0x36bcc4=_0x10c537;this[_0x36bcc4(0x177)][_0x36bcc4(0x153)][_0x36bcc4(0x13e)]()||this[_0x36bcc4(0x177)][_0x36bcc4(0x153)][_0x36bcc4(0x14b)](_0x4a7007),this[_0x36bcc4(0x177)][_0x36bcc4(0x173)]();}[_0x10c537(0x152)](){const _0x592e00=_0x10c537;this[_0x592e00(0x155)](_0x592e00(0x140));}[_0x10c537(0x137)](_0x473d85){const _0x4505c4=_0x10c537;_0x473d85&&(_0x4505c4(0x154)!==_0x473d85[_0x4505c4(0x15d)]?_0x4505c4(0x146)!==_0x473d85[_0x4505c4(0x15d)]?this[_0x4505c4(0x177)][_0x4505c4(0x164)]():this[_0x4505c4(0x17e)]():this[_0x4505c4(0x138)]());}[_0x10c537(0x12e)](_0x29d6db){const _0x5347ba=_0x10c537;this[_0x5347ba(0x177)][_0x5347ba(0x133)](_0x29d6db);}[_0x10c537(0x138)](){const _0x2dcb21=_0x10c537;this[_0x2dcb21(0x177)][_0x2dcb21(0x138)]();}[_0x10c537(0x17e)](){const _0x5d57ef=_0x10c537;this[_0x5d57ef(0x177)][_0x5d57ef(0x17e)]();}[_0x10c537(0x12f)](_0x4620a2,_0x3f5da7){const _0x1c7519=_0x10c537;this[_0x1c7519(0x177)][_0x1c7519(0x145)][_0x1c7519(0x174)](_0x4620a2,_0x3f5da7);}[_0x10c537(0x16e)](_0x318cbe){const _0x159ea7=_0x10c537;this[_0x159ea7(0x177)][_0x159ea7(0x145)][_0x159ea7(0x12d)]()[_0x159ea7(0x176)](_0x5170b5=>{const _0x5ed9fe=_0x159ea7;_0x5170b5['id']===_0x318cbe&&_0x5170b5[_0x5ed9fe(0x143)]();});}[_0x10c537(0x15b)](){const _0x5446d4=_0x10c537;this[_0x5446d4(0x177)][_0x5446d4(0x145)][_0x5446d4(0x12d)]()[_0x5446d4(0x176)](_0x2a0b8a=>_0x2a0b8a[_0x5446d4(0x148)]());}[_0x10c537(0x162)](_0x46dcd3,_0x36f8d9){const _0x5e12f2=_0x10c537;_0x5e12f2(0x158)!==_0x36f8d9&&_0x5e12f2(0x13a)!==_0x36f8d9||this[_0x5e12f2(0x177)][_0x5e12f2(0x145)][_0x5e12f2(0x159)](_0x46dcd3);}[_0x10c537(0x12c)](){const _0x5e8728=_0x10c537;this[_0x5e8728(0x177)][_0x5e8728(0x12c)]();}[_0x10c537(0x168)](){const _0x49a226=_0x10c537;this[_0x49a226(0x177)][_0x49a226(0x168)]();}[_0x10c537(0x17b)](){const _0x332c8a=_0x10c537;this[_0x332c8a(0x177)][_0x332c8a(0x17b)]();}[_0x10c537(0x175)](){const _0x12aa22=_0x10c537;this[_0x12aa22(0x177)][_0x12aa22(0x175)]();}[_0x10c537(0x178)](_0x6d657a,_0x2ebc72){const _0x214091=_0x10c537;this[_0x214091(0x169)][_0x214091(0x13b)](_0x6d657a,_0x2ebc72);}[_0x10c537(0x150)](){const _0x1c4fa7=_0x10c537;this[_0x1c4fa7(0x169)][_0x1c4fa7(0x16b)]();}[_0x10c537(0x17a)](){const _0x288fe7=_0x10c537;this[_0x288fe7(0x169)][_0x288fe7(0x17a)]();}[_0x10c537(0x14e)](){const _0x384d15=_0x10c537;this[_0x384d15(0x169)][_0x384d15(0x14e)]();}[_0x10c537(0x144)](_0x1a23f5){const _0x374c9e=_0x10c537,_0x1d8308=this[_0x374c9e(0x177)][_0x374c9e(0x145)][_0x374c9e(0x12d)]()[_0x374c9e(0x14c)](_0x4f178b=>_0x4f178b['id']===_0x1a23f5);return _0x1d8308?_0x1d8308[_0x374c9e(0x157)]:null;}[_0x10c537(0x130)](){const _0x1959f4=_0x10c537;this[_0x1959f4(0x169)][_0x1959f4(0x130)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x51032d=_0x4b04;(function(_0x1c1151,_0x272c7c){var _0x89086d=_0x4b04,_0x20d027=_0x1c1151();while(!![]){try{var _0x2fc3b9=parseInt(_0x89086d(0x1ec))/0x1*(-parseInt(_0x89086d(0x1f0))/0x2)+parseInt(_0x89086d(0x1ee))/0x3+parseInt(_0x89086d(0x1f1))/0x4*(parseInt(_0x89086d(0x1f4))/0x5)+parseInt(_0x89086d(0x1ed))/0x6+parseInt(_0x89086d(0x1f2))/0x7*(parseInt(_0x89086d(0x1fa))/0x8)+-parseInt(_0x89086d(0x1f8))/0x9*(parseInt(_0x89086d(0x1f9))/0xa)+parseInt(_0x89086d(0x1ef))/0xb*(-parseInt(_0x89086d(0x1f7))/0xc);if(_0x2fc3b9===_0x272c7c)break;else _0x20d027['push'](_0x20d027['shift']());}catch(_0x39cbc2){_0x20d027['push'](_0x20d027['shift']());}}}(_0x529b,0xe2a03));function _0x4b04(_0x22f922,_0x189bd7){var _0x529ba9=_0x529b();return _0x4b04=function(_0x4b0491,_0x4798a0){_0x4b0491=_0x4b0491-0x1ec;var _0x559480=_0x529ba9[_0x4b0491];return _0x559480;},_0x4b04(_0x22f922,_0x189bd7);}import{EmitterMixin as _0x2f19ca}from'ckeditor5/src/utils.js';function _0x529b(){var _0x3d29db=['contentNew','11860qtgklF','documentVersion','contentInitial','14557080KFlQls','1647630iIObwk','100fQxFWY','8MQJOtu','158556wnlSMA','8703984itFPhf','1715748UxHVtE','11vGmJRM','20TkXrpU','2840TBanyO','12956363OkVcGS'];_0x529b=function(){return _0x3d29db;};return _0x529b();}export class AIReviewCheckResult extends _0x2f19ca(){['id'];[_0x51032d(0x1f3)];[_0x51032d(0x1f6)];[_0x51032d(0x1f5)];constructor({id:_0x4b2266,contentNew:_0x56e657,contentInitial:_0x241fb0,documentVersion:_0x265f91}){var _0x1874eb=_0x51032d;super(),this['id']=_0x4b2266,this[_0x1874eb(0x1f3)]=_0x56e657,this[_0x1874eb(0x1f6)]=_0x241fb0,this[_0x1874eb(0x1f5)]=_0x265f91;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2da551=_0x48c7;function _0x48c7(_0x553759,_0x5ed556){const _0x522f3d=_0x522f();return _0x48c7=function(_0x48c7ac,_0x2e8ff8){_0x48c7ac=_0x48c7ac-0x10c;let _0x4970e4=_0x522f3d[_0x48c7ac];return _0x4970e4;},_0x48c7(_0x553759,_0x5ed556);}(function(_0x43a19a,_0xdc9fac){const _0x4f88cb=_0x48c7,_0x45cd71=_0x43a19a();while(!![]){try{const _0xe0f309=parseInt(_0x4f88cb(0x161))/0x1*(-parseInt(_0x4f88cb(0x144))/0x2)+parseInt(_0x4f88cb(0x11e))/0x3*(parseInt(_0x4f88cb(0x14a))/0x4)+-parseInt(_0x4f88cb(0x157))/0x5+parseInt(_0x4f88cb(0x10c))/0x6*(-parseInt(_0x4f88cb(0x135))/0x7)+parseInt(_0x4f88cb(0x11f))/0x8+parseInt(_0x4f88cb(0x153))/0x9+-parseInt(_0x4f88cb(0x145))/0xa*(-parseInt(_0x4f88cb(0x124))/0xb);if(_0xe0f309===_0xdc9fac)break;else _0x45cd71['push'](_0x45cd71['shift']());}catch(_0x3df3cf){_0x45cd71['push'](_0x45cd71['shift']());}}}(_0x522f,0x68fb3));import{ObservableMixin as _0x44bb11,uid as _0x22cd51}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x22eb92}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x590891}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x44bb11(){['id']=_0x22cd51();[_0x2da551(0x12c)];[_0x2da551(0x154)]=new Map();[_0x2da551(0x11d)]=[];[_0x2da551(0x11a)];[_0x2da551(0x156)];[_0x2da551(0x146)];[_0x2da551(0x14e)];[_0x2da551(0x122)];[_0x2da551(0x12f)]=null;[_0x2da551(0x125)];constructor(_0x50cb14,_0x34268e,_0x7c298c,_0x270eb2,_0x849bff){const _0x3dbbc8=_0x2da551;super(),this[_0x3dbbc8(0x11a)]=_0x50cb14,this[_0x3dbbc8(0x156)]=_0x34268e,this[_0x3dbbc8(0x146)]=_0x7c298c,this[_0x3dbbc8(0x14e)]=_0x270eb2,this[_0x3dbbc8(0x122)]=_0x849bff,this['on'](_0x3dbbc8(0x150),(_0x422a1b,_0x2c1376,_0x239fa8)=>{const _0xa9e78e=_0x3dbbc8;this[_0xa9e78e(0x127)](_0xa9e78e(0x149),{'status':_0x239fa8,'run':this,'error':this[_0xa9e78e(0x125)]});}),this[_0x3dbbc8(0x115)](_0x3dbbc8(0x165),_0x3dbbc8(0x141));}get[_0x2da551(0x110)](){const _0x2ed7df=_0x2da551;return this[_0x2ed7df(0x11a)];}get[_0x2da551(0x13f)](){const _0x27fbc1=_0x2da551;return this[_0x27fbc1(0x154)][_0x27fbc1(0x10d)];}get[_0x2da551(0x159)](){const _0x5b5e33=_0x2da551;return this[_0x5b5e33(0x156)][_0x5b5e33(0x159)];}get[_0x2da551(0x148)](){return'';}get[_0x2da551(0x128)](){const _0x25db5c=_0x2da551;return this[_0x25db5c(0x156)]['id'];}get[_0x2da551(0x15a)](){const _0x5c329d=_0x2da551;return!this[_0x5c329d(0x11d)][_0x5c329d(0x111)](_0x11e4e2=>_0x5c329d(0x134)===_0x11e4e2[_0x5c329d(0x165)]);}async[_0x2da551(0x10f)](){const _0x54910b=_0x2da551;this[_0x54910b(0x165)]=_0x54910b(0x114),this[_0x54910b(0x125)]=void 0x0;try{this[_0x54910b(0x12f)]=this[_0x54910b(0x14b)]();const _0x4a7261=await this[_0x54910b(0x12f)][_0x54910b(0x140)]();this[_0x54910b(0x165)]=_0x54910b(0x168);for await(const _0x393e55 of _0x4a7261)_0x54910b(0x162)!==_0x393e55[_0x54910b(0x168)][_0x54910b(0x120)]&&(_0x54910b(0x129)!==_0x393e55[_0x54910b(0x168)][_0x54910b(0x120)]?_0x54910b(0x138)!==_0x393e55[_0x54910b(0x131)]?this[_0x54910b(0x126)](_0x393e55[_0x54910b(0x168)][_0x54910b(0x142)],_0x393e55[_0x54910b(0x168)][_0x54910b(0x118)]):this[_0x54910b(0x12c)]=_0x393e55[_0x54910b(0x168)][_0x54910b(0x12c)]:this[_0x54910b(0x165)]=_0x54910b(0x158));_0x54910b(0x158)!==this[_0x54910b(0x165)]&&(0x0===this[_0x54910b(0x154)][_0x54910b(0x10d)]?this[_0x54910b(0x165)]=_0x54910b(0x162):this[_0x54910b(0x165)]=_0x54910b(0x132));}catch(_0x2d3a51){this[_0x54910b(0x125)]=_0x2d3a51,_0x2d3a51 instanceof Error&&_0x2d3a51[_0x54910b(0x130)][_0x54910b(0x167)](_0x54910b(0x163))?this[_0x54910b(0x165)]=_0x54910b(0x12a):this[_0x54910b(0x165)]=_0x54910b(0x139);}finally{this[_0x54910b(0x12f)]=null;}}async[_0x2da551(0x13a)](){const _0x1335c5=_0x2da551;this[_0x1335c5(0x154)][_0x1335c5(0x11b)](),this[_0x1335c5(0x11d)][_0x1335c5(0x112)]=0x0,this[_0x1335c5(0x125)]=void 0x0,await this[_0x1335c5(0x10f)]();}[_0x2da551(0x13e)](_0xa26207,_0x3174eb){const _0x4f964d=_0x2da551,_0x182921=this[_0x4f964d(0x154)][_0x4f964d(0x15f)](_0xa26207);if(!_0x182921)return;const _0x1a1860=[];_0x3174eb[_0x4f964d(0x123)]((_0x440e63,_0x4add11)=>{const _0x8593d8=_0x4f964d,_0x36d199=new _0x590891(_0x182921['id']+'-'+_0x4add11,_0x440e63,_0x182921);_0x36d199['on'](_0x8593d8(0x150),()=>{const _0x1ccf67=_0x8593d8;_0x1ccf67(0x155)===_0x36d199[_0x1ccf67(0x165)]?this[_0x1ccf67(0x127)](_0x1ccf67(0x15b),{'change':_0x36d199}):_0x1ccf67(0x13d)===_0x36d199[_0x1ccf67(0x165)]&&this[_0x1ccf67(0x127)](_0x1ccf67(0x13c),{'change':_0x36d199});}),_0x36d199['on'](_0x8593d8(0x113),()=>{const _0x53270c=_0x8593d8;_0x36d199[_0x53270c(0x12d)]?this[_0x53270c(0x127)](_0x53270c(0x11c),{'change':_0x36d199}):this[_0x53270c(0x127)](_0x53270c(0x119),{'change':_0x36d199});}),this[_0x8593d8(0x11d)][_0x8593d8(0x121)](_0x36d199),_0x1a1860[_0x8593d8(0x121)](_0x36d199);}),this[_0x4f964d(0x127)](_0x4f964d(0x117),{'changes':_0x1a1860,'result':_0x182921,'source':this});}[_0x2da551(0x147)](){const _0x50f82f=_0x2da551;this[_0x50f82f(0x12f)]&&(this[_0x50f82f(0x12f)][_0x50f82f(0x133)][_0x50f82f(0x147)](),this[_0x50f82f(0x12f)]=null,this[_0x50f82f(0x165)]=_0x50f82f(0x12a));}[_0x2da551(0x14d)](_0x20fd31){const _0x438698=_0x2da551,_0x311792=this[_0x438698(0x11d)][_0x438698(0x166)](_0x2195c2=>_0x2195c2['id']===_0x20fd31);return!(!_0x311792||_0x438698(0x134)!==_0x311792[_0x438698(0x165)]);}[_0x2da551(0x151)](){const _0x50be7d=_0x2da551;return this[_0x50be7d(0x11d)][_0x50be7d(0x12b)](_0x1e9715=>_0x50be7d(0x134)===_0x1e9715[_0x50be7d(0x165)]);}[_0x2da551(0x14c)](){const _0x12d3db=_0x2da551;for(const _0x1bd48d of this[_0x12d3db(0x11d)])_0x12d3db(0x134)===_0x1bd48d[_0x12d3db(0x165)]&&(_0x1bd48d[_0x12d3db(0x165)]=_0x12d3db(0x155));this[_0x12d3db(0x10e)]();}[_0x2da551(0x160)](_0x417bb3){const _0x498fd3=_0x2da551,_0x86312a=this[_0x498fd3(0x11d)][_0x498fd3(0x166)](_0x41fde9=>_0x41fde9['id']===_0x417bb3);_0x86312a&&_0x498fd3(0x134)===_0x86312a[_0x498fd3(0x165)]&&(_0x86312a[_0x498fd3(0x165)]=_0x498fd3(0x155)),this[_0x498fd3(0x10e)]();}[_0x2da551(0x15c)](_0x39b983){const _0x91593c=_0x2da551,_0x3021a3=this[_0x91593c(0x11d)][_0x91593c(0x166)](_0x2d54f0=>_0x2d54f0['id']===_0x39b983);_0x3021a3&&_0x91593c(0x134)===_0x3021a3[_0x91593c(0x165)]&&(_0x3021a3[_0x91593c(0x165)]=_0x91593c(0x13d)),this[_0x91593c(0x10e)]();}[_0x2da551(0x164)](_0x53932b){const _0x5627d8=_0x2da551;this[_0x5627d8(0x11d)][_0x5627d8(0x12b)](_0x338ffd=>_0x338ffd[_0x5627d8(0x12d)]&&_0x338ffd['id']!==_0x53932b)[_0x5627d8(0x123)](_0x240b16=>{const _0x38766a=_0x5627d8;_0x240b16[_0x38766a(0x12d)]=!0x1;});const _0x5acf1f=this[_0x5627d8(0x11d)][_0x5627d8(0x166)](_0x3cad4e=>_0x3cad4e['id']===_0x53932b);_0x5acf1f&&(_0x5acf1f[_0x5627d8(0x12d)]=!0x0);}[_0x2da551(0x15d)](){const _0x2e2b69=_0x2da551;this[_0x2e2b69(0x11d)][_0x2e2b69(0x12b)](_0x2d7c5b=>_0x2d7c5b[_0x2e2b69(0x12d)])[_0x2e2b69(0x123)](_0x4a5bae=>{const _0x39a2fe=_0x2e2b69;_0x4a5bae[_0x39a2fe(0x12d)]=!0x1;});}[_0x2da551(0x152)](){const _0x1ae630=_0x2da551;this[_0x1ae630(0x165)]=_0x1ae630(0x132);}async[_0x2da551(0x15e)](_0x56fffc){const _0x3fe3e2=_0x2da551;if(_0x3fe3e2(0x141)===this[_0x3fe3e2(0x165)]||_0x3fe3e2(0x114)===this[_0x3fe3e2(0x165)]||_0x3fe3e2(0x168)===this[_0x3fe3e2(0x165)])return;if(!this[_0x3fe3e2(0x12c)]||0x0===this[_0x3fe3e2(0x11d)][_0x3fe3e2(0x112)])return;let _0x264281;if(_0x56fffc){const _0x54165d=this[_0x3fe3e2(0x11d)][_0x3fe3e2(0x166)](_0x2aacef=>_0x2aacef['id']===_0x56fffc);if(_0x54165d&&_0x54165d[_0x3fe3e2(0x169)])return;_0x54165d&&(_0x264281=_0x54165d[_0x3fe3e2(0x13b)]['id'],_0x54165d[_0x3fe3e2(0x169)]=!0x0);}const _0x4df87c={'positiveCount':this[_0x3fe3e2(0x11d)][_0x3fe3e2(0x12b)](_0x574719=>_0x3fe3e2(0x155)===_0x574719[_0x3fe3e2(0x165)])[_0x3fe3e2(0x112)],'totalCount':this[_0x3fe3e2(0x11d)][_0x3fe3e2(0x112)]};this[_0x3fe3e2(0x116)](_0x4df87c,this[_0x3fe3e2(0x12c)],_0x264281);}[_0x2da551(0x126)](_0x424ce5,_0x1404b5){const _0x5b67ca=_0x2da551,_0x30c16a=this[_0x5b67ca(0x11a)][_0x5b67ca(0x137)][_0x5b67ca(0x15f)](_0x424ce5);if(!_0x30c16a)return;const _0x1bea9d=_0x30c16a[_0x5b67ca(0x12e)]();if(_0x1bea9d===_0x1404b5)return;const _0x421c46=new _0x22eb92({'id':_0x424ce5,'contentInitial':_0x1bea9d,'contentNew':_0x1404b5,'documentVersion':this[_0x5b67ca(0x11a)][_0x5b67ca(0x136)]});this[_0x5b67ca(0x154)][_0x5b67ca(0x115)](_0x421c46['id'],_0x421c46),this[_0x5b67ca(0x127)](_0x5b67ca(0x14f),{'result':_0x421c46,'source':this});}[_0x2da551(0x10e)](){const _0x4e1da8=_0x2da551;if(_0x4e1da8(0x132)!==this[_0x4e1da8(0x165)])return;0x0===this[_0x4e1da8(0x11d)][_0x4e1da8(0x12b)](_0x103d2c=>_0x4e1da8(0x134)===_0x103d2c[_0x4e1da8(0x165)])[_0x4e1da8(0x112)]&&(this[_0x4e1da8(0x165)]=_0x4e1da8(0x143));}}function _0x522f(){const _0x3e7411=['activateChange','status','find','includes','data','isRated','14598QAACcO','size','_checkIfFinished','start','documentData','every','length','change:isActivated','loading','set','_sendRatingRequest','reviewCheckResultReady','textDelta','reviewCheckResultDeactivated','_documentData','clear','reviewCheckResultActivated','_changes','2073YpYTXR','1590656VkPnhj','operation','push','_reviewArgs','forEach','11YazVUV','_currentError','_addReviewCheckResult','fire','reviewName','error','aborted','filter','callId','isActivated','getContent','_activeRequest','message','event','ready','abortController','active','1477oCkGQn','version','elements','review-metadata','error-general','restart','parent','reviewCheckResultRejected','rejected','addResultChanges','processedResultsCount','getStream','initialized','dataId','finished','362fVJlOD','5922410FNFueY','_aiConnector','abort','subTitle','reviewCheckRunUpdated','4724FtqAre','_createApiRequest','markAllChangesAsAccepted','isChangeActive','_reviewParams','reviewCheckResultAdded','change:status','getActiveChanges','forceReadyState','4372101OMtzft','_results','accepted','_sourceCheck','4190330nwQsiY','error-chunk','title','hasModifications','reviewCheckResultAccepted','markChangeAsRejected','deactivateChange','sendRating','get','markChangeAsAccepted','1721hfQtYy','unmodified','ai-request-aborted'];_0x522f=function(){return _0x3e7411;};return _0x522f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x481182=_0x2d0a;(function(_0x2f9f61,_0x1b6c52){const _0x3ed093=_0x2d0a,_0x1f9f7a=_0x2f9f61();while(!![]){try{const _0x2838d8=parseInt(_0x3ed093(0xaf))/0x1*(parseInt(_0x3ed093(0xaa))/0x2)+-parseInt(_0x3ed093(0xa9))/0x3*(-parseInt(_0x3ed093(0xa7))/0x4)+-parseInt(_0x3ed093(0xa5))/0x5*(-parseInt(_0x3ed093(0xb0))/0x6)+-parseInt(_0x3ed093(0xa4))/0x7*(parseInt(_0x3ed093(0xa1))/0x8)+parseInt(_0x3ed093(0xa2))/0x9*(-parseInt(_0x3ed093(0xb1))/0xa)+parseInt(_0x3ed093(0xb2))/0xb+parseInt(_0x3ed093(0xa6))/0xc*(-parseInt(_0x3ed093(0xae))/0xd);if(_0x2838d8===_0x1b6c52)break;else _0x1f9f7a['push'](_0x1f9f7a['shift']());}catch(_0xdae0af){_0x1f9f7a['push'](_0x1f9f7a['shift']());}}}(_0x10ff,0x97614));function _0x2d0a(_0x2680e7,_0x28ab46){const _0x10ff20=_0x10ff();return _0x2d0a=function(_0x2d0ada,_0x482891){_0x2d0ada=_0x2d0ada-0xa1;let _0x184e3b=_0x10ff20[_0x2d0ada];return _0x184e3b;},_0x2d0a(_0x2680e7,_0x28ab46);}import{EmitterMixin as _0x4cd5ba}from'ckeditor5/src/utils.js';export class AIReviewModels extends _0x4cd5ba(){[_0x481182(0xa3)]=[];[_0x481182(0xab)];constructor({connector:_0x3d1824}){const _0x2a80cf=_0x481182;super(),this[_0x2a80cf(0xab)]=_0x3d1824;}async[_0x481182(0xa8)](){const _0x14d7b4=_0x481182;if(!this[_0x14d7b4(0xa3)][_0x14d7b4(0xb3)])try{const _0x504085=this[_0x14d7b4(0xab)][_0x14d7b4(0xac)](),_0x557dfa=await _0x504085[_0x14d7b4(0xad)]();this[_0x14d7b4(0xa3)]=_0x557dfa[_0x14d7b4(0xb4)];}catch{}return this[_0x14d7b4(0xa3)];}}function _0x10ff(){const _0x153b64=['length','items','37216qIdtMd','90vSRQwm','_modelList','1834cmhpTh','865zOvYEc','516SWhfCv','24kiVAYS','getAll','582279DxXtxP','2NTTphC','_connector','getModels','list','336505FYekuW','135111cYVXAW','21138tUJmiu','79340YGphkC','12343353vIPCoZ'];_0x10ff=function(){return _0x153b64;};return _0x10ff();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xeb0c93=_0x2ad9;(function(_0x4ad8e9,_0xa0be70){var _0x5ce745=_0x2ad9,_0x5198ae=_0x4ad8e9();while(!![]){try{var _0x26aa54=parseInt(_0x5ce745(0x111))/0x1*(parseInt(_0x5ce745(0x122))/0x2)+parseInt(_0x5ce745(0x11b))/0x3*(-parseInt(_0x5ce745(0x11e))/0x4)+-parseInt(_0x5ce745(0x10e))/0x5*(-parseInt(_0x5ce745(0x117))/0x6)+parseInt(_0x5ce745(0x125))/0x7+parseInt(_0x5ce745(0x118))/0x8+-parseInt(_0x5ce745(0x112))/0x9+parseInt(_0x5ce745(0x11c))/0xa*(-parseInt(_0x5ce745(0x124))/0xb);if(_0x26aa54===_0xa0be70)break;else _0x5198ae['push'](_0x5198ae['shift']());}catch(_0x504999){_0x5198ae['push'](_0x5198ae['shift']());}}}(_0x4d32,0x6056d));import{TextareaView as _0x42a547}from'ckeditor5/src/ui.js';function _0x2ad9(_0x38891a,_0x2076c1){var _0x4d3287=_0x4d32();return _0x2ad9=function(_0x2ad927,_0x47986e){_0x2ad927=_0x2ad927-0x10d;var _0x485ef6=_0x4d3287[_0x2ad927];return _0x485ef6;},_0x2ad9(_0x38891a,_0x2076c1);}import{KeystrokeHandler as _0x176981}from'ckeditor5/src/utils.js';export class AIReviewModePromptInputView extends _0x42a547{[_0xeb0c93(0x113)];static [_0xeb0c93(0x114)]=0x1;static [_0xeb0c93(0x11f)]=0xc;constructor(_0x114f92){var _0x406466=_0xeb0c93;super(_0x114f92),this[_0x406466(0x119)](_0x406466(0x121),!0x0),this[_0x406466(0x113)]=new _0x176981(),this[_0x406466(0x11d)]=AIReviewModePromptInputView[_0x406466(0x114)],this[_0x406466(0x11a)]=AIReviewModePromptInputView[_0x406466(0x11f)],this[_0x406466(0x110)]({'attributes':{'id':_0x406466(0x116),'class':['ck',_0x406466(0x120)]}});}[_0xeb0c93(0x10f)](){var _0x27d70f=_0xeb0c93;super[_0x27d70f(0x10f)](),this['on'](_0x27d70f(0x115),()=>{var _0x5d2f09=_0x27d70f;this[_0x5d2f09(0x121)]=''===this[_0x5d2f09(0x126)][_0x5d2f09(0x123)]?.[_0x5d2f09(0x127)]();}),this[_0x27d70f(0x113)][_0x27d70f(0x10d)](this[_0x27d70f(0x126)]);}}function _0x4d32(){var _0x1c7675=['5637200LxXxkN','set','maxRows','321eUmnVQ','177350xLRLkG','minRows','22584EFRovK','MAX_ROWS','ck-review-mode__prompt-input','isEmpty','1185322mIApwu','value','209zlTOGi','1588321IQrlOA','element','trim','listenTo','627145xRnWfi','render','extendTemplate','1HXEvJX','6212142PwlMTJ','keystrokes','MIN_ROWS','update','ai-review-mode-prompt-input','24oQhXFn'];_0x4d32=function(){return _0x1c7675;};return _0x4d32();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c43f5=_0x339e;(function(_0x304cb3,_0x2aed22){const _0xa32a6b=_0x339e,_0x492cfa=_0x304cb3();while(!![]){try{const _0x449213=-parseInt(_0xa32a6b(0x182))/0x1*(-parseInt(_0xa32a6b(0x18d))/0x2)+-parseInt(_0xa32a6b(0x172))/0x3+parseInt(_0xa32a6b(0x185))/0x4+parseInt(_0xa32a6b(0x177))/0x5+-parseInt(_0xa32a6b(0x173))/0x6+-parseInt(_0xa32a6b(0x19e))/0x7+parseInt(_0xa32a6b(0x187))/0x8;if(_0x449213===_0x2aed22)break;else _0x492cfa['push'](_0x492cfa['shift']());}catch(_0x1dc140){_0x492cfa['push'](_0x492cfa['shift']());}}}(_0x3b79,0x25542));function _0x339e(_0x2d6bb4,_0x219efe){const _0x3b7937=_0x3b79();return _0x339e=function(_0x339eb8,_0x38d288){_0x339eb8=_0x339eb8-0x16d;let _0x33c9d3=_0x3b7937[_0x339eb8];return _0x33c9d3;},_0x339e(_0x2d6bb4,_0x219efe);}import{BalloonPanelView as _0xd520b1,View as _0xf8d76b,clickOutsideHandler as _0xf5d6cf}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCheckListItemResultsView as _0x566bb1}from'./aireviewmodechecklistitemresultview.js';import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeBalloonSuggestionItemView extends _0xd520b1{[_0x3c43f5(0x176)];constructor(_0x237385,_0x44fa33){const _0x5669d4=_0x3c43f5;super(_0x237385),this[_0x5669d4(0x180)]({'isVisible':!0x1,'position':_0x5669d4(0x16d),'class':null,'top':0x0,'left':0x0}),this[_0x5669d4(0x17a)]({'tag':_0x5669d4(0x196),'attributes':{'class':[_0x5669d4(0x192)],'tabindex':'-1'}}),this[_0x5669d4(0x184)][_0x5669d4(0x179)](this[_0x5669d4(0x190)]()),_0x44fa33[_0x5669d4(0x179)](this);}[_0x3c43f5(0x183)](){const _0x44729c=_0x3c43f5;super[_0x44729c(0x183)](),this[_0x44729c(0x171)]();}[_0x3c43f5(0x170)](_0x469c21){const _0x18595e=_0x3c43f5;this[_0x18595e(0x176)][_0x18595e(0x194)]=_0x469c21['id'],this[_0x18595e(0x176)][_0x18595e(0x191)][_0x18595e(0x17e)][_0x18595e(0x186)]=_0x469c21[_0x18595e(0x17c)];}[_0x3c43f5(0x17d)](_0x3306b2,_0x112598){const _0x1e42a8=_0x3c43f5;this[_0x1e42a8(0x170)](_0x3306b2),this[_0x1e42a8(0x19d)](),this[_0x1e42a8(0x199)]({'target':()=>this[_0x1e42a8(0x174)](_0x112598)});}[_0x3c43f5(0x17f)](){const _0x1d807c=_0x3c43f5;this[_0x1d807c(0x197)](),this[_0x1d807c(0x189)]();}[_0x3c43f5(0x175)](){const _0x10f552=_0x3c43f5;this[_0x10f552(0x176)][_0x10f552(0x193)]=!0x1;}[_0x3c43f5(0x18e)](){const _0x425f97=_0x3c43f5;this[_0x425f97(0x176)][_0x425f97(0x193)]=!0x0;}[_0x3c43f5(0x178)](){const _0x326d0b=_0x3c43f5;this[_0x326d0b(0x18c)](_0x326d0b(0x178));}[_0x3c43f5(0x171)](){const _0x551dc1=_0x3c43f5;_0xf5d6cf({'emitter':this,'activator':()=>this[_0x551dc1(0x188)],'contextElements':[this[_0x551dc1(0x17e)]],'callback':()=>{const _0x3d59c4=_0x551dc1;this[_0x3d59c4(0x17f)](),this[_0x3d59c4(0x178)]();}});}[_0x3c43f5(0x190)](){const _0x37fabc=_0x3c43f5,_0x44f9e9=new _0xf8d76b();return this[_0x37fabc(0x176)]=new _0x566bb1(this[_0x37fabc(0x16f)],''),this[_0x37fabc(0x176)][_0x37fabc(0x191)][_0x37fabc(0x17a)]({'attributes':{'class':[_0x37fabc(0x195)]}}),this[_0x37fabc(0x176)][_0x37fabc(0x19a)](_0x37fabc(0x198),_0x37fabc(0x16e))['to'](this),_0x44f9e9[_0x37fabc(0x17b)]({'tag':_0x37fabc(0x196),'attributes':{'class':[_0x37fabc(0x192),_0x37fabc(0x19b)]},'children':[{'tag':'p','attributes':{'class':[_0x37fabc(0x18a)]},'children':[this[_0x37fabc(0x176)]]}]}),_0x44f9e9;}[_0x3c43f5(0x174)](_0x45879e){const _0x5b0032=_0x3c43f5,_0x1adcc7=Array[_0x5b0032(0x18f)](_0x45879e[_0x5b0032(0x181)]());return _0x1adcc7[_0x5b0032(0x18b)](_0x38e958=>_0x38e958[_0x5b0032(0x19c)]>0x0)||_0x1adcc7[0x0];}}function _0x3b79(){const _0x3967c9=['render','content','900084TSnfdd','innerHTML','2125272DEHXqI','isVisible','unpin','ck-ai-review-mode__suggestion-text','find','fire','22Gerrfp','showDiffInBalloon','from','_createContentView','resultResponseView','ck-reset','showDiff','changeId','ck-content','div','hide','acceptChange','pin','delegate','ck-ai-review-mode-balloon-panel-suggestion','width','show','2028999WRHfvi','arrow_se','dismissChange','locale','updateContent','_setupClickOutsideHandler','376677ATYcPZ','1599168ooNmOY','_getBestRectPosition','hideDiffInBalloon','resultItemView','829975eJNyko','deactivateChange','add','extendTemplate','setTemplate','contentDiffed','showBalloon','element','hideBalloon','set','getClientRects','16197tZbHHD'];_0x3b79=function(){return _0x3967c9;};return _0x3b79();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ace57=_0x478b;(function(_0x2214db,_0x1fb956){const _0x3d4dc6=_0x478b,_0x4534d1=_0x2214db();while(!![]){try{const _0x4021df=-parseInt(_0x3d4dc6(0x1b9))/0x1+parseInt(_0x3d4dc6(0x19a))/0x2+-parseInt(_0x3d4dc6(0x1c5))/0x3*(parseInt(_0x3d4dc6(0x1ab))/0x4)+parseInt(_0x3d4dc6(0x1ce))/0x5+parseInt(_0x3d4dc6(0x1af))/0x6*(parseInt(_0x3d4dc6(0x1b7))/0x7)+parseInt(_0x3d4dc6(0x1c4))/0x8+-parseInt(_0x3d4dc6(0x1a8))/0x9*(parseInt(_0x3d4dc6(0x19d))/0xa);if(_0x4021df===_0x1fb956)break;else _0x4534d1['push'](_0x4534d1['shift']());}catch(_0x1d13f1){_0x4534d1['push'](_0x4534d1['shift']());}}}(_0x46f8,0xe8971));import{View as _0x5d20ec,ButtonView as _0x21a269}from'ckeditor5/src/ui.js';function _0x478b(_0x1a406f,_0x5d1950){const _0x46f8ee=_0x46f8();return _0x478b=function(_0x478b10,_0x1cd087){_0x478b10=_0x478b10-0x19a;let _0x15ec7c=_0x46f8ee[_0x478b10];return _0x15ec7c;},_0x478b(_0x1a406f,_0x5d1950);}import{IconInfo as _0x95af8c}from'ckeditor5/src/icons.js';import{getTranslation as _0x5b0272}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x5d20ec{[_0x4ace57(0x1c3)];[_0x4ace57(0x19b)];[_0x4ace57(0x1cc)];[_0x4ace57(0x1ac)];constructor(_0x44f901,_0x4f19c6){const _0x43961c=_0x4ace57;super(_0x44f901),this['id']=_0x4f19c6,this[_0x43961c(0x1c6)](_0x43961c(0x1b4),_0x4f19c6),this[_0x43961c(0x1c3)]=this[_0x43961c(0x1b3)](),this[_0x43961c(0x19b)]=this[_0x43961c(0x1c9)](),this[_0x43961c(0x1cc)]=this[_0x43961c(0x1a4)](),this[_0x43961c(0x1ac)]=this[_0x43961c(0x1c7)](),this[_0x43961c(0x1c6)](_0x43961c(0x1c8),!0x1),this[_0x43961c(0x1c6)](_0x43961c(0x1bf),!0x1),this[_0x43961c(0x1c6)](_0x43961c(0x1b8),!0x0),this[_0x43961c(0x1cd)]({'tag':_0x43961c(0x1a9),'attributes':{'class':[_0x43961c(0x1b1),this[_0x43961c(0x1b0)]['if'](_0x43961c(0x1bf),_0x43961c(0x19c))]},'on':{'click':this[_0x43961c(0x1b0)]['to'](_0x43961c(0x1b6))},'children':[this[_0x43961c(0x1c3)],{'tag':_0x43961c(0x1a9),'attributes':{'class':[_0x43961c(0x1ca)]},'children':[{'tag':_0x43961c(0x1a9),'attributes':{'class':[_0x43961c(0x19f)]},'children':[this[_0x43961c(0x19b)],this[_0x43961c(0x1cc)]]},this[_0x43961c(0x1ac)]]}]}),this['on'](_0x43961c(0x1b6),()=>{const _0x391f82=_0x43961c;this[_0x391f82(0x1aa)](_0x391f82(0x1be),{'id':_0x4f19c6,'source':this});});}[_0x4ace57(0x1bb)](){const _0x420eb6=_0x4ace57;this[_0x420eb6(0x1bf)]=!0x0;}[_0x4ace57(0x1b2)](){const _0x366317=_0x4ace57;this[_0x366317(0x1bf)]=!0x1;}[_0x4ace57(0x1b3)](){const _0x4b9d04=_0x4ace57,_0x2881aa=new _0x5d20ec(this[_0x4b9d04(0x1cf)]);return _0x2881aa[_0x4b9d04(0x1cd)]({'tag':_0x4b9d04(0x1a9),'attributes':{'class':['ck',_0x4b9d04(0x1a3),_0x4b9d04(0x1ba),_0x4b9d04(0x1c0),this[_0x4b9d04(0x1b0)]['if'](_0x4b9d04(0x1b8),_0x4b9d04(0x1c1),_0x3e9810=>!_0x3e9810)]}}),_0x2881aa;}[_0x4ace57(0x1c9)](){const _0xff4440=_0x4ace57,_0x55add7=new _0x21a269(this[_0xff4440(0x1cf)]);return _0x55add7[_0xff4440(0x1c6)]({'label':_0x5b0272(this[_0xff4440(0x1cf)],_0xff4440(0x1ad)),'withText':!0x0,'class':_0xff4440(0x1bd)}),_0x55add7[_0xff4440(0x1cb)]({'on':{'click':this[_0xff4440(0x1b0)]['to'](_0xaa7fb1=>{const _0x24c43c=_0xff4440;this[_0x24c43c(0x1aa)](_0x24c43c(0x1a6),{'id':this[_0x24c43c(0x1b4)]}),_0xaa7fb1[_0x24c43c(0x19e)]();})}}),_0x55add7;}[_0x4ace57(0x1a4)](){const _0x1bc66d=_0x4ace57,_0x670d52=new _0x21a269(this[_0x1bc66d(0x1cf)]);return _0x670d52[_0x1bc66d(0x1c6)]({'label':_0x5b0272(this[_0x1bc66d(0x1cf)],_0x1bc66d(0x1bc)),'withText':!0x0,'class':_0x1bc66d(0x1c2)}),_0x670d52[_0x1bc66d(0x1cb)]({'on':{'click':this[_0x1bc66d(0x1b0)]['to'](_0x494ef1=>{const _0x2b432e=_0x1bc66d;this[_0x2b432e(0x1aa)](_0x2b432e(0x1ae),{'id':this[_0x2b432e(0x1b4)]}),_0x494ef1[_0x2b432e(0x19e)]();})}}),_0x670d52;}[_0x4ace57(0x1c7)](){const _0x5be843=_0x4ace57,_0x5ef570=new _0x21a269(this[_0x5be843(0x1cf)]);return _0x5ef570[_0x5be843(0x1c6)]({'label':_0x5b0272(this[_0x5be843(0x1cf)],_0x5be843(0x1a0)),'icon':_0x95af8c,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x5be843(0x1b5),'class':_0x5be843(0x1a5)}),_0x5ef570[_0x5be843(0x1a7)](_0x5be843(0x1a2))['to'](this,_0x5be843(0x1c8),_0x3fcb4a=>_0x3fcb4a),_0x5ef570['on'](_0x5be843(0x1a1),()=>{const _0x32689c=_0x5be843;this[_0x32689c(0x1c8)]=!this[_0x32689c(0x1c8)];}),_0x5ef570;}}function _0x46f8(){const _0x39b824=['7HszmFM','showDiff','554954utYxzu','ck-content-direct-excluded','setItemAsActive','AI_REVIEW_MODE_DISMISS_CHANGE','ck-ai-button-secondary\x20ck-ai-review-mode__check-run-result-accept-button','activateChange','isActive','ck-ai-review-mode__check-run-result-response','ck-hidden','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-dismiss-button','resultResponseView','433896TKoNDh','444909Mfmutd','set','_createInfoButtonView','isInfoToggleOn','_createAcceptButtonView','ck-ai-review-mode__check-run-result-footer','extendTemplate','dismissButtonView','setTemplate','7686255BZHvKy','locale','2367978tvKrwO','acceptButtonView','ck-ai-review-mode__check-run-result_active','130zZEexZ','stopPropagation','ck-ai-review-mode__check-run-result-action-buttons','AI_REVIEW_MODE_LEARN_MORE','execute','isOn','ck-content','_createDismissButtonView','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','acceptChange','bind','1381491aWyfJZ','div','fire','4AbhjDP','infoButtonView','AI_REVIEW_MODE_ACCEPT_CHANGE','dismissChange','5255736MQxmQn','bindTemplate','ck-ai-review-mode__check-run-result','setItemAsInactive','_createResultResponseView','changeId','menuitemcheckbox','click'];_0x46f8=function(){return _0x39b824;};return _0x46f8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x5327a5,KeystrokeHandler as _0x38bd34,FocusTracker as _0x22422a}from'ckeditor5/src/utils.js';import{View as _0x204e52,ViewCollection as _0x579156,ButtonView as _0x3e6f5a,FormRowView as _0x49520b,createDropdown as _0x3ac330,addListToDropdown as _0x4481ec,UIModel as _0x533a62,ButtonLabelView as _0x9b1784,LabeledFieldView as _0x24721b,FocusCycler as _0x4a891c}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x53fcd1}from'./aireviemodepromptinputview.js';import{getTranslation as _0x27f6ce}from'../../aicore/utils/common-translations.js';export class AIReviewModeCustomCheckView extends _0x204e52{['focusTracker']=new _0x22422a();['keystrokes']=new _0x38bd34();['focusCycler'];['_focusables']=new _0x579156();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x16ebc3,_0x135f50){super(_0x16ebc3),this['_check']=_0x135f50,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x135f50['models']&&_0x135f50['models']['length']>0x0?_0x135f50['models'][0x0]['id']:'',this['_defaultLabel']=_0x135f50['models']&&_0x135f50['models']['length']>0x0?_0x135f50['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x24721b(this['locale'],()=>new _0x53fcd1(_0x16ebc3)),this['promptInputView']['fieldView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['fieldView']['on']('input',()=>{this['prompt']=this['promptInputView']['fieldView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new _0x5327a5(),this['_setModelList'](),_0x4481ec(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions']},'children':[new _0x49520b(this['locale'],{'children':[this['promptInputView']]}),new _0x49520b(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x37fe39,_0x82c538)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x82c538()):_0x82c538();}),this['focusCycler']=new _0x4a891c({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}));}['render'](){super['render'](),([this['promptInputView'],this['_modelSelectionDropdown'],this['cancelButtonView'],this['submitButtonView']]['forEach'](_0x18cb54=>{this['_focusables']['add'](_0x18cb54),this['focusTracker']['add'](_0x18cb54['element']);}),this['keystrokes']['listenTo'](this['element']));}get['modelDefaultValue'](){return this['_defaultValue'];}get['modelDefaultLabel'](){return this['_defaultLabel'];}['resetToDefault'](){this['prompt']='',this['modelId']=this['modelDefaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['modelDefaultLabel'],this['resetFormValidationStatus']();}['resetFormValidationStatus'](){this['promptInputView']['errorText']='';}['_isValid'](){this['resetFormValidationStatus']();for(const _0x46317b of this['_getFormValidators']()){const _0x5a1e0a=_0x46317b();if(_0x5a1e0a)return this['promptInputView']['errorText']=_0x5a1e0a,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x27f6ce(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x42c38a=new _0x3e6f5a(this['locale']),t=this['locale']['t'];return _0x42c38a['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x42c38a['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x42c38a;}['_createCancelButtonView'](){const _0x3c2682=new _0x3e6f5a(this['locale']),t=this['locale']['t'];return _0x3c2682['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x3c2682['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x502d55=>{_0x502d55['stopPropagation']();})}}),_0x3c2682['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x3c2682;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x334936=this['_check']['models'];if(this['resetToDefault'](),_0x334936?.['length'])for(const _0x20f459 of _0x334936){const _0x217348=new _0x533a62({'label':_0x20f459['name'],'withText':!0x0,'role':'menuitemradio','id':_0x20f459['id'],'model':_0x20f459});_0x217348['bind']('isOn')['to'](this,'modelId',_0x9f8e34=>_0x9f8e34===_0x20f459['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x217348,'labelView':new Hs(this['locale'],_0x20f459)});}}['_createModelSelectionDropdown'](){const _0x123e6f=_0x3ac330(this['locale']);return _0x123e6f['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x123e6f['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x123e6f,'execute',_0x4eb325=>{this['modelId']=_0x4eb325['source']['model']['id'],_0x123e6f['buttonView']['label']=_0x4eb325['source']['label'];}),_0x123e6f;}['_createActionsFooterView'](){const _0x3d7b6b=new _0x204e52(this['locale']);return _0x3d7b6b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x3d7b6b;}}class Hs extends _0x9b1784{constructor(_0x4f3a46,_0x353988){super();const _0x187da7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x187da7['to']('style'),'id':_0x187da7['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x187da7['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x353988['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x55bf94=_0x4b78;(function(_0x55f7bf,_0x1ef07c){const _0x2ad824=_0x4b78,_0x1ec508=_0x55f7bf();while(!![]){try{const _0x51f72a=-parseInt(_0x2ad824(0xb8))/0x1*(parseInt(_0x2ad824(0xb6))/0x2)+-parseInt(_0x2ad824(0xa4))/0x3*(-parseInt(_0x2ad824(0xa2))/0x4)+parseInt(_0x2ad824(0xa7))/0x5+-parseInt(_0x2ad824(0xb2))/0x6*(-parseInt(_0x2ad824(0xba))/0x7)+-parseInt(_0x2ad824(0xb5))/0x8*(parseInt(_0x2ad824(0xae))/0x9)+parseInt(_0x2ad824(0xac))/0xa*(-parseInt(_0x2ad824(0xb4))/0xb)+parseInt(_0x2ad824(0xbd))/0xc;if(_0x51f72a===_0x1ef07c)break;else _0x1ec508['push'](_0x1ec508['shift']());}catch(_0x517695){_0x1ec508['push'](_0x1ec508['shift']());}}}(_0xc605,0x434d7));import{ListItemView as _0x176c5e,ViewCollection as _0x429386}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCommandListItemView as _0x178f10}from'./aireviewmodereviewcommandlistitemview.js';function _0xc605(){const _0x5e88d8=['426221heofXl','entries','560GkpUEv','_checkViews','runReviewCheck','3346740HxPZhD','resetToDefault','ck-hidden','335164fSWvCo','add','9DuNMLP','setTemplate','delegate','912195dDahow','ck-ai-review-mode__check-list','locale','hasChecks','clear','135170dcuYGN','div','134829MQLpWg','length','resetAllParameterizedChecks','setChecks','2340JuLOne','isVisible','22kmnUmj','8zMoifa','2PYujPc','bindTemplate'];_0xc605=function(){return _0x5e88d8;};return _0xc605();}function _0x4b78(_0x2ffec7,_0x55b85e){const _0xc60593=_0xc605();return _0x4b78=function(_0x4b78a1,_0x2319d0){_0x4b78a1=_0x4b78a1-0xa1;let _0x4aeb46=_0xc60593[_0x4b78a1];return _0x4aeb46;},_0x4b78(_0x2ffec7,_0x55b85e);}import'../../../theme/aireviewmode/aireviewmode-check-list.css';export class AIReviewModeReviewCheckListView extends _0x176c5e{[_0x55bf94(0xbb)];constructor(_0x5d1997){const _0x1d6e57=_0x55bf94;super(_0x5d1997),this[_0x1d6e57(0xbb)]=new _0x429386();const _0x2eb2ab=this[_0x1d6e57(0xb7)];this[_0x1d6e57(0xa5)]({'tag':_0x1d6e57(0xad),'attributes':{'class':[_0x1d6e57(0xa8),_0x2eb2ab['if'](_0x1d6e57(0xb3),_0x1d6e57(0xa1),_0x52a93f=>!_0x52a93f)]},'children':this[_0x1d6e57(0xbb)]});}[_0x55bf94(0xb1)](_0x3e9e8a){const _0x2911c0=_0x55bf94;this[_0x2911c0(0xbb)][_0x2911c0(0xab)]();for(const [_0x2a3aab,_0x9286d3]of _0x3e9e8a[_0x2911c0(0xb9)]()){const _0x21ead=new _0x178f10(this[_0x2911c0(0xa9)],_0x9286d3,_0x2a3aab);_0x21ead[_0x2911c0(0xa6)](_0x2911c0(0xbc))['to'](this),this[_0x2911c0(0xbb)][_0x2911c0(0xa3)](_0x21ead);}}[_0x55bf94(0xaa)](){const _0xf284d3=_0x55bf94;return this[_0xf284d3(0xbb)][_0xf284d3(0xaf)]>0x0;}[_0x55bf94(0xb0)](){const _0x2aaca2=_0x55bf94;for(const _0x16b1f9 of this[_0x2aaca2(0xbb)])_0x16b1f9 instanceof _0x178f10&&_0x16b1f9[_0x2aaca2(0xbe)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x1ab307,View as _0x44489f,ViewCollection as _0x3cbb9c,ButtonView as _0x598330}from'ckeditor5/src/ui.js';import{IconStop as _0x5b347f,IconEye as _0x496f1d,IconEyeCrossedOut as _0x512cca}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x50bec9}from'./aireviewmodechecklistitemresultview.js';import{AISkeletonView as _0x41d3aa,SKELETON_DEFINITIONS as _0xde3cdf}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x4c8bb8}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x44def6}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x42463c}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x1ab307{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];constructor(_0x11c642){super(_0x11c642),this['_resultViews']=new _0x3cbb9c(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x4c8bb8(_0x11c642),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general');const _0x4a8f05=this['_createCombinedSkeletonLoader'](),_0x363bc8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x363bc8['if']('isVisible','ck-hidden',_0x515646=>!_0x515646)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x38acab=>_0x38acab)]},'children':this['_resultViews']},_0x4a8f05]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x181447){const _0x31cef2=new _0x50bec9(this['locale'],_0x181447['id']);_0x31cef2['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x31cef2),_0x31cef2['resultResponseView']['element']['innerHTML']=_0x181447['contentDiffed'];}['hideResult'](_0xaa3767){const _0x265579=this['_resultViews']['find'](_0x5aef7e=>_0x5aef7e['id']===_0xaa3767);_0x265579&&(_0x265579['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_removing'),_0x265579['element']?.['addEventListener']('animationend',()=>{this['_resultViews']['remove'](_0x265579),_0x265579['destroy']();},{'once':!0x0}));}['setTitle'](_0xcd4212,_0x58cd1e){this['headerTitle']=_0xcd4212,this['headerSubtitle']=_0x58cd1e||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x41d3aa(this['locale'],_0xde3cdf['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x18b340=new _0x44489f(this['locale']),_0x4e7d61=[];for(let _0x158cd7=0x0;_0x158cd7<0x10;_0x158cd7++){const _0x18f99f=this['_createSkeletonLoader']();_0x18f99f['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x4e7d61['push'](_0x18f99f);}return _0x18b340['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x90d9c9=>!_0x90d9c9)]},'children':_0x4e7d61}),_0x18b340;}['_createErrorView'](){const _0x1d6c51=new _0x44489f(this['locale']),_0x119ca8=new _0x598330(this['locale']),t=this['locale']['t'];return _0x1d6c51['delegate']('retryReview')['to'](this),_0x119ca8['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x119ca8['on']('execute',()=>{this['fire']('retryReview');}),_0x1d6c51['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x31cb36=>!_0x31cb36),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x236f31=>'chunk'===_0x236f31)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-chat-error','ck-ai-chat-error_full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-chat-error_warning',_0x571416=>'chunk'===_0x571416)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x30fb2c=>'general'!==_0x30fb2c)]},'children':[{'text':_0x44def6(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0xe5b840=>'chunk'!==_0xe5b840)]},'children':[{'text':_0x44def6(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x119ca8]}),_0x1d6c51;}['_createCancelButtonView'](){const _0x29f4d3=new _0x598330(this['locale']);return _0x29f4d3['set']({'label':_0x44def6(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ai-chat-controls-loader__cancel-button'],'icon':_0x5b347f}),_0x29f4d3['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x51cb10=>_0x51cb10)]}}),_0x29f4d3['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x29f4d3;}['_createToggleDiffButtonView'](){const _0x4822fd=new _0x598330(this['locale']);_0x4822fd['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x4822fd['bind']('isEnabled')['to'](this,'isError',_0x22fd30=>!_0x22fd30),_0x4822fd['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4bf77c=>!_0x4bf77c)]}});const _0x488f3b=_0x44def6(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x5e6101=_0x44def6(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x4822fd['bind']('isOn')['to'](this,'isToggleDiffOn',_0x4403e5=>_0x4403e5),_0x4822fd['bind']('icon')['to'](this,'isToggleDiffOn',_0x1c6b64=>_0x1c6b64?_0x496f1d:_0x512cca),_0x4822fd['bind']('label')['to'](this,'isToggleDiffOn',_0x330fa2=>_0x330fa2?_0x488f3b:_0x5e6101),_0x4822fd['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x4822fd;}['_createAcceptAllButtonView'](){const _0x4670f4=new _0x598330(this['locale']);return _0x4670f4['set']({'label':_0x44def6(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x4670f4['bind']('isEnabled')['to'](this,'isError',_0x2069d4=>!_0x2069d4),_0x4670f4['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x646297=>!_0x646297)]}}),_0x4670f4['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x4670f4;}['_createExitReviewButtonView'](){const _0x42e83d=new _0x598330(this['locale']);return _0x42e83d['set']({'label':_0x44def6(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x42e83d['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4e9563=>!_0x4e9563)]}}),_0x42e83d['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x42e83d;}['_createResultHeaderView'](){const _0x48574e=new _0x44489f(this['locale']),_0x59c9ff=this['_createTitleView']();return _0x48574e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header']},'children':[_0x59c9ff,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView']]}]}),_0x48574e;}['_createTitleView'](){const _0x134918=new _0x44489f(this['locale']),_0x31cdc5=new _0x42463c();return _0x31cdc5['bind']('isVisible')['to'](this,'isResultReady',_0x526c43=>!_0x526c43),_0x134918['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x31cdc5,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]}]}),_0x134918;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x1188e3,IconView as _0x505ef9,View as _0x25f0e7,ViewCollection as _0x247c09,ButtonView as _0x185cd5,clickOutsideHandler as _0x3ef285}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x3e3c33}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x2a5f41}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as _0x6cd670}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x1188e3{['_formItemsCollection']=new _0x247c09();['_customCheckView']=null;constructor(_0x58c8b1,_0x1be40b,_0x24ca3f){super(_0x58c8b1),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x1be40b['isParameterized']);const _0x589794=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai-review-mode__check-list-item_selected',_0x46ddfb=>_0x46ddfb),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x24990b=>_0x24990b)],'style':{'--ck-ai-check-list-item-index':_0x24ca3f}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-list-item-title-text']},'children':[{'text':_0x1be40b['title']}]},_0x589794]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x1be40b['description']}]}]}]},..._0x1be40b['isParameterized']?[this['_createParameterizedView'](_0x1be40b)]:[],...'custom'===_0x1be40b['id']?[this['_createCustomView'](_0x1be40b)]:[]]}),this['on']('click',()=>{_0x1be40b['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x1be40b['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x3ef285({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x3c4819=>{_0x3c4819['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x4fef16=new _0x505ef9();return _0x4fef16['content']=_0x3e3c33,_0x4fef16['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x4fef16;}['_createParameterizedView'](_0x375674){const _0x1d3f38=new _0x25f0e7(),_0x211627=this['_createFormView'](_0x375674);return _0x1d3f38['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x2d2e4c=>!_0x2d2e4c)]},'children':[_0x211627]}),_0x1d3f38;}['_createFormView'](_0x3b2414){const _0x13723e=new _0x25f0e7(),_0x3d7a95=Array['isArray'](_0x3b2414['options'])?_0x3b2414['options']:[],_0x518ec8=new _0x185cd5(this['locale']),t=this['locale']['t'];_0x518ec8['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x518ec8['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x51dcf3=>{_0x51dcf3['stopPropagation']();})}}),_0x518ec8['on']('execute',()=>{const _0x1fba6a=[],_0x3127ed={};this['_formItemsCollection']['forEach'](_0x1fdad9=>{_0x1fba6a['push'](_0x1fdad9['value']),_0x3b2414['useArgs']&&_0x3b2414['options']&&(_0x3127ed[_0x1fdad9['argsKey']]=_0x1fdad9['value']);}),this['fire']('runReviewCheck',{'id':_0x3b2414['id'],'params':_0x1fba6a['length']?_0x1fba6a:void 0x0,'args':Object['keys'](_0x3127ed)['length']?_0x3127ed:void 0x0});});const _0x5c2b80=_0x3d7a95['length'];return _0x3d7a95['forEach']((_0x10ded5,_0x58104a)=>{const _0x462cf7=_0x58104a===_0x5c2b80-0x1;this['_formItemsCollection']['add'](new _0x2a5f41(this['locale'],_0x10ded5,_0x462cf7?_0x518ec8:null));}),_0x13723e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x13723e;}['_createCustomView'](_0x510bfe){return this['_customCheckView']=new _0x6cd670(this['locale'],_0x510bfe),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized','ck-ai-review-mode__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x354099=>!_0x354099)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x4124b9,_0xe433fc,_0x1518d0)=>{_0x1518d0||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f2bd7=_0x27f6;(function(_0x55a406,_0x3a3675){const _0x53d440=_0x27f6,_0x175d74=_0x55a406();while(!![]){try{const _0x3ff07e=-parseInt(_0x53d440(0x1e7))/0x1*(parseInt(_0x53d440(0x1d4))/0x2)+parseInt(_0x53d440(0x1db))/0x3+parseInt(_0x53d440(0x1e5))/0x4*(parseInt(_0x53d440(0x1f3))/0x5)+parseInt(_0x53d440(0x1eb))/0x6+-parseInt(_0x53d440(0x1f5))/0x7*(-parseInt(_0x53d440(0x1d2))/0x8)+parseInt(_0x53d440(0x1e2))/0x9*(-parseInt(_0x53d440(0x1d1))/0xa)+-parseInt(_0x53d440(0x1dd))/0xb;if(_0x3ff07e===_0x3a3675)break;else _0x175d74['push'](_0x175d74['shift']());}catch(_0x48fabe){_0x175d74['push'](_0x175d74['shift']());}}}(_0x4afa,0x7ec60));import{ListItemView as _0x50315e,View as _0x111d43,ButtonView as _0x30a56a}from'ckeditor5/src/ui.js';function _0x27f6(_0x18eac8,_0x2c8e2c){const _0x4afa2e=_0x4afa();return _0x27f6=function(_0x27f679,_0x55be4f){_0x27f679=_0x27f679-0x1d1;let _0x11ad18=_0x4afa2e[_0x27f679];return _0x11ad18;},_0x27f6(_0x18eac8,_0x2c8e2c);}function _0x4afa(){const _0x3b7a72=['span','bindTemplate','setTemplate','viewType','isVisible','_createResultHeaderView','ck-ai-review-mode__review-completed','24995JIuCAt','resultsHeader','581WvslTO','ck-ai-review-mode__review-completed-content','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','div','10yjktQa','94984LizHzh','ck-ai-review-mode__review-completed-header','16SaTWNs','set','ck-hidden','_finishReviewButtonView','ck-ai-review-mode__review-completed-content-text','AI_REVIEW_MODE_COMPLETED_TEXT','ck-ai-review-mode__review-completed-header-title','2780073JvUYlU','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','3578333ZojZbH','execute','locale','fire','ck-ai-review-mode__review-completed-header-buttons','8235477EKmggS','completed','_createFinishReviewButtonView','568UteDOy','finishReview','107854KShFCq','ck-ai-button-primary','AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','ck-ai-review-mode__review-completed-content-icon','2664TwpluD'];_0x4afa=function(){return _0x3b7a72;};return _0x4afa();}import{getTranslation as _0xb12671}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeReviewCompletedView extends _0x50315e{[_0x1f2bd7(0x1f4)];[_0x1f2bd7(0x1d7)];constructor(_0x29baad){const _0x5a9281=_0x1f2bd7;super(_0x29baad),this[_0x5a9281(0x1d7)]=this[_0x5a9281(0x1e4)](),this[_0x5a9281(0x1f4)]=this[_0x5a9281(0x1f1)](),this[_0x5a9281(0x1d5)](_0x5a9281(0x1ef),_0x5a9281(0x1e3));const _0x324074=this[_0x5a9281(0x1ed)];this[_0x5a9281(0x1ee)]({'tag':_0x5a9281(0x1f8),'attributes':{'class':[_0x5a9281(0x1f2),_0x324074['if'](_0x5a9281(0x1f0),_0x5a9281(0x1d6),_0x1eb5ec=>!_0x1eb5ec)]},'children':[this[_0x5a9281(0x1f4)],{'tag':_0x5a9281(0x1f8),'attributes':{'class':[_0x5a9281(0x1f6)]},'children':[{'tag':_0x5a9281(0x1ec),'attributes':{'class':[_0x5a9281(0x1ea)]},'children':[{'text':_0x324074['to'](_0x5a9281(0x1ef),_0x190e00=>_0x5a9281(0x1e3)===_0x190e00?'🎉':'👍')}]},{'tag':'p','attributes':{'class':[_0x5a9281(0x1d8)]},'children':[{'text':_0x324074['to'](_0x5a9281(0x1ef),_0x1c5efb=>_0xb12671(_0x29baad,_0x5a9281(0x1e3)===_0x1c5efb?_0x5a9281(0x1d9):_0x5a9281(0x1e9)))}]}]}]});}[_0x1f2bd7(0x1e4)](){const _0x411a80=_0x1f2bd7,_0x3ec664=new _0x30a56a(this[_0x411a80(0x1df)]);return _0x3ec664[_0x411a80(0x1d5)]({'label':_0xb12671(this[_0x411a80(0x1df)],_0x411a80(0x1f7)),'withText':!0x0,'class':_0x411a80(0x1e8)}),_0x3ec664['on'](_0x411a80(0x1de),()=>{const _0x29c8f5=_0x411a80;this[_0x29c8f5(0x1e0)](_0x29c8f5(0x1e6));}),_0x3ec664;}[_0x1f2bd7(0x1f1)](){const _0x1c722b=_0x1f2bd7,_0x5bbae1=new _0x111d43(this[_0x1c722b(0x1df)]);return _0x5bbae1[_0x1c722b(0x1ee)]({'tag':_0x1c722b(0x1f8),'attributes':{'class':[_0x1c722b(0x1d3)]},'children':[{'tag':_0x1c722b(0x1ec),'attributes':{'class':[_0x1c722b(0x1da)]},'children':[{'text':_0xb12671(this[_0x1c722b(0x1df)],_0x1c722b(0x1dc))}]},{'tag':_0x1c722b(0x1f8),'attributes':{'class':[_0x1c722b(0x1e1)]},'children':[this[_0x1c722b(0x1d7)]]}]}),_0x5bbae1;}}
|