UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 7.34 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ var _0x1fcb52=_0x4dd4;(function(_0xcefe2c,_0xb84d72){var _0x2b9d43=_0x4dd4,_0x2ce743=_0xcefe2c();while(!![]){try{var _0x16cfaa=-parseInt(_0x2b9d43(0x126))/0x1*(-parseInt(_0x2b9d43(0x12b))/0x2)+parseInt(_0x2b9d43(0x139))/0x3+-parseInt(_0x2b9d43(0x142))/0x4+-parseInt(_0x2b9d43(0x143))/0x5+parseInt(_0x2b9d43(0x136))/0x6*(parseInt(_0x2b9d43(0x12d))/0x7)+-parseInt(_0x2b9d43(0x124))/0x8+-parseInt(_0x2b9d43(0x129))/0x9*(-parseInt(_0x2b9d43(0x148))/0xa);if(_0x16cfaa===_0xb84d72)break;else _0x2ce743['push'](_0x2ce743['shift']());}catch(_0x240369){_0x2ce743['push'](_0x2ce743['shift']());}}}(_0x461a,0x1da75));function _0x4dd4(_0x31e272,_0x523de0){var _0x461ab0=_0x461a();return _0x4dd4=function(_0x4dd479,_0x37e138){_0x4dd479=_0x4dd479-0x11b;var _0x931acb=_0x461ab0[_0x4dd479];return _0x931acb;},_0x4dd4(_0x31e272,_0x523de0);}import{View as _0x2c1424,FormHeaderView as _0x2df3b8}from'ckeditor5/src/ui.js';import{IconAIReview as _0x5b38b1}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListView as _0x1eb9a6}from'./aireviewmodereviewchecklistview.js';import{AI_REVIEW_MODE_UI_EVENT_NAMES as _0x3afe74}from'../aireviewmodeui.js';import{AIReviewModeReviewCheckResultsView as _0x59d5ba}from'./aireviewmodereviewcheckresultsview.js';import{AIReviewModeReviewCompletedView as _0x29e9b2}from'./aireviewmodereviewcompletedview.js';function _0x461a(){var _0x177da9=['reviewCheckResultsView','resetErrorState','reviewCheckListView','252896yOLSTa','set','45vdOIeN','showReviewCompletedView','ck-ai-review-mode','45fPREdO','isResultReady','6292kWjlWP','isCompleted','1351FNSFBo','showChunkErrorView','resetAllParameterizedChecks','setTemplate','isLoading','ck-reset_all','hideActionsWhenResultIsReady','ck-ai-header\x20ck-ai-header_review-mode','showGeneralReviewModeErrorView','1446knMaBm','showGeneralResultsErrorView','finishReview','134583qbaPBm','showReviewCheckResultsView','errorMessage','delegate','addCheckRunResult','addResult','div','AI_REVIEW_MODE','showNoChangesView','632164XMQGRD','367600KOkFrk','clearResults','reviewModeHeader','showReviewCheckListView','showGeneralErrorMessage','303380HnSmiz','generalErrorView','isVisible','ck-rounded-corners','ltr','reviewCompletedView','showActionsWhenResultIsReady','showChunkErrorMessage'];_0x461a=function(){return _0x177da9;};return _0x461a();}import{AIReviewModeGeneralErrorView as _0x2571d4}from'./aireviewmodegeneralerrorview.js';import{getTranslation as _0x11b8c6}from'../../aicore/utils/common-translations.js';export class AIReviewModeView extends _0x2c1424{[_0x1fcb52(0x145)];[_0x1fcb52(0x149)];[_0x1fcb52(0x123)];[_0x1fcb52(0x121)];[_0x1fcb52(0x11e)];constructor(_0xa966c2){var _0x9fbcc8=_0x1fcb52;super(_0xa966c2),this[_0x9fbcc8(0x145)]=new _0x2df3b8(_0xa966c2,{'label':_0x11b8c6(_0xa966c2,_0x9fbcc8(0x140)),'icon':_0x5b38b1,'class':_0x9fbcc8(0x134)}),this[_0x9fbcc8(0x149)]=new _0x2571d4(_0xa966c2),this[_0x9fbcc8(0x123)]=new _0x1eb9a6(_0xa966c2),this[_0x9fbcc8(0x123)][_0x9fbcc8(0x13c)](..._0x3afe74)['to'](this),this[_0x9fbcc8(0x121)]=new _0x59d5ba(_0xa966c2),this[_0x9fbcc8(0x121)][_0x9fbcc8(0x13c)](..._0x3afe74)['to'](this),this[_0x9fbcc8(0x11e)]=new _0x29e9b2(_0xa966c2),this[_0x9fbcc8(0x11e)][_0x9fbcc8(0x13c)](_0x9fbcc8(0x138))['to'](this),this[_0x9fbcc8(0x123)][_0x9fbcc8(0x125)](_0x9fbcc8(0x11b),!0x1),this[_0x9fbcc8(0x121)][_0x9fbcc8(0x125)](_0x9fbcc8(0x11b),!0x1),this[_0x9fbcc8(0x121)][_0x9fbcc8(0x125)](_0x9fbcc8(0x131),!0x1),this[_0x9fbcc8(0x121)][_0x9fbcc8(0x125)](_0x9fbcc8(0x12a),!0x1),this[_0x9fbcc8(0x11e)][_0x9fbcc8(0x125)](_0x9fbcc8(0x11b),!0x1),this[_0x9fbcc8(0x130)]({'tag':_0x9fbcc8(0x13f),'attributes':{'class':['ck',_0x9fbcc8(0x132),_0x9fbcc8(0x128),_0x9fbcc8(0x11c)],'dir':_0x9fbcc8(0x11d)},'children':[this[_0x9fbcc8(0x145)],this[_0x9fbcc8(0x149)],this[_0x9fbcc8(0x123)],this[_0x9fbcc8(0x121)],this[_0x9fbcc8(0x11e)]]});}[_0x1fcb52(0x146)](){var _0xa08806=_0x1fcb52;this[_0xa08806(0x123)][_0xa08806(0x12f)](),this[_0xa08806(0x123)][_0xa08806(0x125)](_0xa08806(0x11b),!0x0),this[_0xa08806(0x121)][_0xa08806(0x125)](_0xa08806(0x11b),!0x1),this[_0xa08806(0x11e)][_0xa08806(0x125)](_0xa08806(0x11b),!0x1);}[_0x1fcb52(0x13a)](){var _0x4db5bf=_0x1fcb52;this[_0x4db5bf(0x133)](),this[_0x4db5bf(0x121)][_0x4db5bf(0x122)](),this[_0x4db5bf(0x123)][_0x4db5bf(0x125)](_0x4db5bf(0x11b),!0x1),this[_0x4db5bf(0x121)][_0x4db5bf(0x125)](_0x4db5bf(0x11b),!0x0),this[_0x4db5bf(0x121)][_0x4db5bf(0x144)](),this[_0x4db5bf(0x121)][_0x4db5bf(0x125)](_0x4db5bf(0x131),!0x0),this[_0x4db5bf(0x121)][_0x4db5bf(0x125)](_0x4db5bf(0x12c),!0x1);}[_0x1fcb52(0x13d)](_0x471dc2){var _0x35fa55=_0x1fcb52;this[_0x35fa55(0x121)][_0x35fa55(0x13e)](_0x471dc2),this[_0x35fa55(0x121)][_0x35fa55(0x125)](_0x35fa55(0x131),!0x1);}[_0x1fcb52(0x127)](){var _0x211a36=_0x1fcb52;this[_0x211a36(0x121)][_0x211a36(0x125)](_0x211a36(0x11b),!0x0),this[_0x211a36(0x11e)][_0x211a36(0x125)](_0x211a36(0x11b),!0x1),this[_0x211a36(0x121)][_0x211a36(0x125)](_0x211a36(0x12c),!0x0),this[_0x211a36(0x123)][_0x211a36(0x125)](_0x211a36(0x11b),!0x1);}[_0x1fcb52(0x11f)](){var _0x390fd1=_0x1fcb52;this[_0x390fd1(0x121)][_0x390fd1(0x12a)]?(this[_0x390fd1(0x123)][_0x390fd1(0x125)](_0x390fd1(0x11b),!0x1),this[_0x390fd1(0x121)][_0x390fd1(0x125)](_0x390fd1(0x11b),!0x0),this[_0x390fd1(0x11e)][_0x390fd1(0x125)](_0x390fd1(0x11b),!0x1)):this[_0x390fd1(0x121)][_0x390fd1(0x12a)]=!0x0;}[_0x1fcb52(0x141)](){var _0x2d8d04=_0x1fcb52;this[_0x2d8d04(0x123)][_0x2d8d04(0x125)](_0x2d8d04(0x11b),!0x1),this[_0x2d8d04(0x121)][_0x2d8d04(0x125)](_0x2d8d04(0x11b),!0x1),this[_0x2d8d04(0x11e)][_0x2d8d04(0x125)](_0x2d8d04(0x11b),!0x0);}[_0x1fcb52(0x133)](){var _0x405a2a=_0x1fcb52;this[_0x405a2a(0x121)][_0x405a2a(0x12a)]=!0x1;}[_0x1fcb52(0x135)](_0x2d2a0e){var _0x213ad6=_0x1fcb52;this[_0x213ad6(0x149)][_0x213ad6(0x125)](_0x213ad6(0x11b),!0x0),this[_0x213ad6(0x149)][_0x213ad6(0x13b)]=_0x2d2a0e;}[_0x1fcb52(0x137)](){var _0x2d2b1e=_0x1fcb52;this[_0x2d2b1e(0x121)][_0x2d2b1e(0x125)](_0x2d2b1e(0x131),!0x1),this[_0x2d2b1e(0x11f)](),this[_0x2d2b1e(0x121)][_0x2d2b1e(0x147)]();}[_0x1fcb52(0x12e)](){var _0x5f17dd=_0x1fcb52;this[_0x5f17dd(0x121)][_0x5f17dd(0x125)](_0x5f17dd(0x131),!0x1),this[_0x5f17dd(0x11f)](),this[_0x5f17dd(0x121)][_0x5f17dd(0x120)]();}}