@ckeditor/ckeditor5-ai 47.6.0-alpha.9 → 47.6.0
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/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/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/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/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatheaderview.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/resources/aichatcontextresourcesview.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/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.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/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.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/ui/aidisclaimerview.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/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/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.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/model/aireviewcheckrun.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/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x15f6bf=_0x1c04;(function(_0x48539c,_0x226d34){const _0x415173=_0x1c04,_0x41de2b=_0x48539c();while(!![]){try{const _0x4053a6=parseInt(_0x415173(0x1c0))/0x1*(parseInt(_0x415173(0x1a5))/0x2)+parseInt(_0x415173(0x1a2))/0x3+-parseInt(_0x415173(0x1c8))/0x4+-parseInt(_0x415173(0x1a0))/0x5*(-parseInt(_0x415173(0x1cc))/0x6)+-parseInt(_0x415173(0x1e7))/0x7+parseInt(_0x415173(0x1b6))/0x8*(parseInt(_0x415173(0x1a7))/0x9)+-parseInt(_0x415173(0x1e2))/0xa*(parseInt(_0x415173(0x1e0))/0xb);if(_0x4053a6===_0x226d34)break;else _0x41de2b['push'](_0x41de2b['shift']());}catch(_0xb385e9){_0x41de2b['push'](_0x41de2b['shift']());}}}(_0x183e,0x35e56));import{ContextPlugin as _0x31fb62}from'ckeditor5/src/core.js';import{BodyCollection as _0x22156b}from'ckeditor5/src/ui.js';import{getTranslation as _0x575a0a}from'../aicore/utils/common-translations.js';import{AITabs as _0x1da8df}from'../aitabs/aitabs.js';import{AIReviewCoreBalloonSuggestionItemView as _0x159a76}from'./ui/aireviewcoreballoonsuggestionview.js';export const AI_REVIEW_MODE_UI_EVENT_NAMES=[_0x15f6bf(0x1aa),_0x15f6bf(0x1c7),_0x15f6bf(0x1b9),_0x15f6bf(0x1d5),_0x15f6bf(0x1bb),_0x15f6bf(0x1b8),_0x15f6bf(0x1b5),_0x15f6bf(0x1a1),_0x15f6bf(0x1eb),_0x15f6bf(0x1de),_0x15f6bf(0x1af),_0x15f6bf(0x1a9),_0x15f6bf(0x1c9)];import'../../theme/common/aiheader.css';function _0x183e(){const _0x5485a3=['110710xDgBkJ','showReviewCheckListView','destroy','isOfficialPlugin','accepted','1371216DjQjKL','hideResult','showCheckRunResults','forEach','acceptChange','showReviewCheckList','rejected','setTitle','showBalloon','setCheckResultTitle','fire','detachFromDom','setActiveStateInResults','setItemAsInactive','createMainView','isPremiumPlugin','locale','showDiffInBalloon','get','65giHMix','deactivateChange','103776pdRrmF','showNoChangesView','registerTab','2KkfwpN','hideActionsWhenResultIsReady','3151242asmrvf','find','finishReview','getReviewCheckList','plugins','showCheckRunResult','hideChangeBalloon','AITabs','learnMore','reviewCheckListView','init','hasChecks','showActionsWhenResultIsReady','_balloonSuggestionView','activateChange','8qLFsSu','updateChangeState','leaveReviewCoreResultList','abortReviewStream','showResult','acceptAllChanges','attachToDom','showChunkErrorView','hideDiffInBalloon','config','375817zYPyLW','setAvailableChecks','error-chunk','showChangeBalloon','showGeneralReviewCoreErrorView','setChecks','showReviewCheckResultsView','runReviewCheck','664516xoXPMB','retryReview','status','getResults','40584tkFfpT','resetActiveStateInResults','getChangeElement','error-general','showReviewCompletedView','delegate','setItemAsActive','outdated','element','toggleDiff','addCheckRunResult','requires','ai.models.showModelSelector','_mainView','AI_REVIEW_INITIALIZATION_ERROR_MESSAGE','_bodyCollection','context','showGeneralResultsErrorView','dismissChange','reviewCheckResultsView','264CNVOAm','hideBalloon'];_0x183e=function(){return _0x5485a3;};return _0x183e();}import'../../theme/common/ainotification.css';function _0x1c04(_0xd74b57,_0x334ed3){const _0x183e13=_0x183e();return _0x1c04=function(_0x1c04a7,_0x34af1b){_0x1c04a7=_0x1c04a7-0x195;let _0xece60b=_0x183e13[_0x1c04a7];return _0xece60b;},_0x1c04(_0xd74b57,_0x334ed3);}import'../../theme/common/aibutton.css';import'../../theme/common/aitrackchanges.css';import'../../theme/aireviewcore/aireviewcore.css';export class AIReviewCoreUI extends _0x31fb62{[_0x15f6bf(0x1d9)];[_0x15f6bf(0x1b4)];[_0x15f6bf(0x1db)];static get[_0x15f6bf(0x1d7)](){return[_0x1da8df];}static get[_0x15f6bf(0x1e5)](){return!0x0;}static get[_0x15f6bf(0x19c)](){return!0x0;}constructor(_0x372744){const _0x1ecd05=_0x15f6bf;super(_0x372744),this[_0x1ecd05(0x1db)]=new _0x22156b(this[_0x1ecd05(0x1dc)][_0x1ecd05(0x19d)]),this[_0x1ecd05(0x1db)][_0x1ecd05(0x1bc)](),this[_0x1ecd05(0x1d9)]=this[_0x1ecd05(0x19b)](),this[_0x1ecd05(0x1d9)][_0x1ecd05(0x1d1)](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this[_0x1ecd05(0x1b4)]=new _0x159a76(this[_0x1ecd05(0x1dc)][_0x1ecd05(0x19d)],this[_0x1ecd05(0x1db)]),this[_0x1ecd05(0x1b4)][_0x1ecd05(0x1d1)](_0x1ecd05(0x1eb),_0x1ecd05(0x1de),_0x1ecd05(0x1a1))['to'](this);}[_0x15f6bf(0x1b1)](){const _0x5cde8b=_0x15f6bf,_0x5e7fd3=this[_0x5cde8b(0x1dc)][_0x5cde8b(0x1ab)][_0x5cde8b(0x19f)](_0x5cde8b(0x1ae));this[_0x5cde8b(0x1a4)](_0x5e7fd3);}[_0x15f6bf(0x1e4)](){const _0x2fe77c=_0x15f6bf;this[_0x2fe77c(0x1db)][_0x2fe77c(0x198)](),super[_0x2fe77c(0x1e4)]();}[_0x15f6bf(0x1c1)](_0x4af155){const _0x104ed6=_0x15f6bf;if(!this[_0x104ed6(0x1d9)][_0x104ed6(0x1b0)][_0x104ed6(0x1b2)]()){const _0x3c15e3=!this[_0x104ed6(0x1dc)][_0x104ed6(0x1bf)][_0x104ed6(0x19f)](_0x104ed6(0x1d8));this[_0x104ed6(0x1d9)][_0x104ed6(0x1b0)][_0x104ed6(0x1c5)](_0x4af155,_0x3c15e3);}this[_0x104ed6(0x1d9)][_0x104ed6(0x1e3)]();}[_0x15f6bf(0x1ec)](){const _0x2656ee=_0x15f6bf;this[_0x2656ee(0x197)](_0x2656ee(0x1aa));}[_0x15f6bf(0x1e9)](_0x450918){const _0x238023=_0x15f6bf;_0x450918&&(_0x238023(0x1cf)!==_0x450918[_0x238023(0x1ca)]?_0x238023(0x1c2)!==_0x450918[_0x238023(0x1ca)]?this[_0x238023(0x1d9)][_0x238023(0x1c6)]():this[_0x238023(0x1bd)]():this[_0x238023(0x1dd)]());}[_0x15f6bf(0x1ac)](_0x8297f5){const _0x4a9ba4=_0x15f6bf;this[_0x4a9ba4(0x1d9)][_0x4a9ba4(0x1d6)](_0x8297f5);}[_0x15f6bf(0x1dd)](){const _0x3c5b1a=_0x15f6bf;this[_0x3c5b1a(0x1d9)][_0x3c5b1a(0x1dd)]();}[_0x15f6bf(0x1c4)](_0x2204e2){const _0x31d974=_0x15f6bf;this[_0x31d974(0x1d9)][_0x31d974(0x1c4)](_0x2204e2??_0x575a0a(this[_0x31d974(0x1dc)][_0x31d974(0x19d)],_0x31d974(0x1da)));}[_0x15f6bf(0x1bd)](){const _0x4d2d52=_0x15f6bf;this[_0x4d2d52(0x1d9)][_0x4d2d52(0x1bd)]();}[_0x15f6bf(0x196)](_0x50975b,_0x2e20b8){const _0x17e25c=_0x15f6bf;this[_0x17e25c(0x1d9)][_0x17e25c(0x1df)][_0x17e25c(0x1ee)](_0x50975b,_0x2e20b8);}[_0x15f6bf(0x199)](_0x54600e){const _0x5087d0=_0x15f6bf;this[_0x5087d0(0x1d9)][_0x5087d0(0x1df)][_0x5087d0(0x1cb)]()[_0x5087d0(0x1ea)](_0x15340a=>{const _0x4d4c1a=_0x5087d0;_0x15340a['id']===_0x54600e&&_0x15340a[_0x4d4c1a(0x1d2)]();});}[_0x15f6bf(0x1cd)](){const _0x322746=_0x15f6bf;this[_0x322746(0x1d9)][_0x322746(0x1df)][_0x322746(0x1cb)]()[_0x322746(0x1ea)](_0x3db135=>_0x3db135[_0x322746(0x19a)]());}[_0x15f6bf(0x1b7)](_0xa049,_0x4c47ed){const _0x41f3b3=_0x15f6bf;_0x41f3b3(0x1e6)===_0x4c47ed||_0x41f3b3(0x1ed)===_0x4c47ed||_0x41f3b3(0x1d3)===_0x4c47ed?this[_0x41f3b3(0x1d9)][_0x41f3b3(0x1df)][_0x41f3b3(0x1e8)](_0xa049,_0x4c47ed):this[_0x41f3b3(0x1d9)][_0x41f3b3(0x1df)][_0x41f3b3(0x1ba)](_0xa049,_0x4c47ed);}[_0x15f6bf(0x1d0)](){const _0x3d7619=_0x15f6bf;this[_0x3d7619(0x1d9)][_0x3d7619(0x1d0)]();}[_0x15f6bf(0x1b3)](){const _0x39bcf6=_0x15f6bf;this[_0x39bcf6(0x1d9)][_0x39bcf6(0x1b3)]();}[_0x15f6bf(0x1a3)](){const _0x48d341=_0x15f6bf;this[_0x48d341(0x1d9)][_0x48d341(0x1a3)]();}[_0x15f6bf(0x1a6)](){const _0x4cf90a=_0x15f6bf;this[_0x4cf90a(0x1d9)][_0x4cf90a(0x1a6)]();}[_0x15f6bf(0x1c3)](_0x532d23,_0x33d92e,_0x391d35,_0x54f892,_0x34f6b9,_0x11fd52){const _0x334490=_0x15f6bf;this[_0x334490(0x1b4)][_0x334490(0x195)](_0x532d23,_0x33d92e,_0x391d35,_0x54f892,_0x34f6b9,_0x11fd52);}[_0x15f6bf(0x1ad)](){const _0x545411=_0x15f6bf;this[_0x545411(0x1b4)][_0x545411(0x1e1)]();}[_0x15f6bf(0x1be)](){const _0x443048=_0x15f6bf;this[_0x443048(0x1b4)][_0x443048(0x1be)]();}[_0x15f6bf(0x19e)](){const _0x49fef9=_0x15f6bf;this[_0x49fef9(0x1b4)][_0x49fef9(0x19e)]();}[_0x15f6bf(0x1ce)](_0x11ec1a){const _0x4e05c8=_0x15f6bf,_0x1e551b=this[_0x4e05c8(0x1d9)][_0x4e05c8(0x1df)][_0x4e05c8(0x1cb)]()[_0x4e05c8(0x1a8)](_0x2b2769=>_0x2b2769['id']===_0x11ec1a);return _0x1e551b?_0x1e551b[_0x4e05c8(0x1d4)]:null;}[_0x15f6bf(0x1a1)](){const _0x23d6c4=_0x15f6bf;this[_0x23d6c4(0x1b4)][_0x23d6c4(0x1a1)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xc15930=_0x2531;(function(_0x42acab,_0x5c36f2){const _0x5f5310=_0x2531,_0x39299e=_0x42acab();while(!![]){try{const _0x40f5cf=-parseInt(_0x5f5310(0x1b4))/0x1*(parseInt(_0x5f5310(0x1e7))/0x2)+parseInt(_0x5f5310(0x1b7))/0x3*(-parseInt(_0x5f5310(0x1e5))/0x4)+-parseInt(_0x5f5310(0x1dc))/0x5*(parseInt(_0x5f5310(0x1e4))/0x6)+parseInt(_0x5f5310(0x1bf))/0x7+-parseInt(_0x5f5310(0x1d0))/0x8+parseInt(_0x5f5310(0x1d2))/0x9+parseInt(_0x5f5310(0x19a))/0xa;if(_0x40f5cf===_0x5c36f2)break;else _0x39299e['push'](_0x39299e['shift']());}catch(_0x2c839e){_0x39299e['push'](_0x39299e['shift']());}}}(_0x10e3,0x34a07));function _0x2531(_0x558f84,_0x14b020){const _0x10e3c2=_0x10e3();return _0x2531=function(_0x253181,_0x2e447f){_0x253181=_0x253181-0x18c;let _0x6178b9=_0x10e3c2[_0x253181];return _0x6178b9;},_0x2531(_0x558f84,_0x14b020);}function _0x10e3(){const _0x7d6af7=['ai-request-aborted','_addReviewCheckResult','_changes','reviewCheckResultChangeStatusUpdated','abortController','event','operation','ready','loading','isChangeActive','reviewCheckResultAdded','isRated','includes','reviewCheckResultDeactivated','22033FPKgJO','updateDocumentData','getActiveChanges','9dZKtVC','parent','size','restart','textDelta','fire','sendRating','push','813302LwWoFh','some','initialized','forEach','set','markChangeAsOutdated','clear','change:status','processedResultsCount','_reviewArgs','_wasAborted','markChangeAsPending','outdated','getChangeById','_activeRequest','addResultChanges','length','2325768fqDLBL','markAllChangesAsAccepted','3407751MJHaWn','_reviewParams','abort','markChangeAsAccepted','review-metadata','change:isActivated','hasModifications','aborted','start','subTitle','669135AOxYkG','isAnyChangeActivated','every','activateChange','dataId','_createApiRequest','finished','data','12FEGChy','81324FfAebd','rejected','18RuWltR','_results','find','filter','error','error-chunk','status','accepted','_aiConnector','version','_checkIfFinished','_sendRatingRequest','title','currentError','reviewName','reviewCheckRunUpdated','isActivated','documentData','message','getContent','markChangeAsRejected','callId','unmodified','reviewCheckResultReady','5383990vmXQUF','_documentData','deactivateChange','elements','forceReadyState','get','pending','getStream','_currentError','error-general','_sourceCheck','reviewCheckResultActivated'];_0x10e3=function(){return _0x7d6af7;};return _0x10e3();}import{ObservableMixin as _0x36f8c9,uid as _0x4da249}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x1b9a2d}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x45d5dd}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x36f8c9(){['id']=_0x4da249();[_0xc15930(0x197)];[_0xc15930(0x1e8)]=new Map();[_0xc15930(0x1a8)]=[];[_0xc15930(0x1a4)];[_0xc15930(0x19b)];[_0xc15930(0x1ef)];[_0xc15930(0x1d3)];[_0xc15930(0x1c8)];[_0xc15930(0x1cd)]=null;[_0xc15930(0x1a2)];[_0xc15930(0x1c9)]=!0x1;constructor(_0x302a8c,_0x13af71,_0x94bc71,_0x498087,_0x54d3fa){const _0x51809d=_0xc15930;super(),this[_0x51809d(0x1a4)]=_0x13af71,this[_0x51809d(0x19b)]=_0x302a8c,this[_0x51809d(0x1ef)]=_0x94bc71,this[_0x51809d(0x1d3)]=_0x498087,this[_0x51809d(0x1c8)]=_0x54d3fa,this['on'](_0x51809d(0x1c6),(_0x8bd0ba,_0x46c9bd,_0x20e33c)=>{const _0x52765f=_0x51809d;_0x52765f(0x1d9)==_0x20e33c&&(this[_0x52765f(0x1c9)]=!0x0),this[_0x52765f(0x1bc)](_0x52765f(0x191),{'status':_0x20e33c,'run':this,'error':this[_0x52765f(0x1a2)]});}),this[_0x51809d(0x1c3)](_0x51809d(0x1ed),_0x51809d(0x1c1));}get[_0xc15930(0x193)](){const _0xac8de9=_0xc15930;return this[_0xac8de9(0x19b)];}get[_0xc15930(0x1c7)](){const _0x191473=_0xc15930;return this[_0x191473(0x1e8)][_0x191473(0x1b9)];}get[_0xc15930(0x18e)](){const _0x4bd0c7=_0xc15930;return this[_0x4bd0c7(0x1a4)][_0x4bd0c7(0x18e)];}get[_0xc15930(0x1db)](){return'';}get[_0xc15930(0x190)](){const _0x254084=_0xc15930;return this[_0x254084(0x1a4)]['id'];}get[_0xc15930(0x1d8)](){const _0x3e628b=_0xc15930;return!this[_0x3e628b(0x1a8)][_0x3e628b(0x1de)](_0x428d56=>_0x3e628b(0x1a0)===_0x428d56[_0x3e628b(0x1ed)]);}get[_0xc15930(0x18f)](){const _0x409434=_0xc15930;return this[_0x409434(0x1a2)];}[_0xc15930(0x1b5)](_0x5dc0f6){const _0x2390e7=_0xc15930;this[_0x2390e7(0x19b)]=_0x5dc0f6;}async[_0xc15930(0x1da)](){const _0x1316fa=_0xc15930;this[_0x1316fa(0x1ed)]=_0x1316fa(0x1ae),this[_0x1316fa(0x1a2)]=void 0x0;try{this[_0x1316fa(0x1cd)]=this[_0x1316fa(0x1e1)]();const _0x91a57=await this[_0x1316fa(0x1cd)][_0x1316fa(0x1a1)]();this[_0x1316fa(0x1ed)]=_0x1316fa(0x1e3);for await(const _0x315ab3 of _0x91a57)_0x1316fa(0x198)!==_0x315ab3[_0x1316fa(0x1e3)][_0x1316fa(0x1ac)]&&(_0x1316fa(0x1eb)!==_0x315ab3[_0x1316fa(0x1e3)][_0x1316fa(0x1ac)]?_0x1316fa(0x1d6)!==_0x315ab3[_0x1316fa(0x1ab)]?this[_0x1316fa(0x1a7)](_0x315ab3[_0x1316fa(0x1e3)][_0x1316fa(0x1e0)],_0x315ab3[_0x1316fa(0x1e3)][_0x1316fa(0x1bb)]):this[_0x1316fa(0x197)]=_0x315ab3[_0x1316fa(0x1e3)][_0x1316fa(0x197)]:this[_0x1316fa(0x1ed)]=_0x1316fa(0x1ec));_0x1316fa(0x1ec)!==this[_0x1316fa(0x1ed)]&&(0x0===this[_0x1316fa(0x1e8)][_0x1316fa(0x1b9)]||0x0===this[_0x1316fa(0x1a8)][_0x1316fa(0x1cf)]?this[_0x1316fa(0x1ed)]=_0x1316fa(0x198):this[_0x1316fa(0x1ed)]=_0x1316fa(0x1ad));}catch(_0x372daf){this[_0x1316fa(0x1a2)]=_0x372daf,_0x372daf instanceof Error&&_0x372daf[_0x1316fa(0x194)][_0x1316fa(0x1b2)](_0x1316fa(0x1a6))?this[_0x1316fa(0x1ed)]=_0x1316fa(0x1d9):this[_0x1316fa(0x1ed)]=_0x1316fa(0x1a3);}finally{this[_0x1316fa(0x1cd)]=null;}}async[_0xc15930(0x1ba)](){const _0x20cb52=_0xc15930;this[_0x20cb52(0x1e8)][_0x20cb52(0x1c5)](),this[_0x20cb52(0x1a8)][_0x20cb52(0x1cf)]=0x0,this[_0x20cb52(0x1a2)]=void 0x0,await this[_0x20cb52(0x1da)]();}[_0xc15930(0x1ce)](_0x5a95ac,_0x42c612){const _0x911f43=_0xc15930,_0x4bb1d5=this[_0x911f43(0x1e8)][_0x911f43(0x19f)](_0x5a95ac);if(!_0x4bb1d5)return;if(0x0===_0x42c612[_0x911f43(0x1cf)])return;const _0x28e22f=[];_0x42c612[_0x911f43(0x1c2)]((_0xfddb57,_0x3ad7b3)=>{const _0x3f1680=_0x911f43,_0x10c6fa=new _0x45d5dd(_0x4bb1d5['id']+'-'+_0x3ad7b3,_0xfddb57,_0x4bb1d5);_0x10c6fa['on'](_0x3f1680(0x1c6),()=>{const _0x41e03e=_0x3f1680;this[_0x41e03e(0x1bc)](_0x41e03e(0x1a9),{'change':_0x10c6fa,'status':_0x10c6fa[_0x41e03e(0x1ed)]});}),_0x10c6fa['on'](_0x3f1680(0x1d7),()=>{const _0x3764e9=_0x3f1680;_0x10c6fa[_0x3764e9(0x192)]?this[_0x3764e9(0x1bc)](_0x3764e9(0x1a5),{'change':_0x10c6fa}):this[_0x3764e9(0x1bc)](_0x3764e9(0x1b3),{'change':_0x10c6fa});}),this[_0x3f1680(0x1a8)][_0x3f1680(0x1be)](_0x10c6fa),_0x28e22f[_0x3f1680(0x1be)](_0x10c6fa);}),this[_0x911f43(0x1bc)](_0x911f43(0x199),{'changes':_0x28e22f,'result':_0x4bb1d5,'source':this});}[_0xc15930(0x1d4)](){const _0x56d530=_0xc15930;this[_0x56d530(0x1cd)]&&(this[_0x56d530(0x1cd)][_0x56d530(0x1aa)][_0x56d530(0x1d4)](),this[_0x56d530(0x1cd)]=null,this[_0x56d530(0x1ed)]=_0x56d530(0x1d9));}[_0xc15930(0x1af)](_0x5ae653){const _0x315dbb=_0xc15930,_0x2e8ac3=this[_0x315dbb(0x1a8)][_0x315dbb(0x1e9)](_0x4a967b=>_0x4a967b['id']===_0x5ae653);return!(!_0x2e8ac3||_0x315dbb(0x1a0)!==_0x2e8ac3[_0x315dbb(0x1ed)]);}[_0xc15930(0x1dd)](){const _0x55423f=_0xc15930;return this[_0x55423f(0x1a8)][_0x55423f(0x1c0)](_0x5f0448=>!0x0===_0x5f0448[_0x55423f(0x192)]);}[_0xc15930(0x1b6)](){const _0x59221a=_0xc15930;return this[_0x59221a(0x1a8)][_0x59221a(0x1ea)](_0x49f09c=>_0x59221a(0x1a0)===_0x49f09c[_0x59221a(0x1ed)]);}[_0xc15930(0x1cc)](_0x1112a8){const _0x19903c=_0xc15930;return this[_0x19903c(0x1a8)][_0x19903c(0x1e9)](_0x12f5dd=>_0x12f5dd['id']===_0x1112a8);}[_0xc15930(0x1d1)](){const _0x96bf8c=_0xc15930;for(const _0x36b95f of this[_0x96bf8c(0x1a8)])_0x96bf8c(0x1a0)===_0x36b95f[_0x96bf8c(0x1ed)]&&(_0x36b95f[_0x96bf8c(0x1ed)]=_0x96bf8c(0x1ee));this[_0x96bf8c(0x18c)]();}[_0xc15930(0x1d5)](_0x5d5959){const _0x27b733=_0xc15930,_0x3aa4b3=this[_0x27b733(0x1a8)][_0x27b733(0x1e9)](_0x276e28=>_0x276e28['id']===_0x5d5959);_0x3aa4b3&&_0x27b733(0x1a0)===_0x3aa4b3[_0x27b733(0x1ed)]&&(_0x3aa4b3[_0x27b733(0x1ed)]=_0x27b733(0x1ee)),this[_0x27b733(0x18c)]();}[_0xc15930(0x196)](_0x4df34b){const _0x33404=_0xc15930,_0x23ddc3=this[_0x33404(0x1a8)][_0x33404(0x1e9)](_0x51dfc2=>_0x51dfc2['id']===_0x4df34b);_0x23ddc3&&_0x33404(0x1a0)===_0x23ddc3[_0x33404(0x1ed)]&&(_0x23ddc3[_0x33404(0x1ed)]=_0x33404(0x1e6)),this[_0x33404(0x18c)]();}[_0xc15930(0x1c4)](_0x302c0a){const _0x4e7c55=_0xc15930,_0x5cb9e1=this[_0x4e7c55(0x1a8)][_0x4e7c55(0x1e9)](_0x4404e1=>_0x4404e1['id']===_0x302c0a);_0x5cb9e1&&_0x4e7c55(0x1a0)===_0x5cb9e1[_0x4e7c55(0x1ed)]&&(_0x5cb9e1[_0x4e7c55(0x1ed)]=_0x4e7c55(0x1cb)),this[_0x4e7c55(0x18c)]();}[_0xc15930(0x1ca)](_0x1bb172){const _0x492771=_0xc15930,_0x5f05a4=this[_0x492771(0x1a8)][_0x492771(0x1e9)](_0x4edc5f=>_0x4edc5f['id']===_0x1bb172);_0x5f05a4&&_0x492771(0x1cb)===_0x5f05a4[_0x492771(0x1ed)]&&(_0x5f05a4[_0x492771(0x1ed)]=_0x492771(0x1a0)),this[_0x492771(0x18c)]();}[_0xc15930(0x1df)](_0x16c261){const _0x1f31c8=_0xc15930;this[_0x1f31c8(0x1a8)][_0x1f31c8(0x1ea)](_0x5a20ef=>_0x5a20ef[_0x1f31c8(0x192)]&&_0x5a20ef['id']!==_0x16c261)[_0x1f31c8(0x1c2)](_0x3f1e52=>{const _0x445745=_0x1f31c8;_0x3f1e52[_0x445745(0x192)]=!0x1;});const _0x77a806=this[_0x1f31c8(0x1a8)][_0x1f31c8(0x1e9)](_0x19e6a7=>_0x19e6a7['id']===_0x16c261);_0x77a806&&_0x1f31c8(0x1a0)===_0x77a806[_0x1f31c8(0x1ed)]&&(_0x77a806[_0x1f31c8(0x192)]=!0x0);}[_0xc15930(0x19c)](){const _0x300bd9=_0xc15930;this[_0x300bd9(0x1a8)][_0x300bd9(0x1ea)](_0x407404=>_0x407404[_0x300bd9(0x192)])[_0x300bd9(0x1c2)](_0x5f75a9=>{const _0x177e32=_0x300bd9;_0x5f75a9[_0x177e32(0x192)]=!0x1;});}[_0xc15930(0x19e)](){const _0x4d336b=_0xc15930;this[_0x4d336b(0x1ed)]=_0x4d336b(0x1ad);}async[_0xc15930(0x1bd)](_0x56a3c0){const _0xf9538e=_0xc15930;if(_0xf9538e(0x1c1)===this[_0xf9538e(0x1ed)]||_0xf9538e(0x1ae)===this[_0xf9538e(0x1ed)]||_0xf9538e(0x1e3)===this[_0xf9538e(0x1ed)]||this[_0xf9538e(0x1c9)])return;if(!this[_0xf9538e(0x197)]||0x0===this[_0xf9538e(0x1a8)][_0xf9538e(0x1cf)])return;let _0x563061;if(_0x56a3c0){const _0x1fd9c5=this[_0xf9538e(0x1a8)][_0xf9538e(0x1e9)](_0x41ed9e=>_0x41ed9e['id']===_0x56a3c0);if(_0x1fd9c5&&_0x1fd9c5[_0xf9538e(0x1b1)])return;_0x1fd9c5&&(_0x563061=_0x1fd9c5[_0xf9538e(0x1b8)]['id'],_0x1fd9c5[_0xf9538e(0x1b1)]=!0x0);}const _0x5e4937={'positiveCount':this[_0xf9538e(0x1a8)][_0xf9538e(0x1ea)](_0x16cfe1=>_0xf9538e(0x1ee)===_0x16cfe1[_0xf9538e(0x1ed)])[_0xf9538e(0x1cf)],'totalCount':this[_0xf9538e(0x1a8)][_0xf9538e(0x1cf)]};this[_0xf9538e(0x18d)](_0x5e4937,this[_0xf9538e(0x197)],_0x563061);}[_0xc15930(0x1a7)](_0x45959a,_0x1984ca){const _0x1e52e6=_0xc15930,_0x405bc1=this[_0x1e52e6(0x19b)][_0x1e52e6(0x19d)][_0x1e52e6(0x19f)](_0x45959a);if(!_0x405bc1)return;const _0x363b18=_0x405bc1[_0x1e52e6(0x195)]();if(_0x363b18===_0x1984ca)return;const _0x224130=new _0x1b9a2d({'id':_0x45959a,'contentInitial':_0x363b18,'contentNew':_0x1984ca,'documentVersion':this[_0x1e52e6(0x19b)][_0x1e52e6(0x1f0)]});this[_0x1e52e6(0x1e8)][_0x1e52e6(0x1c3)](_0x224130['id'],_0x224130),this[_0x1e52e6(0x1bc)](_0x1e52e6(0x1b0),{'result':_0x224130,'source':this});}[_0xc15930(0x18c)](){const _0x2628e3=_0xc15930;_0x2628e3(0x1e2)===this[_0x2628e3(0x1ed)]&&(this[_0x2628e3(0x1a8)][_0x2628e3(0x1ea)](_0x10de2e=>_0x2628e3(0x1a0)===_0x10de2e[_0x2628e3(0x1ed)])[_0x2628e3(0x1cf)]>0x0&&(this[_0x2628e3(0x1ed)]=_0x2628e3(0x1ad))),_0x2628e3(0x1ad)===this[_0x2628e3(0x1ed)]&&(0x0===this[_0x2628e3(0x1a8)][_0x2628e3(0x1ea)](_0x124d5d=>_0x2628e3(0x1a0)===_0x124d5d[_0x2628e3(0x1ed)])[_0x2628e3(0x1cf)]&&(this[_0x2628e3(0x1ed)]=_0x2628e3(0x1e2)));}}
|
|
23
|
+
const _0xb28bd6=_0x1f8e;function _0x1f8e(_0x2fda32,_0x29c2b1){const _0x3f120b=_0x3f12();return _0x1f8e=function(_0x1f8efd,_0x3ab83f){_0x1f8efd=_0x1f8efd-0x118;let _0x3a1db0=_0x3f120b[_0x1f8efd];return _0x3a1db0;},_0x1f8e(_0x2fda32,_0x29c2b1);}(function(_0x46aae5,_0x271d31){const _0x116c9f=_0x1f8e,_0x58d720=_0x46aae5();while(!![]){try{const _0x35203d=-parseInt(_0x116c9f(0x119))/0x1*(-parseInt(_0x116c9f(0x146))/0x2)+parseInt(_0x116c9f(0x152))/0x3+parseInt(_0x116c9f(0x124))/0x4+parseInt(_0x116c9f(0x15f))/0x5+-parseInt(_0x116c9f(0x12d))/0x6+-parseInt(_0x116c9f(0x122))/0x7*(-parseInt(_0x116c9f(0x132))/0x8)+parseInt(_0x116c9f(0x161))/0x9*(-parseInt(_0x116c9f(0x16c))/0xa);if(_0x35203d===_0x271d31)break;else _0x58d720['push'](_0x58d720['shift']());}catch(_0x5a0034){_0x58d720['push'](_0x58d720['shift']());}}}(_0x3f12,0xbaa4f));import{ObservableMixin as _0x52c117,uid as _0x3316c8}from'ckeditor5/src/utils.js';function _0x3f12(){const _0x180869=['reviewCheckRunUpdated','length','pending','addResultChanges','filter','2286OUfZzs','subTitle','reviewCheckResultActivated','size','status','textDelta','isChangeActive','title','_sendRatingRequest','finished','dataId','ready','3473826iUSrrp','_activeRequest','set','accepted','documentData','event','change:status','every','parent','markChangeAsAccepted','initialized','_reviewParams','callId','140920rDUKvL','clear','9giEHkr','abortController','_results','_documentData','operation','rejected','markChangeAsRejected','reviewCheckResultAdded','sendRating','isActivated','includes','17831290ReZrIS','hasModifications','reviewName','getStream','abort','getActiveChanges','activateChange','unmodified','loading','deactivateChange','currentError','some','forEach','_currentError','_aiConnector','_sourceCheck','forceReadyState','_reviewArgs','1153hLDlgz','_changes','reviewCheckResultDeactivated','markChangeAsOutdated','reviewCheckResultChangeStatusUpdated','error','error-chunk','reviewCheckResultReady','review-metadata','175hmcZbe','getChangeById','1293960uMEMAf','ai-request-aborted','elements','get','updateDocumentData','markAllChangesAsAccepted','_wasAborted','data','isRated','5118576BMCrOL','start','restart','fire','_addReviewCheckResult','183432nraIeV','push','isAnyChangeActivated','change:isActivated','_checkIfFinished','find','markChangeAsPending','processedResultsCount','outdated','message','aborted','error-general','_createApiRequest','getContent','version'];_0x3f12=function(){return _0x180869;};return _0x3f12();}import{AIReviewCheckResult as _0x460b7a}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x1b3062}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x52c117(){['id']=_0x3316c8();[_0xb28bd6(0x15e)];[_0xb28bd6(0x163)]=new Map();[_0xb28bd6(0x11a)]=[];[_0xb28bd6(0x17b)];[_0xb28bd6(0x164)];[_0xb28bd6(0x17a)];[_0xb28bd6(0x15d)];[_0xb28bd6(0x118)];[_0xb28bd6(0x153)]=null;[_0xb28bd6(0x179)];[_0xb28bd6(0x12a)]=!0x1;constructor(_0x579bf7,_0x2abb8e,_0x245e58,_0x372095,_0x247210){const _0x509270=_0xb28bd6;super(),this[_0x509270(0x17b)]=_0x2abb8e,this[_0x509270(0x164)]=_0x579bf7,this[_0x509270(0x17a)]=_0x245e58,this[_0x509270(0x15d)]=_0x372095,this[_0x509270(0x118)]=_0x247210,this['on'](_0x509270(0x158),(_0x3d0d9a,_0x1a093a,_0x4f439a)=>{const _0x210f47=_0x509270;_0x210f47(0x13c)==_0x4f439a&&(this[_0x210f47(0x12a)]=!0x0),this[_0x210f47(0x130)](_0x210f47(0x141),{'status':_0x4f439a,'run':this,'error':this[_0x210f47(0x179)]});}),this[_0x509270(0x154)](_0x509270(0x14a),_0x509270(0x15c));}get[_0xb28bd6(0x156)](){const _0x11c6fd=_0xb28bd6;return this[_0x11c6fd(0x164)];}get[_0xb28bd6(0x139)](){const _0x2e24d2=_0xb28bd6;return this[_0x2e24d2(0x163)][_0x2e24d2(0x149)];}get[_0xb28bd6(0x14d)](){const _0xb954dd=_0xb28bd6;return this[_0xb954dd(0x17b)][_0xb954dd(0x14d)];}get[_0xb28bd6(0x147)](){return'';}get[_0xb28bd6(0x16e)](){const _0x2b747f=_0xb28bd6;return this[_0x2b747f(0x17b)]['id'];}get[_0xb28bd6(0x16d)](){const _0x2883f4=_0xb28bd6;return!this[_0x2883f4(0x11a)][_0x2883f4(0x159)](_0x38b663=>_0x2883f4(0x143)===_0x38b663[_0x2883f4(0x14a)]);}get[_0xb28bd6(0x176)](){const _0x398c6d=_0xb28bd6;return this[_0x398c6d(0x179)];}[_0xb28bd6(0x128)](_0x8987a4){const _0x16b7ab=_0xb28bd6;this[_0x16b7ab(0x164)]=_0x8987a4;}async[_0xb28bd6(0x12e)](){const _0x40e47f=_0xb28bd6;this[_0x40e47f(0x14a)]=_0x40e47f(0x174),this[_0x40e47f(0x179)]=void 0x0;try{this[_0x40e47f(0x153)]=this[_0x40e47f(0x13e)]();const _0x4ccfb4=await this[_0x40e47f(0x153)][_0x40e47f(0x16f)]();this[_0x40e47f(0x14a)]=_0x40e47f(0x12b);for await(const _0x3f8302 of _0x4ccfb4)_0x40e47f(0x173)!==_0x3f8302[_0x40e47f(0x12b)][_0x40e47f(0x165)]&&(_0x40e47f(0x11e)!==_0x3f8302[_0x40e47f(0x12b)][_0x40e47f(0x165)]?_0x40e47f(0x121)!==_0x3f8302[_0x40e47f(0x157)]?this[_0x40e47f(0x131)](_0x3f8302[_0x40e47f(0x12b)][_0x40e47f(0x150)],_0x3f8302[_0x40e47f(0x12b)][_0x40e47f(0x14b)]):this[_0x40e47f(0x15e)]=_0x3f8302[_0x40e47f(0x12b)][_0x40e47f(0x15e)]:this[_0x40e47f(0x14a)]=_0x40e47f(0x11f));_0x40e47f(0x11f)!==this[_0x40e47f(0x14a)]&&(0x0===this[_0x40e47f(0x163)][_0x40e47f(0x149)]||0x0===this[_0x40e47f(0x11a)][_0x40e47f(0x142)]?this[_0x40e47f(0x14a)]=_0x40e47f(0x173):this[_0x40e47f(0x14a)]=_0x40e47f(0x151));}catch(_0x3a703e){this[_0x40e47f(0x179)]=_0x3a703e,_0x3a703e instanceof Error&&_0x3a703e[_0x40e47f(0x13b)][_0x40e47f(0x16b)](_0x40e47f(0x125))?this[_0x40e47f(0x14a)]=_0x40e47f(0x13c):this[_0x40e47f(0x14a)]=_0x40e47f(0x13d);}finally{this[_0x40e47f(0x153)]=null;}}async[_0xb28bd6(0x12f)](){const _0x3402b9=_0xb28bd6;this[_0x3402b9(0x163)][_0x3402b9(0x160)](),this[_0x3402b9(0x11a)][_0x3402b9(0x142)]=0x0,this[_0x3402b9(0x179)]=void 0x0,await this[_0x3402b9(0x12e)]();}[_0xb28bd6(0x144)](_0x406c0f,_0x373e79){const _0x542c02=_0xb28bd6,_0x1b8e0b=this[_0x542c02(0x163)][_0x542c02(0x127)](_0x406c0f);if(!_0x1b8e0b)return;if(0x0===_0x373e79[_0x542c02(0x142)])return;const _0x4cbd3c=[];_0x373e79[_0x542c02(0x178)]((_0x105b69,_0x462a0e)=>{const _0x5ab479=_0x542c02,_0x104275=new _0x1b3062(_0x1b8e0b['id']+'-'+_0x462a0e,_0x105b69,_0x1b8e0b);_0x104275['on'](_0x5ab479(0x158),()=>{const _0x37ccbc=_0x5ab479;this[_0x37ccbc(0x130)](_0x37ccbc(0x11d),{'change':_0x104275,'status':_0x104275[_0x37ccbc(0x14a)]});}),_0x104275['on'](_0x5ab479(0x135),()=>{const _0x1222ee=_0x5ab479;_0x104275[_0x1222ee(0x16a)]?this[_0x1222ee(0x130)](_0x1222ee(0x148),{'change':_0x104275}):this[_0x1222ee(0x130)](_0x1222ee(0x11b),{'change':_0x104275});}),this[_0x5ab479(0x11a)][_0x5ab479(0x133)](_0x104275),_0x4cbd3c[_0x5ab479(0x133)](_0x104275);}),this[_0x542c02(0x130)](_0x542c02(0x120),{'changes':_0x4cbd3c,'result':_0x1b8e0b,'source':this});}[_0xb28bd6(0x170)](){const _0x45350e=_0xb28bd6;this[_0x45350e(0x153)]&&(this[_0x45350e(0x153)][_0x45350e(0x162)][_0x45350e(0x170)](),this[_0x45350e(0x153)]=null,this[_0x45350e(0x14a)]=_0x45350e(0x13c));}[_0xb28bd6(0x14c)](_0x216bbc){const _0x2a85f5=_0xb28bd6,_0x371344=this[_0x2a85f5(0x11a)][_0x2a85f5(0x137)](_0x5a9507=>_0x5a9507['id']===_0x216bbc);return!(!_0x371344||_0x2a85f5(0x143)!==_0x371344[_0x2a85f5(0x14a)]);}[_0xb28bd6(0x134)](){const _0x533589=_0xb28bd6;return this[_0x533589(0x11a)][_0x533589(0x177)](_0x2a7b88=>!0x0===_0x2a7b88[_0x533589(0x16a)]);}[_0xb28bd6(0x171)](){const _0x1c2018=_0xb28bd6;return this[_0x1c2018(0x11a)][_0x1c2018(0x145)](_0xd26604=>_0x1c2018(0x143)===_0xd26604[_0x1c2018(0x14a)]);}[_0xb28bd6(0x123)](_0x4a832c){const _0x5b61c5=_0xb28bd6;return this[_0x5b61c5(0x11a)][_0x5b61c5(0x137)](_0x545c53=>_0x545c53['id']===_0x4a832c);}[_0xb28bd6(0x129)](){const _0x54c64e=_0xb28bd6;for(const _0x3dbf83 of this[_0x54c64e(0x11a)])_0x54c64e(0x143)===_0x3dbf83[_0x54c64e(0x14a)]&&(_0x3dbf83[_0x54c64e(0x14a)]=_0x54c64e(0x155));this[_0x54c64e(0x136)]();}[_0xb28bd6(0x15b)](_0x156943){const _0x4cd1c1=_0xb28bd6,_0x2771e5=this[_0x4cd1c1(0x11a)][_0x4cd1c1(0x137)](_0x3e1bfe=>_0x3e1bfe['id']===_0x156943);_0x2771e5&&_0x4cd1c1(0x143)===_0x2771e5[_0x4cd1c1(0x14a)]&&(_0x2771e5[_0x4cd1c1(0x14a)]=_0x4cd1c1(0x155)),this[_0x4cd1c1(0x136)]();}[_0xb28bd6(0x167)](_0x57a3ef){const _0x437f56=_0xb28bd6,_0xc1b02f=this[_0x437f56(0x11a)][_0x437f56(0x137)](_0x9ae5ad=>_0x9ae5ad['id']===_0x57a3ef);_0xc1b02f&&_0x437f56(0x143)===_0xc1b02f[_0x437f56(0x14a)]&&(_0xc1b02f[_0x437f56(0x14a)]=_0x437f56(0x166)),this[_0x437f56(0x136)]();}[_0xb28bd6(0x11c)](_0x2113aa){const _0x4df5c0=_0xb28bd6,_0x4d52f7=this[_0x4df5c0(0x11a)][_0x4df5c0(0x137)](_0x2915ef=>_0x2915ef['id']===_0x2113aa);_0x4d52f7&&_0x4df5c0(0x143)===_0x4d52f7[_0x4df5c0(0x14a)]&&(_0x4d52f7[_0x4df5c0(0x14a)]=_0x4df5c0(0x13a)),this[_0x4df5c0(0x136)]();}[_0xb28bd6(0x138)](_0x3ef6c2){const _0x2dde28=_0xb28bd6,_0x162e71=this[_0x2dde28(0x11a)][_0x2dde28(0x137)](_0x227005=>_0x227005['id']===_0x3ef6c2);_0x162e71&&_0x2dde28(0x13a)===_0x162e71[_0x2dde28(0x14a)]&&(_0x162e71[_0x2dde28(0x14a)]=_0x2dde28(0x143)),this[_0x2dde28(0x136)]();}[_0xb28bd6(0x172)](_0x116901){const _0x443e65=_0xb28bd6;this[_0x443e65(0x11a)][_0x443e65(0x145)](_0x6fcd0c=>_0x6fcd0c[_0x443e65(0x16a)]&&_0x6fcd0c['id']!==_0x116901)[_0x443e65(0x178)](_0xb12647=>{const _0x3782f9=_0x443e65;_0xb12647[_0x3782f9(0x16a)]=!0x1;});const _0x22af36=this[_0x443e65(0x11a)][_0x443e65(0x137)](_0x3667e4=>_0x3667e4['id']===_0x116901);_0x22af36&&_0x443e65(0x143)===_0x22af36[_0x443e65(0x14a)]&&(_0x22af36[_0x443e65(0x16a)]=!0x0);}[_0xb28bd6(0x175)](){const _0x1b74aa=_0xb28bd6;this[_0x1b74aa(0x11a)][_0x1b74aa(0x145)](_0x1bb22d=>_0x1bb22d[_0x1b74aa(0x16a)])[_0x1b74aa(0x178)](_0x5102a0=>{const _0x310c05=_0x1b74aa;_0x5102a0[_0x310c05(0x16a)]=!0x1;});}[_0xb28bd6(0x17c)](){const _0x404eb4=_0xb28bd6;this[_0x404eb4(0x14a)]=_0x404eb4(0x151);}async[_0xb28bd6(0x169)](_0x2824c5){const _0x5aa79c=_0xb28bd6;if(_0x5aa79c(0x15c)===this[_0x5aa79c(0x14a)]||_0x5aa79c(0x174)===this[_0x5aa79c(0x14a)]||_0x5aa79c(0x12b)===this[_0x5aa79c(0x14a)]||this[_0x5aa79c(0x12a)])return;if(!this[_0x5aa79c(0x15e)]||0x0===this[_0x5aa79c(0x11a)][_0x5aa79c(0x142)])return;let _0x4cdc97;if(_0x2824c5){const _0x20586a=this[_0x5aa79c(0x11a)][_0x5aa79c(0x137)](_0x4b42db=>_0x4b42db['id']===_0x2824c5);if(_0x20586a&&_0x20586a[_0x5aa79c(0x12c)])return;_0x20586a&&(_0x4cdc97=_0x20586a[_0x5aa79c(0x15a)]['id'],_0x20586a[_0x5aa79c(0x12c)]=!0x0);}const _0x572646={'positiveCount':this[_0x5aa79c(0x11a)][_0x5aa79c(0x145)](_0x5e3606=>_0x5aa79c(0x155)===_0x5e3606[_0x5aa79c(0x14a)])[_0x5aa79c(0x142)],'totalCount':this[_0x5aa79c(0x11a)][_0x5aa79c(0x142)]};this[_0x5aa79c(0x14e)](_0x572646,this[_0x5aa79c(0x15e)],_0x4cdc97);}[_0xb28bd6(0x131)](_0x5a8a6c,_0x3dce66){const _0x17f011=_0xb28bd6,_0x152107=this[_0x17f011(0x164)][_0x17f011(0x126)][_0x17f011(0x127)](_0x5a8a6c);if(!_0x152107)return;const _0x3dfc7b=_0x152107[_0x17f011(0x13f)]();if(_0x3dfc7b===_0x3dce66)return;const _0x2b6998=new _0x460b7a({'id':_0x5a8a6c,'contentInitial':_0x3dfc7b,'contentNew':_0x3dce66,'documentVersion':this[_0x17f011(0x164)][_0x17f011(0x140)]});this[_0x17f011(0x163)][_0x17f011(0x154)](_0x2b6998['id'],_0x2b6998),this[_0x17f011(0x130)](_0x17f011(0x168),{'result':_0x2b6998,'source':this});}[_0xb28bd6(0x136)](){const _0x5f8e80=_0xb28bd6;_0x5f8e80(0x14f)===this[_0x5f8e80(0x14a)]&&(this[_0x5f8e80(0x11a)][_0x5f8e80(0x145)](_0x51f255=>_0x5f8e80(0x143)===_0x51f255[_0x5f8e80(0x14a)])[_0x5f8e80(0x142)]>0x0&&(this[_0x5f8e80(0x14a)]=_0x5f8e80(0x151))),_0x5f8e80(0x151)===this[_0x5f8e80(0x14a)]&&(0x0===this[_0x5f8e80(0x11a)][_0x5f8e80(0x145)](_0x2f2802=>_0x5f8e80(0x143)===_0x2f2802[_0x5f8e80(0x14a)])[_0x5f8e80(0x142)]&&(this[_0x5f8e80(0x14a)]=_0x5f8e80(0x14f)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19f6d0=_0x40f6;(function(_0x6e438e,_0x25038f){const _0x20b9ae=_0x40f6,_0x1634c8=_0x6e438e();while(!![]){try{const _0x20d700=-parseInt(_0x20b9ae(0xd2))/0x1*(parseInt(_0x20b9ae(0x101))/0x2)+-parseInt(_0x20b9ae(0xed))/0x3+-parseInt(_0x20b9ae(0xea))/0x4*(-parseInt(_0x20b9ae(0xe9))/0x5)+parseInt(_0x20b9ae(0xdf))/0x6+parseInt(_0x20b9ae(0xfe))/0x7*(parseInt(_0x20b9ae(0xe8))/0x8)+-parseInt(_0x20b9ae(0xf6))/0x9+parseInt(_0x20b9ae(0xbe))/0xa*(parseInt(_0x20b9ae(0xc5))/0xb);if(_0x20d700===_0x25038f)break;else _0x1634c8['push'](_0x1634c8['shift']());}catch(_0x4dff30){_0x1634c8['push'](_0x1634c8['shift']());}}}(_0x47e0,0x8d305));import{Rect as _0x499424,getConstrainedViewportRect as _0xda4469}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x25d4c9,View as _0x56a4c2,clickOutsideHandler as _0x5a6183}from'ckeditor5/src/ui.js';function _0x40f6(_0x5b97fb,_0x117bc4){const _0x47e042=_0x47e0();return _0x40f6=function(_0x40f630,_0x4ed40e){_0x40f630=_0x40f630-0xb7;let _0x1a4dbb=_0x47e042[_0x40f630];return _0x1a4dbb;},_0x40f6(_0x5b97fb,_0x117bc4);}import{AIReviewCoreReviewCheckListItemResultsView as _0x2504d3}from'./aireviewcorechecklistitemresultview.js';import'../../../theme/aireviewcore/aireviewcore-balloon-panel-suggestion.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreBalloonSuggestionItemView extends _0x25d4c9{[_0x19f6d0(0xc7)];[_0x19f6d0(0xbd)]=void 0x0;[_0x19f6d0(0xeb)]=void 0x0;[_0x19f6d0(0xf4)]=void 0x0;constructor(_0x4d5bff,_0xc9da9f){const _0x3a2243=_0x19f6d0;super(_0x4d5bff),this[_0x3a2243(0x102)]({'isVisible':!0x1,'position':_0x3a2243(0xd9),'class':null,'top':0x0,'left':0x0}),this[_0x3a2243(0xbc)]({'tag':_0x3a2243(0xef),'attributes':{'class':[_0x3a2243(0xe1)],'tabindex':'-1'}}),this[_0x3a2243(0x102)](_0x3a2243(0xb7),!0x1),this[_0x3a2243(0xbb)][_0x3a2243(0xf3)](this[_0x3a2243(0x106)]()),_0xc9da9f[_0x3a2243(0xf3)](this);}[_0x19f6d0(0xd8)](){const _0x5ef241=_0x19f6d0;super[_0x5ef241(0xd8)](),this[_0x5ef241(0xde)]();}[_0x19f6d0(0x104)](_0x128e75){const _0x35d3a7=_0x19f6d0;this[_0x35d3a7(0xc7)][_0x35d3a7(0xe6)]=_0x128e75['id'],this[_0x35d3a7(0xc7)][_0x35d3a7(0xe0)][_0x35d3a7(0xe2)][_0x35d3a7(0xdb)]=_0x128e75[_0x35d3a7(0xf7)];}[_0x19f6d0(0xfb)](_0x1a8eea,_0x18eed9,_0x50b736,_0x37ab19,_0x1ad1fc,_0x4da85a){const _0x1052a5=_0x19f6d0,_0x295b6b=_0x18eed9();if(!_0x295b6b)return;this[_0x1052a5(0x104)](_0x1a8eea),this[_0x1052a5(0x105)]();const _0x411c3c=Array[_0x1052a5(0xd5)](_0x295b6b[_0x1052a5(0xba)]())[_0x1052a5(0xe5)](),_0x2f4cc8=this[_0x1052a5(0xce)](_0x50b736,_0x411c3c),_0x5a8e4d=_0x411c3c[_0x2f4cc8??0x0];_0x1052a5(0xcf)===_0x37ab19?(this[_0x1052a5(0xb7)]=!0x0,this[_0x1052a5(0xf1)]({'target':()=>this[_0x1052a5(0xdd)](_0x18eed9(),_0x2f4cc8,_0x1a8eea['id'],_0x1ad1fc,_0x4da85a)||_0x5a8e4d})):_0x1052a5(0x103)===_0x37ab19&&(this[_0x1052a5(0xb7)]=!0x1,this[_0x1052a5(0xf1)]({'target':()=>this[_0x1052a5(0xfa)](_0x18eed9(),_0x2f4cc8,_0x1a8eea['id'])||_0x5a8e4d}));}[_0x19f6d0(0xc4)](){const _0x2aeb21=_0x19f6d0;this[_0x2aeb21(0xd3)](),this[_0x2aeb21(0xd6)](),this[_0x2aeb21(0xbd)]=void 0x0,this[_0x2aeb21(0xeb)]=void 0x0,this[_0x2aeb21(0xf4)]=void 0x0;}[_0x19f6d0(0xb8)](){const _0x128c0b=_0x19f6d0;this[_0x128c0b(0xc7)][_0x128c0b(0xc1)]=!0x1;}[_0x19f6d0(0xf8)](){const _0x239261=_0x19f6d0;this[_0x239261(0xc7)][_0x239261(0xc1)]=!0x0;}[_0x19f6d0(0xd7)](){const _0x5c92e2=_0x19f6d0;this[_0x5c92e2(0xe7)](_0x5c92e2(0xd7),{'origin':_0x5c92e2(0xcd)});}[_0x19f6d0(0xde)](){const _0x55298f=_0x19f6d0;_0x5a6183({'emitter':this,'activator':()=>this[_0x55298f(0xff)],'contextElements':()=>{const _0x450ef4=_0x55298f,_0xad3ad9=[this[_0x450ef4(0xe2)]];return this[_0x450ef4(0xeb)]&&_0xad3ad9[_0x450ef4(0xf9)](this[_0x450ef4(0xeb)]),_0xad3ad9;},'callback':()=>{const _0x1daae9=_0x55298f;this[_0x1daae9(0xd3)](),this[_0x1daae9(0xd6)](),this[_0x1daae9(0xd7)](),this[_0x1daae9(0xeb)]=void 0x0,this[_0x1daae9(0xbd)]=void 0x0,this[_0x1daae9(0xf4)]=void 0x0;}});}[_0x19f6d0(0x106)](){const _0x23d550=_0x19f6d0,_0x301395=new _0x56a4c2();return this[_0x23d550(0xc7)]=new _0x2504d3(this[_0x23d550(0xc8)],''),this[_0x23d550(0xc7)][_0x23d550(0xe0)][_0x23d550(0xbc)]({'attributes':{'class':[_0x23d550(0xca)]}}),this[_0x23d550(0xc7)][_0x23d550(0xd0)](_0x23d550(0xc9),_0x23d550(0xf5))['to'](this),_0x301395[_0x23d550(0xc0)]({'tag':_0x23d550(0xef),'attributes':{'class':[_0x23d550(0xe1),_0x23d550(0xd4),this[_0x23d550(0x100)]['if'](_0x23d550(0xb7),_0x23d550(0xfd))]},'children':[{'tag':'p','attributes':{'class':[_0x23d550(0xe4)]},'children':[this[_0x23d550(0xc7)]]}]}),_0x301395;}[_0x19f6d0(0xdd)](_0x2f2bb5,_0x4cfb4a,_0x1185b5,_0x13c24b,_0x119bef){const _0x318433=_0x19f6d0;if(!_0x2f2bb5)return null;const _0x9d2b3c=this[_0x318433(0xdc)][_0x318433(0xda)](_0x318433(0xc6),''),_0x26cb97=Array[_0x318433(0xd5)](_0x2f2bb5[_0x318433(0xba)]());let _0x1609ac,_0x583e2c=_0x26cb97[_0x318433(0xe5)]();return void 0x0!==_0x4cfb4a&&this[_0x318433(0xf2)](_0x583e2c[_0x4cfb4a],_0x13c24b,_0x119bef)?(_0x1609ac=_0x583e2c[_0x4cfb4a],this[_0x318433(0xbd)]=_0x4cfb4a):this[_0x318433(0xf2)](_0x583e2c[0x0],_0x13c24b,_0x119bef)&&void 0x0===_0x4cfb4a?_0x1609ac=_0x583e2c[0x0]:(_0x583e2c='s'==_0x9d2b3c[0x0]?[..._0x26cb97][_0x318433(0xe5)]():_0x26cb97,_0x583e2c[_0x318433(0xec)](_0x1a253d=>{const _0x392dca=_0x318433;this[_0x392dca(0xf2)](_0x1a253d,_0x13c24b,_0x119bef)&&(_0x1609ac=_0x1a253d);})),this[_0x318433(0xf4)]=_0x1185b5,this[_0x318433(0xeb)]=_0x2f2bb5,_0x1609ac||_0x2f2bb5[_0x318433(0xc2)]();}[_0x19f6d0(0xfa)](_0x38156c,_0x351bdf,_0x49fc89){const _0x492e7d=_0x19f6d0;if(!_0x38156c)return null;const _0xb24b0c=Array[_0x492e7d(0xd5)](_0x38156c[_0x492e7d(0xba)]())[_0x492e7d(0xe5)]();if(void 0x0===this[_0x492e7d(0xbd)]&&void 0x0!==_0x351bdf&&this[_0x492e7d(0xf4)]!==_0x49fc89)return this[_0x492e7d(0xbd)]=_0x351bdf,this[_0x492e7d(0xeb)]=_0x38156c,this[_0x492e7d(0xf4)]=_0x49fc89,_0xb24b0c[_0x351bdf];if(void 0x0!==this[_0x492e7d(0xbd)]&&this[_0x492e7d(0xf4)]===_0x49fc89){if(_0x38156c!==this[_0x492e7d(0xeb)])return Array[_0x492e7d(0xd5)](this[_0x492e7d(0xeb)][_0x492e7d(0xba)]())[_0x492e7d(0xe5)]()[this[_0x492e7d(0xbd)]];return _0xb24b0c[this[_0x492e7d(0xbd)]];}return void 0x0!==_0x351bdf&&this[_0x492e7d(0xf4)]!==_0x49fc89?(this[_0x492e7d(0xbd)]=_0x351bdf,this[_0x492e7d(0xeb)]=_0x38156c,this[_0x492e7d(0xf4)]=_0x49fc89,_0xb24b0c[_0x351bdf]):_0x38156c[_0x492e7d(0xc2)]();}[_0x19f6d0(0xce)](_0x3b544d,_0x5124c4){const _0x28e1ed=_0x19f6d0;if(_0x3b544d)for(let _0x5ec193=0x0;_0x5ec193<_0x5124c4[_0x28e1ed(0xc3)];_0x5ec193++){const _0xa76a95=_0x5124c4[_0x5ec193];if(_0x3b544d[_0x28e1ed(0xb9)]>=_0xa76a95[_0x28e1ed(0xfc)]-0x3&&_0x3b544d[_0x28e1ed(0xb9)]<=_0xa76a95[_0x28e1ed(0xcb)]+0x3&&_0x3b544d[_0x28e1ed(0xf0)]>=_0xa76a95[_0x28e1ed(0xbf)]-0x3&&_0x3b544d[_0x28e1ed(0xf0)]<=_0xa76a95[_0x28e1ed(0xee)]+0x3)return _0x5ec193;}}[_0x19f6d0(0xf2)](_0x3aecc1,_0x402141,_0x4beee9){const _0x5f578=_0x19f6d0,_0x1935ef=new _0x499424(_0x3aecc1),_0x9c975d=_0x402141||document[_0x5f578(0xcc)],_0x172da8=_0x1935ef[_0x5f578(0xe3)](_0xda4469(_0x4beee9)),_0x2b3871=new _0x499424(_0x9c975d)[_0x5f578(0xe3)](_0x1935ef);return!!(_0x172da8&&_0x2b3871&&_0x1935ef[_0x5f578(0xd1)]>0x0);}}function _0x47e0(){const _0x2a2461=['showBalloon','left','ck-ai_review-balloon-panel-suggestion_diff-active','1099OKgpLi','isVisible','bindTemplate','2hJsZFb','set','hover','updateContent','show','_createContentView','isDiffActive','hideDiffInBalloon','clientX','getClientRects','content','extendTemplate','_pinnedRectIndex','8900dHHMgV','top','setTemplate','showDiff','getBoundingClientRect','length','hideBalloon','11495rwUwhi','arrow_','resultItemView','locale','acceptChange','ck-content','right','documentElement','balloon','_getPointedRectIndexFromEvent','click','delegate','width','490671zBYVXV','hide','ck-ai_review-balloon-panel-suggestion','from','unpin','deactivateChange','render','arrow_se','replace','innerHTML','position','_getBestRectPositionOnClick','_setupClickOutsideHandler','1170096fwSdtV','resultResponseView','ck-reset','element','getIntersection','ck-ai_review__suggestion-text','reverse','changeId','fire','42040FVvHPi','265015sgfWan','8yqATZP','_pinnedTargetElement','forEach','2560509HHGDrP','bottom','div','clientY','pin','_isPinnedRectVisible','add','_pinnedTargetChangeId','dismissChange','1202616pocZJr','contentDiffed','showDiffInBalloon','push','_getBestRectPositionOnHover'];_0x47e0=function(){return _0x2a2461;};return _0x47e0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2aeb53=_0x154b;(function(_0x42f134,_0x131d5e){const _0x36b860=_0x154b,_0x175095=_0x42f134();while(!![]){try{const _0x1b7213=parseInt(_0x36b860(0x1c4))/0x1+parseInt(_0x36b860(0x18a))/0x2+-parseInt(_0x36b860(0x186))/0x3+parseInt(_0x36b860(0x1a0))/0x4+-parseInt(_0x36b860(0x19c))/0x5*(parseInt(_0x36b860(0x19b))/0x6)+parseInt(_0x36b860(0x1aa))/0x7*(-parseInt(_0x36b860(0x196))/0x8)+parseInt(_0x36b860(0x19e))/0x9;if(_0x1b7213===_0x131d5e)break;else _0x175095['push'](_0x175095['shift']());}catch(_0x78f82d){_0x175095['push'](_0x175095['shift']());}}}(_0x8f67,0x3df3a));function _0x154b(_0x3ca877,_0x38b476){const _0x8f671d=_0x8f67();return _0x154b=function(_0x154b7f,_0x2aa006){_0x154b7f=_0x154b7f-0x181;let _0x28bd38=_0x8f671d[_0x154b7f];return _0x28bd38;},_0x154b(_0x3ca877,_0x38b476);}import{View as _0x213cb5,ButtonView as _0x94b577}from'ckeditor5/src/ui.js';import{IconInfo as _0x19193f,IconCheck as _0x3bdcba,IconCancel as _0xe67178,IconOutdated as _0x131751}from'ckeditor5/src/icons.js';function _0x8f67(){const _0x181929=['setTemplate','ck-ai-button-secondary','infoButtonView','showDiff','AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED','ck-ai_review__check-run-result-dismiss-button','acceptButtonView','fire','824AFXDYl','ck-ai_review__check-run-result_active','extendTemplate','ck-hidden','change:status','4266lLrklV','15AhUDXO','panel','3099627TpDvRs','label','320836WPRfxi','stopPropagation','preventDefault','_createResultResponseView','dismissChange','ck-ai_review__check-run-result-footer','ck-ai_review__check-run-result-status-button','locale','ck-ai_review__check-run-result','deactivateChange','19607KOOyJT','ck-ai-button-tertiary','resultResponseView','menuitemcheckbox','mouseover','ck-ai_review__check-run-result-response','ck-reset_all-excluded','_createOutdatedButtonView','_createInfoButtonView','AI_REVIEW_MODE_CHECK_STATUS_REJECTED','setItemAsActive','accepted','rejected','mouseout','tagName','ck-ai_review__check-run-result-accept-button','isActive','isEnabled','icon','status','acceptChange','div','set','AI_REVIEW_MODE_CHECK_STATUS_OUTDATED','outdatedButtonView','setItemAsInactive','248420kXSVqF','execute','ck-ai_review__check-run-result-action-buttons','_createDismissButtonView','AI_REVIEW_MODE_DISMISS_CHANGE','_createAcceptButtonView','dismissButtonView','outdated','hover','ck-ai-button-tertiary\x20ck-ai_review__check-run-result-info-button\x20ck-hidden','ck-content','AI_REVIEW_MODE_ACCEPT_CHANGE','AI_REVIEW_MODE_LEARN_MORE','disabled','click','isInfoToggleOn','isOn','720591MtpKKh','activateChange','changeId','target','223110wWIOOe','pending','bind','bindTemplate'];_0x8f67=function(){return _0x181929;};return _0x8f67();}import{getTranslation as _0x1a2b1d}from'../../aicore/utils/common-translations.js';export class AIReviewCoreReviewCheckListItemResultsView extends _0x213cb5{[_0x2aeb53(0x1ac)];[_0x2aeb53(0x194)];[_0x2aeb53(0x1ca)];[_0x2aeb53(0x190)];[_0x2aeb53(0x1c2)];constructor(_0x388065,_0x1dd1fa){const _0x5e96d5=_0x2aeb53;super(_0x388065),this['id']=_0x1dd1fa,this[_0x5e96d5(0x1c0)](_0x5e96d5(0x1bd),_0x5e96d5(0x18b)),this[_0x5e96d5(0x1c0)](_0x5e96d5(0x188),_0x1dd1fa),this[_0x5e96d5(0x1ac)]=this[_0x5e96d5(0x1a3)](),this[_0x5e96d5(0x194)]=this[_0x5e96d5(0x1c9)](),this[_0x5e96d5(0x1ca)]=this[_0x5e96d5(0x1c7)](),this[_0x5e96d5(0x190)]=this[_0x5e96d5(0x1b2)](),this[_0x5e96d5(0x1c2)]=this[_0x5e96d5(0x1b1)](),this[_0x5e96d5(0x1c0)](_0x5e96d5(0x184),!0x1),this[_0x5e96d5(0x1c0)](_0x5e96d5(0x1ba),!0x1),this[_0x5e96d5(0x1c0)](_0x5e96d5(0x191),!0x0),this[_0x5e96d5(0x18e)]({'tag':_0x5e96d5(0x1bf),'attributes':{'class':[_0x5e96d5(0x1a8),this[_0x5e96d5(0x18d)]['if'](_0x5e96d5(0x1ba),_0x5e96d5(0x197))]},'on':{'click':this[_0x5e96d5(0x18d)]['to'](_0x5e96d5(0x183)),'mouseover':this[_0x5e96d5(0x18d)]['to'](_0x5e96d5(0x1ae)),'mouseout':this[_0x5e96d5(0x18d)]['to'](_0x5e96d5(0x1b7))},'children':[this[_0x5e96d5(0x1ac)],{'tag':_0x5e96d5(0x1bf),'attributes':{'class':[_0x5e96d5(0x1a5)]},'children':[{'tag':_0x5e96d5(0x1bf),'attributes':{'class':[_0x5e96d5(0x1c6)]},'children':[this[_0x5e96d5(0x194)],this[_0x5e96d5(0x1ca)],this[_0x5e96d5(0x1c2)]]},this[_0x5e96d5(0x190)]]}]}),this['on'](_0x5e96d5(0x183),(_0x298111,_0x683461)=>{const _0x52a8ce=_0x5e96d5;_0x683461&&_0x683461[_0x52a8ce(0x189)]&&'A'===_0x683461[_0x52a8ce(0x189)][_0x52a8ce(0x1b8)]&&_0x683461[_0x52a8ce(0x1a2)](),this[_0x52a8ce(0x195)](_0x52a8ce(0x187),{'id':_0x1dd1fa,'source':this,'uiInteraction':_0x52a8ce(0x183)});}),this['on'](_0x5e96d5(0x1ae),()=>{const _0x308e13=_0x5e96d5;this[_0x308e13(0x195)](_0x308e13(0x187),{'id':_0x1dd1fa,'source':this,'uiInteraction':_0x308e13(0x1cc)});}),this['on'](_0x5e96d5(0x1b7),()=>{const _0x107cbf=_0x5e96d5;this[_0x107cbf(0x195)](_0x107cbf(0x1a9),{'origin':_0x107cbf(0x19d),'id':_0x1dd1fa,'source':this});});}[_0x2aeb53(0x1b4)](){const _0x50e2d5=_0x2aeb53;this[_0x50e2d5(0x1ba)]=!0x0;}[_0x2aeb53(0x1c3)](){const _0x28b42e=_0x2aeb53;this[_0x28b42e(0x1ba)]=!0x1;}[_0x2aeb53(0x1a3)](){const _0x11b2c9=_0x2aeb53,_0xdb576b=new _0x213cb5(this[_0x11b2c9(0x1a7)]);return _0xdb576b[_0x11b2c9(0x18e)]({'tag':_0x11b2c9(0x1bf),'attributes':{'class':['ck',_0x11b2c9(0x1ce),_0x11b2c9(0x1b0),_0x11b2c9(0x1af),this[_0x11b2c9(0x18d)]['if'](_0x11b2c9(0x191),_0x11b2c9(0x199),_0x2454c6=>!_0x2454c6)]}}),_0xdb576b;}[_0x2aeb53(0x1c9)](){const _0x27d0ed=_0x2aeb53,_0x2942e6=new _0x94b577(this[_0x27d0ed(0x1a7)]);return _0x2942e6[_0x27d0ed(0x1c0)]({'label':_0x1a2b1d(this[_0x27d0ed(0x1a7)],_0x27d0ed(0x1cf)),'withText':!0x0}),_0x2942e6[_0x27d0ed(0x198)]({'on':{'click':this[_0x27d0ed(0x18d)]['to'](_0x9802d6=>{const _0x574f79=_0x27d0ed;this[_0x574f79(0x195)](_0x574f79(0x1be),{'id':this[_0x574f79(0x188)]}),_0x9802d6[_0x574f79(0x1a1)]();})},'attributes':{'class':[_0x27d0ed(0x18f),_0x27d0ed(0x1b9),this[_0x27d0ed(0x18d)]['if'](_0x27d0ed(0x1bd),_0x27d0ed(0x199),_0x43902f=>_0x27d0ed(0x18b)!==_0x43902f&&_0x27d0ed(0x1b5)!==_0x43902f),this[_0x27d0ed(0x18d)]['if'](_0x27d0ed(0x1bd),_0x27d0ed(0x1b9),_0x5b14a6=>_0x27d0ed(0x18b)===_0x5b14a6),this[_0x27d0ed(0x18d)]['if'](_0x27d0ed(0x1bd),_0x27d0ed(0x1a6),_0x1bb14e=>_0x27d0ed(0x1b5)===_0x1bb14e)]}}),this['on'](_0x27d0ed(0x19a),(_0xc00592,_0xcb6c64,_0xaebc9b)=>{const _0x5b2479=_0x27d0ed;_0x2942e6[_0x5b2479(0x1bb)]=_0x5b2479(0x18b)===_0xaebc9b,_0x5b2479(0x1b5)===_0xaebc9b&&(_0x2942e6[_0x5b2479(0x19f)]=_0x1a2b1d(this[_0x5b2479(0x1a7)],_0x5b2479(0x192)),_0x2942e6[_0x5b2479(0x1bc)]=_0x3bdcba);}),_0x2942e6;}[_0x2aeb53(0x1c7)](){const _0x16cf60=_0x2aeb53,_0x1bcda5=new _0x94b577(this[_0x16cf60(0x1a7)]);return _0x1bcda5[_0x16cf60(0x1c0)]({'label':_0x1a2b1d(this[_0x16cf60(0x1a7)],_0x16cf60(0x1c8)),'withText':!0x0}),_0x1bcda5[_0x16cf60(0x198)]({'on':{'click':this[_0x16cf60(0x18d)]['to'](_0x509000=>{const _0x517114=_0x16cf60;this[_0x517114(0x195)](_0x517114(0x1a4),{'id':this[_0x517114(0x188)]}),_0x509000[_0x517114(0x1a1)]();})},'attributes':{'class':[_0x16cf60(0x1ab),this[_0x16cf60(0x18d)]['if'](_0x16cf60(0x1bd),_0x16cf60(0x199),_0x52da42=>_0x16cf60(0x18b)!==_0x52da42&&_0x16cf60(0x1b6)!==_0x52da42),this[_0x16cf60(0x18d)]['if'](_0x16cf60(0x1bd),_0x16cf60(0x193),_0x1f87e7=>_0x16cf60(0x18b)===_0x1f87e7),this[_0x16cf60(0x18d)]['if'](_0x16cf60(0x1bd),_0x16cf60(0x1a6),_0x4f961e=>_0x16cf60(0x1b6)===_0x4f961e)]}}),this['on'](_0x16cf60(0x19a),(_0x1225e3,_0x30363b,_0x4f2d37)=>{const _0x3b196c=_0x16cf60;_0x1bcda5[_0x3b196c(0x1bb)]=_0x3b196c(0x18b)===_0x4f2d37,_0x3b196c(0x1b6)===_0x4f2d37&&(_0x1bcda5[_0x3b196c(0x19f)]=_0x1a2b1d(this[_0x3b196c(0x1a7)],_0x3b196c(0x1b3)),_0x1bcda5[_0x3b196c(0x1bc)]=_0xe67178);}),_0x1bcda5;}[_0x2aeb53(0x1b2)](){const _0x29d0b3=_0x2aeb53,_0x3dcbab=new _0x94b577(this[_0x29d0b3(0x1a7)]);return _0x3dcbab[_0x29d0b3(0x1c0)]({'label':_0x1a2b1d(this[_0x29d0b3(0x1a7)],_0x29d0b3(0x181)),'icon':_0x19193f,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x29d0b3(0x1ad),'class':_0x29d0b3(0x1cd)}),_0x3dcbab[_0x29d0b3(0x18c)](_0x29d0b3(0x185))['to'](this,_0x29d0b3(0x184),_0x340abf=>_0x340abf),_0x3dcbab['on'](_0x29d0b3(0x1c5),()=>{const _0x117dac=_0x29d0b3;this[_0x117dac(0x184)]=!this[_0x117dac(0x184)];}),_0x3dcbab;}[_0x2aeb53(0x1b1)](){const _0x36bfea=_0x2aeb53,_0x51c5a7=new _0x94b577(this[_0x36bfea(0x1a7)]);return _0x51c5a7[_0x36bfea(0x1c0)]({'label':_0x1a2b1d(this[_0x36bfea(0x1a7)],_0x36bfea(0x1c1)),'icon':_0x131751,'withText':!0x0,'isEnabled':!0x1}),_0x51c5a7[_0x36bfea(0x198)]({'attributes':{'class':[_0x36bfea(0x18f),_0x36bfea(0x1a6),this[_0x36bfea(0x18d)]['if'](_0x36bfea(0x1bd),_0x36bfea(0x199),_0x3f890c=>_0x36bfea(0x1cb)!==_0x3f890c)],'disabled':_0x36bfea(0x182)}}),_0x51c5a7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x17cc24,KeystrokeHandler as _0x5a7a99,FocusTracker as _0x3fc1a0}from'ckeditor5/src/utils.js';import{View as _0x222a7c,ViewCollection as _0x63de3f,ButtonView as _0x2d644b,FormRowView as _0x32f815,createDropdown as _0x3226f4,addListToDropdown as _0x1599b8,UIModel as _0xf792b6,ButtonLabelView as _0x45836e,LabeledFieldView as _0x45b196,FocusCycler as _0x39e529}from'ckeditor5/src/ui.js';import{getTranslation as _0x182fea}from'../../aicore/utils/common-translations.js';import{AIReviewCorePromptInputView as _0x2d74fc}from'./aireviewcorepromptinputview.js';export class AIReviewCoreCustomCheckView extends _0x222a7c{['focusTracker']=new _0x3fc1a0();['keystrokes']=new _0x5a7a99();['focusCycler'];['_focusables']=new _0x63de3f();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelNameView'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x45ab8e,_0x4eed1b,_0x1b9b80=!0x1){super(_0x45ab8e),this['_check']=_0x4eed1b,this['set']('prompt',''),this['set']('modelId',''),this['set']('modelDisplayMode','selector'),this['set']('activeModelName',null),this['_defaultValue']=_0x4eed1b['defaultModel']?_0x4eed1b['defaultModel']['id']:'',this['_defaultLabel']=_0x4eed1b['defaultModel']?_0x4eed1b['defaultModel']['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x45b196(this['locale'],()=>new _0x2d74fc(_0x45ab8e)),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 _0x17cc24(),this['_modelNameView']=this['_createModelNameView'](),this['_setModelList'](_0x1b9b80),_0x1599b8(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions']},'children':[new _0x32f815(this['locale'],{'children':[this['promptInputView']]}),new _0x32f815(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x446256,_0x277e02)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x277e02()):_0x277e02();}),this['focusCycler']=new _0x39e529({'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'](_0x3579b8=>{this['_focusables']['add'](_0x3579b8),this['focusTracker']['add'](_0x3579b8['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 _0x5f483a of this['_getFormValidators']()){const _0x10a9c6=_0x5f483a();if(_0x10a9c6)return this['promptInputView']['errorText']=_0x10a9c6,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x182fea(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x1ac20e=new _0x2d644b(this['locale']),t=this['locale']['t'];return _0x1ac20e['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x1ac20e['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x1ac20e;}['_createCancelButtonView'](){const _0x2dc928=new _0x2d644b(this['locale']),t=this['locale']['t'];return _0x2dc928['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary'}),_0x2dc928['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x3b43af=>{_0x3b43af['stopPropagation']();})}}),_0x2dc928['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x2dc928;}['_setModelList'](_0x3ca12d){this['_modelSelectionDropdownItems']['clear']();const _0x119557=this['_check']['models'];if(_0x3ca12d)this['set']('modelDisplayMode','hidden');else{const _0x13b5ad=0x1===_0x119557['length'];this['set']('modelDisplayMode',_0x13b5ad?'name':'selector');}if(this['resetToDefault'](),_0x119557?.['length']){0x1===_0x119557['length']&&this['set']('activeModelName',_0x119557[0x0]['name']||_0x119557[0x0]['id']);for(const _0x34d78d of _0x119557){const _0x175f98=new _0xf792b6({'label':_0x34d78d['name'],'withText':!0x0,'role':'menuitemradio','id':_0x34d78d['id'],'model':_0x34d78d});_0x175f98['bind']('isOn')['to'](this,'modelId',_0x482823=>_0x482823===_0x34d78d['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x175f98,'labelView':new ko(this['locale'],_0x34d78d)});}}}['_createModelSelectionDropdown'](){const _0x3d57c3=_0x3226f4(this['locale']);return _0x3d57c3['set']({'panelPosition':'se','class':'ck-ai_review__check-list-item-model-dropdown'}),_0x3d57c3['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),_0x3d57c3['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x2e9446=>'selector'===_0x2e9446),this['listenTo'](_0x3d57c3,'execute',_0x9b90a4=>{this['modelId']=_0x9b90a4['source']['model']['id'],_0x3d57c3['buttonView']['label']=_0x9b90a4['source']['label'];}),_0x3d57c3;}['_createModelNameView'](){const _0x2da8cc=new _o(this['locale']);return _0x2da8cc['bind']('text')['to'](this,'activeModelName',_0x235af7=>_0x235af7??''),_0x2da8cc['bind']('isVisible')['to'](this,'modelDisplayMode',_0x1ecf97=>'name'===_0x1ecf97),_0x2da8cc;}['_createActionsFooterView'](){const _0x135ac8=new _0x222a7c(this['locale']);return _0x135ac8['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']]}]}),_0x135ac8;}}class _o extends _0x222a7c{constructor(_0x4b5f51){super(_0x4b5f51),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x570f1f=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai_review__check-list-item-model-name',_0x570f1f['if']('isVisible','ck-hidden',_0x902d27=>!_0x902d27)]},'children':[{'text':_0x570f1f['to']('text')}]});}}class ko extends _0x45836e{constructor(_0x2fa260,_0x270535){super();const _0x4eb315=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x4eb315['to']('style'),'id':_0x4eb315['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x4eb315['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x270535['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2cb18c,_0x59310b){var _0x396dda=_0x55f5,_0x4064ef=_0x2cb18c();while(!![]){try{var _0x17ef81=-parseInt(_0x396dda(0x96))/0x1+parseInt(_0x396dda(0x95))/0x2*(-parseInt(_0x396dda(0x90))/0x3)+parseInt(_0x396dda(0x88))/0x4*(-parseInt(_0x396dda(0x8a))/0x5)+parseInt(_0x396dda(0x91))/0x6*(parseInt(_0x396dda(0x89))/0x7)+parseInt(_0x396dda(0x93))/0x8+-parseInt(_0x396dda(0x8b))/0x9+parseInt(_0x396dda(0x87))/0xa*(parseInt(_0x396dda(0x8e))/0xb);if(_0x17ef81===_0x59310b)break;else _0x4064ef['push'](_0x4064ef['shift']());}catch(_0xaa218d){_0x4064ef['push'](_0x4064ef['shift']());}}}(_0x5e48,0x7d8f2));function _0x55f5(_0x3ef6fa,_0x295c87){var _0x5e4844=_0x5e48();return _0x55f5=function(_0x55f5b5,_0x4a3c40){_0x55f5b5=_0x55f5b5-0x87;var _0xd74295=_0x5e4844[_0x55f5b5];return _0xd74295;},_0x55f5(_0x3ef6fa,_0x295c87);}import{ButtonView as _0xa1e277}from'ckeditor5/src/ui.js';import'../../../theme/aireviewcore/aireviewcore-review-completed.css';export class AIReviewCoreFinishReviewButtonView extends _0xa1e277{constructor(_0x2db4ef,_0x129ad2){var _0x4ee179=_0x55f5;super(_0x129ad2),this[_0x4ee179(0x92)]({'label':_0x2db4ef,'withText':!0x0,'class':_0x4ee179(0x94)}),this['on'](_0x4ee179(0x8c),()=>{var _0x24286d=_0x4ee179;this[_0x24286d(0x8d)](_0x24286d(0x8f));});}}function _0x5e48(){var _0xe55fd4=['ck-ai-button-primary','1586474oKtKAM','826745vWdwEC','11659110IroAKq','3132484RicCMz','7ZfJJxr','5moRSTA','8328456hrMwze','execute','fire','33ySPtRc','finishReview','3xgFfbo','809376PMcanz','set','1681184OStRkv'];_0x5e48=function(){return _0xe55fd4;};return _0x5e48();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x4ae0f5,IconView as _0x5038d7,View as _0x503921,ViewCollection as _0x2221c0,ButtonView as _0x40eae7,clickOutsideHandler as _0xa6e2da}from'ckeditor5/src/ui.js';import{IconChevronRight as _0xca59ca}from'ckeditor5/src/icons.js';import{AIReviewCoreFormManagerView as _0x58998f}from'./form/aireviewcoreformmanager.js';import{AIReviewCoreCustomCheckView as _0x415504}from'./aireviewcorecustomcheckview.js';export class AIReviewCoreReviewCommandListItemView extends _0x4ae0f5{['_formItemsCollection']=new _0x2221c0();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x29251a,_0x363214,_0x328a9e,_0x4d8bb6=!0x1){super(_0x29251a),this['_hideModels']=_0x4d8bb6,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x363214['isParameterized']);const _0x4fa2dd=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',_0x31279a=>_0x31279a),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x2b48a9=>_0x2b48a9)],'style':{'--ck-ai-review-check-list-item-index':_0x328a9e}},'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':_0x363214['title']}]},_0x4fa2dd]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x363214['description']?[{'text':_0x363214['description']}]:[]}]}]},..._0x363214['isParameterized']?[this['_createParameterizedView'](_0x363214)]:[],...'custom'===_0x363214['id']?[this['_createCustomView'](_0x363214,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x363214['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x363214['id'],'args':_0x363214['useArgs']?_0x363214['args']:void 0x0});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0xa6e2da({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x52743a=>{_0x52743a['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x4ac7e9=new _0x5038d7();return _0x4ac7e9['content']=_0xca59ca,_0x4ac7e9['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0x4ac7e9;}['_createParameterizedView'](_0x3bd769){const _0x8898ed=new _0x503921(),_0x31f747=this['_createFormView'](_0x3bd769);return _0x8898ed['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x16f174=>!_0x16f174)]},'children':[_0x31f747]}),_0x8898ed;}['_createFormView'](_0x3834f3){const _0x236da6=new _0x503921(),_0x913230=Array['isArray'](_0x3834f3['options'])?_0x3834f3['options']:[],_0x3fe5fa=new _0x40eae7(this['locale']),t=this['locale']['t'];_0x3fe5fa['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x3fe5fa['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x38dde3=>{_0x38dde3['stopPropagation']();})}}),_0x3fe5fa['on']('execute',()=>{const _0x4dc3d0=[],_0x5c67fb={};this['_formItemsCollection']['forEach'](_0x28e861=>{_0x4dc3d0['push'](_0x28e861['value']),_0x3834f3['useArgs']&&_0x3834f3['options']&&(_0x5c67fb[_0x28e861['argsKey']]=_0x28e861['value']);}),this['fire']('runReviewCheck',{'id':_0x3834f3['id'],'params':_0x4dc3d0['length']?_0x4dc3d0:void 0x0,'args':Object['keys'](_0x5c67fb)['length']?_0x5c67fb:void 0x0});});const _0x37636d=_0x913230['length'];return _0x913230['forEach']((_0x136afe,_0x2b0689)=>{const _0x35eb2a=_0x2b0689===_0x37636d-0x1;this['_formItemsCollection']['add'](new _0x58998f(this['locale'],_0x136afe,_0x35eb2a?_0x3fe5fa:null));}),_0x236da6['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x236da6;}['_createCustomView'](_0xb07235,_0x14e99e=!0x1){return this['_customCheckView']=new _0x415504(this['locale'],_0xb07235,_0x14e99e),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',_0x21cb00=>!_0x21cb00)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x3060ed,_0x2e7fed,_0x172a63)=>{_0x172a63||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as _0x2e2e0e,View as _0x52feea,ViewCollection as _0x175b80,ButtonView as _0xde3232}from'ckeditor5/src/ui.js';import{IconStop as _0xe380dd,IconEye as _0x19969c,IconEyeCrossedOut as _0x206729}from'ckeditor5/src/icons.js';import{AISkeletonView as _0x1bfde1,SKELETON_DEFINITIONS as _0x3882c3}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x121b04}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x4460fb}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5474bb}from'../../aicore/ui/aispinner.js';import{AIReviewCoreReviewCheckListItemResultsView as _0x29678f}from'./aireviewcorechecklistitemresultview.js';import{AIReviewCoreFinishReviewButtonView as _0x37f7e3}from'./aireviewcorefinishreviewbuttonview.js';import'../../../theme/aireviewcore/aireviewcore-check-run.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreUICheckResultsView extends _0x2e2e0e{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x10b1da,_0x2d239a){super(_0x10b1da),this['_contents']=_0x2d239a,this['_resultViews']=new _0x175b80(),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 _0x121b04(_0x10b1da),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 _0x3ad10f=this['_createCombinedSkeletonLoader'](),_0x37c580=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x37c580['if']('isLoading','ck-ai_review__check-run_loading',_0x2f1660=>_0x2f1660),_0x37c580['if']('isResultReady','ck-ai_review__check-run_ready',_0x45ddf0=>_0x45ddf0),_0x37c580['if']('isVisible','ck-hidden',_0x4610c1=>!_0x4610c1)]},'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',_0x36f4e3=>_0x36f4e3)]},'children':this['_resultViews']},_0x3ad10f]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x291450){const _0x4541f1=new _0x29678f(this['locale'],_0x291450['id']);_0x4541f1['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x4541f1),_0x4541f1['resultResponseView']['element']['innerHTML']=_0x291450['contentDiffed'];}['hideResult'](_0x22ccc0,_0x43f039){if('pending'===_0x43f039)return;const _0x4e8cba=this['_resultViews']['find'](_0x110714=>_0x110714['id']===_0x22ccc0);_0x4e8cba&&(_0x4e8cba['status']=_0x43f039,_0x4e8cba['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x4294e4,_0x1be16c){if('pending'!==_0x1be16c)return;const _0x496e7a=this['_resultViews']['find'](_0x17e777=>_0x17e777['id']===_0x4294e4);_0x496e7a&&(_0x496e7a['status']=_0x1be16c,_0x496e7a['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x1f1c1b,_0x145008){this['headerTitle']=_0x1f1c1b,this['headerSubtitle']=_0x145008||'';}['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 _0x1bfde1(this['locale'],_0x3882c3['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x36626b=new _0x52feea(this['locale']),_0x27ac52=[];for(let _0x5934bd=0x0;_0x5934bd<0x10;_0x5934bd++){const _0x5da67d=this['_createSkeletonLoader']();_0x5da67d['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x27ac52['push'](_0x5da67d);}return _0x36626b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x1204f4=>!_0x1204f4)]},'children':_0x27ac52}),_0x36626b;}['_createErrorView'](){const _0x393c5b=new _0x52feea(this['locale']),_0x29e13d=new _0xde3232(this['locale']),t=this['locale']['t'];return _0x393c5b['delegate']('retryReview')['to'](this),_0x29e13d['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x29e13d['on']('execute',()=>{this['fire']('retryReview');}),_0x393c5b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x53b6e3=>!_0x53b6e3),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x498c16=>'chunk'===_0x498c16)]},'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',_0x4c399b=>'chunk'===_0x4c399b)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x26b13e=>'general'!==_0x26b13e)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x3290b7=>'chunk'!==_0x3290b7)]},'children':[{'text':_0x4460fb(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x29e13d]}),_0x393c5b;}['_createCancelButtonView'](){const _0x35c31c=new _0xde3232(this['locale']);return _0x35c31c['set']({'label':_0x4460fb(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0xe380dd}),_0x35c31c['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x453e69=>_0x453e69),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5e0a4c=>_0x5e0a4c)]}}),_0x35c31c['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x35c31c;}['_createToggleDiffButtonView'](){const _0x875bc6=new _0xde3232(this['locale']);_0x875bc6['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x875bc6['bind']('isEnabled')['to'](this,'isError',_0x33a9ea=>!_0x33a9ea),_0x875bc6['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x650acd=>!_0x650acd),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2dea3c=>_0x2dea3c)]}});const _0x615c7c=_0x4460fb(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x4ce897=_0x4460fb(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x875bc6['bind']('isOn')['to'](this,'isToggleDiffOn',_0x3c9088=>_0x3c9088),_0x875bc6['bind']('icon')['to'](this,'isToggleDiffOn',_0x2de3eb=>_0x2de3eb?_0x19969c:_0x206729),_0x875bc6['bind']('label')['to'](this,'isToggleDiffOn',_0x38406f=>_0x38406f?_0x615c7c:_0x4ce897),_0x875bc6['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x875bc6;}['_createAcceptAllButtonView'](){const _0x169733=new _0xde3232(this['locale']);return _0x169733['set']({'label':_0x4460fb(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x169733['bind']('isEnabled')['to'](this,'isError',_0x4b737c=>!_0x4b737c),_0x169733['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x404cab=>!_0x404cab),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x522326=>_0x522326)]}}),_0x169733['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x169733;}['_createExitReviewButtonView'](){const _0x930236=new _0xde3232(this['locale']);return _0x930236['set']({'label':_0x4460fb(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x930236['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1a1e51=>!_0x1a1e51),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5236f5=>_0x5236f5)]}}),_0x930236['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x930236;}['_createResultHeaderView'](){const _0x225e47=new _0x52feea(this['locale']),_0x1910b3=this['_createTitleView']();return _0x225e47['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x4c3dde=>_0x4c3dde)]},'children':[_0x1910b3,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x225e47;}['_createTitleView'](){const _0x23d366=new _0x52feea(this['locale']),_0x3d3554=new _0x5474bb();return _0x3d3554['bind']('isVisible')['to'](this,'isResultReady',_0x187cc0=>!_0x187cc0),_0x23d366['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x3d3554,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x58376e=>_0x58376e)]},'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',_0x2ed72a=>!_0x2ed72a)]},'children':[{'text':_0x4460fb(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x23d366;}['_createFinishReviewButtonView'](){const _0x2584ff=new _0x37f7e3(_0x4460fb(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x2584ff['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5e6ff0=>!_0x5e6ff0)]}}),_0x2584ff['delegate']('finishReview')['to'](this),_0x2584ff;}}
|
|
23
|
+
import{ListItemView as _0x323ff7,View as _0x580dd1,ViewCollection as _0x268275,ButtonView as _0x5b5668}from'ckeditor5/src/ui.js';import{IconStop as _0x2ec583,IconEye as _0xc5b86b,IconEyeCrossedOut as _0x596bfd}from'ckeditor5/src/icons.js';import{AISkeletonView as _0x1743e9,SKELETON_DEFINITIONS as _0x2a285a}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x24a9c8}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x1d9b51}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x298550}from'../../aicore/ui/aispinner.js';import{AIReviewCoreReviewCheckListItemResultsView as _0x16ed99}from'./aireviewcorechecklistitemresultview.js';import{AIReviewCoreFinishReviewButtonView as _0x49d655}from'./aireviewcorefinishreviewbuttonview.js';import'../../../theme/aireviewcore/aireviewcore-check-run.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreUICheckResultsView extends _0x323ff7{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x39c349,_0x24c70c){super(_0x39c349),this['_contents']=_0x24c70c,this['_resultViews']=new _0x268275(),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 _0x24a9c8(_0x39c349),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 _0x1e8ce6=this['_createCombinedSkeletonLoader'](),_0x49df54=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x49df54['if']('isLoading','ck-ai_review__check-run_loading',_0x4c666d=>_0x4c666d),_0x49df54['if']('isResultReady','ck-ai_review__check-run_ready',_0x27c2ec=>_0x27c2ec),_0x49df54['if']('isVisible','ck-hidden',_0x42ce31=>!_0x42ce31)]},'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',_0x4d918d=>_0x4d918d)]},'children':this['_resultViews']},_0x1e8ce6]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x2a6a07){const _0x251e78=new _0x16ed99(this['locale'],_0x2a6a07['id']);_0x251e78['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x251e78),_0x251e78['resultResponseView']['element']['innerHTML']=_0x2a6a07['contentDiffed'];}['hideResult'](_0x4f8575,_0x4bffdb){if('pending'===_0x4bffdb)return;const _0x2e66e6=this['_resultViews']['find'](_0x5836f0=>_0x5836f0['id']===_0x4f8575);_0x2e66e6&&(_0x2e66e6['status']=_0x4bffdb,_0x2e66e6['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0xa32043,_0x5965f7){if('pending'!==_0x5965f7)return;const _0x417dfb=this['_resultViews']['find'](_0x5a6919=>_0x5a6919['id']===_0xa32043);_0x417dfb&&(_0x417dfb['status']=_0x5965f7,_0x417dfb['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x3e99e4,_0x5e8569){this['headerTitle']=_0x3e99e4,this['headerSubtitle']=_0x5e8569||'';}['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 _0x1743e9(this['locale'],_0x2a285a['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x881541=new _0x580dd1(this['locale']),_0xef818e=[];for(let _0x472f86=0x0;_0x472f86<0x10;_0x472f86++){const _0x5c85b0=this['_createSkeletonLoader']();_0x5c85b0['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0xef818e['push'](_0x5c85b0);}return _0x881541['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x586765=>!_0x586765)]},'children':_0xef818e}),_0x881541;}['_createErrorView'](){const _0x549e39=new _0x580dd1(this['locale']),_0x2f109e=new _0x5b5668(this['locale']),t=this['locale']['t'];return _0x549e39['delegate']('retryReview')['to'](this),_0x2f109e['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x2f109e['on']('execute',()=>{this['fire']('retryReview');}),_0x549e39['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x2ed4b0=>!_0x2ed4b0),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x37bcd8=>'chunk'===_0x37bcd8)]},'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',_0x5b9947=>'chunk'===_0x5b9947)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x9bd9d7=>'general'!==_0x9bd9d7)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x46a9b1=>'chunk'!==_0x46a9b1)]},'children':[{'text':_0x1d9b51(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x2f109e]}),_0x549e39;}['_createCancelButtonView'](){const _0x446b3e=new _0x5b5668(this['locale']);return _0x446b3e['set']({'label':_0x1d9b51(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x2ec583}),_0x446b3e['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x43099f=>_0x43099f),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2b8d17=>_0x2b8d17)]}}),_0x446b3e['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x446b3e;}['_createToggleDiffButtonView'](){const _0x5c8a92=new _0x5b5668(this['locale']);_0x5c8a92['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x5c8a92['bind']('isEnabled')['to'](this,'isError',_0x116cfb=>!_0x116cfb),_0x5c8a92['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1c1bd4=>!_0x1c1bd4),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1ec18f=>_0x1ec18f)]}});const _0x2b50aa=_0x1d9b51(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x2a6e16=_0x1d9b51(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x5c8a92['bind']('isOn')['to'](this,'isToggleDiffOn',_0x1460d4=>_0x1460d4),_0x5c8a92['bind']('icon')['to'](this,'isToggleDiffOn',_0x2744c5=>_0x2744c5?_0xc5b86b:_0x596bfd),_0x5c8a92['bind']('label')['to'](this,'isToggleDiffOn',_0x553908=>_0x553908?_0x2b50aa:_0x2a6e16),_0x5c8a92['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x5c8a92;}['_createAcceptAllButtonView'](){const _0x977f40=new _0x5b5668(this['locale']);return _0x977f40['set']({'label':_0x1d9b51(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x977f40['bind']('isEnabled')['to'](this,'isError',_0x5bb6c2=>!_0x5bb6c2),_0x977f40['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3c77e4=>!_0x3c77e4),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x552597=>_0x552597)]}}),_0x977f40['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x977f40;}['_createExitReviewButtonView'](){const _0x5248aa=new _0x5b5668(this['locale']);return _0x5248aa['set']({'label':_0x1d9b51(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x5248aa['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x33bf6d=>!_0x33bf6d),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x16619a=>_0x16619a)]}}),_0x5248aa['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x5248aa;}['_createResultHeaderView'](){const _0x1a152a=new _0x580dd1(this['locale']),_0x5b100b=this['_createTitleView']();return _0x1a152a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x39616f=>_0x39616f)]},'children':[_0x5b100b,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x1a152a;}['_createTitleView'](){const _0x482dda=new _0x580dd1(this['locale']),_0x45b788=new _0x298550();return _0x45b788['bind']('isVisible')['to'](this,'isResultReady',_0xba510b=>!_0xba510b),_0x482dda['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x45b788,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x33d1b6=>_0x33d1b6)]},'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',_0x43a5cf=>!_0x43a5cf)]},'children':[{'text':_0x1d9b51(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x482dda;}['_createFinishReviewButtonView'](){const _0x4392e2=new _0x49d655(_0x1d9b51(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x4392e2['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1d65c9=>!_0x1d65c9)]}}),_0x4392e2['delegate']('finishReview')['to'](this),_0x4392e2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x552a2f=_0x18c4;(function(_0x5bd427,_0xacf1ef){const _0x47b2f2=_0x18c4,_0x4be23f=_0x5bd427();while(!![]){try{const _0x2ad360=parseInt(_0x47b2f2(0x1d1))/0x1+-parseInt(_0x47b2f2(0x1e2))/0x2*(-parseInt(_0x47b2f2(0x1d0))/0x3)+-parseInt(_0x47b2f2(0x1d9))/0x4*(parseInt(_0x47b2f2(0x1c8))/0x5)+-parseInt(_0x47b2f2(0x1e8))/0x6*(-parseInt(_0x47b2f2(0x1cb))/0x7)+parseInt(_0x47b2f2(0x1d3))/0x8+-parseInt(_0x47b2f2(0x1db))/0x9+-parseInt(_0x47b2f2(0x1d8))/0xa;if(_0x2ad360===_0xacf1ef)break;else _0x4be23f['push'](_0x4be23f['shift']());}catch(_0x1e00ba){_0x4be23f['push'](_0x4be23f['shift']());}}}(_0x1488,0x2177a));import{Collection as _0x274e7c}from'ckeditor5/src/utils.js';import{View as _0x1f2daf,createDropdown as _0x554eeb,addListToDropdown as _0x3121dc,UIModel as _0x570cc9}from'ckeditor5/src/ui.js';function _0x1488(){const _0x385ff3=['3070kxbbsJ','default','div','98mssqsX','length','model','_defaultLabel','ck-reset_all','6FFhJwC','269288EeZCBS','source','471864RPpemT','menu','locale','add','resetToDefault','622900ZyrCcD','1052gYcCBc','isOn','2009565lRGjQT','bind','listenTo','button','find','menuitemradio','_dropdownView','64502vrptMq','_prepareListOptions','data','_defaultValue','setTemplate','buttonView','82014JQbyDf','ck-ai_review__check-list-item-parameterized-form-element','stopPropagation','extendTemplate','execute','set','ck-ai_review__check-list-item-parameterized-form-element_dropdown','formValue','bindTemplate','label'];_0x1488=function(){return _0x385ff3;};return _0x1488();}function _0x18c4(_0x144fd8,_0x12e0d2){const _0x148869=_0x1488();return _0x18c4=function(_0x18c444,_0x2c499e){_0x18c444=_0x18c444-0x1c8;let _0x4fa5ac=_0x148869[_0x18c444];return _0x4fa5ac;},_0x18c4(_0x144fd8,_0x12e0d2);}export class AIReviewCoreFormDropdownView extends _0x1f2daf{[_0x552a2f(0x1e1)];[_0x552a2f(0x1e5)];[_0x552a2f(0x1ce)];constructor(_0xc4790d,_0x390e01){const _0x5d58c6=_0x552a2f;super(_0xc4790d),this[_0x5d58c6(0x1e5)]=_0x390e01[_0x5d58c6(0x1c9)]||(_0x390e01[_0x5d58c6(0x1e4)][_0x5d58c6(0x1cc)]>0x0?_0x390e01[_0x5d58c6(0x1e4)][0x0]['id']:''),this[_0x5d58c6(0x1ce)]=_0x390e01[_0x5d58c6(0x1e4)][_0x5d58c6(0x1df)](_0x2b8d3e=>_0x2b8d3e['id']===this[_0x5d58c6(0x1e5)])?.[_0x5d58c6(0x1f1)]||'',this[_0x5d58c6(0x1ed)](_0x5d58c6(0x1ef),''),this[_0x5d58c6(0x1e1)]=_0x554eeb(this[_0x5d58c6(0x1d5)]);const _0x258f68=this[_0x5d58c6(0x1e3)](_0x390e01[_0x5d58c6(0x1e4)]);_0x3121dc(this[_0x5d58c6(0x1e1)],_0x258f68,{'role':_0x5d58c6(0x1d4),'ariaLabel':_0x390e01[_0x5d58c6(0x1f1)]}),this[_0x5d58c6(0x1e1)][_0x5d58c6(0x1e7)][_0x5d58c6(0x1ed)]({'label':this[_0x5d58c6(0x1ce)],'withText':!0x0}),this[_0x5d58c6(0x1e1)][_0x5d58c6(0x1eb)]({'on':{'click':this[_0x5d58c6(0x1f0)]['to'](_0x2b119f=>{const _0x12c9c9=_0x5d58c6;_0x2b119f[_0x12c9c9(0x1ea)]();})}}),this[_0x5d58c6(0x1dd)](this[_0x5d58c6(0x1e1)],_0x5d58c6(0x1ec),_0x105aa5=>{const _0x406f4c=_0x5d58c6;this[_0x406f4c(0x1ef)]=_0x105aa5[_0x406f4c(0x1d2)][_0x406f4c(0x1cd)]['id'],this[_0x406f4c(0x1e1)][_0x406f4c(0x1e7)][_0x406f4c(0x1f1)]=_0x105aa5[_0x406f4c(0x1d2)][_0x406f4c(0x1cd)][_0x406f4c(0x1f1)];}),this[_0x5d58c6(0x1e6)]({'tag':_0x5d58c6(0x1ca),'attributes':{'class':['ck',_0x5d58c6(0x1cf),_0x5d58c6(0x1e9),_0x5d58c6(0x1ee)]},'children':[this[_0x5d58c6(0x1e1)]]});}[_0x552a2f(0x1d7)](){const _0x3bf68f=_0x552a2f;this[_0x3bf68f(0x1ef)]=this[_0x3bf68f(0x1e5)],this[_0x3bf68f(0x1e1)][_0x3bf68f(0x1e7)][_0x3bf68f(0x1f1)]=this[_0x3bf68f(0x1ce)];}[_0x552a2f(0x1e3)](_0x1f1bed=[]){const _0x5516a5=_0x552a2f,_0x50af99=new _0x274e7c();this[_0x5516a5(0x1d7)]();for(const _0x33a9e8 of _0x1f1bed){const _0x51a0f5=new _0x570cc9({'label':_0x33a9e8[_0x5516a5(0x1f1)],'withText':!0x0,'role':_0x5516a5(0x1e0),'id':_0x33a9e8['id'],'model':_0x33a9e8});_0x51a0f5[_0x5516a5(0x1dc)](_0x5516a5(0x1da))['to'](this,_0x5516a5(0x1ef),_0x463255=>_0x463255===_0x51a0f5['id']);const _0x497694={'type':_0x5516a5(0x1de),'model':_0x51a0f5};_0x50af99[_0x5516a5(0x1d6)](_0x497694);}return _0x50af99;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0xfd54b7=_0x4fe5;function _0x4fe5(_0x3cc6f8,_0x1b72f0){var _0x2a7c8d=_0x2a7c();return _0x4fe5=function(_0x4fe5a7,_0x36c341){_0x4fe5a7=_0x4fe5a7-0x120;var _0x489542=_0x2a7c8d[_0x4fe5a7];return _0x489542;},_0x4fe5(_0x3cc6f8,_0x1b72f0);}(function(_0x77ae90,_0x493eb3){var _0x29791f=_0x4fe5,_0x15f6e5=_0x77ae90();while(!![]){try{var _0x1bef7a=parseInt(_0x29791f(0x123))/0x1+parseInt(_0x29791f(0x128))/0x2*(parseInt(_0x29791f(0x12a))/0x3)+parseInt(_0x29791f(0x121))/0x4+-parseInt(_0x29791f(0x125))/0x5+parseInt(_0x29791f(0x12b))/0x6+-parseInt(_0x29791f(0x12c))/0x7+-parseInt(_0x29791f(0x129))/0x8*(parseInt(_0x29791f(0x12d))/0x9);if(_0x1bef7a===_0x493eb3)break;else _0x15f6e5['push'](_0x15f6e5['shift']());}catch(_0x31eff1){_0x15f6e5['push'](_0x15f6e5['shift']());}}}(_0x2a7c,0x2b5e7));import{ContextPlugin as _0x5d7a9f}from'ckeditor5/src/core.js';import{AIReviewModeUI as _0x2335a8}from'./aireviewmodeui.js';import{AIReviewCoreEditing as _0x437247}from'../aireviewcore/aireviewcoreediting.js';import{AIReviewModeController as _0x5e940c}from'./aireviewmodecontroller.js';function _0x2a7c(){var _0x5f3c14=['785961isuQps','isOfficialPlugin','959020joksKK','requires','12308CqVsSz','AIReviewMode','963695eBsBBI','isPremiumPlugin','pluginName','4tTfffC','8dKFQFI','481512RzxWSl','559734TrFYEc','1460571hKEbnJ'];_0x2a7c=function(){return _0x5f3c14;};return _0x2a7c();}export class AIReviewMode extends _0x5d7a9f{static get[_0xfd54b7(0x122)](){return[_0x5e940c,_0x2335a8,_0x437247];}static get[_0xfd54b7(0x127)](){var _0x8545fc=_0xfd54b7;return _0x8545fc(0x124);}static get[_0xfd54b7(0x120)](){return!0x0;}static get[_0xfd54b7(0x126)](){return!0x0;}}
|