@ckeditor/ckeditor5-ai 47.7.2-alpha.0 → 47.7.2
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/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/awstextadapter.js +1 -1
- package/src/aiassistant/aiassistantediting.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/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/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/ui/aichatballoonview.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/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/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.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/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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.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/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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/aiquickactionscommand.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/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x560f1e=_0x5635;(function(_0x192ded,_0x5b68d5){const _0x12434c=_0x5635,_0x588bdf=_0x192ded();while(!![]){try{const _0x1316a1=-parseInt(_0x12434c(0x1c0))/0x1+parseInt(_0x12434c(0x1ec))/0x2*(-parseInt(_0x12434c(0x1cf))/0x3)+parseInt(_0x12434c(0x1c2))/0x4*(-parseInt(_0x12434c(0x19d))/0x5)+parseInt(_0x12434c(0x1df))/0x6*(parseInt(_0x12434c(0x1cc))/0x7)+parseInt(_0x12434c(0x1d4))/0x8+-parseInt(_0x12434c(0x1f2))/0x9*(-parseInt(_0x12434c(0x1be))/0xa)+-parseInt(_0x12434c(0x1d2))/0xb;if(_0x1316a1===_0x5b68d5)break;else _0x588bdf['push'](_0x588bdf['shift']());}catch(_0x4f0290){_0x588bdf['push'](_0x588bdf['shift']());}}}(_0x4cb8,0xce566));import{ContextPlugin as _0x2c6833}from'ckeditor5/src/core.js';import{BodyCollection as _0x1c210c}from'ckeditor5/src/ui.js';import{getTranslation as _0x9f8571}from'../aicore/utils/common-translations.js';import{AITabs as _0x50cb57}from'../aitabs/aitabs.js';import{AIReviewCoreBalloonSuggestionItemView as _0xfd919}from'./ui/aireviewcoreballoonsuggestionview.js';function _0x5635(_0x1e9beb,_0x3e7e50){const _0x4cb8f5=_0x4cb8();return _0x5635=function(_0x56357a,_0x495fbb){_0x56357a=_0x56357a-0x19c;let _0x303c07=_0x4cb8f5[_0x56357a];return _0x303c07;},_0x5635(_0x1e9beb,_0x3e7e50);}export const AI_REVIEW_MODE_UI_EVENT_NAMES=[_0x560f1e(0x1d8),_0x560f1e(0x1bd),_0x560f1e(0x1c5),_0x560f1e(0x1ab),_0x560f1e(0x1dc),_0x560f1e(0x19f),_0x560f1e(0x1ac),_0x560f1e(0x1b0),_0x560f1e(0x1ed),_0x560f1e(0x1a1),_0x560f1e(0x1d1),_0x560f1e(0x1e4),_0x560f1e(0x1e5)];function _0x4cb8(){const _0x208c6b=['showNoChangesView','9382362QChogG','detachFromDom','showGeneralReviewCoreErrorView','requires','hideResult','finishReview','retryReview','plugins','showResult','isOfficialPlugin','hideChangeBalloon','locale','reviewCheckListView','286xvIzvU','acceptChange','showCheckRunResult','rejected','get','showCheckRunResults','200331fCpmoB','context','reviewCheckResultsView','showReviewCheckListView','resetActiveStateInResults','5TLFUwc','hideBalloon','leaveReviewCoreResultList','showReviewCheckList','dismissChange','_mainView','showBalloon','setCheckResultTitle','forEach','showReviewCheckResultsView','hideDiffInBalloon','showGeneralResultsErrorView','delegate','config','toggleDiff','activateChange','setActiveStateInResults','showDiffInBalloon','attachToDom','deactivateChange','getChangeElement','status','setItemAsActive','addCheckRunResult','hideActionsWhenResultIsReady','hasChecks','setAvailableChecks','ai.models.showModelSelector','error-chunk','setItemAsInactive','AI_REVIEW_INITIALIZATION_ERROR_MESSAGE','error-general','runReviewCheck','330qoVmBh','_balloonSuggestionView','233985nQFAwp','registerTab','5019628KJvVao','accepted','showReviewCompletedView','abortReviewStream','showChunkErrorView','find','init','showChangeBalloon','isPremiumPlugin','fire','7IulIIp','element','outdated','12573GJhozs','setTitle','learnMore','5850383sjcNeO','createMainView','9335536lyfaeS','updateChangeState','getResults','setChecks','getReviewCheckList','AITabs','_bodyCollection','showActionsWhenResultIsReady','acceptAllChanges','destroy'];_0x4cb8=function(){return _0x208c6b;};return _0x4cb8();}import'../../theme/common/aiheader.css';import'../../theme/common/ainotification.css';import'../../theme/common/aibutton.css';import'../../theme/common/aitrackchanges.css';import'../../theme/aireviewcore/aireviewcore.css';export class AIReviewCoreUI extends _0x2c6833{[_0x560f1e(0x1a2)];[_0x560f1e(0x1bf)];[_0x560f1e(0x1da)];static get[_0x560f1e(0x1e2)](){return[_0x50cb57];}static get[_0x560f1e(0x1e8)](){return!0x0;}static get[_0x560f1e(0x1ca)](){return!0x0;}constructor(_0x33f5b3){const _0x440952=_0x560f1e;super(_0x33f5b3),this[_0x440952(0x1da)]=new _0x1c210c(this[_0x440952(0x1f3)][_0x440952(0x1ea)]),this[_0x440952(0x1da)][_0x440952(0x1af)](),this[_0x440952(0x1a2)]=this[_0x440952(0x1d3)](),this[_0x440952(0x1a2)][_0x440952(0x1a9)](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this[_0x440952(0x1bf)]=new _0xfd919(this[_0x440952(0x1f3)][_0x440952(0x1ea)],this[_0x440952(0x1da)]),this[_0x440952(0x1bf)][_0x440952(0x1a9)](_0x440952(0x1ed),_0x440952(0x1a1),_0x440952(0x1b0))['to'](this);}[_0x560f1e(0x1c8)](){const _0x56fd27=_0x560f1e,_0x4ae62e=this[_0x56fd27(0x1f3)][_0x56fd27(0x1e6)][_0x56fd27(0x1f0)](_0x56fd27(0x1d9));this[_0x56fd27(0x1c1)](_0x4ae62e);}[_0x560f1e(0x1dd)](){const _0x22f87d=_0x560f1e;this[_0x22f87d(0x1da)][_0x22f87d(0x1e0)](),super[_0x22f87d(0x1dd)]();}[_0x560f1e(0x1b7)](_0x5735ce){const _0x500211=_0x560f1e;if(!this[_0x500211(0x1a2)][_0x500211(0x1eb)][_0x500211(0x1b6)]()){const _0x7e346c=!this[_0x500211(0x1f3)][_0x500211(0x1aa)][_0x500211(0x1f0)](_0x500211(0x1b8));this[_0x500211(0x1a2)][_0x500211(0x1eb)][_0x500211(0x1d7)](_0x5735ce,_0x7e346c);}this[_0x500211(0x1a2)][_0x500211(0x1f5)]();}[_0x560f1e(0x1a0)](){const _0x31131b=_0x560f1e;this[_0x31131b(0x1cb)](_0x31131b(0x1d8));}[_0x560f1e(0x1f1)](_0x44f68e){const _0x4ce40a=_0x560f1e;_0x44f68e&&(_0x4ce40a(0x1bc)!==_0x44f68e[_0x4ce40a(0x1b2)]?_0x4ce40a(0x1b9)!==_0x44f68e[_0x4ce40a(0x1b2)]?this[_0x4ce40a(0x1a2)][_0x4ce40a(0x1a6)]():this[_0x4ce40a(0x1c6)]():this[_0x4ce40a(0x1a8)]());}[_0x560f1e(0x1ee)](_0x1dba4b){const _0x73713c=_0x560f1e;this[_0x73713c(0x1a2)][_0x73713c(0x1b4)](_0x1dba4b);}[_0x560f1e(0x1a8)](){const _0x4e778b=_0x560f1e;this[_0x4e778b(0x1a2)][_0x4e778b(0x1a8)]();}[_0x560f1e(0x1e1)](_0x17e4d0){const _0x164fe8=_0x560f1e;this[_0x164fe8(0x1a2)][_0x164fe8(0x1e1)](_0x17e4d0??_0x9f8571(this[_0x164fe8(0x1f3)][_0x164fe8(0x1ea)],_0x164fe8(0x1bb)));}[_0x560f1e(0x1c6)](){const _0x2302d5=_0x560f1e;this[_0x2302d5(0x1a2)][_0x2302d5(0x1c6)]();}[_0x560f1e(0x1a4)](_0x17776a,_0x479b85){const _0x556169=_0x560f1e;this[_0x556169(0x1a2)][_0x556169(0x1f4)][_0x556169(0x1d0)](_0x17776a,_0x479b85);}[_0x560f1e(0x1ad)](_0x330c85){const _0x2660cc=_0x560f1e;this[_0x2660cc(0x1a2)][_0x2660cc(0x1f4)][_0x2660cc(0x1d6)]()[_0x2660cc(0x1a5)](_0x374137=>{const _0x4733d4=_0x2660cc;_0x374137['id']===_0x330c85&&_0x374137[_0x4733d4(0x1b3)]();});}[_0x560f1e(0x19c)](){const _0x1bde63=_0x560f1e;this[_0x1bde63(0x1a2)][_0x1bde63(0x1f4)][_0x1bde63(0x1d6)]()[_0x1bde63(0x1a5)](_0x4a0c53=>_0x4a0c53[_0x1bde63(0x1ba)]());}[_0x560f1e(0x1d5)](_0x5a62ca,_0x3925c2){const _0x5e52f6=_0x560f1e;_0x5e52f6(0x1c3)===_0x3925c2||_0x5e52f6(0x1ef)===_0x3925c2||_0x5e52f6(0x1ce)===_0x3925c2?this[_0x5e52f6(0x1a2)][_0x5e52f6(0x1f4)][_0x5e52f6(0x1e3)](_0x5a62ca,_0x3925c2):this[_0x5e52f6(0x1a2)][_0x5e52f6(0x1f4)][_0x5e52f6(0x1e7)](_0x5a62ca,_0x3925c2);}[_0x560f1e(0x1c4)](){const _0x4873b3=_0x560f1e;this[_0x4873b3(0x1a2)][_0x4873b3(0x1c4)]();}[_0x560f1e(0x1db)](){const _0x574dd0=_0x560f1e;this[_0x574dd0(0x1a2)][_0x574dd0(0x1db)]();}[_0x560f1e(0x1de)](){const _0x26a418=_0x560f1e;this[_0x26a418(0x1a2)][_0x26a418(0x1de)]();}[_0x560f1e(0x1b5)](){const _0x38f8d8=_0x560f1e;this[_0x38f8d8(0x1a2)][_0x38f8d8(0x1b5)]();}[_0x560f1e(0x1c9)](_0xd8551c,_0x531388,_0x4840bf,_0x3306e4,_0x3db4a4,_0x4cd76e){const _0x2ad687=_0x560f1e;this[_0x2ad687(0x1bf)][_0x2ad687(0x1a3)](_0xd8551c,_0x531388,_0x4840bf,_0x3306e4,_0x3db4a4,_0x4cd76e);}[_0x560f1e(0x1e9)](){const _0x33e4d1=_0x560f1e;this[_0x33e4d1(0x1bf)][_0x33e4d1(0x19e)]();}[_0x560f1e(0x1a7)](){const _0x6db74f=_0x560f1e;this[_0x6db74f(0x1bf)][_0x6db74f(0x1a7)]();}[_0x560f1e(0x1ae)](){const _0x2d5f99=_0x560f1e;this[_0x2d5f99(0x1bf)][_0x2d5f99(0x1ae)]();}[_0x560f1e(0x1b1)](_0x2197ce){const _0x115b72=_0x560f1e,_0x1545f0=this[_0x115b72(0x1a2)][_0x115b72(0x1f4)][_0x115b72(0x1d6)]()[_0x115b72(0x1c7)](_0x533b9a=>_0x533b9a['id']===_0x2197ce);return _0x1545f0?_0x1545f0[_0x115b72(0x1cd)]:null;}[_0x560f1e(0x1b0)](){const _0x1d559c=_0x560f1e;this[_0x1d559c(0x1bf)][_0x1d559c(0x1b0)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26e8f0=_0x159b;function _0x1467(){const _0x5305cc=['345xHOByx','dismissChange','balloon','left','contentDiffed','ck-content','showDiffInBalloon','ck-ai_review-balloon-panel-suggestion','hideDiffInBalloon','changeId','clientY','arrow_','showBalloon','hover','extendTemplate','1135536SrLKJk','set','hide','right','forEach','push','updateContent','div','documentElement','click','innerHTML','isVisible','setTemplate','2247723smvGGv','element','resultItemView','16CayLNy','render','_pinnedRectIndex','_pinnedTargetElement','_setupClickOutsideHandler','ck-ai_review-balloon-panel-suggestion_diff-active','getIntersection','117103jkGSoR','clientX','locale','length','resultResponseView','position','82872pDubWo','_pinnedTargetChangeId','deactivateChange','unpin','delegate','width','from','show','bindTemplate','ck-reset','bottom','_getBestRectPositionOnClick','_isPinnedRectVisible','ck-ai_review__suggestion-text','acceptChange','arrow_se','fire','hideBalloon','getClientRects','reverse','content','pin','_getBestRectPositionOnHover','_createContentView','_getPointedRectIndexFromEvent','showDiff','2510yLqDKE','1963165rFrJfA','replace','23847zdMzFd','isDiffActive','top','getBoundingClientRect','add'];_0x1467=function(){return _0x5305cc;};return _0x1467();}(function(_0x297cc5,_0x3bbb40){const _0xc05963=_0x159b,_0x14f7f2=_0x297cc5();while(!![]){try{const _0x4223d7=parseInt(_0xc05963(0xf4))/0x1+-parseInt(_0xc05963(0xf1))/0x2*(-parseInt(_0xc05963(0xf9))/0x3)+parseInt(_0xc05963(0x108))/0x4+-parseInt(_0xc05963(0xf2))/0x5+-parseInt(_0xc05963(0xd7))/0x6+-parseInt(_0xc05963(0xd1))/0x7*(parseInt(_0xc05963(0xca))/0x8)+parseInt(_0xc05963(0xc7))/0x9;if(_0x4223d7===_0x3bbb40)break;else _0x14f7f2['push'](_0x14f7f2['shift']());}catch(_0x24ecd7){_0x14f7f2['push'](_0x14f7f2['shift']());}}}(_0x1467,0x3ff0c));function _0x159b(_0x4e159a,_0x3e66b0){const _0x14679c=_0x1467();return _0x159b=function(_0x159b6b,_0x4b4b7e){_0x159b6b=_0x159b6b-0xc4;let _0x558119=_0x14679c[_0x159b6b];return _0x558119;},_0x159b(_0x4e159a,_0x3e66b0);}import{Rect as _0x197c75,getConstrainedViewportRect as _0x5ca252}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x3e1a81,View as _0x5d8975,clickOutsideHandler as _0x21d246}from'ckeditor5/src/ui.js';import{AIReviewCoreReviewCheckListItemResultsView as _0x40482d}from'./aireviewcorechecklistitemresultview.js';import'../../../theme/aireviewcore/aireviewcore-balloon-panel-suggestion.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreBalloonSuggestionItemView extends _0x3e1a81{[_0x26e8f0(0xc9)];[_0x26e8f0(0xcc)]=void 0x0;[_0x26e8f0(0xcd)]=void 0x0;[_0x26e8f0(0xd8)]=void 0x0;constructor(_0x5c3e9f,_0x8530cc){const _0x292487=_0x26e8f0;super(_0x5c3e9f),this[_0x292487(0x109)]({'isVisible':!0x1,'position':_0x292487(0xe6),'class':null,'top':0x0,'left':0x0}),this[_0x292487(0x107)]({'tag':_0x292487(0x10f),'attributes':{'class':[_0x292487(0xe0)],'tabindex':'-1'}}),this[_0x292487(0x109)](_0x292487(0xf5),!0x1),this[_0x292487(0xeb)][_0x292487(0xf8)](this[_0x292487(0xee)]()),_0x8530cc[_0x292487(0xf8)](this);}[_0x26e8f0(0xcb)](){const _0x5214f8=_0x26e8f0;super[_0x5214f8(0xcb)](),this[_0x5214f8(0xce)]();}[_0x26e8f0(0x10e)](_0x231975){const _0x1580f1=_0x26e8f0;this[_0x1580f1(0xc9)][_0x1580f1(0x102)]=_0x231975['id'],this[_0x1580f1(0xc9)][_0x1580f1(0xd5)][_0x1580f1(0xc8)][_0x1580f1(0xc4)]=_0x231975[_0x1580f1(0xfd)];}[_0x26e8f0(0x105)](_0x34dd49,_0x57eb62,_0x4ca217,_0x257ad7,_0x130e63,_0xbdbe6a){const _0x564377=_0x26e8f0,_0x2d72ac=_0x57eb62();if(!_0x2d72ac)return;this[_0x564377(0x10e)](_0x34dd49),this[_0x564377(0xde)]();const _0x4b8539=Array[_0x564377(0xdd)](_0x2d72ac[_0x564377(0xe9)]())[_0x564377(0xea)](),_0x5e556d=this[_0x564377(0xef)](_0x4ca217,_0x4b8539),_0x154396=_0x4b8539[_0x5e556d??0x0];_0x564377(0x111)===_0x257ad7?(this[_0x564377(0xf5)]=!0x0,this[_0x564377(0xec)]({'target':()=>this[_0x564377(0xe2)](_0x57eb62(),_0x5e556d,_0x34dd49['id'],_0x130e63,_0xbdbe6a)||_0x154396})):_0x564377(0x106)===_0x257ad7&&(this[_0x564377(0xf5)]=!0x1,this[_0x564377(0xec)]({'target':()=>this[_0x564377(0xed)](_0x57eb62(),_0x5e556d,_0x34dd49['id'])||_0x154396}));}[_0x26e8f0(0xe8)](){const _0x273e5c=_0x26e8f0;this[_0x273e5c(0x10a)](),this[_0x273e5c(0xda)](),this[_0x273e5c(0xcc)]=void 0x0,this[_0x273e5c(0xcd)]=void 0x0,this[_0x273e5c(0xd8)]=void 0x0;}[_0x26e8f0(0x101)](){const _0x46827d=_0x26e8f0;this[_0x46827d(0xc9)][_0x46827d(0xf0)]=!0x1;}[_0x26e8f0(0xff)](){const _0x579080=_0x26e8f0;this[_0x579080(0xc9)][_0x579080(0xf0)]=!0x0;}[_0x26e8f0(0xd9)](){const _0x3fa9d7=_0x26e8f0;this[_0x3fa9d7(0xe7)](_0x3fa9d7(0xd9),{'origin':_0x3fa9d7(0xfb)});}[_0x26e8f0(0xce)](){const _0x4ff4d5=_0x26e8f0;_0x21d246({'emitter':this,'activator':()=>this[_0x4ff4d5(0xc5)],'contextElements':()=>{const _0x5722d2=_0x4ff4d5,_0x19c6f8=[this[_0x5722d2(0xc8)]];return this[_0x5722d2(0xcd)]&&_0x19c6f8[_0x5722d2(0x10d)](this[_0x5722d2(0xcd)]),_0x19c6f8;},'callback':()=>{const _0x188f18=_0x4ff4d5;this[_0x188f18(0x10a)](),this[_0x188f18(0xda)](),this[_0x188f18(0xd9)](),this[_0x188f18(0xcd)]=void 0x0,this[_0x188f18(0xcc)]=void 0x0,this[_0x188f18(0xd8)]=void 0x0;}});}[_0x26e8f0(0xee)](){const _0x13f62b=_0x26e8f0,_0x4552a4=new _0x5d8975();return this[_0x13f62b(0xc9)]=new _0x40482d(this[_0x13f62b(0xd3)],''),this[_0x13f62b(0xc9)][_0x13f62b(0xd5)][_0x13f62b(0x107)]({'attributes':{'class':[_0x13f62b(0xfe)]}}),this[_0x13f62b(0xc9)][_0x13f62b(0xdb)](_0x13f62b(0xe5),_0x13f62b(0xfa))['to'](this),_0x4552a4[_0x13f62b(0xc6)]({'tag':_0x13f62b(0x10f),'attributes':{'class':[_0x13f62b(0xe0),_0x13f62b(0x100),this[_0x13f62b(0xdf)]['if'](_0x13f62b(0xf5),_0x13f62b(0xcf))]},'children':[{'tag':'p','attributes':{'class':[_0x13f62b(0xe4)]},'children':[this[_0x13f62b(0xc9)]]}]}),_0x4552a4;}[_0x26e8f0(0xe2)](_0x239d15,_0x4e6963,_0x2a04e7,_0x196456,_0x8be9e2){const _0x569218=_0x26e8f0;if(!_0x239d15)return null;const _0x419652=this[_0x569218(0xd6)][_0x569218(0xf3)](_0x569218(0x104),''),_0x7da030=Array[_0x569218(0xdd)](_0x239d15[_0x569218(0xe9)]());let _0x461fa7,_0x43f2d2=_0x7da030[_0x569218(0xea)]();return void 0x0!==_0x4e6963&&this[_0x569218(0xe3)](_0x43f2d2[_0x4e6963],_0x196456,_0x8be9e2)?(_0x461fa7=_0x43f2d2[_0x4e6963],this[_0x569218(0xcc)]=_0x4e6963):this[_0x569218(0xe3)](_0x43f2d2[0x0],_0x196456,_0x8be9e2)&&void 0x0===_0x4e6963?_0x461fa7=_0x43f2d2[0x0]:(_0x43f2d2='s'==_0x419652[0x0]?[..._0x7da030][_0x569218(0xea)]():_0x7da030,_0x43f2d2[_0x569218(0x10c)](_0x2f417e=>{const _0xc7f1d3=_0x569218;this[_0xc7f1d3(0xe3)](_0x2f417e,_0x196456,_0x8be9e2)&&(_0x461fa7=_0x2f417e);})),this[_0x569218(0xd8)]=_0x2a04e7,this[_0x569218(0xcd)]=_0x239d15,_0x461fa7||_0x239d15[_0x569218(0xf7)]();}[_0x26e8f0(0xed)](_0x429b33,_0x3fac7d,_0x10cafe){const _0x5d0b9e=_0x26e8f0;if(!_0x429b33)return null;const _0xa73bf1=Array[_0x5d0b9e(0xdd)](_0x429b33[_0x5d0b9e(0xe9)]())[_0x5d0b9e(0xea)]();if(void 0x0===this[_0x5d0b9e(0xcc)]&&void 0x0!==_0x3fac7d&&this[_0x5d0b9e(0xd8)]!==_0x10cafe)return this[_0x5d0b9e(0xcc)]=_0x3fac7d,this[_0x5d0b9e(0xcd)]=_0x429b33,this[_0x5d0b9e(0xd8)]=_0x10cafe,_0xa73bf1[_0x3fac7d];if(void 0x0!==this[_0x5d0b9e(0xcc)]&&this[_0x5d0b9e(0xd8)]===_0x10cafe){if(_0x429b33!==this[_0x5d0b9e(0xcd)])return Array[_0x5d0b9e(0xdd)](this[_0x5d0b9e(0xcd)][_0x5d0b9e(0xe9)]())[_0x5d0b9e(0xea)]()[this[_0x5d0b9e(0xcc)]];return _0xa73bf1[this[_0x5d0b9e(0xcc)]];}return void 0x0!==_0x3fac7d&&this[_0x5d0b9e(0xd8)]!==_0x10cafe?(this[_0x5d0b9e(0xcc)]=_0x3fac7d,this[_0x5d0b9e(0xcd)]=_0x429b33,this[_0x5d0b9e(0xd8)]=_0x10cafe,_0xa73bf1[_0x3fac7d]):_0x429b33[_0x5d0b9e(0xf7)]();}[_0x26e8f0(0xef)](_0x3eac88,_0x4b4b38){const _0x33a75d=_0x26e8f0;if(_0x3eac88)for(let _0x51388a=0x0;_0x51388a<_0x4b4b38[_0x33a75d(0xd4)];_0x51388a++){const _0x514da9=_0x4b4b38[_0x51388a];if(_0x3eac88[_0x33a75d(0xd2)]>=_0x514da9[_0x33a75d(0xfc)]-0x3&&_0x3eac88[_0x33a75d(0xd2)]<=_0x514da9[_0x33a75d(0x10b)]+0x3&&_0x3eac88[_0x33a75d(0x103)]>=_0x514da9[_0x33a75d(0xf6)]-0x3&&_0x3eac88[_0x33a75d(0x103)]<=_0x514da9[_0x33a75d(0xe1)]+0x3)return _0x51388a;}}[_0x26e8f0(0xe3)](_0x3f9fba,_0x5a787b,_0x38b760){const _0x13331e=_0x26e8f0,_0x200a06=new _0x197c75(_0x3f9fba),_0x495d8a=_0x5a787b||document[_0x13331e(0x110)],_0x373680=_0x200a06[_0x13331e(0xd0)](_0x5ca252(_0x38b760)),_0x4ed435=new _0x197c75(_0x495d8a)[_0x13331e(0xd0)](_0x200a06);return!!(_0x373680&&_0x4ed435&&_0x200a06[_0x13331e(0xdc)]>0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x44f2(){const _0x2a8ef8=['414158CfIxIz','locale','AI_REVIEW_MODE_CHECK_STATUS_OUTDATED','status','mouseover','resultResponseView','set','ck-ai-button-secondary','isEnabled','ck-ai-button-tertiary','ck-ai_review__check-run-result-accept-button','ck-reset_all-excluded','acceptChange','bind','preventDefault','div','AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED','disabled','4018944MugBoS','ck-ai_review__check-run-result-footer','hover','dismissButtonView','ck-hidden','AI_REVIEW_MODE_CHECK_STATUS_REJECTED','deactivateChange','pending','isOn','mouseout','ck-ai_review__check-run-result','AI_REVIEW_MODE_LEARN_MORE','change:status','35347383fZjvyD','ck-ai_review__check-run-result-status-button','7Yyxmok','_createAcceptButtonView','ck-ai_review__check-run-result-response','ck-content','outdated','setItemAsInactive','setItemAsActive','AI_REVIEW_MODE_ACCEPT_CHANGE','rejected','target','_createDismissButtonView','click','panel','dismissChange','1789592xdjbxd','label','execute','accepted','ck-ai_review__check-run-result-dismiss-button','tagName','activateChange','outdatedButtonView','icon','ck-ai-button-tertiary\x20ck-ai_review__check-run-result-info-button\x20ck-hidden','ck-ai_review__check-run-result_active','changeId','962392eqQfkl','menuitemcheckbox','bindTemplate','extendTemplate','stopPropagation','_createInfoButtonView','acceptButtonView','isActive','12nLAogn','AI_REVIEW_MODE_DISMISS_CHANGE','fire','ck-ai_review__check-run-result-action-buttons','showDiff','5457880XhkWXT','setTemplate','_createResultResponseView','isInfoToggleOn','infoButtonView','769787fhXCwI','_createOutdatedButtonView'];_0x44f2=function(){return _0x2a8ef8;};return _0x44f2();}const _0x581dfc=_0x58aa;function _0x58aa(_0x55ebfc,_0x30cebd){const _0x44f2d0=_0x44f2();return _0x58aa=function(_0x58aab7,_0x4f6c8d){_0x58aab7=_0x58aab7-0x1d1;let _0x575fb9=_0x44f2d0[_0x58aab7];return _0x575fb9;},_0x58aa(_0x55ebfc,_0x30cebd);}(function(_0x54a14b,_0x5b03d6){const _0xd4c078=_0x58aa,_0x341c51=_0x54a14b();while(!![]){try{const _0xfc78a3=-parseInt(_0xd4c078(0x1fb))/0x1+-parseInt(_0xd4c078(0x1fd))/0x2*(parseInt(_0xd4c078(0x1f1))/0x3)+-parseInt(_0xd4c078(0x1e9))/0x4+-parseInt(_0xd4c078(0x1f6))/0x5+-parseInt(_0xd4c078(0x20f))/0x6+parseInt(_0xd4c078(0x21e))/0x7*(parseInt(_0xd4c078(0x1dd))/0x8)+parseInt(_0xd4c078(0x21c))/0x9;if(_0xfc78a3===_0x5b03d6)break;else _0x341c51['push'](_0x341c51['shift']());}catch(_0x15ec13){_0x341c51['push'](_0x341c51['shift']());}}}(_0x44f2,0x868ad));import{View as _0xc66611,ButtonView as _0x18debe}from'ckeditor5/src/ui.js';import{IconInfo as _0x97bbba,IconCheck as _0x2e55fc,IconCancel as _0x1e1fc4,IconOutdated as _0x1567ea}from'ckeditor5/src/icons.js';import{getTranslation as _0x1b033e}from'../../aicore/utils/common-translations.js';export class AIReviewCoreReviewCheckListItemResultsView extends _0xc66611{[_0x581dfc(0x202)];[_0x581dfc(0x1ef)];[_0x581dfc(0x212)];[_0x581dfc(0x1fa)];[_0x581dfc(0x1e4)];constructor(_0x34eda2,_0x17db0b){const _0x40cc65=_0x581dfc;super(_0x34eda2),this['id']=_0x17db0b,this[_0x40cc65(0x203)](_0x40cc65(0x200),_0x40cc65(0x216)),this[_0x40cc65(0x203)](_0x40cc65(0x1e8),_0x17db0b),this[_0x40cc65(0x202)]=this[_0x40cc65(0x1f8)](),this[_0x40cc65(0x1ef)]=this[_0x40cc65(0x21f)](),this[_0x40cc65(0x212)]=this[_0x40cc65(0x1d9)](),this[_0x40cc65(0x1fa)]=this[_0x40cc65(0x1ee)](),this[_0x40cc65(0x1e4)]=this[_0x40cc65(0x1fc)](),this[_0x40cc65(0x203)](_0x40cc65(0x1f9),!0x1),this[_0x40cc65(0x203)](_0x40cc65(0x1f0),!0x1),this[_0x40cc65(0x203)](_0x40cc65(0x1f5),!0x0),this[_0x40cc65(0x1f7)]({'tag':_0x40cc65(0x20c),'attributes':{'class':[_0x40cc65(0x219),this[_0x40cc65(0x1eb)]['if'](_0x40cc65(0x1f0),_0x40cc65(0x1e7))]},'on':{'click':this[_0x40cc65(0x1eb)]['to'](_0x40cc65(0x1da)),'mouseover':this[_0x40cc65(0x1eb)]['to'](_0x40cc65(0x201)),'mouseout':this[_0x40cc65(0x1eb)]['to'](_0x40cc65(0x218))},'children':[this[_0x40cc65(0x202)],{'tag':_0x40cc65(0x20c),'attributes':{'class':[_0x40cc65(0x210)]},'children':[{'tag':_0x40cc65(0x20c),'attributes':{'class':[_0x40cc65(0x1f4)]},'children':[this[_0x40cc65(0x1ef)],this[_0x40cc65(0x212)],this[_0x40cc65(0x1e4)]]},this[_0x40cc65(0x1fa)]]}]}),this['on'](_0x40cc65(0x1da),(_0x3d9810,_0xb8ee71)=>{const _0x1be543=_0x40cc65;_0xb8ee71&&_0xb8ee71[_0x1be543(0x1d8)]&&'A'===_0xb8ee71[_0x1be543(0x1d8)][_0x1be543(0x1e2)]&&_0xb8ee71[_0x1be543(0x20b)](),this[_0x1be543(0x1f3)](_0x1be543(0x1e3),{'id':_0x17db0b,'source':this,'uiInteraction':_0x1be543(0x1da)});}),this['on'](_0x40cc65(0x201),()=>{const _0x3ce687=_0x40cc65;this[_0x3ce687(0x1f3)](_0x3ce687(0x1e3),{'id':_0x17db0b,'source':this,'uiInteraction':_0x3ce687(0x211)});}),this['on'](_0x40cc65(0x218),()=>{const _0x19a946=_0x40cc65;this[_0x19a946(0x1f3)](_0x19a946(0x215),{'origin':_0x19a946(0x1db),'id':_0x17db0b,'source':this});});}[_0x581dfc(0x1d5)](){const _0x227f29=_0x581dfc;this[_0x227f29(0x1f0)]=!0x0;}[_0x581dfc(0x1d4)](){const _0x13ac87=_0x581dfc;this[_0x13ac87(0x1f0)]=!0x1;}[_0x581dfc(0x1f8)](){const _0x302bf4=_0x581dfc,_0x12f6ac=new _0xc66611(this[_0x302bf4(0x1fe)]);return _0x12f6ac[_0x302bf4(0x1f7)]({'tag':_0x302bf4(0x20c),'attributes':{'class':['ck',_0x302bf4(0x1d2),_0x302bf4(0x208),_0x302bf4(0x1d1),this[_0x302bf4(0x1eb)]['if'](_0x302bf4(0x1f5),_0x302bf4(0x213),_0x418e3a=>!_0x418e3a)]}}),_0x12f6ac;}[_0x581dfc(0x21f)](){const _0x3257a9=_0x581dfc,_0x27d273=new _0x18debe(this[_0x3257a9(0x1fe)]);return _0x27d273[_0x3257a9(0x203)]({'label':_0x1b033e(this[_0x3257a9(0x1fe)],_0x3257a9(0x1d6)),'withText':!0x0}),_0x27d273[_0x3257a9(0x1ec)]({'on':{'click':this[_0x3257a9(0x1eb)]['to'](_0x18363e=>{const _0xd08856=_0x3257a9;this[_0xd08856(0x1f3)](_0xd08856(0x209),{'id':this[_0xd08856(0x1e8)]}),_0x18363e[_0xd08856(0x1ed)]();})},'attributes':{'class':[_0x3257a9(0x204),_0x3257a9(0x207),this[_0x3257a9(0x1eb)]['if'](_0x3257a9(0x200),_0x3257a9(0x213),_0x45a328=>_0x3257a9(0x216)!==_0x45a328&&_0x3257a9(0x1e0)!==_0x45a328),this[_0x3257a9(0x1eb)]['if'](_0x3257a9(0x200),_0x3257a9(0x207),_0x355a81=>_0x3257a9(0x216)===_0x355a81),this[_0x3257a9(0x1eb)]['if'](_0x3257a9(0x200),_0x3257a9(0x21d),_0x3eeaeb=>_0x3257a9(0x1e0)===_0x3eeaeb)]}}),this['on'](_0x3257a9(0x21b),(_0x26f391,_0x14cbde,_0x295ed6)=>{const _0x20c612=_0x3257a9;_0x27d273[_0x20c612(0x205)]=_0x20c612(0x216)===_0x295ed6,_0x20c612(0x1e0)===_0x295ed6&&(_0x27d273[_0x20c612(0x1de)]=_0x1b033e(this[_0x20c612(0x1fe)],_0x20c612(0x20d)),_0x27d273[_0x20c612(0x1e5)]=_0x2e55fc);}),_0x27d273;}[_0x581dfc(0x1d9)](){const _0x2fcad=_0x581dfc,_0x2e0320=new _0x18debe(this[_0x2fcad(0x1fe)]);return _0x2e0320[_0x2fcad(0x203)]({'label':_0x1b033e(this[_0x2fcad(0x1fe)],_0x2fcad(0x1f2)),'withText':!0x0}),_0x2e0320[_0x2fcad(0x1ec)]({'on':{'click':this[_0x2fcad(0x1eb)]['to'](_0x351731=>{const _0x2e557d=_0x2fcad;this[_0x2e557d(0x1f3)](_0x2e557d(0x1dc),{'id':this[_0x2e557d(0x1e8)]}),_0x351731[_0x2e557d(0x1ed)]();})},'attributes':{'class':[_0x2fcad(0x206),this[_0x2fcad(0x1eb)]['if'](_0x2fcad(0x200),_0x2fcad(0x213),_0x67c572=>_0x2fcad(0x216)!==_0x67c572&&_0x2fcad(0x1d7)!==_0x67c572),this[_0x2fcad(0x1eb)]['if'](_0x2fcad(0x200),_0x2fcad(0x1e1),_0x5a14c2=>_0x2fcad(0x216)===_0x5a14c2),this[_0x2fcad(0x1eb)]['if'](_0x2fcad(0x200),_0x2fcad(0x21d),_0x2e6143=>_0x2fcad(0x1d7)===_0x2e6143)]}}),this['on'](_0x2fcad(0x21b),(_0x17374a,_0x32886d,_0x5c6ae0)=>{const _0x328f93=_0x2fcad;_0x2e0320[_0x328f93(0x205)]=_0x328f93(0x216)===_0x5c6ae0,_0x328f93(0x1d7)===_0x5c6ae0&&(_0x2e0320[_0x328f93(0x1de)]=_0x1b033e(this[_0x328f93(0x1fe)],_0x328f93(0x214)),_0x2e0320[_0x328f93(0x1e5)]=_0x1e1fc4);}),_0x2e0320;}[_0x581dfc(0x1ee)](){const _0x3be5c0=_0x581dfc,_0x4a6dd9=new _0x18debe(this[_0x3be5c0(0x1fe)]);return _0x4a6dd9[_0x3be5c0(0x203)]({'label':_0x1b033e(this[_0x3be5c0(0x1fe)],_0x3be5c0(0x21a)),'icon':_0x97bbba,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x3be5c0(0x1ea),'class':_0x3be5c0(0x1e6)}),_0x4a6dd9[_0x3be5c0(0x20a)](_0x3be5c0(0x217))['to'](this,_0x3be5c0(0x1f9),_0xc7bc3d=>_0xc7bc3d),_0x4a6dd9['on'](_0x3be5c0(0x1df),()=>{const _0x22b577=_0x3be5c0;this[_0x22b577(0x1f9)]=!this[_0x22b577(0x1f9)];}),_0x4a6dd9;}[_0x581dfc(0x1fc)](){const _0x4395a2=_0x581dfc,_0x191652=new _0x18debe(this[_0x4395a2(0x1fe)]);return _0x191652[_0x4395a2(0x203)]({'label':_0x1b033e(this[_0x4395a2(0x1fe)],_0x4395a2(0x1ff)),'icon':_0x1567ea,'withText':!0x0,'isEnabled':!0x1}),_0x191652[_0x4395a2(0x1ec)]({'attributes':{'class':[_0x4395a2(0x204),_0x4395a2(0x21d),this[_0x4395a2(0x1eb)]['if'](_0x4395a2(0x200),_0x4395a2(0x213),_0x2e7978=>_0x4395a2(0x1d3)!==_0x2e7978)],'disabled':_0x4395a2(0x20e)}}),_0x191652;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x73ebe1,KeystrokeHandler as _0xefc2ac,FocusTracker as _0x313ecb}from'ckeditor5/src/utils.js';import{View as _0x3e0046,ViewCollection as _0xb9b183,ButtonView as _0x5b99fb,FormRowView as _0x358727,createDropdown as _0x27b0b3,addListToDropdown as _0x315d36,UIModel as _0x5aeef3,ButtonLabelView as _0x27caed,LabeledFieldView as _0x14f20c,FocusCycler as _0x59601a}from'ckeditor5/src/ui.js';import{getTranslation as _0x123238}from'../../aicore/utils/common-translations.js';import{AIReviewCorePromptInputView as _0x5ba7ce}from'./aireviewcorepromptinputview.js';export class AIReviewCoreCustomCheckView extends _0x3e0046{['focusTracker']=new _0x313ecb();['keystrokes']=new _0xefc2ac();['focusCycler'];['_focusables']=new _0xb9b183();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelNameView'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x1945c0,_0x1b8367,_0x161580=!0x1){super(_0x1945c0),this['_check']=_0x1b8367,this['set']('prompt',''),this['set']('modelId',''),this['set']('modelDisplayMode','selector'),this['set']('activeModelName',null),this['_defaultValue']=_0x1b8367['defaultModel']?_0x1b8367['defaultModel']['id']:'',this['_defaultLabel']=_0x1b8367['defaultModel']?_0x1b8367['defaultModel']['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x14f20c(this['locale'],()=>new _0x5ba7ce(_0x1945c0)),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 _0x73ebe1(),this['_modelNameView']=this['_createModelNameView'](),this['_setModelList'](_0x161580),_0x315d36(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions']},'children':[new _0x358727(this['locale'],{'children':[this['promptInputView']]}),new _0x358727(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x1f903d,_0x97f591)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x97f591()):_0x97f591();}),this['focusCycler']=new _0x59601a({'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'](_0xc42daf=>{this['_focusables']['add'](_0xc42daf),this['focusTracker']['add'](_0xc42daf['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 _0x25365a of this['_getFormValidators']()){const _0x29d4c3=_0x25365a();if(_0x29d4c3)return this['promptInputView']['errorText']=_0x29d4c3,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x123238(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x4f7c8c=new _0x5b99fb(this['locale']),t=this['locale']['t'];return _0x4f7c8c['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x4f7c8c['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x4f7c8c;}['_createCancelButtonView'](){const _0x4568c5=new _0x5b99fb(this['locale']),t=this['locale']['t'];return _0x4568c5['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary'}),_0x4568c5['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x2a8683=>{_0x2a8683['stopPropagation']();})}}),_0x4568c5['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x4568c5;}['_setModelList'](_0x3aced7){this['_modelSelectionDropdownItems']['clear']();const _0xbd9803=this['_check']['models'];if(_0x3aced7)this['set']('modelDisplayMode','hidden');else{const _0x45891b=0x1===_0xbd9803['length'];this['set']('modelDisplayMode',_0x45891b?'name':'selector');}if(this['resetToDefault'](),_0xbd9803?.['length']){0x1===_0xbd9803['length']&&this['set']('activeModelName',_0xbd9803[0x0]['name']||_0xbd9803[0x0]['id']);for(const _0x57ac59 of _0xbd9803){const _0x1ef84f=new _0x5aeef3({'label':_0x57ac59['name'],'withText':!0x0,'role':'menuitemradio','id':_0x57ac59['id'],'model':_0x57ac59});_0x1ef84f['bind']('isOn')['to'](this,'modelId',_0x6a10f4=>_0x6a10f4===_0x57ac59['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x1ef84f,'labelView':new ModelButtonLabelView(this['locale'],_0x57ac59)});}}}['_createModelSelectionDropdown'](){const _0x5794b6=_0x27b0b3(this['locale']);return _0x5794b6['set']({'panelPosition':'se','class':'ck-ai_review__check-list-item-model-dropdown'}),_0x5794b6['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),_0x5794b6['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x11f724=>'selector'===_0x11f724),this['listenTo'](_0x5794b6,'execute',_0x2f4775=>{this['modelId']=_0x2f4775['source']['model']['id'],_0x5794b6['buttonView']['label']=_0x2f4775['source']['label'];}),_0x5794b6;}['_createModelNameView'](){const _0x1df4a9=new ModelNameView(this['locale']);return _0x1df4a9['bind']('text')['to'](this,'activeModelName',_0x193f04=>_0x193f04??''),_0x1df4a9['bind']('isVisible')['to'](this,'modelDisplayMode',_0x1a1bf4=>'name'===_0x1a1bf4),_0x1df4a9;}['_createActionsFooterView'](){const _0x40e2e1=new _0x3e0046(this['locale']);return _0x40e2e1['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],this['_modelNameView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x40e2e1;}}class ModelNameView extends _0x3e0046{constructor(_0x21e1e2){super(_0x21e1e2),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x153536=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai_review__check-list-item-model-name',_0x153536['if']('isVisible','ck-hidden',_0x1c4ec6=>!_0x1c4ec6)]},'children':[{'text':_0x153536['to']('text')}]});}}class ModelButtonLabelView extends _0x27caed{constructor(_0x9a1df1,_0x2721db){super();const _0x42f326=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x42f326['to']('style'),'id':_0x42f326['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x42f326['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x2721db['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x157260=_0x15ed;function _0x5214(){var _0x5ac5f3=['value','listenTo','set','MIN_ROWS','212890jWakHD','ck-review__prompt-input','1557gbYJGL','trim','minRows','1ApJzUY','ai-review-prompt-input','1507002hwlWPN','element','keystrokes','1592cbuMtG','MAX_ROWS','357dNyHHg','isEmpty','4236510LcQPAK','6273370AkpuIH','update','8668968GxsWBw','maxRows','extendTemplate','render','16202LUobjs'];_0x5214=function(){return _0x5ac5f3;};return _0x5214();}(function(_0x478f70,_0x3ab492){var _0x39d6f2=_0x15ed,_0x3714d9=_0x478f70();while(!![]){try{var _0x213e5f=parseInt(_0x39d6f2(0x6a))/0x1*(parseInt(_0x39d6f2(0x7a))/0x2)+parseInt(_0x39d6f2(0x71))/0x3*(parseInt(_0x39d6f2(0x6f))/0x4)+-parseInt(_0x39d6f2(0x74))/0x5+-parseInt(_0x39d6f2(0x73))/0x6+parseInt(_0x39d6f2(0x6c))/0x7+-parseInt(_0x39d6f2(0x76))/0x8+parseInt(_0x39d6f2(0x81))/0x9*(parseInt(_0x39d6f2(0x7f))/0xa);if(_0x213e5f===_0x3ab492)break;else _0x3714d9['push'](_0x3714d9['shift']());}catch(_0x86de63){_0x3714d9['push'](_0x3714d9['shift']());}}}(_0x5214,0xde036));function _0x15ed(_0x1b1f44,_0x174ae3){var _0x5214bf=_0x5214();return _0x15ed=function(_0x15ed44,_0x9469bc){_0x15ed44=_0x15ed44-0x6a;var _0x597cfd=_0x5214bf[_0x15ed44];return _0x597cfd;},_0x15ed(_0x1b1f44,_0x174ae3);}import{TextareaView as _0x393eec}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x2f7224}from'ckeditor5/src/utils.js';export class AIReviewCorePromptInputView extends _0x393eec{[_0x157260(0x6e)];static [_0x157260(0x7e)]=0x1;static [_0x157260(0x70)]=0xc;constructor(_0x37ec1e){var _0xea3287=_0x157260;super(_0x37ec1e),this[_0xea3287(0x7d)](_0xea3287(0x72),!0x0),this[_0xea3287(0x6e)]=new _0x2f7224(),this[_0xea3287(0x83)]=AIReviewCorePromptInputView[_0xea3287(0x7e)],this[_0xea3287(0x77)]=AIReviewCorePromptInputView[_0xea3287(0x70)],this[_0xea3287(0x78)]({'attributes':{'id':_0xea3287(0x6b),'class':['ck',_0xea3287(0x80)]}});}[_0x157260(0x79)](){var _0x235311=_0x157260;super[_0x235311(0x79)](),this['on'](_0x235311(0x75),()=>{var _0x3eefe7=_0x235311;this[_0x3eefe7(0x72)]=''===this[_0x3eefe7(0x6d)][_0x3eefe7(0x7b)]?.[_0x3eefe7(0x82)]();}),this[_0x235311(0x6e)][_0x235311(0x7c)](this[_0x235311(0x6d)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x126a2f=_0x2f68;(function(_0x258827,_0x51c95d){const _0x2769d4=_0x2f68,_0x2dc481=_0x258827();while(!![]){try{const _0x380e35=-parseInt(_0x2769d4(0x72))/0x1*(parseInt(_0x2769d4(0x86))/0x2)+-parseInt(_0x2769d4(0x7a))/0x3*(-parseInt(_0x2769d4(0x75))/0x4)+parseInt(_0x2769d4(0x79))/0x5+-parseInt(_0x2769d4(0x82))/0x6*(parseInt(_0x2769d4(0x7c))/0x7)+parseInt(_0x2769d4(0x74))/0x8+-parseInt(_0x2769d4(0x7b))/0x9+parseInt(_0x2769d4(0x89))/0xa;if(_0x380e35===_0x51c95d)break;else _0x2dc481['push'](_0x2dc481['shift']());}catch(_0x593b56){_0x2dc481['push'](_0x2dc481['shift']());}}}(_0x5f26,0xf00ed));function _0x2f68(_0x38e77a,_0x4cb1dd){const _0x5f2681=_0x5f26();return _0x2f68=function(_0x2f68ea,_0x46005f){_0x2f68ea=_0x2f68ea-0x71;let _0x2b849d=_0x5f2681[_0x2f68ea];return _0x2b849d;},_0x2f68(_0x38e77a,_0x4cb1dd);}import{ListItemView as _0x488832,ViewCollection as _0xad3394}from'ckeditor5/src/ui.js';import{AIReviewCoreReviewCommandListItemView as _0xc585cf}from'./aireviewcorereviewcommandlistitemview.js';import'../../../theme/aireviewcore/aireviewcore-check-list.css';export class AIReviewCoreReviewCheckListView extends _0x488832{[_0x126a2f(0x7e)];constructor(_0x371c42){const _0x533a40=_0x126a2f;super(_0x371c42),this[_0x533a40(0x7e)]=new _0xad3394(),this[_0x533a40(0x8a)]();}[_0x126a2f(0x78)](_0x5e1ca1,_0x558d47=!0x1){const _0x179b7c=_0x126a2f;this[_0x179b7c(0x7e)][_0x179b7c(0x8d)]();for(const [_0x36f637,_0x23b79b]of _0x5e1ca1[_0x179b7c(0x76)]()){const _0x347f58=new _0xc585cf(this[_0x179b7c(0x80)],_0x23b79b,_0x36f637,_0x558d47);_0x347f58[_0x179b7c(0x77)](_0x179b7c(0x7f))['to'](this),this[_0x179b7c(0x7e)][_0x179b7c(0x81)](_0x347f58);}}[_0x126a2f(0x84)](){const _0x3abc85=_0x126a2f;return this[_0x3abc85(0x7e)][_0x3abc85(0x71)]>0x0;}[_0x126a2f(0x7d)](){const _0x21e802=_0x126a2f;for(const _0x41c315 of this[_0x21e802(0x7e)])_0x41c315 instanceof _0xc585cf&&_0x41c315[_0x21e802(0x8b)]();}[_0x126a2f(0x8a)](){const _0x2e3add=_0x126a2f,_0x432d6e=this[_0x2e3add(0x8c)];this[_0x2e3add(0x87)]({'tag':_0x2e3add(0x85),'attributes':{'class':[_0x2e3add(0x73),_0x432d6e['if'](_0x2e3add(0x83),_0x2e3add(0x88),_0x27198a=>!_0x27198a)]},'children':this[_0x2e3add(0x7e)]});}}function _0x5f26(){const _0x5db1a2=['resetToDefault','bindTemplate','clear','length','84394gCfYKR','ck-ai_review__check-list','3979984QRjkke','8mmQXrf','entries','delegate','setChecks','4427785qofBXQ','1101693LQBZxW','5559723NhvihB','19614Uomzhv','resetAllParameterizedChecks','_checkViews','runReviewCheck','locale','add','2916PtPbjY','isVisible','hasChecks','div','22coXbDK','setTemplate','ck-hidden','17736130WyDsGQ','_setupTemplate'];_0x5f26=function(){return _0x5db1a2;};return _0x5f26();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x18a87f,IconView as _0x3e50d5,View as _0x393eb8,ViewCollection as _0x482997,ButtonView as _0x5a7036,clickOutsideHandler as _0x1252b3}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x2ee8de}from'ckeditor5/src/icons.js';import{AIReviewCoreFormManagerView as tc}from'./form/aireviewcoreformmanager.js';import{AIReviewCoreCustomCheckView as _0x403f76}from'./aireviewcorecustomcheckview.js';export class AIReviewCoreReviewCommandListItemView extends _0x18a87f{['_formItemsCollection']=new _0x482997();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x37a806,_0x202862,_0x83f4e9,_0x37447a=!0x1){super(_0x37a806),this['_hideModels']=_0x37447a,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x202862['isParameterized']);const _0x5c2ce0=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai_review__check-list-item_selected',_0x41d88a=>_0x41d88a),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x104ccc=>_0x104ccc)],'style':{'--ck-ai-review-check-list-item-index':_0x83f4e9}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-list-item-title-text']},'children':[{'text':_0x202862['title']}]},_0x5c2ce0]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x202862['description']?[{'text':_0x202862['description']}]:[]}]}]},..._0x202862['isParameterized']?[this['_createParameterizedView'](_0x202862)]:[],...'custom'===_0x202862['id']?[this['_createCustomView'](_0x202862,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x202862['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x202862['id'],'args':_0x202862['useArgs']?_0x202862['args']:void 0x0});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x1252b3({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x12f919=>{_0x12f919['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0xe0bda0=new _0x3e50d5();return _0xe0bda0['content']=_0x2ee8de,_0xe0bda0['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0xe0bda0;}['_createParameterizedView'](_0x132efb){const _0x5d7ce9=new _0x393eb8(),_0x37d938=this['_createFormView'](_0x132efb);return _0x5d7ce9['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x4decae=>!_0x4decae)]},'children':[_0x37d938]}),_0x5d7ce9;}['_createFormView'](_0x2849d2){const _0x453f1d=new _0x393eb8(),_0x45b567=Array['isArray'](_0x2849d2['options'])?_0x2849d2['options']:[],_0x17bf1d=new _0x5a7036(this['locale']),t=this['locale']['t'];_0x17bf1d['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x17bf1d['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x24b12e=>{_0x24b12e['stopPropagation']();})}}),_0x17bf1d['on']('execute',()=>{const _0x404673=[],_0x1f449e={};this['_formItemsCollection']['forEach'](_0x5700d7=>{_0x404673['push'](_0x5700d7['value']),_0x2849d2['useArgs']&&_0x2849d2['options']&&(_0x1f449e[_0x5700d7['argsKey']]=_0x5700d7['value']);}),this['fire']('runReviewCheck',{'id':_0x2849d2['id'],'params':_0x404673['length']?_0x404673:void 0x0,'args':Object['keys'](_0x1f449e)['length']?_0x1f449e:void 0x0});});const _0x3ed5d7=_0x45b567['length'];return _0x45b567['forEach']((_0x291c78,_0x484528)=>{const _0xad231=_0x484528===_0x3ed5d7-0x1;this['_formItemsCollection']['add'](new tc(this['locale'],_0x291c78,_0xad231?_0x17bf1d:null));}),_0x453f1d['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x453f1d;}['_createCustomView'](_0x19d971,_0x4298a2=!0x1){return this['_customCheckView']=new _0x403f76(this['locale'],_0x19d971,_0x4298a2),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-parameterized','ck-ai_review__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x79c524=>!_0x79c524)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x454151,_0x1edd3a,_0x343532)=>{_0x343532||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5e92(_0x4166a4,_0x4e5046){const _0xd6ba12=_0xd6ba();return _0x5e92=function(_0x5e92d3,_0x275d79){_0x5e92d3=_0x5e92d3-0x7f;let _0x20e416=_0xd6ba12[_0x5e92d3];return _0x20e416;},_0x5e92(_0x4166a4,_0x4e5046);}const _0x23e42f=_0x5e92;(function(_0x59acf2,_0x5a3e5d){const _0x2168d4=_0x5e92,_0x4ede7c=_0x59acf2();while(!![]){try{const _0x543c43=-parseInt(_0x2168d4(0x90))/0x1*(-parseInt(_0x2168d4(0x7f))/0x2)+-parseInt(_0x2168d4(0x8d))/0x3+parseInt(_0x2168d4(0x9d))/0x4+parseInt(_0x2168d4(0x8c))/0x5*(parseInt(_0x2168d4(0x96))/0x6)+parseInt(_0x2168d4(0x85))/0x7+parseInt(_0x2168d4(0xa0))/0x8*(-parseInt(_0x2168d4(0x92))/0x9)+parseInt(_0x2168d4(0x82))/0xa*(-parseInt(_0x2168d4(0x88))/0xb);if(_0x543c43===_0x5a3e5d)break;else _0x4ede7c['push'](_0x4ede7c['shift']());}catch(_0x20683e){_0x4ede7c['push'](_0x4ede7c['shift']());}}}(_0xd6ba,0x693a1));function _0xd6ba(){const _0xd32dff=['finishReview','ck-ai_review__review-completed-header-buttons','bindTemplate','6lYwUJJ','_createResultHeaderView','locale','buttonText','ck-ai_review__review-completed-content-text','ck-ai_review__review-completed','headerText','1760736WgAczP','ck-ai_review__review-completed-header','ck-ai_review__review-completed-header-title','2392uhYqli','781628yvqMxK','isVisible','_finishReviewButtonView','10QvAmmb','_resultsHeader','ck-ai_review__review-completed-content-icon','3804969eIQjeF','ck-ai_review__review-completed-content','emptyResultsText','13529417EuFVyZ','setTemplate','div','_createFinishReviewButtonView','494000sPPgWa','12267HUUrFm','ck-hidden','delegate','2bwHhFh','span','5994rBwbvI'];_0xd6ba=function(){return _0xd32dff;};return _0xd6ba();}import{ListItemView as _0x489021,View as _0x18a4bf}from'ckeditor5/src/ui.js';import{AIReviewCoreFinishReviewButtonView as _0x2f647a}from'./aireviewcorefinishreviewbuttonview.js';import'../../../theme/aireviewcore/aireviewcore-review-completed.css';export class AIReviewCoreReviewCompletedView extends _0x489021{[_0x23e42f(0x83)];[_0x23e42f(0x81)];constructor(_0x25a1a0,_0x12906e){const _0x7dc37b=_0x23e42f;super(_0x25a1a0),this[_0x7dc37b(0x81)]=this[_0x7dc37b(0x8b)](_0x12906e[_0x7dc37b(0x99)]),this[_0x7dc37b(0x83)]=this[_0x7dc37b(0x97)](_0x12906e[_0x7dc37b(0x9c)]);const _0x49f375=this[_0x7dc37b(0x95)];this[_0x7dc37b(0x89)]({'tag':_0x7dc37b(0x8a),'attributes':{'class':[_0x7dc37b(0x9b),_0x49f375['if'](_0x7dc37b(0x80),_0x7dc37b(0x8e),_0x10740c=>!_0x10740c)]},'children':[this[_0x7dc37b(0x83)],{'tag':_0x7dc37b(0x8a),'attributes':{'class':[_0x7dc37b(0x86)]},'children':[{'tag':_0x7dc37b(0x91),'attributes':{'class':[_0x7dc37b(0x84)]},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':[_0x7dc37b(0x9a)]},'children':[{'text':_0x12906e[_0x7dc37b(0x87)]}]}]}]});}[_0x23e42f(0x8b)](_0x4469c9){const _0x406843=_0x23e42f,_0x5e69d3=new _0x2f647a(_0x4469c9,this[_0x406843(0x98)]);return _0x5e69d3[_0x406843(0x8f)](_0x406843(0x93))['to'](this),_0x5e69d3;}[_0x23e42f(0x97)](_0x5be6c4){const _0x370c56=_0x23e42f,_0x240a85=new _0x18a4bf(this[_0x370c56(0x98)]);return _0x240a85[_0x370c56(0x89)]({'tag':_0x370c56(0x8a),'attributes':{'class':[_0x370c56(0x9e)]},'children':[{'tag':_0x370c56(0x91),'attributes':{'class':[_0x370c56(0x9f)]},'children':[{'text':_0x5be6c4}]},{'tag':_0x370c56(0x8a),'attributes':{'class':[_0x370c56(0x94)]},'children':[this[_0x370c56(0x81)]]}]}),_0x240a85;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as _0x3d7565,View as _0x32abc5,ViewCollection as _0x3c4645,ButtonView as _0x9ae4d7}from'ckeditor5/src/ui.js';import{IconStop as _0x142baa,IconEye as _0x1352ad,IconEyeCrossedOut as _0xadae0e}from'ckeditor5/src/icons.js';import{AISkeletonView as _0x52558c,SKELETON_DEFINITIONS as _0x117229}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x28fd5c}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0xa87536}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x518980}from'../../aicore/ui/aispinner.js';import{AIReviewCoreReviewCheckListItemResultsView as _0x535460}from'./aireviewcorechecklistitemresultview.js';import{AIReviewCoreFinishReviewButtonView as _0xc11c9c}from'./aireviewcorefinishreviewbuttonview.js';import'../../../theme/aireviewcore/aireviewcore-check-run.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreUICheckResultsView extends _0x3d7565{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x179282,_0x174da2){super(_0x179282),this['_contents']=_0x174da2,this['_resultViews']=new _0x3c4645(),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 _0x28fd5c(_0x179282),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 _0x51f627=this['_createCombinedSkeletonLoader'](),_0x11ec35=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x11ec35['if']('isLoading','ck-ai_review__check-run_loading',_0x33e3bb=>_0x33e3bb),_0x11ec35['if']('isResultReady','ck-ai_review__check-run_ready',_0x2f62f2=>_0x2f62f2),_0x11ec35['if']('isVisible','ck-hidden',_0x1c6c30=>!_0x1c6c30)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0x1eeb8b=>_0x1eeb8b)]},'children':this['_resultViews']},_0x51f627]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0xefbb26){const _0x1fa90a=new _0x535460(this['locale'],_0xefbb26['id']);_0x1fa90a['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x1fa90a),_0x1fa90a['resultResponseView']['element']['innerHTML']=_0xefbb26['contentDiffed'];}['hideResult'](_0xc70b48,_0x3dc9c1){if('pending'===_0x3dc9c1)return;const _0x40e2ad=this['_resultViews']['find'](_0x50a9f1=>_0x50a9f1['id']===_0xc70b48);_0x40e2ad&&(_0x40e2ad['status']=_0x3dc9c1,_0x40e2ad['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x2474d2,_0x56ce43){if('pending'!==_0x56ce43)return;const _0x630329=this['_resultViews']['find'](_0x50aaf1=>_0x50aaf1['id']===_0x2474d2);_0x630329&&(_0x630329['status']=_0x56ce43,_0x630329['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x1ab5c1,_0x16f92f){this['headerTitle']=_0x1ab5c1,this['headerSubtitle']=_0x16f92f||'';}['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 _0x52558c(this['locale'],_0x117229['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x2679df=new _0x32abc5(this['locale']),_0x5862cc=[];for(let _0x149c0c=0x0;_0x149c0c<0x10;_0x149c0c++){const _0x358279=this['_createSkeletonLoader']();_0x358279['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x5862cc['push'](_0x358279);}return _0x2679df['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x5d3f5b=>!_0x5d3f5b)]},'children':_0x5862cc}),_0x2679df;}['_createErrorView'](){const _0x45f3c4=new _0x32abc5(this['locale']),_0x3af5b4=new _0x9ae4d7(this['locale']),t=this['locale']['t'];return _0x45f3c4['delegate']('retryReview')['to'](this),_0x3af5b4['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x3af5b4['on']('execute',()=>{this['fire']('retryReview');}),_0x45f3c4['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x5266de=>!_0x5266de),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x8992f0=>'chunk'===_0x8992f0)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai_review__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x32e191=>'chunk'===_0x32e191)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x43c982=>'general'!==_0x43c982)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x3b9e8b=>'chunk'!==_0x3b9e8b)]},'children':[{'text':_0xa87536(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x3af5b4]}),_0x45f3c4;}['_createCancelButtonView'](){const _0x4bf24e=new _0x9ae4d7(this['locale']);return _0x4bf24e['set']({'label':_0xa87536(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x142baa}),_0x4bf24e['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5a3c54=>_0x5a3c54),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x23a857=>_0x23a857)]}}),_0x4bf24e['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x4bf24e;}['_createToggleDiffButtonView'](){const _0x13e69c=new _0x9ae4d7(this['locale']);_0x13e69c['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x13e69c['bind']('isEnabled')['to'](this,'isError',_0x622b85=>!_0x622b85),_0x13e69c['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x231b67=>!_0x231b67),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x7b1bb3=>_0x7b1bb3)]}});const _0x2b11ce=_0xa87536(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x468e8d=_0xa87536(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x13e69c['bind']('isOn')['to'](this,'isToggleDiffOn',_0x44b973=>_0x44b973),_0x13e69c['bind']('icon')['to'](this,'isToggleDiffOn',_0x90afed=>_0x90afed?_0x1352ad:_0xadae0e),_0x13e69c['bind']('label')['to'](this,'isToggleDiffOn',_0x5d036b=>_0x5d036b?_0x2b11ce:_0x468e8d),_0x13e69c['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x13e69c;}['_createAcceptAllButtonView'](){const _0x49cf86=new _0x9ae4d7(this['locale']);return _0x49cf86['set']({'label':_0xa87536(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x49cf86['bind']('isEnabled')['to'](this,'isError',_0x5bcd33=>!_0x5bcd33),_0x49cf86['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5f327d=>!_0x5f327d),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3e8e2d=>_0x3e8e2d)]}}),_0x49cf86['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x49cf86;}['_createExitReviewButtonView'](){const _0x2839ae=new _0x9ae4d7(this['locale']);return _0x2839ae['set']({'label':_0xa87536(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x2839ae['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4b481a=>!_0x4b481a),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x29dbd1=>_0x29dbd1)]}}),_0x2839ae['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x2839ae;}['_createResultHeaderView'](){const _0x1ab195=new _0x32abc5(this['locale']),_0x5a8a5c=this['_createTitleView']();return _0x1ab195['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x2af550=>_0x2af550)]},'children':[_0x5a8a5c,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x1ab195;}['_createTitleView'](){const _0x13f152=new _0x32abc5(this['locale']),_0x12cc35=new _0x518980();return _0x12cc35['bind']('isVisible')['to'](this,'isResultReady',_0x4b5926=>!_0x4b5926),_0x13f152['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x12cc35,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4a4ff7=>_0x4a4ff7)]},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5e1993=>!_0x5e1993)]},'children':[{'text':_0xa87536(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x13f152;}['_createFinishReviewButtonView'](){const _0x198188=new _0xc11c9c(_0xa87536(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x198188['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3af8ee=>!_0x3af8ee)]}}),_0x198188['delegate']('finishReview')['to'](this),_0x198188;}}
|
|
23
|
+
import{ListItemView as _0x46f0cc,View as _0x1c7626,ViewCollection as _0x569ca4,ButtonView as _0xb58929}from'ckeditor5/src/ui.js';import{IconStop as _0x30f749,IconEye as _0xdcc190,IconEyeCrossedOut as _0x8ddfa7}from'ckeditor5/src/icons.js';import{AISkeletonView as _0x21c9c9,SKELETON_DEFINITIONS as _0x2514a1}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x212942}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x5d7889}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x37418d}from'../../aicore/ui/aispinner.js';import{AIReviewCoreReviewCheckListItemResultsView as _0x34a304}from'./aireviewcorechecklistitemresultview.js';import{AIReviewCoreFinishReviewButtonView as _0x1b2faf}from'./aireviewcorefinishreviewbuttonview.js';import'../../../theme/aireviewcore/aireviewcore-check-run.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreUICheckResultsView extends _0x46f0cc{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0xdfcf36,_0x4a538a){super(_0xdfcf36),this['_contents']=_0x4a538a,this['_resultViews']=new _0x569ca4(),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 _0x212942(_0xdfcf36),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 _0x1b4676=this['_createCombinedSkeletonLoader'](),_0x32a094=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x32a094['if']('isLoading','ck-ai_review__check-run_loading',_0x2cbc74=>_0x2cbc74),_0x32a094['if']('isResultReady','ck-ai_review__check-run_ready',_0x8159d4=>_0x8159d4),_0x32a094['if']('isVisible','ck-hidden',_0x434d44=>!_0x434d44)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0xf62c19=>_0xf62c19)]},'children':this['_resultViews']},_0x1b4676]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x260839){const _0x299795=new _0x34a304(this['locale'],_0x260839['id']);_0x299795['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x299795),_0x299795['resultResponseView']['element']['innerHTML']=_0x260839['contentDiffed'];}['hideResult'](_0x5212c6,_0x2af5fd){if('pending'===_0x2af5fd)return;const _0x3e8268=this['_resultViews']['find'](_0x3a68d2=>_0x3a68d2['id']===_0x5212c6);_0x3e8268&&(_0x3e8268['status']=_0x2af5fd,_0x3e8268['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x28176f,_0x894b11){if('pending'!==_0x894b11)return;const _0x5cb84e=this['_resultViews']['find'](_0x5f2c9c=>_0x5f2c9c['id']===_0x28176f);_0x5cb84e&&(_0x5cb84e['status']=_0x894b11,_0x5cb84e['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x29f9f2,_0x2e65d8){this['headerTitle']=_0x29f9f2,this['headerSubtitle']=_0x2e65d8||'';}['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 _0x21c9c9(this['locale'],_0x2514a1['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x2edde7=new _0x1c7626(this['locale']),_0x2aac8b=[];for(let _0x195f50=0x0;_0x195f50<0x10;_0x195f50++){const _0x54ca92=this['_createSkeletonLoader']();_0x54ca92['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x2aac8b['push'](_0x54ca92);}return _0x2edde7['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x29a511=>!_0x29a511)]},'children':_0x2aac8b}),_0x2edde7;}['_createErrorView'](){const _0x178bd7=new _0x1c7626(this['locale']),_0x23a995=new _0xb58929(this['locale']),t=this['locale']['t'];return _0x178bd7['delegate']('retryReview')['to'](this),_0x23a995['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x23a995['on']('execute',()=>{this['fire']('retryReview');}),_0x178bd7['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x2fe0bb=>!_0x2fe0bb),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x139867=>'chunk'===_0x139867)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai_review__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x1f3725=>'chunk'===_0x1f3725)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0xe51d26=>'general'!==_0xe51d26)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x2eae8c=>'chunk'!==_0x2eae8c)]},'children':[{'text':_0x5d7889(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x23a995]}),_0x178bd7;}['_createCancelButtonView'](){const _0x463dae=new _0xb58929(this['locale']);return _0x463dae['set']({'label':_0x5d7889(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x30f749}),_0x463dae['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1dc2ac=>_0x1dc2ac),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5a0e77=>_0x5a0e77)]}}),_0x463dae['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x463dae;}['_createToggleDiffButtonView'](){const _0x377972=new _0xb58929(this['locale']);_0x377972['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x377972['bind']('isEnabled')['to'](this,'isError',_0xa6f5f5=>!_0xa6f5f5),_0x377972['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5e2da5=>!_0x5e2da5),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x469a2c=>_0x469a2c)]}});const _0x3a20c2=_0x5d7889(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x56ad83=_0x5d7889(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x377972['bind']('isOn')['to'](this,'isToggleDiffOn',_0xbacbc7=>_0xbacbc7),_0x377972['bind']('icon')['to'](this,'isToggleDiffOn',_0x2cded8=>_0x2cded8?_0xdcc190:_0x8ddfa7),_0x377972['bind']('label')['to'](this,'isToggleDiffOn',_0x555067=>_0x555067?_0x3a20c2:_0x56ad83),_0x377972['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x377972;}['_createAcceptAllButtonView'](){const _0x5613e8=new _0xb58929(this['locale']);return _0x5613e8['set']({'label':_0x5d7889(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x5613e8['bind']('isEnabled')['to'](this,'isError',_0x5c30a4=>!_0x5c30a4),_0x5613e8['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3a6b2c=>!_0x3a6b2c),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1e7fca=>_0x1e7fca)]}}),_0x5613e8['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x5613e8;}['_createExitReviewButtonView'](){const _0x1a9729=new _0xb58929(this['locale']);return _0x1a9729['set']({'label':_0x5d7889(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x1a9729['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x10e099=>!_0x10e099),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x49c932=>_0x49c932)]}}),_0x1a9729['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x1a9729;}['_createResultHeaderView'](){const _0x40b4a8=new _0x1c7626(this['locale']),_0x42d57f=this['_createTitleView']();return _0x40b4a8['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x595faf=>_0x595faf)]},'children':[_0x42d57f,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x40b4a8;}['_createTitleView'](){const _0x335536=new _0x1c7626(this['locale']),_0x2a61ab=new _0x37418d();return _0x2a61ab['bind']('isVisible')['to'](this,'isResultReady',_0xfd364c=>!_0xfd364c),_0x335536['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x2a61ab,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x458b98=>_0x458b98)]},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1c512d=>!_0x1c512d)]},'children':[{'text':_0x5d7889(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x335536;}['_createFinishReviewButtonView'](){const _0x557ea4=new _0x1b2faf(_0x5d7889(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x557ea4['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4961c9=>!_0x4961c9)]}}),_0x557ea4['delegate']('finishReview')['to'](this),_0x557ea4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3708aa=_0x1745;(function(_0x357bff,_0x4aca5e){const _0x1b335c=_0x1745,_0x4a9418=_0x357bff();while(!![]){try{const _0x3c3a1f=parseInt(_0x1b335c(0x9a))/0x1+-parseInt(_0x1b335c(0xac))/0x2*(-parseInt(_0x1b335c(0x97))/0x3)+parseInt(_0x1b335c(0xa6))/0x4+parseInt(_0x1b335c(0x9b))/0x5*(-parseInt(_0x1b335c(0xa4))/0x6)+parseInt(_0x1b335c(0xa8))/0x7+-parseInt(_0x1b335c(0x9f))/0x8+parseInt(_0x1b335c(0x9d))/0x9*(-parseInt(_0x1b335c(0xa9))/0xa);if(_0x3c3a1f===_0x4aca5e)break;else _0x4a9418['push'](_0x4a9418['shift']());}catch(_0x42ca58){_0x4a9418['push'](_0x4a9418['shift']());}}}(_0x5992,0xa9d8d));import{FormRowView as _0x2fd9f6,ListItemView as _0x15ee9e}from'ckeditor5/src/ui.js';import{AIReviewCoreFormDropdownView as _0x2cbd13}from'./aireviewcoreformdropdown.js';export class AIReviewCoreFormManagerView extends _0x15ee9e{[_0x3708aa(0x99)]=null;constructor(_0x1d7ae1,_0xa8cd37,_0x950e37){const _0x29f30c=_0x3708aa;super(_0x1d7ae1),this[_0x29f30c(0xa3)]=_0xa8cd37?.[_0x29f30c(0xa3)];if(_0x29f30c(0xad)===_0xa8cd37[_0x29f30c(0xae)])this[_0x29f30c(0x99)]=new _0x2cbd13(this[_0x29f30c(0xa5)],_0xa8cd37);this[_0x29f30c(0x9e)](_0x29f30c(0xaa),''),this[_0x29f30c(0x96)](_0x29f30c(0xaa))['to'](this[_0x29f30c(0x99)],_0x29f30c(0xab));const _0x5bb587=new _0x2fd9f6(this[_0x29f30c(0xa5)],{'children':[this[_0x29f30c(0x99)]],'class':[_0x950e37?_0x29f30c(0x9c):'']});_0x950e37&&_0x5bb587[_0x29f30c(0xaf)][_0x29f30c(0xa1)](_0x950e37),this[_0x29f30c(0xa2)]({'tag':_0x29f30c(0x95),'attributes':{'class':['ck',_0x29f30c(0xa7),_0x29f30c(0xa0)]},'children':[_0x5bb587]});}[_0x3708aa(0x98)](){const _0x3c4eb4=_0x3708aa;this[_0x3c4eb4(0x99)][_0x3c4eb4(0x98)]();}}function _0x1745(_0x4e3e11,_0x293699){const _0x5992b7=_0x5992();return _0x1745=function(_0x17454e,_0x2083b8){_0x17454e=_0x17454e-0x95;let _0x101c0b=_0x5992b7[_0x17454e];return _0x101c0b;},_0x1745(_0x4e3e11,_0x293699);}function _0x5992(){const _0x5201f3=['bind','29451XuwEqV','resetToDefault','_formItem','310403wSRCCD','20885fFKLhP','ck-form__row_with-submit','27pTodKu','set','2280768eeXIIH','ck-reset_all','add','setTemplate','argsKey','432Mttixy','locale','4361412gMNCEe','ck-ai_review__form-item','9048599jZPmys','5720690DIZdlp','value','formValue','62yLIoCg','dropdown','formType','children','div'];_0x5992=function(){return _0x5201f3;};return _0x5992();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x12ccfc=_0x15c0;(function(_0x7f944d,_0x14f9c4){var _0x9f749c=_0x15c0,_0x5d1f9b=_0x7f944d();while(!![]){try{var _0x441127=parseInt(_0x9f749c(0x1ba))/0x1+-parseInt(_0x9f749c(0x1b5))/0x2+parseInt(_0x9f749c(0x1bb))/0x3*(parseInt(_0x9f749c(0x1b7))/0x4)+parseInt(_0x9f749c(0x1b1))/0x5+-parseInt(_0x9f749c(0x1b0))/0x6*(parseInt(_0x9f749c(0x1b3))/0x7)+parseInt(_0x9f749c(0x1b8))/0x8+parseInt(_0x9f749c(0x1b6))/0x9*(-parseInt(_0x9f749c(0x1b4))/0xa);if(_0x441127===_0x14f9c4)break;else _0x5d1f9b['push'](_0x5d1f9b['shift']());}catch(_0x216062){_0x5d1f9b['push'](_0x5d1f9b['shift']());}}}(_0x1e4b,0xad889));import{ContextPlugin as _0x3a982f}from'ckeditor5/src/core.js';function _0x15c0(_0x1a5e62,_0x5bd450){var _0x1e4bad=_0x1e4b();return _0x15c0=function(_0x15c057,_0x36024a){_0x15c057=_0x15c057-0x1ad;var _0x1b3468=_0x1e4bad[_0x15c057];return _0x1b3468;},_0x15c0(_0x1a5e62,_0x5bd450);}import{AIReviewModeUI as _0x292366}from'./aireviewmodeui.js';import{AIReviewCoreEditing as _0x450287}from'../aireviewcore/aireviewcoreediting.js';import{AIReviewModeController as _0x3795f3}from'./aireviewmodecontroller.js';function _0x1e4b(){var _0x5781ea=['isPremiumPlugin','1159109cbVOki','48NbNYno','AIReviewMode','pluginName','requires','78KhHjLx','1550730Zsdkwm','isOfficialPlugin','554463YIXEZB','14933170PpfDFh','147622kJFvDE','9Dxugda','129676VFbtwc','10557432NUnhji'];_0x1e4b=function(){return _0x5781ea;};return _0x1e4b();}export class AIReviewMode extends _0x3a982f{static get[_0x12ccfc(0x1af)](){return[_0x3795f3,_0x292366,_0x450287];}static get[_0x12ccfc(0x1ae)](){var _0x45c078=_0x12ccfc;return _0x45c078(0x1ad);}static get[_0x12ccfc(0x1b2)](){return!0x0;}static get[_0x12ccfc(0x1b9)](){return!0x0;}}
|